Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Unleash API tokens API

Create, update, and delete [Unleash API tokens](https://docs.getunleash.io/concepts/api-tokens-and-client-keys).

Unleash API tokens API is one of 36 APIs that Unleash publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include API tokens. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.

This API exposes 5 operations across 3 paths, and defines 4 schemas. It is described by OpenAPI 3.0.3, at version 7.4.1.

Requests are made against a single base URL, https://app.unleash-instance.example.com.

5 operations 3 paths 4 schemas 1 DELETE2 GET1 POST1 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
7.4.1
Base URL
https://app.unleash-instance.example.com
Authentication
API Key, HTTP Bearer
Resource Areas
1

Authentication & Security 2

Unleash API tokens API declares 2 security schemes for authenticating requests. An API key is passed in the header as Authorization (apiKey). It accepts HTTP bearer tokens (bearerToken). By default, every request must be authenticated.

  • apiKey — API key needed to access this API
  • bearerToken — API key needed to access this API, in Bearer token format

Paths & Operations 5

Across 3 paths, the API surfaces 5 operations — 1 DELETE, 2 GET, 1 POST, 1 PUT. Each is listed below with its method, path, parameters, and response codes.

API tokens 5

Create, update, and delete [Unleash API tokens](https://docs.getunleash.io/concepts/api-tokens-and-client-keys).

GET
/api/admin/api-tokens
Get API Tokens
getAllApiTokens → 200401403
POST
/api/admin/api-tokens
Create API Token
createApiToken body → 201401403415
GET
/api/admin/api-tokens/{name}
Get API Tokens by Name
getApiTokensByName 1 param → 200401403
PUT
/api/admin/api-tokens/{token}
Update API Token
updateApiToken 1 param body → 200401403415
DELETE
/api/admin/api-tokens/{token}
Delete API Token
deleteApiToken 1 param → 200401403

Schemas 4

The contract defines 4 schemas that model the data the API accepts and returns. The most detailed are apiTokenSchema (10 properties), updateApiTokenSchema (1 property), apiTokensSchema (1 property). Each schema is shown below with its type and property counts.

apiTokensSchema
object
An object with [Unleash API tokens](https://docs.getunleash.io/concepts/api-tokens-and-client-keys)
1 property 1 required
updateApiTokenSchema
object
An object with fields to updated for a given API token.
1 property 1 required
apiTokenSchema
object
An overview of an [Unleash API token](https://docs.getunleash.io/concepts/api-tokens-and-client-keys).
10 properties 5 required
createApiTokenSchema
object
The data required to create an [Unleash API token](https://docs.getunleash.io/concepts/api-tokens-and-client-keys).

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

unleash-api-tokens-api-openapi.yml Raw ↑

Other APIs Unleash publishes across the network.

Unleash Client API
Unleash Addons API
Unleash Admin UI API
Unleash Archive API
Unleash Auth API
Unleash Banners API
Unleash Change Requests API
Unleash Context API
Unleash Dependencies API
Unleash Environments API
Unleash Events API
Unleash Feature Types API