Listing the tokens of a gateway¶
Note
The Admin API requires no token. The Admin API is typically protected at the network level.
Send the request as GET to the path /admin/v1/gateways/{gateway_id}/tokens.
Request¶
The following parameters are available:
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
gateway_id |
path | string |
yes | ID of the gateway. |
Example¶
Example of the response body:
{
"tokens": [
{
"id": "tok_def456",
"label": "CI bot",
"user_id": "usr_abc123",
"scopes": [
"inference"
]
}
]
}
Responses¶
The endpoint answers the request with the following status codes:
| Status code | Description |
|---|---|
200 |
List of auth tokens (plaintext values not included). |