Get a contact
GET
/api/v1/contacts/{id}
const url = 'https://digize.com/api/v1/contacts/example';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://digize.com/api/v1/contacts/example \ --header 'x-api-key: <x-api-key>'One contact with their tags, custom field values, orders and lifetime value.
Needs the crm:read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Responses
Section titled “Responses”Done
Media typeapplication/json
object
id
required
string
firstName
required
string
lastName
required
string
name
required
string
email
required
string | null
phone
required
In E.164, such as +15125550142.
string | null
city
required
string | null
companyId
required
string | null
companyName
required
string | null
ownerId
required
The member who looks after them, by user id.
string | null
source
required
string
tags
required
Array<string>
stage
required
Lead: hasn’t ordered; customer: one or two orders; repeat: three or more.
string
orders
required
number
lifetimeValue
required
What they’ve paid, less refunds, in minor units.
number
lastActivityAt
required
string format: date-time
custom
required
Custom field values by field key.
object
key
additional properties
Any of:
string
number
boolean
Array<string>
createdAt
required
string format: date-time
Example
{ "source": "checkout", "stage": "lead"}What was sent isn’t valid (invalid).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}