Endpoint
contacts.create.
Headers
| Header | Value |
|---|---|
Authorization | Bearer apitk_... |
Content-Type | application/json |
Accept | application/json |
Path parameters
Your workspace subdomain.
Body parameters
First name. Max 255 characters. Note the spelling —
firstname, not first_name.Last name. Max 255 characters. Optional on create (required on update).
Phone number. Max 20 characters. Unique per workspace.
Email address. Max 191 characters. When provided, must be unique per workspace.
Contact type. Must be
lead or customer. (The underlying enum also permits guest, but the API does not accept it.)Company name. Max 255 characters.
Freeform description.
Country id.
User id of the owner.
Comma-separated group names. Groups that do not exist are auto-created.
Example request
Example response
201 Created
Error responses
| Status | When | Example body |
|---|---|---|
401 | Missing / invalid token | {"status":"error","message":"API token is required"} |
403 | Missing ability | {"status":"error","message":"Token does not have the required ability: contacts.create"} |
403 | Plan limit hit | {"status":"error","message":"Contact limit exceeded for your current plan. Upgrade to add more contacts."} |
422 | Validation | {"status":"error","message":"Validation failed","errors":{"phone":["The phone has already been taken."]}} |
429 | Rate limit | {"message":"Too many requests","retry_after":45} |
500 | Server error | {"status":"error","message":"Failed to create contact"} |