Create Key
POST
/v1/keysCreate a new API key. Sign in to call this; an API key will not authenticate it.
Copy the key now. It appears in this response and nowhere else, ever. We store only a hash of it, so nobody can show it to you a second time.
Authorization
session AuthorizationBearer <token>
A dashboard session token. Account operations take this rather than an API key, because minting your first key cannot require already having one.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/keys" \ -H "Content-Type: application/json" \ -d '{}'{ "created_at": "2019-08-24T14:15:22Z", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "is_active": true, "key": "string", "key_prefix": "string", "last_used_at": "2019-08-24T14:15:22Z", "name": "string", "rate_limit": 0, "revoked_at": "2019-08-24T14:15:22Z"}