Create a contact
Creates a directory contact and can atomically assign existing tags. The E.164 number is immutable because it is the stable key used to associate call history and memory. Use Idempotency-Key for safe retries.
bearerAuthAuthorizationBearer <token>Use a Voice API key or connected-app OAuth access token. Authentication.
Idempotency-Key*stringRequired. Reuse the same key to retry this write safely. Retries and idempotency.
^[A-Za-z0-9!#$%&'*+.^_`|~-]+$1 <= length <= 255application/json- body
e164*ContactE164An E.164 number with a non-zero country code and 7 to 15 digits, or a bare internal number/extension of 1 to 20 [0-9*#] characters (e.g. 103, 2770124).
^(\+[1-9][0-9]{7,14}|[0-9*#]{1,20})$display_name?stringOptional display label. Surrounding whitespace is trimmed; control characters are rejected.
length <= 120company?stringOptional company label. Surrounding whitespace is trimmed; control characters are rejected.
length <= 120notes?stringOptional multiline notes. Surrounding whitespace is trimmed; NUL and unsupported control characters are rejected.
length <= 10000timezone?stringOptional loadable IANA timezone name, such as Asia/Dubai. Local is rejected.
tag_ids?array<>Existing contact-tag IDs in this workspace, assigned atomically with creation.
items <= 50Contact created with hydrated tags and activity counts.
application/json- response
id*stringuuide164*ContactE164An E.164 number with a non-zero country code and 7 to 15 digits, or a bare internal number/extension of 1 to 20 [0-9*#] characters (e.g. 103, 2770124).
^(\+[1-9][0-9]{7,14}|[0-9*#]{1,20})$display_name?stringlength <= 120company?stringlength <= 120timezone?stringCanonical IANA timezone name used for contact-local outbound policy evaluation.
tags*array<>call_count*integer0 <= valuelast_contacted_at?stringdate-timecreated_at*stringdate-timeupdated_at*stringdate-timenotes?stringlength <= 10000curl -X POST 'https://api.kejue.co/v1/contacts' \ -H 'Idempotency-Key: string' \ -H 'Content-Type: application/json' \ -d '{ "e164": "string"}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "e164": "string", "display_name": "string", "company": "string", "timezone": "string", "tags": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "color": "slate" } ], "call_count": 0, "last_contacted_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "notes": "string"}