Skip to Content
Contacts

Create a contact tag

Permissioncontacts:createRetriesIdempotency-Key requiredAuthentication
POST
/contacts/tags

Creates one case-insensitively unique tag. Color defaults to slate. Use Idempotency-Key for safe retries.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Use a Voice API key or connected-app OAuth access token. Authentication.

Header Parameters

Idempotency-Key*string

Required. Reuse the same key to retry this write safely. Retries and idempotency.

Match^[A-Za-z0-9!#$%&'*+.^_`|~-]+$
Length1 <= length <= 255

Request Body

application/json
  1. body
name*string

Case-insensitively unique name. Surrounding whitespace is trimmed; control characters are rejected.

Length1 <= length <= 40
color?string
Default"slate"
Value in"slate""blue""green""amber""red""purple""teal""pink"

Response Body

Contact tag created.

application/json
  1. response
id*string
Formatuuid
name*string
Length1 <= length <= 40
color*ContactTagColor
Value in"slate""blue""green""amber""red""purple""teal""pink"
usage_count*integer
Range0 <= value
created_at*string
Formatdate-time
updated_at*string
Formatdate-time
Example Request
curl -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"}