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 Consul KV Store API

Key/Value store operations

HashiCorp Consul KV Store API is one of 14 APIs that HashiCorp Consul publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include KV Store. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, authentication docs, and a GitHub repository.

This API exposes 3 operations across 1 path, and defines 1 schema. It is described by OpenAPI 3.1.0, at version 1.18.0.

Requests are made against 2 base URLs: http://localhost:8500/v1, https://{consul_host}:{port}/v1.

3 operations 1 paths 1 schemas 1 DELETE1 GET1 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
1.18.0
Base URL
http://localhost:8500/v1
Authentication
API Key
Contact
Resource Areas
1

Authentication & Security 1

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

  • ConsulToken — ACL token for authentication

Paths & Operations 3

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

KV Store 3

Key/Value store operations

GET
/kv/{key}
Read a key
getKVKey 6 params → 200404
PUT
/kv/{key}
Create or update a key
putKVKey 6 params body → 200
DELETE
/kv/{key}
Delete a key
deleteKVKey 4 params → 200

Schemas 1

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

KVPair
object
7 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

consul-kv-store-api-openapi.yml Raw ↑

Other APIs HashiCorp Consul publishes across the network.

HashiCorp Consul ACL API
HashiCorp Consul Agent API
HashiCorp Consul Catalog API
HashiCorp Consul Config Entries API
HashiCorp Consul Connect API
HashiCorp Consul Coordinates API
HashiCorp Consul Events API
HashiCorp Consul Health API
HashiCorp Consul Operator API
HashiCorp Consul Sessions API
HashiCorp Consul Snapshot API
HashiCorp Consul Status API