Create an API key
POST/api-key
Creates a new API key scoped to the store. The plaintext key is returned ONLY in this response (and on rotate) and can never be retrieved again - store it securely. Requires the canAccessApiKeys plan feature.
Request
Responses
- 201
- 400
- 401
- 429
API key created. The data.key field contains the plaintext key, shown only once.
Validation error
Unauthorized - Invalid or missing API key
Rate limit exceeded
Response Headers
Retry-After