Show details for a contact
name (string) - The name of the contactemail (string) - The email of the contact, must be a valid and deliverable email addressaddress_line_1 (string) - The first line of the contact’s addressaddress_line_2 (string) - The second line of the contact’s addressaddress_city (string) - The city of the contact’s addressaddress_country (string) - The country of the contact’s addressaddress_state (string) - The state of the contact’s addressaddress_zip (string) - The zip code of the contact’s addressphone_number (string) - The phone number of the contactbusiness_number (string) - The business phone number of the contactsubscribed (boolean) - Whether the contact has opted in to receive marketing communications from the siteexternal_user_id (string) - The external user ID of the contact/customer; this field is only updatable if the contact has been granted an offer or made a purchasecreated_at (string) - The date and time the contact was createdupdated_at (string) - The date and time the contact was last updatedUse the include parameter to include related resources in the response:
GET /v1/contacts/123?include=offers,tags,customerResponse will include the related contact offers, tags and customer resources
{
"data": {
"id": "123",
"type": "contacts",
"attributes": {
"name": "John Smith",
"email": "[email protected]",
"address_line_1": null,
"address_line_2": null,
"address_city": null,
"address_country": null,
"address_state": null,
"address_zip": null,
"phone_number": null,
"business_number": null,
"subscribed": false,
"external_user_id": null,
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
},
"links": {
"customer": "https://api.kajabi.com/v1/customers/321"
},
"relationships": {
"site": {
"data": {
"id": "123",
"type": "sites"
}
},
"offers": {
"links": {
"data": [
{ "id": "456", "type": "offers" }
],
"self": "https://api.kajabi.com/v1/contacts/123/relationships/offers"
}
},
"tags": {
"data": [
{ "id": "789", "type": "contact_tags" }
],
"links": {
"self": "https://api.kajabi.com/v1/contacts/123/relationships/tags"
}
},
"customer": {
"data": {
"id": "321",
"type": "customers"
}
}
}
},
"included": [
{
"id": "456",
"type": "offers",
"attributes": {
"name": "Offer 1",
"description": "Offer 1 description",
"internal_title": "Offer 1",
"price_in_cents": 0,
"payment_type": "free",
"token": "offer_123",
"payment_method": "none",
"price_description": "Free",
"checkout_url": "https://mywebsite.com/offers/456",
"recurring_offer": false,
"subscription": false,
"one_time": true,
"single": false,
"free": true
}
},
{
"id": "789",
"type": "contact_tags",
"attributes": {
"name": "Tag Name"
}
},
{
"id": "321",
"type": "customers",
"attributes": {
"name": "John Smith",
"email": "[email protected]",
"avatar": null,
"external_user_id": "cust_123",
"public_bio": null,
"public_location": null,
"public_website": null,
"socials": null,
"net_revenue": "0.0",
"sign_in_count": 0,
"last_request_at": null,
"bounced_at": null,
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
}
}
]
}
Use the fields[contacts] parameter to get specific fields for a contact:
GET /v1/contacts/123?fields[contacts]=name,emailResponse will include only requested fields for the contact
{
"data": {
"id": "123",
"type": "contacts",
"attributes": {
"name": "John Smith",
"email": "[email protected]"
}
}
}
You can combine multiple parameters to include related resources and get specific fields for a contact:
GET /v1/contacts/123?include=customer&fields[contacts]=email&fields[customers]=net_revenueResponse will include the related customer resource and only requested fields for the contact and customer
{
"data": {
"id": "123",
"type": "contacts",
"attributes": {
"email": "[email protected]"
},
"relationships": {}
},
"included": [
{
"id": "321",
"type": "customers",
"attributes": {
"net_revenue": "0.0"
}
}
]
}
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
with ?include=offers,tags,customer the response will include the related contact offers, tags and customer resources
Sparse fields, use: name, email for example ?fields[contacts]=name,email