Edel separates corporate partner credentials from individual trader credentials. Every bearer token carries an explicit prefix that identifies its credential kind on the server.

Credential comparison

Send credentials only in the Authorization: Bearer <token> header. Never place API keys or session tokens in query strings, logs, or client-side bundles.

Organization API key scopes

Organization API keys (edel_ok_...) come in two scopes, checked live on every request with no cache:

Organization-wide keys

  • Omit subAccountId when creating the key.
  • Can access the organization’s Mother Account and every live sub-account linked to the organization.
  • Pass params.accountId on v2 order and account read calls to target a specific sub-account or the Mother Account. Omitting params.accountId returns 400 invalid_request; naming an unlinked account returns 403 forbidden.
  • May hold any combination of the five permission groups (sub_accounts, trading_spot, trading_perps, listings_deposits, members_keys is never granted to keys).

Sub-account-scoped keys

  • Created and revoked exclusively by an organization owner partner session (POST /v2/organizations/:organizationId/keys with subAccountId).
  • Restricted to trading permissions only (trading_spot and/or trading_perps at read or write); sub_accounts, listings_deposits, and members_keys must be none.
  • On v2 order and read routes, params.accountId is optional and defaults to the bound subAccountId. Targeting any other account returns 403 forbidden (account_not_linked).
  • Automatically revoked in the same database transaction if the bound sub-account is deleted or closed.
  • Can never call sub-account transfer routes (403 organization_permission_required) or external withdrawal routes (403 sub_account_external_transfer_refused).

Permission groups

Inspect and revoke keys

Inspect the presented organization key (metadata only, never the secret) with GET /v2/organization-key:
Inspect a Trader API key (edel_tk_...) with GET /v2/api-keys/current:
Revoke an organization key immediately with a partner session (members_keys write, or owner for a sub-account-scoped key):
Revoked keys return 401 organization_key_revoked on the next request. Each organization can hold up to 20 active organization keys at once.