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

Kalshi api-keys API

API key management endpoints

Kalshi api-keys API is one of 21 APIs that Kalshi publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

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

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

Requests are made against 4 base URLs: https://external-api.kalshi.com/trade-api/v2, https://api.elections.kalshi.com/trade-api/v2, https://external-api.demo.kalshi.co/trade-api/v2, https://demo-api.kalshi.co/trade-api/v2.

4 operations 3 paths 6 schemas 1 DELETE1 GET2 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.0
API Version
3.19.0
Base URL
https://api.elections.kalshi.com/trade-api/v2
Authentication
API Key, API Key, API Key
Resource Areas
1

Authentication & Security 3

Kalshi api-keys API declares 3 security schemes for authenticating requests. An API key is passed in the header as KALSHI-ACCESS-KEY (kalshiAccessKey). An API key is passed in the header as KALSHI-ACCESS-SIGNATURE (kalshiAccessSignature). An API key is passed in the header as KALSHI-ACCESS-TIMESTAMP (kalshiAccessTimestamp).

  • kalshiAccessKey — Your API key ID
  • kalshiAccessSignature — RSA-PSS signature of the request
  • kalshiAccessTimestamp — Request timestamp in milliseconds

Paths & Operations 4

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

api-keys 4

API key management endpoints

GET
/api_keys
Get API Keys
GetApiKeys → 200401500
POST
/api_keys
Create API Key
CreateApiKey body → 201400401403500
POST
/api_keys/generate
Generate API Key
GenerateApiKey body → 201400401500
DELETE
/api_keys/{api_key}
Delete API Key
DeleteApiKey 1 param → 204400401404500

Schemas 6

The contract defines 6 schemas that model the data the API accepts and returns. The most detailed are ApiKey (3 properties), CreateApiKeyRequest (3 properties), GenerateApiKeyRequest (2 properties), GenerateApiKeyResponse (2 properties). Each schema is shown below with its type and property counts.

CreateApiKeyRequest
object
3 properties 2 required
GenerateApiKeyResponse
object
2 properties 2 required
CreateApiKeyResponse
object
1 property 1 required
GenerateApiKeyRequest
object
2 properties 1 required
GetApiKeysResponse
object
1 property 1 required
ApiKey
object
3 properties 3 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

kalshi-api-keys-api-openapi.yml Raw ↑

Other APIs Kalshi publishes across the network.

Kalshi Trade API (Demo)
Kalshi WebSocket Streaming API
Kalshi AsyncAPI Specification
Kalshi Python Starter Kit
Kalshi account API
Kalshi communications API
Kalshi events API
Kalshi exchange API
Kalshi fcm API
Kalshi historical API
Kalshi incentive-programs API
Kalshi live-data API