curl --request POST \
--url https://api.blujay.io/v1/contacts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"phone_number": "+15555550123",
"name": "Ava Chen"
}
'{
"status": "success",
"data": {
"contact_id": "contact_abc123",
"phone_number": "+15555550123",
"name": "Ava Chen",
"tags": [],
"stage": "Active",
"assigned_team_member": null,
"opted_out": false,
"messaging_allowed": true,
"created_at": "2026-10-14T16:58:30.000Z",
"updated_at": "2026-10-14T16:58:30.000Z"
},
"trace_id": "trc_8f2a1c0e4b7d",
"timestamp": "2026-10-14T16:58:30.096Z"
}{
"status": "error",
"error": {
"code": "VALIDATION_ERROR",
"message": "Request validation failed",
"type": "validation",
"http_status": 400,
"retryable": false,
"doc_url": "https://docs.blujay.io/errors/validation-error",
"details": []
},
"trace_id": "trc_8f2a1c0e4b7d",
"timestamp": "2026-10-14T00:00:00.000Z"
}{
"status": "error",
"error": {
"code": "CONTACT_ALREADY_EXISTS",
"message": "Contact already exists for this address",
"type": "validation",
"http_status": 409,
"retryable": false,
"doc_url": "https://docs.blujay.io/errors/contact-already-exists",
"details": []
},
"trace_id": "trc_8f2a1c0e4b7d",
"timestamp": "2026-10-14T17:30:00.000Z"
}Create a contact
Creates a contact. phone_number is required; email and name are optional. Returns 409 CONTACT_ALREADY_EXISTS if the phone number or email already belongs to a contact in your workspace.
Creating a contact through the API doesn’t send a webhook or start workflows that run on new contacts. To create or update in one call, use POST /v1/contacts/import.
curl --request POST \
--url https://api.blujay.io/v1/contacts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"phone_number": "+15555550123",
"name": "Ava Chen"
}
'{
"status": "success",
"data": {
"contact_id": "contact_abc123",
"phone_number": "+15555550123",
"name": "Ava Chen",
"tags": [],
"stage": "Active",
"assigned_team_member": null,
"opted_out": false,
"messaging_allowed": true,
"created_at": "2026-10-14T16:58:30.000Z",
"updated_at": "2026-10-14T16:58:30.000Z"
},
"trace_id": "trc_8f2a1c0e4b7d",
"timestamp": "2026-10-14T16:58:30.096Z"
}{
"status": "error",
"error": {
"code": "VALIDATION_ERROR",
"message": "Request validation failed",
"type": "validation",
"http_status": 400,
"retryable": false,
"doc_url": "https://docs.blujay.io/errors/validation-error",
"details": []
},
"trace_id": "trc_8f2a1c0e4b7d",
"timestamp": "2026-10-14T00:00:00.000Z"
}{
"status": "error",
"error": {
"code": "CONTACT_ALREADY_EXISTS",
"message": "Contact already exists for this address",
"type": "validation",
"http_status": 409,
"retryable": false,
"doc_url": "https://docs.blujay.io/errors/contact-already-exists",
"details": []
},
"trace_id": "trc_8f2a1c0e4b7d",
"timestamp": "2026-10-14T17:30:00.000Z"
}Authorizations
Your workspace API key, sent as Authorization: Bearer blu_.... Workspace admins can find it in the Blujay app under API.
An API key has full access to your workspace and works on every endpoint. There is no test mode: every key sends real messages and changes real data, so keep it secret and use it only from your server.
Each API key can make 600 read requests and 120 write requests per minute, plus 60 attachment requests per minute. Over a limit you get 429 RATE_LIMIT_EXCEEDED with Retry-After.
Body
Response
The new contact.
Wraps every successful response. The result is in data.
success ^trc_[A-Za-z0-9_-]+$"trc_8f2a1c0e4b7d"
"2026-10-14T17:01:00.000Z"
Show child attributes
Show child attributes
Your X-Request-ID header value, echoed back when you send one. Not included on the send responses (POST /v1/chats, POST /v1/chats/{chat_id}/messages, POST /v1/messages/{message_id}/retry); keep your own mapping from your request ID to the returned message ID there.