Skip to main content
GET
/
v2
/
persons
/
{personId}
Get a single Person
curl --request GET \
  --url https://api.affinity.co/v2/persons/{personId} \
  --header 'Authorization: Bearer <token>'
{
  "id": 4503599627370496,
  "firstName": "<string>",
  "lastName": "<string>",
  "primaryEmailAddress": "[email protected]",
  "emailAddresses": [
    "[email protected]"
  ],
  "type": "internal",
  "fields": [
    {
      "id": "<string>",
      "name": "<string>",
      "type": "enriched",
      "enrichmentSource": "affinity-data",
      "value": {
        "data": {
          "continent": "North America",
          "country": "United States",
          "streetAddress": "1 Main Street",
          "city": "San Francisco",
          "state": "California"
        },
        "type": "location"
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

personId
integer<int64>
required

Person ID

Required range: 1 <= x <= 9007199254740991

Query Parameters

fieldIds
string[]

Field IDs for which to return field data

Example:
["field-1"]
fieldTypes
enum<string>[]

Field Types for which to return field data

Available options:
enriched,
global,
relationship-intelligence

Response

OK

Person model

id
integer<int64>
required

The persons's unique identifier

Required range: 1 <= x <= 9007199254740991
Example:

1

firstName
string
required

The person's first name

Example:

"Jane"

lastName
string | null
required

The person's last name

Example:

"Doe"

primaryEmailAddress
string<email> | null
required

The person's primary email address

emailAddresses
string<email>[]
required

All of the person's email addresses

type
enum<string>
required

The person's type

Available options:
internal,
external
Example:

"internal"

fields
Field · object[]

The fields associated with the person