Skip to content
OpenRelay is in early access, and the /v1 API is stable. New capabilities ship in the changelog.
Skip to Content
API ReferenceProvidersProvider

List provisioning tokens (provider only)

Returns the organization's provisioning tokens, newest first, with each token's prefix, class, status, expiry and enrollment count. The secret is never shown. A token that can still enroll is always listed. Expired, exhausted and revoked tokens stay listed until 6 days after they expire, then fall out.

Required permission

Requires the provider.read permission. See Permissions for the roles and API key permissions that include it.

Command line

The orl CLI wraps this endpoint:

orl provider provisioning-token list
GET
/v1/orgs/{orgId}/provider/tokens

Authorization

apiKey
headerAuthorizationBearer <token>

OpenRelay API key. Send it as Authorization: Bearer or_… (legacy vl_… keys still work).

Path Parameters

orgId*string

Response Body

OK

application/json
  1. response
[index: integer]?
Example Request
curl -X GET 'https://api.openrelay.inc/v1/orgs/string/provider/tokens'
Example Response
[  {    "id": "string",    "tokenPrefix": "string",    "name": "string",    "nodeType": "string",    "status": "string",    "createdAt": "string",    "expiresAt": "string",    "enrollmentCount": 0,    "noticeSeconds": 0,    "maxEnrollments": 0,    "lastUsedAt": "string",    "nodePool": "string",    "revokedAt": "string"  }]