Skip to content

Get API Token ​


Retrieve details of a single API token by its ID.

Endpoint ​

http
GET /api-token/{id}

Path parameters ​

id
string · uuid
REQUIRED · 

The ID of the token you want to retrieve.

Example: 1ba1f401-7183-47c5-9e39-e8e257e3c795

Query parameters ​

Refer Specifying query parameters in Truto APIs

environment_id
string · uuid

Filter tokens by environment ID (user should have access to the environment).

Example: 8a2b104d-74a6-47f2-b93e-c6b611e82391
name
string · uuid

Filter tokens by name.

Example: my-dev-token

Response Body ​

id
string · uuid

The ID of the API token.

Example: 1ba1f401-7183-47c5-9e39-e8e257e3c795
name
string

A descriptive name for the token.

Example: My token
created_by
string · uuid

The ID of the user who created this token.

Example: b7bb7578-bff2-42b2-a57f-46c874865296
environment_id
string · uuid

The ID of the environment this token is scoped to.

Example: 8a2b104d-74a6-47f2-b93e-c6b611e82391
created_at
string · date-time

The date and time when the token was created.

Example: 2021-08-10T10:00:00.000Z
updated_at
string · date-time

The date and time when the token was last updated.

Example: 2021-08-10T11:00:00.000Z