Skip to main content
POST
/
tags
Create a tag
curl --request POST \
  --url https://api.artu.ai/tags \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Environment: <api-key>' \
  --data '
{
  "name": "<string>",
  "color": "<string>",
  "description": "<string>"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "color": "<string>",
  "description": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

API key authentication. Obtain your API key from the dashboard.

X-Environment
string
header
required

Target environment for the request. Must be "test" or "live".

Body

application/json
name
string
required

Name

Required string length: 1 - 100
color
string

Color

Pattern: ^#[0-9a-fA-F]{6}$
description
string

Description

Maximum string length: 500

Response

200 - application/json

OK

id
string<uuid>
required
name
string
required
color
string | null
required
description
string | null
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required