> This page is for Trading.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.immix.xyz/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.immix.xyz/_mcp/server.

# Get a key

GET /accounts/{id}/keys/{keyId}

Serves one credential of the organisation — references and metadata, never the key material — with its `health`, whether a connector is serving it; any other id is 404. Needs `venue-keys:read` or any `venue-keys` capability.

Reference: https://docs.immix.xyz/trading/api-reference/rest-api/venue-keys/get-account-key

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Path parameters

- `id` (integer, required) — The record's id — a positive 32-bit integer the platform minted.
- `keyId` (integer, required) — The key's id beneath the account — `keyId` on the account row's `keys[]`, `credentialId` on its own row; a key of another account is 404.

### Query parameters

- `view` (enum, optional, default: latest) — `latest` (the default) shows a row's pending proposal where one exists; `approved` shows what the platform enforces. Resources without proposals serve the same rows for both.
  - Allowed values: `latest`, `approved`
- `minGlobalSequence` (string, optional) — A position you hold — an `X-Immix-Global-Sequence` you read, or a 202's `commandGlobalSequence`: this member answers only once it has folded the platform's stream through it, waiting up to its deadline, then 503 `PROJECTION_BEHIND` with `Retry-After`. Within that stream a read is never older than what you have seen; drop your positions after an announced stream cut. A retry stating its 202's position attaches to or replays that operation while the journal holds its key, never publishing twice. Stated once: one to nineteen digits, at most 9223372036854775807; else 400 `MALFORMED_REQUEST`.

### Headers

- `X-Request-Id` (string, optional) — Your own id for the request: 8 to 128 of `[A-Za-z0-9._-]`. It becomes the request's id and is echoed on the response. A value off that grammar is replaced with a fresh id, never refused.

## Response

### 200

The credential's row, rendered as the guide's Reads section describes: the position header and body field, the `ETag`, money as decimal strings.

- `accountId` (integer, required) — The account this key belongs to — connected with it or added beneath it, deleted with it.
- `allowlistDetail` (string, required) — The venue's own allowlist, verbatim (IP addresses are not secrets); empty when none or no probe answered. At most 512 bytes (the connector clips what the venue said to that).
- `approvals` (list of CredentialUpdatedApprovalsItem, required) — Who approved the row's last proposal and when, in approval order — grown by each approval and kept on the concluded row as its record until the next proposal or a withdrawal clears it; empty until the first approval. The proposal concludes at the approval that meets the organisation's count for the family as it stands then; pendingTransition says whether one is pending. a repeating group served as an array of objects, in the group's own order; empty = no entries, never null
- `concludedTransition` (enum, required) — What the row's last proposal proposed, kept once it concluded: the pending transition the conclusion cleared, as the register wrote it; NONE while it pends, or where none was. So the concluded row says what concluded, however its status has moved on since. NONE is the unset sentinel: outputs only — as input the field is required, and explicit NONE refuses 400. A consumer READING this field treats an unknown name as NONE, never as an error; as input an unknown name refuses 400 — the parse is strict
  - Allowed values: `NONE`, `ACTIVATE`, `AMEND`, `ENABLE`, `DELETE`, `ROTATE`, `RESUME_TRADING`, `KEY_CHANGE`
- `credentialId` (integer, required) — Sticky entity key.
- `globalSequence` (string, required) — The position as a decimal string — the last change this member had applied, orders, balance readings and algo instances included.
- `health` (CredentialHealthReadings, required) — The latest report from each connector role that serves this credential. It is observed, not decided: it changes without the row's `version` moving, and it reads the same on both views. Judge each reading by its `reportedAtNs`: a serving connector restates its report on a heartbeat, so a time that stops advancing means nothing is reporting in that role any more.
- `keyFingerprint` (string, required) — The credential's fingerprint as the intake computed it — fp- and the first 16 hex characters of SHA-256 over the canonical payload — the pin a connector adopts the material at: enough to prove a cutover, never enough to sign. Empty on a row seeded before the intake. At most 256 bytes; longer refuses INVALID_FIELD.
- `lastWithdrawalReason` (string, required) — Why the last proposal was withdrawn, as the withdrawer stated it; empty-not-null.
- `name` (string, required) — Natural key — per-org unique among live credentials. At most 128 bytes; longer refuses INVALID_FIELD.
- `observedAllowlist` (enum, required) — The probe's allowlist verdict against the cluster's egress set; UNKNOWN until a probe answers. UNKNOWN is the unset sentinel: outputs only — as input the field is required, and explicit UNKNOWN refuses 400. A consumer READING this field treats an unknown name as UNKNOWN, never as an error; as input an unknown name refuses 400 — the parse is strict
  - Allowed values: `UNKNOWN`, `NONE`, `COVERS`, `MISSES`
- `observedKeyFingerprint` (string, required) — The fingerprint of the material the probe adopted — compare with keyFingerprint, the intake's pin; empty until a probe answers. At most 256 bytes; longer refuses INVALID_FIELD.
- `observedKeyId` (string, required) — The venue-facing key identifier the probing connector resolved (the public half, never the secret); empty until a probe answers. At most 256 bytes; longer refuses INVALID_FIELD.
- `observedPermissions` (list of enum, required) — The observed axis: the key scopes the venue stated to the probing connector, parsed by name; empty until a probe answers. An approval refuses a key short of a declared scope (SCOPE_INSUFFICIENT) or that can withdraw without canExecuteTransfers (SCOPE_MISMATCH); any other extra scope is recorded, not refused. a set (SBE bit-set) served as the array of its set choice names, each a `KeyPermission`, in declared order; empty = none set, never null; as input a repeated name refuses 400
  - Allowed values: `read`, `trade`, `withdraw`
- `orgId` (integer, required) — Owner-stamped.
- `pendingTransition` (enum, required) — ACTIVATE, AMEND (capabilities/secretRef), ENABLE, DELETE or ROTATE; NONE otherwise. NONE is the unset sentinel: outputs only — as input the field is required, and explicit NONE refuses 400. A consumer READING this field treats an unknown name as NONE, never as an error; as input an unknown name refuses 400 — the parse is strict
  - Allowed values: `NONE`, `ACTIVATE`, `AMEND`, `ENABLE`, `DELETE`, `ROTATE`, `RESUME_TRADING`, `KEY_CHANGE`
- `permissionDetail` (string, required) — The venue's own permission string, verbatim (not a secret); empty until a probe answers. At most 512 bytes (the connector clips what the venue said to that).
- `probeDetail` (string, required) — Redacted diagnostic text for a non-NONE probe outcome; empty-not-null. At most 512 bytes (the connector clips what the venue said to that).
- `probeOutcome` (enum, required) — UNKNOWN = never probed; NONE = the venue's key-restrictions read answered; else the probe's own failure in the credential or gate band. UNKNOWN is the unset sentinel: outputs only — as input the field is required, and explicit UNKNOWN refuses 400. A consumer READING this field treats an unknown name as UNKNOWN, never as an error; as input an unknown name refuses 400 — the parse is strict
  - Allowed values: `UNKNOWN`, `NONE`, `AUTH_FAILED`, `IP_NOT_WHITELISTED`, `PERMISSION_DENIED`, `RATE_LIMITED`, `VENUE_UNREACHABLE`, `STARTUP`, `RECONNECT`, `HEARTBEAT_TIMEOUT`, `VENUE_MAINTENANCE`, `BACKPRESSURE`, `RESYNC`, `SHUTDOWN`, `FAILOVER`, `LAGGING`, `RECOVERED`, `INVALID_KEY`, `CLOCK_SKEW`, `CONFIG_ERROR`, `STREAM_STALE`, `VENUE_UNAVAILABLE`, `ACCOUNT_EXISTS`, `ACCOUNT_DISABLED`
- `providerKind` (enum, required) — UNKNOWN is the unset sentinel: outputs only — as input the field is required, and explicit UNKNOWN refuses 400. A consumer READING this field treats an unknown name as UNKNOWN, never as an error; as input an unknown name refuses 400 — the parse is strict
  - Allowed values: `UNKNOWN`, `EXCHANGE`, `CUSTODIAN`, `WALLET_PROVIDER`, `CHAIN_RPC`, `BANK`
- `remark` (string, required) — The maker's note on the pending proposal, for its approvers; empty-not-null. At most 256 bytes; longer refuses INVALID_FIELD.
- `status` (enum, required) — UNKNOWN is the unset sentinel: outputs only — as input the field is required, and explicit UNKNOWN refuses 400. A consumer READING this field treats an unknown name as UNKNOWN, never as an error; as input an unknown name refuses 400 — the parse is strict
  - Allowed values: `UNKNOWN`, `DRAFT`, `PENDING_APPROVAL`, `ACTIVE`, `DISABLED`, `DELETED`
- `venueAccountRef` (string, required) — The venue's account identifier behind the key (OKX uid); empty when the venue states none or no probe answered. At most 256 bytes; longer refuses INVALID_FIELD.
- `venueKeyId` (string, required) — The venue's identifier for the key — metadata, not material. At most 256 bytes; longer refuses INVALID_FIELD.
- `version` (string, required) — Monotonic per entity. int64 as a decimal JSON string
- `canExecuteTransfers` (boolean, optional) — Whether the key may execute transfers. a boolean; absent reads false
- `canReadBalances` (boolean, optional) — Whether the key may read balances. a boolean; absent reads false
- `canServeAddresses` (boolean, optional) — Whether the key may serve deposit addresses. a boolean; absent reads false
- `canTrade` (boolean, optional) — Capability boolean: an order on the key's account routes through the account's trading key — the one key beneath it that carries this, ACTIVE. a boolean; absent reads false
- `concludedAtNs` (string, optional, nullable) — Platform time the row's last proposal concluded; 0 while it is pending, or when the row never carried one. A write the organisation's count let through at once concludes in the maker's own fact: equal to proposedAtNs. int64 as a decimal JSON string
- `concludedBy` (Actor, optional, nullable) — Who concluded the row's last proposal: the approver whose approval met the organisation's count, or the maker when the count was 0 and the write concluded at once; null while it is pending, or when the row never carried one. an actor: an object \{kind, id}; null where none is stated
- `exchangeId` (integer, optional, nullable) — The refdata exchange for an EXCHANGE-kind credential — carried, not resolved here; a credential that can trade must name one (MISSING_VENUE); 0 = no venue.
- `keyCreatedAtNs` (string, optional, nullable) — Key metadata: when the venue key was minted; 0 = not stated. int64 as a decimal JSON string
- `keyHolder` (Actor, optional, nullable) — When an API key made the row's last proposal, the member the key's secret had last been answered to as it proposed — its last rotator then, else its issuer — kept on the concluded row with proposedBy; null when a member made the proposal, or the row never carried one. The proposal counts as this member's and the key's issuer's, whoever rotates the key afterwards: neither may approve it (SELF\_APPROVAL). an actor: an object \{kind, id}; null where none is stated
- `lastWithdrawalAtNs` (string, optional, nullable) — Platform time of that withdrawal; 0 when none was. The three fields and lastWithdrawalReason stand until the next proposal replaces them. int64 as a decimal JSON string
- `lastWithdrawalProposedBy` (Actor, optional, nullable) — Who made the last proposal that was withdrawn; null when none was. an actor: an object \{kind, id}; null where none is stated
- `lastWithdrawalWithdrawnBy` (Actor, optional, nullable) — Who withdrew it — the proposer, or a checker returning it; null when none was. an actor: an object \{kind, id}; null where none is stated
- `observedKeyCreatedAtNs` (string, optional, nullable) — The key creation time the venue stated to the probe; 0 = the venue states none, or never probed. int64 as a decimal JSON string
- `probedAtNs` (string, optional, nullable) — Consensus time of the probe report this row records — owner-stamped; 0 = never probed. int64 as a decimal JSON string
- `proposedAtNs` (string, optional, nullable) — Platform time the row's last proposal was made, kept on the concluded row; 0 when the row never carried one. int64 as a decimal JSON string
- `proposedBy` (Actor, optional, nullable) — Who made the row's last proposal — kept on the concluded row as its record; null when the row never carried one (a row a connector or the platform landed). pendingTransition says whether that proposal is still pending. an actor: an object \{kind, id}; null where none is stated
- `rotateByNs` (string, optional, nullable) — Governance deadline for rotation; a breach is an ops alert; 0 = none. int64 as a decimal JSON string
- `scopeUnobserved` (boolean, optional) — TRUE = the probe answered but its venue serves no read of the key's own scope (Binance Demo Mode has no /sapi), so observedPermissions is empty because nothing stated it — the approval's scope edges are not applied, and the row says so. FALSE (the fail-safe decode) = the scope, as observed, is the venue's word and is judged. a boolean; absent reads false

## Errors

### 400 Get Account Key Venue Keys Request Bad Request Error

The request's shape is wrong: a non-positive id, an unknown `view` or filter value, a query string that does not decode, a query parameter the operation does not take, or a cursor that does not decode or came from another query (`INVALID_CURSOR`). No position rides a refusal that consulted no state.

- `error` (ErrorBody, required) — What a refusal states. Since `0.12.0` every refusal carries all four members; a member below it sends `code`, sometimes `message`, and neither of the others.
- `currentVersion` (string, optional) — On 412 `VERSION_CONFLICT`, or `CONFIG_SEQ_CONFLICT` on an algo instance's config write: the row's current version (the `ETag` carries the same token) — re-read, reapply, retry.

### 401 Get Account Key Venue Keys Request Unauthorized Error

No bearer token, or one that does not verify.

- `error` (ErrorBody, required) — What a refusal states. Since `0.12.0` every refusal carries all four members; a member below it sends `code`, sometimes `message`, and neither of the others.
- `currentVersion` (string, optional) — On 412 `VERSION_CONFLICT`, or `CONFIG_SEQ_CONFLICT` on an algo instance's config write: the row's current version (the `ETag` carries the same token) — re-read, reapply, retry.

### 403 Get Account Key Venue Keys Request Forbidden Error

`CAPABILITY_DENIED`: a read your capabilities do not cover, or a staging route without its propose bit (`accounts:propose`). `NOT_REGISTERED`: no row or open invitation at your verified address, an unknown organisation, or an unclaimed row (an administrator admits it). `EMAIL_UNVERIFIED`: verify, then sign in again. `INVITATION_EXPIRED`: an administrator re-invites. `FORBIDDEN_PRINCIPAL`: no `org_id`, a non-ASCII ref, a disabled user, a binding with no user. `ORG_NOT_ACTIVE`: disabled, pending or deleted. Owners' 403s carry the position header and `Idempotent-Replay`.

- `error` (ErrorBody, required) — What a refusal states. Since `0.12.0` every refusal carries all four members; a member below it sends `code`, sometimes `message`, and neither of the others.
- `currentVersion` (string, optional) — On 412 `VERSION_CONFLICT`, or `CONFIG_SEQ_CONFLICT` on an algo instance's config write: the row's current version (the `ETag` carries the same token) — re-read, reapply, retry.

### 404 Get Account Key Venue Keys Request Not Found Error

No such row in your organisation — another organisation's row is indistinguishable from an absent one. The position header says as of when.

- `error` (ErrorBody, required) — What a refusal states. Since `0.12.0` every refusal carries all four members; a member below it sends `code`, sometimes `message`, and neither of the others.
- `currentVersion` (string, optional) — On 412 `VERSION_CONFLICT`, or `CONFIG_SEQ_CONFLICT` on an algo instance's config write: the row's current version (the `ETag` carries the same token) — re-read, reapply, retry.

### 503 Get Account Key Venue Keys Request Service Unavailable Error

This member is still catching up (`NOT_PRIMED`; retry shortly), or had not folded through the `minGlobalSequence` you sent by the deadline (`PROJECTION_BEHIND`; retry after `Retry-After`).

- `error` (ErrorBody, required) — What a refusal states. Since `0.12.0` every refusal carries all four members; a member below it sends `code`, sometimes `message`, and neither of the others.
- `currentVersion` (string, optional) — On 412 `VERSION_CONFLICT`, or `CONFIG_SEQ_CONFLICT` on an algo instance's config write: the row's current version (the `ETag` carries the same token) — re-read, reapply, retry.

## Types

### CredentialUpdatedApprovalsItem

- `userId` (integer, required) — An approving user.
- `approvedAtNs` (string, optional, nullable) — Platform time of the approval. int64 as a decimal JSON string

### CredentialHealthReadings

One venue key is served by every connector role of its venue, and each role reports its own health of the key: the account connector (discovery, balances and the probe) and the order-entry connector (trading). A reading is null until that role has reported on the credential.

- `account` (ConnectionHealth, required, nullable) — The account connector's latest report, or null when no account connector has reported on the credential.
- `trading` (ConnectionHealth, required, nullable) — The order-entry connector's latest report, or null when none has reported on the credential — every key that does not trade.

### Actor

Who acted — the principal behind a command, a row's maker or its concluder: a member (USER, id = the user id), an API key the organisation issued (API_KEY, id = the API key id), or the platform itself (MACHINE, id 0 — a connector's report, an algo instance's order, the door's own write). The kind's value set is append-only: a consumer READING an unknown kind treats the actor as unknown, never as an error.

- `kind` (enum, required) — The kind of principal; which id space `id` names.
  - Allowed values: `USER`, `API_KEY`, `MACHINE`
- `id` (integer, required) — The principal's id in its kind's space: a user id, an API key id, or 0 for the platform itself.

### ErrorBody

What a refusal states. Since `0.12.0` every refusal carries all four members; a member below it sends `code`, sometimes `message`, and neither of the others.

- `code` (string, required) — The code to branch on — stable and open (before 1.0.0 a minor may remove one, its changelog naming it): treat one you do not know by its HTTP status. The gateway's: - 400: `MALFORMED_REQUEST`, `MISSING_IDEMPOTENCY_KEY`, `INVALID_IDEMPOTENCY_KEY`, `INVALID_IF_MATCH`, `INVALID_CURSOR` - 401: `UNAUTHENTICATED` - 403: `FORBIDDEN_PRINCIPAL`, `NOT_REGISTERED`, `INVITATION_EXPIRED`, `EMAIL_UNVERIFIED`, `ORG_NOT_ACTIVE`, `CAPABILITY_DENIED` - 404: `NOT_FOUND`, `UNKNOWN_OPERATION`, `ROUTE_NOT_FOUND` (no route answers the path) - 405: `METHOD_NOT_ALLOWED` - 409: `IDEMPOTENCY_KEY_REUSED`, `INTAKE_KEY_REUSED`, `KEY_ALREADY_REGISTERED`, `CONNECTION_DOWN` (`POST /transfers`), `EXCEEDS_MARGIN_HEADROOM`, `HEADROOM_UNKNOWN` (a transfer's submit and its approval) - 413: `TOO_LARGE`, `PAYLOAD_TOO_LARGE`, `DOCUMENT_TOO_LARGE` - 422: a reference this member will not send: `INSTRUMENT_NOT_LIVE`, `ACCOUNT_NOT_ACTIVE` (`POST /orders`), `REFERENCE_UNKNOWN_INSTRUMENT`, `REFERENCE_INSTRUMENT_NOT_LIVE`, `REFERENCE_UNKNOWN_ACCOUNT` (an algo document); `VENUE_UNSUPPORTED`, `DEDICATED_KEY`, `DESTINATION_NOT_ALLOWED` - 428: `PRECONDITION_REQUIRED` - 429: `INBOX_FULL`, `IN_FLIGHT_FULL`, `RATE_LIMITED` - 500: `INTERRUPTED`, `INTERNAL_ERROR`, `PROJECTION_MISS` - 503: `NOT_PRIMED`, `NOT_SERVING`, `OWNER_ABSENT`, `INTAKE_UNAVAILABLE`, `BALANCES_UNAVAILABLE`, `POSITIONS_UNAVAILABLE`, `RISK_UNAVAILABLE`, `TRANSFERS_UNAVAILABLE`, `ALGOS_UNAVAILABLE`, `NOTIFICATIONS_UNAVAILABLE`, `TICKETS_UNAVAILABLE`, `REGISTRATION_PENDING`, `PROJECTION_BEHIND`, `LOST`, `REJECTED_NOT_REGISTERED`, `REJECTED_NOT_ACTIVE` The record owners' refusals ride verbatim — `OrgRegisterRejected.reason`, `OrderRejected.reason`, `AlgoRejected.reason`, `RiskLimitRejectReason`, `RiskAdjustmentRejectReason`, `ManualExecutionRejectReason`, `TransferRejectReason` and `NotificationEndpointRejected.reason` list them; the guide maps each to its status.
- `message` (string, required) — For display only; its wording may change at any time.
- `requestId` (string, required) — The request's id, also sent as X-Request-Id; quote it to support.
- `retryable` (boolean, required) — Whether sending the identical request again, its `Idempotency-Key` included, after `Retry-After` or a short pause, can succeed with nothing else changed. `false` where something must change first: the request, its key, its precondition, the caller's standing, or the platform's own records or deployment. A refusal the record owner judged is always `false`: it is the recorded answer to its key, which replays it.

### ConnectionHealth

- `credentialId` (integer, required) — The credential the report is about.
- `status` (enum, required) — Whether a connector is serving the credential: CONNECTED serves, DEGRADED serves impaired, DOWN does not serve, dialing and redialing included. UNKNOWN is the unset sentinel: outputs only — as input the field is required, and explicit UNKNOWN refuses 400. A consumer READING this field treats an unknown name as UNKNOWN, never as an error; as input an unknown name refuses 400 — the parse is strict
  - Allowed values: `UNKNOWN`, `CONNECTED`, `DEGRADED`, `DOWN`
- `reason` (enum, required) — Why the status is what it is; NONE when nothing is wrong. UNKNOWN is the unset sentinel: outputs only — as input the field is required, and explicit UNKNOWN refuses 400. A consumer READING this field treats an unknown name as UNKNOWN, never as an error; as input an unknown name refuses 400 — the parse is strict
  - Allowed values: `UNKNOWN`, `NONE`, `AUTH_FAILED`, `IP_NOT_WHITELISTED`, `PERMISSION_DENIED`, `RATE_LIMITED`, `VENUE_UNREACHABLE`, `STARTUP`, `RECONNECT`, `HEARTBEAT_TIMEOUT`, `VENUE_MAINTENANCE`, `BACKPRESSURE`, `RESYNC`, `SHUTDOWN`, `FAILOVER`, `LAGGING`, `RECOVERED`, `INVALID_KEY`, `CLOCK_SKEW`, `CONFIG_ERROR`, `STREAM_STALE`, `VENUE_UNAVAILABLE`, `ACCOUNT_EXISTS`, `ACCOUNT_DISABLED`
- `sinceNs` (string, required) — When the current status and reason began, on the connector's own clock. int64 as a decimal JSON string
- `transitionAtNs` (string, required) — Platform time the current status began. A restatement leaves it, and so does a change of reason alone, so the time since it is how long the credential has been in this status. int64 as a decimal JSON string
- `reportedAtNs` (string, required) — Platform time of the latest report. A connector serving the credential restates its report on a heartbeat, so a time that stops advancing means nothing is reporting on it any more. int64 as a decimal JSON string
- `role` (enum, required) — Which connector role this reading is from: ACCOUNT (balances, the probe) or ORDER_ENTRY (trading). A credential has one reading per role and exchange. UNKNOWN is the unset sentinel: outputs only — as input the field is required, and explicit UNKNOWN refuses 400. A consumer READING this field treats an unknown name as UNKNOWN, never as an error; as input an unknown name refuses 400 — the parse is strict
  - Allowed values: `UNKNOWN`, `ACCOUNT`, `ORDER_ENTRY`
- `detail` (string, required) — What the connector or the venue said, for people: display it, do not parse it. Empty when there is nothing to add. At most 512 bytes (the connector clips what the venue said to that).
- `venueRoundTripNs` (string, optional, nullable) — The latest round trip to the venue the connector measured; 0 = not measured. int64 as a decimal JSON string
- `exchangeId` (integer, optional, nullable) — The exchange this reading is from: the key's own, or a further one its venue trades — a Binance key's spot (100) and USD-M (102) order-entry readings are two. Every reading names its exchange.

## Examples

**Response**

```json
{
  "accountId": 1,
  "allowlistDetail": "allowlistDetail",
  "approvals": [
    {
      "userId": 1,
      "approvedAtNs": "approvedAtNs"
    }
  ],
  "concludedTransition": "NONE",
  "credentialId": 1,
  "globalSequence": "globalSequence",
  "health": {
    "account": {
      "credentialId": 1,
      "status": "UNKNOWN",
      "reason": "UNKNOWN",
      "sinceNs": "sinceNs",
      "transitionAtNs": "transitionAtNs",
      "reportedAtNs": "reportedAtNs",
      "role": "UNKNOWN",
      "detail": "detail",
      "venueRoundTripNs": "venueRoundTripNs",
      "exchangeId": 1
    },
    "trading": {
      "credentialId": 1,
      "status": "UNKNOWN",
      "reason": "UNKNOWN",
      "sinceNs": "sinceNs",
      "transitionAtNs": "transitionAtNs",
      "reportedAtNs": "reportedAtNs",
      "role": "UNKNOWN",
      "detail": "detail",
      "venueRoundTripNs": "venueRoundTripNs",
      "exchangeId": 1
    }
  },
  "keyFingerprint": "keyFingerprint",
  "lastWithdrawalReason": "lastWithdrawalReason",
  "name": "name",
  "observedAllowlist": "UNKNOWN",
  "observedKeyFingerprint": "observedKeyFingerprint",
  "observedKeyId": "observedKeyId",
  "observedPermissions": [
    "read"
  ],
  "orgId": 1,
  "pendingTransition": "NONE",
  "permissionDetail": "permissionDetail",
  "probeDetail": "probeDetail",
  "probeOutcome": "UNKNOWN",
  "providerKind": "UNKNOWN",
  "remark": "remark",
  "status": "UNKNOWN",
  "venueAccountRef": "venueAccountRef",
  "venueKeyId": "venueKeyId",
  "version": "version",
  "canExecuteTransfers": true,
  "canReadBalances": true,
  "canServeAddresses": true,
  "canTrade": true,
  "concludedAtNs": "concludedAtNs",
  "concludedBy": {
    "kind": "USER",
    "id": 1
  },
  "exchangeId": 1,
  "keyCreatedAtNs": "keyCreatedAtNs",
  "keyHolder": {
    "kind": "USER",
    "id": 1
  },
  "lastWithdrawalAtNs": "lastWithdrawalAtNs",
  "lastWithdrawalProposedBy": {
    "kind": "USER",
    "id": 1
  },
  "lastWithdrawalWithdrawnBy": {
    "kind": "USER",
    "id": 1
  },
  "observedKeyCreatedAtNs": "observedKeyCreatedAtNs",
  "probedAtNs": "probedAtNs",
  "proposedAtNs": "proposedAtNs",
  "proposedBy": {
    "kind": "USER",
    "id": 1
  },
  "rotateByNs": "rotateByNs",
  "scopeUnobserved": true
}
```

**SDK Code**

```python
import requests

url = "https://api.example.com/accounts/1/keys/1"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.example.com/accounts/1/keys/1';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.example.com/accounts/1/keys/1"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.example.com/accounts/1/keys/1")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.example.com/accounts/1/keys/1")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.example.com/accounts/1/keys/1', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.example.com/accounts/1/keys/1");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.example.com/accounts/1/keys/1")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```