> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.immix.xyz/api-reference/rest-api/credentials/list/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.immix.xyz/_mcp/server. # List credentials GET /credentials Lists the organisation's venue credentials: key references and metadata, never the key material. `view=approved` shows what is enforced; the default includes pending proposals. Reference: https://docs.immix.xyz/api-reference/rest-api/credentials/list ## Authentication - `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer `, where token is your auth token. ## Request ### 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` ## Response ### 200 Every row inside the principal's org, unordered; the projection position rides the body and the header. - `globalSequence` (string, required) — The position as a decimal string — the last change this member had applied, orders and balance readings included. - `items` (list of CredentialUpdated, required) - `unscaled` (boolean, optional, deprecated) — Never present since 0.3.3: every money value on this API states its own scale on the wire, so no item is ever served raw — the coarse collection form of RowExtras.unscaled, retired with it. Kept, deprecated, so a client generated from 0.3.2 still compiles. ## Errors ### 400 List Credentials Request Bad Request Error The request's shape is wrong: a non-positive id, an unknown `view` or filter value. No position rides a refusal that consulted no state. - `error` (ErrorError, required) - `currentVersion` (string, optional) — On 412 `VERSION_CONFLICT`: the row's current version (the `ETag` carries the same token) — re-read, reapply, retry. ### 401 List Credentials Request Unauthorized Error No bearer token, or one that does not verify. - `error` (ErrorError, required) - `currentVersion` (string, optional) — On 412 `VERSION_CONFLICT`: the row's current version (the `ETag` carries the same token) — re-read, reapply, retry. ### 403 List Credentials Request Forbidden Error Authenticated, but not admitted. `FORBIDDEN_PRINCIPAL`: a token with no `org_id`, a non-ASCII `org_id` or `sub`, a disabled user, or a local binding with no user. `AWAITING_ADMISSION`: your user is not yet admitted — every route but `GET /me` answers this until an administrator admits you. `ORG_NOT_ACTIVE`: your organisation is suspended, pending activation, retired or unregistered. The record owners' 403s (`CAPABILITY_DENIED`, `SELF_APPROVAL`, `NOT_PROPOSER`, …) are refusals on the platform's stream: they carry the position header, and a retried key replays them with `Idempotent-Replay`. - `error` (ErrorError, required) - `currentVersion` (string, optional) — On 412 `VERSION_CONFLICT`: the row's current version (the `ETag` carries the same token) — re-read, reapply, retry. ### 503 List Credentials Request Service Unavailable Error This member is still catching up; retry shortly. - `error` (ErrorError, required) - `currentVersion` (string, optional) — On 412 `VERSION_CONFLICT`: the row's current version (the `ETag` carries the same token) — re-read, reapply, retry. ## Types ### CredentialUpdated - `credentialId` (integer, required) — Sticky entity key. - `version` (string, required) — Monotonic per entity. int64 as a decimal JSON string - `orgId` (integer, required) — Owner-stamped. - `status` (enum, required) — UNKNOWN is the unset sentinel: outputs only — as input, omit the field instead; explicit UNKNOWN refuses 400. The value set is append-only: 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`, `SUSPENDED`, `REVOKED` - `providerKind` (enum, required) — UNKNOWN is the unset sentinel: outputs only — as input, omit the field instead; explicit UNKNOWN refuses 400. The value set is append-only: 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` - `pendingTransition` (enum, required) — ACTIVATE, AMEND (capabilities/secretRef), REACTIVATE, REVOKE or ROTATE; NONE otherwise. NONE is the unset sentinel: outputs only — as input, omit the field instead; explicit NONE refuses 400. The value set is append-only: 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`, `REACTIVATE`, `UNFREEZE`, `RETIRE`, `REVOKE`, `ROTATE`, `RESUME_TRADING` - `name` (string, required) — Natural key — per-org unique among live credentials. - `secretRef` (string, required) — LOGICAL credential name (okx-account-prod) — never a store path or provider URI; resolution happens only at the owning connector's edge. - `venueKeyId` (string, required) — The venue's identifier for the key — metadata, not material. - `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. - `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. - `canReadBalances` (boolean, optional) — Whether the key may read balances. a boolean; absent reads false - `canExecuteTransfers` (boolean, optional) — Whether the key may execute transfers. 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 routes through its account's trading pipe — the account's designated tradingCredentialId, else its own credential — which must be ACTIVE and carry canTrade. Any number of trading credentials may share one (org × venue) — one venue key per sub-account. a boolean; absent reads false - `keyCreatedAtNs` (string, optional, nullable) — Key metadata: when the venue key was minted; 0 = not stated. int64 as a decimal JSON string - `rotateByNs` (string, optional, nullable) — Governance deadline for rotation; a breach is an ops alert; 0 = none. int64 as a decimal JSON string - `pendingByUserId` (integer, optional, nullable) — The user whose proposal is pending, so an approver is checked to be someone else; 0 when nothing is pending. - `observedPermissions` (list of enum, optional) — The observed axis: the key scopes the venue stated to the probing connector, parsed by name; empty until a probe answers. a set (SBE bit-set) served as the array of its set choice names in declared order; empty = none set, never null. The choice set is append-only: a consumer READING this field skips an unknown name, never errors; as input an unknown or repeated name refuses 400 — the parse is strict - Allowed values: `read`, `trade`, `withdraw` - `observedAllowlist` (enum, optional) — 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, omit the field instead; explicit UNKNOWN refuses 400. The value set is append-only: 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` - `probeOutcome` (enum, optional) — 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, omit the field instead; explicit UNKNOWN refuses 400. The value set is append-only: 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` - `probedAtNs` (string, optional, nullable) — Consensus time of the probe report this row records — owner-stamped; 0 = never probed. int64 as a decimal JSON string - `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 - `appGroup` (string, optional) — The connector app group serving this credential (desk 5-as-amended, okx-oe D-E17): the assignment rides the row — one group per credential by construction, empty = unassigned (no connector serves it; fail-safe). Replaces the compile-time CredentialAssignments table. - `observedKeyId` (string, optional) — The venue-facing key identifier the probing connector resolved (the public half, never the secret); empty until a probe answers. - `observedKeyFingerprint` (string, optional) — The fingerprint of the material the probe adopted — compare with keyFingerprint, the intake's pin; empty until a probe answers. - `venueAccountRef` (string, optional) — The venue's account identifier behind the key (OKX uid); empty when the venue states none or no probe answered. - `permissionDetail` (string, optional) — The venue's own permission string, verbatim (not a secret); empty until a probe answers. - `allowlistDetail` (string, optional) — The venue's own allowlist, verbatim (IP addresses are not secrets); empty when none or no probe answered. - `probeDetail` (string, optional) — Redacted diagnostic text for a non-NONE probe outcome; empty-not-null. ### ErrorError - `code` (string, required) — The code to branch on — stable and append-only: treat one you do not know by its HTTP status. The gateway's own: - 400: `MALFORMED_REQUEST`, `MISSING_IDEMPOTENCY_KEY`, `INVALID_IDEMPOTENCY_KEY`, `INVALID_IF_MATCH` - 401: `UNAUTHENTICATED` - 403: `FORBIDDEN_PRINCIPAL`, `AWAITING_ADMISSION`, `ORG_NOT_ACTIVE`, `CAPABILITY_DENIED` (the credential intake) - 404: `NOT_FOUND`, `UNKNOWN_OPERATION` - 409: `IDEMPOTENCY_KEY_REUSED`, `INTAKE_KEY_REUSED` - 413: `TOO_LARGE`, `PAYLOAD_TOO_LARGE` - 422: `INSTRUMENT_NOT_LIVE` and `ACCOUNT_NOT_ACTIVE` (`POST /orders`: a symbol or an account name nothing here holds — the orders owner answers the same codes to an unheld id), `VENUE_UNSUPPORTED`; `SCALE_UNKNOWN` (retired: only a member below `0.3.4` answers it) - 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`, `LOST`, `REJECTED_NOT_REGISTERED`, `REJECTED_NOT_ACTIVE` The record owners' refusals ride verbatim — `OrgRegisterRejected.reason` and `OrderRejected.reason` list them, and the guide's Errors section maps each to its status. - `message` (string, optional) — Free text for humans; may change without notice — never parse it. ## Examples **Response** ```json { "globalSequence": "globalSequence", "items": [ { "credentialId": 1, "version": "version", "orgId": 1, "status": "UNKNOWN", "providerKind": "UNKNOWN", "pendingTransition": "NONE", "name": "name", "secretRef": "secretRef", "venueKeyId": "venueKeyId", "keyFingerprint": "keyFingerprint", "exchangeId": 1, "canReadBalances": true, "canExecuteTransfers": true, "canServeAddresses": true, "canTrade": true, "keyCreatedAtNs": "keyCreatedAtNs", "rotateByNs": "rotateByNs", "pendingByUserId": 1, "observedPermissions": [ "read" ], "observedAllowlist": "UNKNOWN", "probeOutcome": "UNKNOWN", "probedAtNs": "probedAtNs", "observedKeyCreatedAtNs": "observedKeyCreatedAtNs", "appGroup": "appGroup", "observedKeyId": "observedKeyId", "observedKeyFingerprint": "observedKeyFingerprint", "venueAccountRef": "venueAccountRef", "permissionDetail": "permissionDetail", "allowlistDetail": "allowlistDetail", "probeDetail": "probeDetail" } ] } ``` **SDK Code** ```python import requests url = "https://api.example.com/credentials" headers = {"Authorization": "Bearer "} response = requests.get(url, headers=headers) print(response.json()) ``` ```javascript const url = 'https://api.example.com/credentials'; const options = {method: 'GET', headers: {Authorization: 'Bearer '}}; 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/credentials" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") 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/credentials") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer ' response = http.request(request) puts response.read_body ``` ```java import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://api.example.com/credentials") .header("Authorization", "Bearer ") .asString(); ``` ```php request('GET', 'https://api.example.com/credentials', [ 'headers' => [ 'Authorization' => 'Bearer ', ], ]); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("https://api.example.com/credentials"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Bearer "); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let headers = ["Authorization": "Bearer "] let request = NSMutableURLRequest(url: NSURL(string: "https://api.example.com/credentials")! 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() ```