API Reference
Create an API key
The raw secret is returned once and is not retrievable later.
Authorization
apiKey AuthorizationBearer <token>
A secret API key, e.g. Authorization: Bearer sk_test_....
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/v1/merchants/me/api-keys" \ -H "Content-Type: application/json" \ -d '{}'{ "api_key": "sk_test_51H8...", "note": "string"}{ "error": { "code": "unauthorized", "message": "unauthorized" }}