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

Humanitec TokenInfo API

Holds metadata about a token. `expires_at` is excluded if token does not expire.

Humanitec TokenInfo API is one of 45 APIs that Humanitec publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include TokenInfo. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, a getting-started guide, and authentication docs.

This API exposes 4 operations across 2 paths, and defines 4 schemas. It is described by OpenAPI 3.0.0, at version 0.28.24.

Requests are made against a single base URL, https://api.humanitec.io/.

4 operations 2 paths 4 schemas 1 DELETE2 GET1 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.0
API Version
0.28.24
Base URL
https://api.humanitec.io
Resource Areas
1

Paths & Operations 4

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

TokenInfo 4

Holds metadata about a token. expiresat is excluded if token does not expire.

GET
/users/{userId}/tokens
Lists tokens associated with a user
listUserTokens 1 param → 200403
POST
/users/{userId}/tokens
Creates a new static token for a user.
createUserToken 1 param body → 200400403409
GET
/users/{userId}/tokens/{tokenId}
Gets a specific token associated with a user
getUserToken 2 params → 200403404
DELETE
/users/{userId}/tokens/{tokenId}
Deletes a specific token associated with a user
deleteUserToken 2 params → 204400403404

Schemas 4

The contract defines 4 schemas that model the data the API accepts and returns. The most detailed are TokenInfoResponse (6 properties), TokenDefinitionRequest (4 properties), HumanitecErrorResponse (3 properties), TokenResponse (2 properties). Each schema is shown below with its type and property counts.

TokenInfoResponse
object
Holds metadata about a token. expiresat is excluded if token does not expire.
6 properties 5 required
HumanitecErrorResponse
object
HumanitecError represents a standard Humanitec Error
3 properties 2 required
TokenResponse
object
Token holds the token and its type.
2 properties 1 required
TokenDefinitionRequest
object
Defines the token to be created.
4 properties 2 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

humanitec-tokeninfo-api-openapi.yml Raw ↑

Other APIs Humanitec publishes across the network.

Humanitec AccountType API
Humanitec ActiveResource API
Humanitec Agents API
Humanitec Application API
Humanitec Artefact API
Humanitec ArtefactVersion API
Humanitec AuditLogs API
Humanitec AutomationRule API
Humanitec Delta API
Humanitec Deployment API
Humanitec DriverDefinition API
Humanitec Environment API