List credentials
GET
/v1/vaults/{vault_id}/credentialsAuthorization
AuthorizationBearer token · headerrequiredPath parameters
vault_idstring<uuid>requiredVault id
Query parameters
limitinteger<int64>min 1 · max 200
afterstring<uuid>Rows past this id in `order`'s direction: a page's `next_cursor`.
beforestring<uuid>Rows just before this id, still in `order`'s direction: a page's `prev_cursor`.
orderOrderParamNewest first when omitted.
Allowed:
ascdescResponses
200Credential metadata, newest first unless order=asc; never payloads.
itemsCredentialBody[]requiredShow propertiesHide properties
Array of
CredentialBodyOne of:
object
auth_schemeMcpSchemeBodyrequiredHow an `mcp` credential authenticates against its server.
Allowed:
oauthstatic_bearerdisplay_namestringrequiredidstring<uuid>requiredoauth_client_idstring<uuid> | nullrequiredThe workspace OAuth client an `oauth` credential was connected
through; null for one whose client Subako registered with the
server's provider itself, and for any other scheme.
protocolstringrequiredAllowed:
mcpstatusCredentialStatusBodyrequiredWhether a credential is sent to its server: `reconnect_required` once
the provider refused its refresh, until it is reconnected.
Allowed:
activereconnect_requiredtargetstringrequiredThe MCP server's exact URL.
vault_idstring<uuid>requiredobject
auth_schemeHttpSchemeBodyrequiredHow an `http` credential authenticates against its origins: headers it
was given, or an OAuth token sent as `authorization: Bearer`.
Allowed:
headeroauthdisplay_namestringrequiredheadersCredentialHeaderNameBody[]requiredEvery header the credential is sent as, in the order it was added:
`authorization` alone for an `oauth` one.
Show propertiesHide properties
Array of
CredentialHeaderNameBodynamestringrequiredThe header's name, in lowercase.
idstring<uuid>requiredoauth_client_idstring<uuid> | nullrequiredThe workspace OAuth client an `oauth` credential was connected
through; null for a `header` one.
originsstring[]requiredEvery origin the credential is sent to, as the vault stores them,
in the order they were given.
protocolstringrequiredAllowed:
httpstatusCredentialStatusBodyrequiredWhether a credential is sent to its server: `reconnect_required` once
the provider refused its refresh, until it is reconnected.
Allowed:
activereconnect_requiredvault_idstring<uuid>requirednext_cursorstring<uuid> | nullrequiredPass back as `after` for the next page; `null` on the last page.
prev_cursorstring<uuid> | nullrequiredPass back as `before` for the previous page; `null` on the first page.
400Bad limit, cursor, or order.
errorErrorDetailrequiredWhat went wrong: a `code` to branch on and a `message` to show. The
message is written for a person and may change; the code will not.
Show propertiesHide properties
codeErrorCoderequiredThe 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_requestsinternalmessagestringrequired401Missing, malformed, or invalid bearer token.
errorErrorDetailrequiredWhat went wrong: a `code` to branch on and a `message` to show. The
message is written for a person and may change; the code will not.
Show propertiesHide properties
codeErrorCoderequiredThe 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_requestsinternalmessagestringrequired403Caller lacks credential.read.
errorErrorDetailrequiredWhat went wrong: a `code` to branch on and a `message` to show. The
message is written for a person and may change; the code will not.
Show propertiesHide properties
codeErrorCoderequiredThe 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_requestsinternalmessagestringrequired404No such vault, or the caller cannot see it.
errorErrorDetailrequiredWhat went wrong: a `code` to branch on and a `message` to show. The
message is written for a person and may change; the code will not.
Show propertiesHide properties
codeErrorCoderequiredThe 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_requestsinternalmessagestringrequired