Skip to content

List all agent tokens

GET
/api/v4/projects/{id}/cluster_agents/{agent_id}/tokens

Lists all active tokens for an agent. You must have the Developer, Maintainer, or Owner role to use this endpoint.

id
required
One of:
string

The ID or URL-encoded path of the project

agent_id
required
integer

The ID of an agent

page
integer
default: 1 nullable

Current page number

Example
1
per_page
integer
default: 20 nullable

Number of items per page

Example
20

OK

Media type application/json
object
id
integer format: int64
name
string
description
string
agent_id
integer format: int64
status
string
created_at
string format: date-time
created_by_user_id
integer format: int64
Example
{
"id": 1,
"agent_id": 1,
"created_by_user_id": 1
}

Bad Request

Not Found