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

HashiCorp Vault Auth - Token API

Token auth method

HashiCorp Vault Auth - Token API is one of 9 APIs that HashiCorp Vault publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

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

This API exposes 7 operations across 7 paths, and defines 1 schema. It is described by OpenAPI 3.1.0, at version 1.15.0.

Requests are made against 2 base URLs: https://127.0.0.1:8200/v1, https://{vault_host}:{port}/v1.

7 operations 7 paths 1 schemas 1 GET6 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
1.15.0
Base URL
https://127.0.0.1:8200/v1
Authentication
API Key
Contact
Resource Areas
1

Authentication & Security 1

HashiCorp Vault Auth - Token API declares 1 security scheme for authenticating requests. An API key is passed in the header as X-Vault-Token (VaultToken). By default, every request must be authenticated.

  • VaultToken — Vault client token

Paths & Operations 7

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

Auth - Token 7

Token auth method

POST
/auth/token/create
Create a token
createToken body → 200
POST
/auth/token/lookup
Lookup a token
lookupToken body → 200
GET
/auth/token/lookup-self
Lookup own token
lookupSelfToken → 200
POST
/auth/token/renew
Renew a token
renewToken body → 200
POST
/auth/token/renew-self
Renew own token
renewSelfToken body → 200
POST
/auth/token/revoke
Revoke a token
revokeToken body → 204
POST
/auth/token/revoke-self
Revoke own token
revokeSelfToken → 204

Schemas 1

The contract defines 1 schema that model the data the API accepts and returns. The most detailed is VaultResponse (8 properties). Each schema is shown below with its type and property counts.

VaultResponse
object
8 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

hashicorp-vault-auth-token-api-openapi.yml Raw ↑

Other APIs HashiCorp Vault publishes across the network.

HashiCorp Vault Auth - AppRole API
HashiCorp Vault Auth - Userpass API
HashiCorp Vault Identity API
HashiCorp Vault Leases API
HashiCorp Vault Policy API
HashiCorp Vault Secrets - KV v2 API
HashiCorp Vault Secrets - Transit API
HashiCorp Vault System API