POST
/
v1
/
accounts
/
contacts
curl --request POST \
  --url https://platform.thena.ai/v1/accounts/contacts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-org-id: <api-key>' \
  --data '{
  "firstName": "John",
  "lastName": "Doe",
  "email": "john.doe@example.com",
  "phoneNumber": "+1234567890",
  "contactType": "CT123",
  "avatarUrl": "https://example.com/avatar.png",
  "accountIds": [
    "A123",
    "A456"
  ],
  "customFieldValues": [
    {}
  ]
}'
{
  "id": "<string>",
  "firstName": "<string>",
  "lastName": "<string>",
  "email": "<string>",
  "phoneNumber": "<string>",
  "avatarUrl": "<string>",
  "accounts": [
    "<string>"
  ],
  "contactTypeId": "<string>",
  "contactType": "<string>",
  "customFieldValues": [
    "<string>"
  ],
  "metadata": {},
  "createdAt": "<string>",
  "updatedAt": "<string>"
}

Authorizations

Authorization
string
header
required

Enter JWT bearer token

x-org-id
string
header
required

Enter organization ID

Body

application/json
firstName
string
required

First name of the customer contact

Example:

"John"

email
string
required

Email of the customer contact

Example:

"john.doe@example.com"

lastName
string

Last name of the customer contact

Example:

"Doe"

phoneNumber
string

Phone number of the customer contact with country code

Example:

"+1234567890"

contactType
string

Contact type (UID of the contact type attribute value) of the customer contact to create. (Uses default contact type if not provided)

Example:

"CT123"

avatarUrl
string

Avatar URL of the customer contact

Example:

"https://example.com/avatar.png"

accountIds
string[]

Account IDs of the customer contact

Example:
["A123", "A456"]
customFieldValues
object[]

The custom field values of the customer contact

Response

201
application/json
Operation successful
id
string
required

The identifier of the customer contact

firstName
string
required

The first name of the customer contact

lastName
string
required

The last name of the customer contact

email
string
required

The email of the customer contact

phoneNumber
string
required

The phone number of the customer contact

avatarUrl
string
required

The avatar URL of the customer contact

accounts
string[]
required

The name of the account

contactTypeId
string
required

The identifier of the contact type

contactType
string
required

The name of the contact type

customFieldValues
string[]
required

The custom field values

metadata
object
required

The metadata of the contact

createdAt
string
required

The creation date of the contact

updatedAt
string
required

The last update date of the contact