Skip to main content
GET
/
v2
/
companies
/
{companyId}
/
notes
Get Notes for a Company
curl --request GET \
  --url https://api.affinity.co/v2/companies/{companyId}/notes \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": 1073741824,
      "content": {
        "html": "<string>"
      },
      "creator": {
        "id": 4503599627370496,
        "firstName": "<string>",
        "lastName": "<string>",
        "primaryEmailAddress": "[email protected]",
        "type": "internal"
      },
      "mentions": [
        {
          "id": 1073741824,
          "type": "<string>",
          "person": {
            "id": 4503599627370496,
            "firstName": "<string>",
            "lastName": "<string>",
            "primaryEmailAddress": "[email protected]",
            "type": "internal"
          }
        }
      ],
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "type": "<string>",
      "repliesCount": 1073741823,
      "permissions": {
        "sharingType": "private",
        "owner": {
          "id": 4503599627370496,
          "firstName": "<string>",
          "lastName": "<string>",
          "primaryEmailAddress": "[email protected]",
          "type": "internal"
        }
      },
      "opportunitiesPreview": {
        "data": [
          {
            "id": 4503599627370496,
            "name": "<string>",
            "listId": 4503599627370496
          }
        ],
        "totalCount": 4503599627370495
      },
      "personsPreview": {
        "data": [
          {
            "id": 4503599627370496,
            "firstName": "<string>",
            "lastName": "<string>",
            "primaryEmailAddress": "[email protected]",
            "type": "internal"
          }
        ],
        "totalCount": 4503599627370495
      },
      "companiesPreview": {
        "data": [
          {
            "id": 4503599627370496,
            "name": "<string>",
            "domain": "<string>"
          }
        ],
        "totalCount": 4503599627370495
      }
    }
  ],
  "pagination": {
    "prevUrl": "https://api.affinity.co/v2/foo?cursor=ICAgICAgYmVmb3JlOjo6Nw",
    "nextUrl": "https://api.affinity.co/v2/foo?cursor=ICAgICAgIGFmdGVyOjo6NA"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

companyId
integer<int64>
required

Company's ID

Required range: 1 <= x <= 9007199254740991

Query Parameters

filter
string

Filter options

cursor
string

Cursor for the next or previous page

limit
integer<int32>
default:20

Number of items to include in the page

Required range: 0 <= x <= 100
totalCount
boolean
default:false

Include total count of the collection in the pagination response

Response

OK

NotesPaged model

data
(notes.EntitiesNote · object | notes.InteractionNote · object | notes.AiNotetakerRootNote · object | notes.UserReplyNote · object | notes.AiNotetakerReplyNote · object)[]
required

A page of Note objects

Maximum array length: 100

A Note object attached to an entity (Person, Company, Opportunity)

pagination
PaginationWithTotalCount · object
required
Example:
{
"prevUrl": "https://api.affinity.co/v2/foo?cursor=ICAgICAgYmVmb3JlOjo6Nw",
"nextUrl": "https://api.affinity.co/v2/foo?cursor=ICAgICAgIGFmdGVyOjo6NA"
}