Ricky logorickyDocs

Create a tag

POST
/tags

Creates a contact tag. Apply it with tag_ids on a contact. A name already in use, in any case, answers 409 conflict.

Scope: contacts:write.

Authorization

bearerAuth
headerAuthorizationBearer <token>

An organization API key, rky_live_…, created in Settings → API. Send it only from a server.

Idempotency-Key?string

Optional. A value you choose, unique per logical write, 8–200 characters: a UUID or an ID from your system such as order-10482-ready. Retrying with the same key and body replays the first response instead of repeating the write.

Length8 <= length <= 200

Request Body

application/json
  1. body
name*string

Display name, unique in the organization regardless of case.

Length1 <= length <= 40
color*string

Display color.

Value in"gray""red""orange""amber""green""teal""blue""indigo""purple""pink"

Response Body

Success.

application/json
  1. response
data*

A label applied to contacts.

curl -X POST 'https://getricky.ai/api/v1/tags' \  -H 'Idempotency-Key: order-10482-ready' \  -H 'Content-Type: application/json' \  -d '{  "name": "Cliente frecuente",  "color": "green"}'
{  "data": {    "id": "5c6d7e8f-9a0b-4c1d-8e2f-3a4b5c6d7e8f",    "name": "Cliente frecuente",    "color": "gray"  }}