Skip to main content
POST
/
agent-tags
Create an agent tag
curl --request POST \
  --url https://asteragents.com/api/agent-tags \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Production"
}
'
{
  "id": 1,
  "name": "Production",
  "organizationId": "org_xxx",
  "createdBy": "user_2ABC123DEF",
  "createdAt": "2024-01-15T10:30:00.000Z",
  "updatedAt": "2024-01-15T10:30:00.000Z"
}

Authorizations

Authorization
string
header
required

JWT token from Clerk authentication.

Must be from a user with org:admin role.

Body

application/json
name
string
required

Tag name (1–50 characters)

Required string length: 1 - 50
Example:

"Production"

Response

Tag created (or existing tag returned)

id
integer
required

Unique tag identifier

Example:

1

name
string
required

Tag name

Example:

"Production"

organizationId
string
required

Organization the tag belongs to

Example:

"org_xxx"

createdBy
string
required

Clerk user ID of the tag creator

Example:

"user_2ABC123DEF"

createdAt
string<date-time>
required
Example:

"2024-01-15T10:30:00.000Z"

updatedAt
string<date-time>
required
Example:

"2024-01-15T10:30:00.000Z"