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 Leases API

Look up, renew, and revoke leases for secrets and tokens.

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

This API exposes 5 JSON Schema definitions.

Tagged areas include Leases. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, a JSON-LD context, and 5 JSON Schemas.

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

Requests are made against a single base URL, https://vault.example.com/v1.

3 operations 3 paths 5 schemas 3 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
2.0
Base URL
https://vault.example.com/v1
Authentication
API Key
License
Terms of Service
Resource Areas
1

Authentication & Security 1

HashiCorp Vault Leases 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 token for authenticating API requests. Tokens can be created via login endpoints or the token auth method. The token must have appropriate policy permiss…

Paths & Operations 3

Across 3 paths, the API surfaces 3 operations — 3 PUT. Each is listed below with its method, path, parameters, and response codes.

Leases 3

Look up, renew, and revoke leases for secrets and tokens.

PUT
/sys/leases/lookup
HashiCorp Vault Lookup Lease
lookupLease body → 200400403
PUT
/sys/leases/renew
HashiCorp Vault Renew Lease
renewLease body → 200400403
PUT
/sys/leases/revoke
HashiCorp Vault Revoke Lease
revokeLease body → 204400403

Schemas 5

The contract defines 5 schemas that model the data the API accepts and returns. The most detailed are LeaseRenewResponse (3 properties), RenewLeaseRequest (2 properties), VaultError (1 property), LeaseResponse (1 property). Each schema is shown below with its type and property counts.

LeaseRenewResponse
object
3 properties
LeaseIdRequest
object
1 property 1 required
LeaseResponse
object
1 property
VaultError
object
1 property
RenewLeaseRequest
object
2 properties 1 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

vault-leases-api-openapi.yml Raw ↑

Other APIs HashiCorp Vault publishes across the network.

Vault HTTP API
HashiCorp Vault Auth Methods API
HashiCorp Vault Health API
HashiCorp Vault Policies API
HashiCorp Vault Secrets Config API
HashiCorp Vault Secrets Data API
HashiCorp Vault Secrets Engines API
HashiCorp Vault Secrets Metadata API