Get Tokens By Node ID
Returns the tokens that belong to a node, with optional filtering by origin and status, and pagination. Unlike Get Tokens (a POST .../search with a rich request body), this is a simple GET keyed on the node ID.
Request
GET /v2/admin/tokens/nodes/{nodeID}
Parameters
| Name | Type | In | Description |
|---|---|---|---|
nodeID | string | path | Required. The ID of the node |
origin | integer | query | Optional. Filter by token origin |
status | integer | query | Optional. Filter by token status |
page | integer | query | Optional. Page number (default 1) |
per_page | integer | query | Optional. Items per page (default 20) |
Headers
| Name | Description |
|---|---|
Authorization | Required. Bearer token for authentication |
Example
curl --request GET \
--url '{{baseUrl}}/v2/admin/tokens/nodes/67d6c447f47ff3adafda700d?page=1&per_page=20' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...'
Response
Returns a paginated list of tokens for the node. The token object shape matches the one documented in Get Token By ID.
Status Codes
| Status Code | Description |
|---|---|
| 200 | Success |
| 400 | Bad Request - Missing or invalid nodeID |
| 401 | Unauthorized - Invalid or missing authentication token |
| 500 | Internal Server Error |