Delete a contact

DELETE
/api/v1/orgs/{orgId}/contacts/{contactId}

Soft-deletes a contact. Contacts linked to a Clai user account cannot be deleted (409 CONTACT_LINKED).

Requires the api_contacts_delete scope.

Authorization

bearerAuth
AuthorizationBearer <token>

Bearer token using a Clai API key secret (clai_live_*).

In: header

Path Parameters

NameTypeDescription
orgId
required
string

Organization ID the key is operating in

contactId
required
string

Contact ID

Formatuuid

Header Parameters

NameTypeDescription
If-Matchstring

Optional ETag from the latest GET, create, or update. A stale value returns 412.

Length1 <= length

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://app.goclai.com/api/v1/orgs/org_2abc123/contacts/550e8400-e29b-41d4-a716-446655440030"
Empty
{
  "error": {
    "code": "ERROR_CODE",
    "message": "Human-readable error message",
    "details": {}
  }
}
{
  "error": {
    "code": "ERROR_CODE",
    "message": "Human-readable error message",
    "details": {}
  }
}
{
  "error": {
    "code": "ERROR_CODE",
    "message": "Human-readable error message",
    "details": {}
  }
}
{
  "error": {
    "code": "ERROR_CODE",
    "message": "Human-readable error message",
    "details": {}
  }
}
{
  "error": {
    "code": "ERROR_CODE",
    "message": "Human-readable error message",
    "details": {}
  }
}
{
  "error": {
    "code": "ERROR_CODE",
    "message": "Human-readable error message",
    "details": {}
  }
}