Create a tag
POST
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.
bearerAuthheader
AuthorizationBearer <token>An organization API key, rky_live_…, created in Settings → API. Send it only from a server.
Idempotency-Key?stringOptional. 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.
Length
8 <= length <= 200application/json- body
name*stringDisplay name, unique in the organization regardless of case.
Length
1 <= length <= 40color*stringDisplay color.
Value in
"gray""red""orange""amber""green""teal""blue""indigo""purple""pink"Success.
application/json- 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" }}