Skip to main content
GET
/
agent-tags
List agent tags
curl --request GET \
  --url https://asteragents.com/api/agent-tags \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": 1,
    "name": "Production",
    "createdBy": "user_2ABC123DEF",
    "createdAt": "2024-01-15T10:30:00.000Z",
    "agentCount": 3
  },
  {
    "id": 2,
    "name": "Internal",
    "createdBy": "user_2ABC123DEF",
    "createdAt": "2024-01-20T14:00:00.000Z",
    "agentCount": 1
  }
]

Authorizations

Authorization
string
header
required

JWT token from Clerk authentication.

Must be from a user with org:admin role.

Response

Successfully retrieved tags

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"

agentCount
integer

Number of agents using this tag

Example:

3