Skip to content
Subako Docs
Esc
navigateopen⌘Jpreview

GET /v1/vaults/{vault_id}/credentials

GET/v1/vaults/{vault_id}/credentials
Authorization
AuthorizationBearer token · headerrequired
Path parameters
vault_idstring<uuid>required
Vault id
Query parameters
limitinteger<int64>
min 1 · max 200
afterstring<uuid>
orderOrderParam
Newest first when omitted.
Allowed:ascdesc
Responses
200Credential metadata, newest first unless order=asc; never payloads.
itemsCredentialBody[]required
Show properties
Array of CredentialBody
auth_schemeAuthSchemeBodyrequired
Response-side twin of `ProtocolBody`, for the same reason.
Allowed:oauthstatic_bearer
display_namestringrequired
idstring<uuid>required
protocolProtocolBodyrequired
Mirrors `Protocol`'s spellings rather than deriving serde on the domain type: renaming a domain variant must not silently change the wire.
Allowed:mcp
targetstringrequired
vault_idstring<uuid>required
next_cursorstring<uuid> | nullrequired
`None` on the last page.
400Bad limit, cursor, or order.
errorErrorDetailrequired
Show properties
codeErrorCoderequired
The machine-readable half of an error response, and the field a client branches on. Closed: every error carries exactly one of these.
Allowed:unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternal
messagestringrequired
401Missing, malformed, or invalid bearer token.
errorErrorDetailrequired
Show properties
codeErrorCoderequired
The machine-readable half of an error response, and the field a client branches on. Closed: every error carries exactly one of these.
Allowed:unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternal
messagestringrequired
403Caller lacks credential.read.
errorErrorDetailrequired
Show properties
codeErrorCoderequired
The machine-readable half of an error response, and the field a client branches on. Closed: every error carries exactly one of these.
Allowed:unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternal
messagestringrequired
404No such vault, or the caller cannot see it.
errorErrorDetailrequired
Show properties
codeErrorCoderequired
The machine-readable half of an error response, and the field a client branches on. Closed: every error carries exactly one of these.
Allowed:unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternal
messagestringrequired
Try it
Server
Authorization
Parameters
Request
curl -X GET "https://api.us.cloud.subako.ai/v1/vaults/497f6eca-6276-4993-bfeb-53cbbbba6f08/credentials" \
  -H "Authorization: Bearer YOUR_TOKEN"
Response
{
  "items": [
    {
      "auth_scheme": "oauth",
      "display_name": "string",
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "protocol": "mcp",
      "target": "string",
      "vault_id": "432b199b-1f71-42bf-ba0b-33d512afa9de"
    }
  ],
  "next_cursor": "a7ec8888-a9c3-4732-a281-9a08510f220b"
}