API keys
POST /v1/api-keys
Mint a new API key. The cleartext secret is returned ONCE.
Mint a new API key. The cleartext secret is returned ONCE.
AuthorizationBearer <token>
API key: Authorization: Bearer pk_live_… (mint at polyrank.app/api-keys)
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
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/api-keys" \ -H "Content-Type: application/json" \ -d '{}'{ "id": "string", "prefix": "string", "secret": "string", "label": "string", "created_at": "string"}{ "error": "string", "message": "string", "reason": "string", "issues": [ null ], "trace_id": "string"}{ "error": "string", "message": "string", "reason": "string", "issues": [ null ], "trace_id": "string"}{ "error": "string", "message": "string", "reason": "string", "issues": [ null ], "trace_id": "string"}{ "error": "string", "message": "string", "reason": "string", "issues": [ null ], "trace_id": "string"}{ "error": "string", "message": "string", "reason": "string", "issues": [ null ], "trace_id": "string"}{ "error": "string", "message": "string", "reason": "string", "issues": [ null ], "trace_id": "string"}{ "error": "string", "message": "string", "reason": "string", "issues": [ null ], "trace_id": "string"}