Import API Key
POST/v2alpha1/admin/importedApiKeys
Imports an external API key into the system. Allows importing keys from legacy systems or external providers. The raw key is hashed (SHA-512/256 over network_id + 0x00 + raw key) and stored; the original key is never retained. Imported keys support token derivation (JWT/Macaroon) like issued keys.
POST /v2alpha1/admin/importedApiKeys
{
"raw_key": "sk_live_abc123xyz",
"name": "Imported Stripe Key",
"actor_id": "user_123"
}
Request
Responses
- 200
- 201
- default
A successful response.
API key imported successfully.
An unexpected error response.