Create a connected account
Creates a new connected account for the authenticated tenant.
The creds field must be a Base64-encoded RSA-encrypted credential blob.
Use GET /exchange_accounts/credentials_public_key to retrieve the public key for encryption.
The providerType is derived server-side from the providerId — callers do not supply it.
Endpoint Permission: Editor, Admin, Non-Signing Admin.
Note: This endpoint is currently in beta and might be subject to changes.
Headers
A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.
Body
Integration key identifying the provider (e.g. BINANCE, KINGDOM_BANK, GEMINI_NLV2).
"BINANCE"
Base64-encoded RSA-encrypted credential blob. Encrypt using the public key from GET /exchange_accounts/credentials_public_key.
"base64encodedencryptedcredentials=="
Account-level API key.
"api_key_abc123"
Human-readable account name. Required for non-NLV2 providers.
"My Binance Account"
Parent main account ID for sub-account creation. Not allowed for NLV2 providers.
"acc-parent-001"
Optional provider-side account ID to associate with the created account.
"provider-acc-001"
On-premise server ID for self-hosted integrations.
"on-prem-server-001"
Response
Account created (or pending approval).
Created accounts — main account first, sub-accounts after (NLV2 hierarchy).
[
{
"accountId": "acc-789012",
"name": "My Exchange Account",
"status": "WAITING_FOR_APPROVAL"
}
]