Contacts
Create a contact tag
POST
Creates one case-insensitively unique tag. Color defaults to slate. Use Idempotency-Key for safe retries.
bearerAuthheader
AuthorizationBearer <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.
Match
^[A-Za-z0-9!#$%&'*+.^_`|~-]+$Length
1 <= length <= 255application/json- body
name*stringCase-insensitively unique name. Surrounding whitespace is trimmed; control characters are rejected.
Length
1 <= length <= 40color?stringDefault
"slate"Value in
"slate""blue""green""amber""red""purple""teal""pink"Contact tag created.
application/json- response
id*stringFormat
uuidname*stringLength
1 <= length <= 40color*ContactTagColorValue in
"slate""blue""green""amber""red""purple""teal""pink"usage_count*integerRange
0 <= valuecreated_at*stringFormat
date-timeupdated_at*stringFormat
date-timecurl -X POST 'https://api.kejue.co/v1/contacts/tags' \ -H 'Idempotency-Key: string' \ -H 'Content-Type: application/json' \ -d '{ "name": "string"}'Example Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "color": "slate", "usage_count": 0, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}