Skip to main content

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

NameTypeInDescription
nodeIDstringpathRequired. The ID of the node
originintegerqueryOptional. Filter by token origin
statusintegerqueryOptional. Filter by token status
pageintegerqueryOptional. Page number (default 1)
per_pageintegerqueryOptional. Items per page (default 20)

Headers

NameDescription
AuthorizationRequired. 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 CodeDescription
200Success
400Bad Request - Missing or invalid nodeID
401Unauthorized - Invalid or missing authentication token
500Internal Server Error