Skip to main content
GET
/
core
/
provisioning-tokens
curl https://acusight.io/api/provisioning-tokens \
  -H "Authorization: Bearer <TOKEN>"
{
  "success": true,
  "data": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "name": "Production Line 1",
      "single_use": true,
      "use_count": 1,
      "created_at": "2024-01-15T10:30:00Z",
      "expires_at": "2024-01-22T10:30:00Z",
      "last_used_at": "2024-01-15T11:00:00Z",
      "revoked_at": "2024-01-15T11:00:00Z"
    },
    {
      "id": "660e8400-e29b-41d4-a716-446655440001",
      "name": "Development Devices",
      "single_use": false,
      "use_count": 5,
      "created_at": "2024-01-10T08:00:00Z",
      "expires_at": null,
      "last_used_at": "2024-01-14T16:30:00Z",
      "revoked_at": null
    }
  ]
}
Returns all provisioning tokens for the current organization, sorted by creation date (newest first).
The raw token value is never returned after creation. Only metadata about each token is included.

Response

Returns an array of token objects.
id
string
Unique identifier for the token
name
string
The descriptive name of the token
single_use
boolean
Whether the token auto-revokes after first use
use_count
integer
Number of devices provisioned with this token
created_at
string
ISO 8601 timestamp of creation
expires_at
string
ISO 8601 timestamp when the token expires (null if never)
last_used_at
string
ISO 8601 timestamp of last successful provisioning (null if never used)
revoked_at
string
ISO 8601 timestamp when token was revoked (null if active)
curl https://acusight.io/api/provisioning-tokens \
  -H "Authorization: Bearer <TOKEN>"
{
  "success": true,
  "data": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "name": "Production Line 1",
      "single_use": true,
      "use_count": 1,
      "created_at": "2024-01-15T10:30:00Z",
      "expires_at": "2024-01-22T10:30:00Z",
      "last_used_at": "2024-01-15T11:00:00Z",
      "revoked_at": "2024-01-15T11:00:00Z"
    },
    {
      "id": "660e8400-e29b-41d4-a716-446655440001",
      "name": "Development Devices",
      "single_use": false,
      "use_count": 5,
      "created_at": "2024-01-10T08:00:00Z",
      "expires_at": null,
      "last_used_at": "2024-01-14T16:30:00Z",
      "revoked_at": null
    }
  ]
}