Skip to main content
POST
https://api.bland.ai
/
v1
/
contacts
/
resolve
Resolve Contact
curl --request POST \
  --url https://api.bland.ai/v1/contacts/resolve \
  --header 'Content-Type: application/json' \
  --header 'authorization: <authorization>' \
  --data '
{
  "phone_number": "<string>",
  "email": "<string>",
  "external_id": "<string>",
  "name": "<string>",
  "persona_id": "<string>",
  "agent_number": "<string>",
  "metadata": {}
}
'
{
  "data": {
    "contact": {
      "id": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
      "org_id": "11111111-2222-3333-4444-555555555555",
      "name": "John Doe",
      "metadata": {
        "source": "api"
      },
      "created_at": "2025-07-22T10:30:00.000Z",
      "updated_at": "2025-07-22T10:30:00.000Z"
    },
    "created": true
  },
  "errors": null
}

Headers

authorization
string
required
Your API key for authentication.

Body Parameters

phone_number
string
Phone number for the contact. At least one identifier is required.
email
string
Email address for the contact. At least one identifier is required.
external_id
string
External ID for the contact. At least one identifier is required.
name
string
Name of the contact.
persona_id
string
Persona ID for memory scoping. Either persona_id or agent_number should be provided for memory creation.
agent_number
string
Agent phone number for memory scoping. Either persona_id or agent_number should be provided for memory creation.
metadata
object
Custom metadata to associate with the contact.

Response

data
object
Response containing the contact and creation status.
data.contact
object
The resolved contact object.
data.contact.id
string
Unique identifier for the contact.
data.contact.org_id
string
Organization ID the contact belongs to.
data.contact.name
string
Contact’s name (if set).
data.contact.metadata
object
Custom metadata associated with the contact.
data.contact.created_at
string
ISO timestamp when the contact was created.
data.contact.updated_at
string
ISO timestamp when the contact was last updated.
data.created
boolean
Whether a new contact was created (true) or an existing one was found (false).
errors
null
Error array (null on success).
{
  "data": {
    "contact": {
      "id": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
      "org_id": "11111111-2222-3333-4444-555555555555",
      "name": "John Doe",
      "metadata": {
        "source": "api"
      },
      "created_at": "2025-07-22T10:30:00.000Z",
      "updated_at": "2025-07-22T10:30:00.000Z"
    },
    "created": true
  },
  "errors": null
}