POST /v1/vaults/{vault_id}/credentials
POST
/v1/vaults/{vault_id}/credentialsAuthorization
AuthorizationBearer token · headerrequiredPath parameters
vault_idstring<uuid>requiredVault id
Header parameters
Idempotency-KeystringRetry the same operation with this key to return its saved receipt. Scoped by the operation's authenticated caller or resource. A different input under the same key returns 409. Receipts are retained for at least 7 days after completion, then removed by an hourly sweep. After removal the key can execute again. Fresh-only secrets are never included in a replay.
min length 1 · max length 255
Request body
requiredapplication/jsondisplay_namestringrequiredmax length 200
payloadCredentialPayloadBodyrequiredShow propertiesHide properties
One of:
object
access_tokenstringrequiredauth_schemestringrequiredAllowed:
oauthexpires_atstring | nullrefreshany | RefreshBlockBodyShow propertiesHide properties
One of:
any
anyRefreshBlockBody
client_idstringrequiredrefresh_tokenstringrequiredscopestring | nulltoken_endpointstringrequiredtoken_endpoint_authobjectrequiredHow the client authenticates to the token endpoint. Opaque: the fields
depend on the method and on the provider, so no shape is promised.
object
auth_schemestringrequiredAllowed:
static_bearertokenstringrequiredprotocolProtocolBodyrequiredMirrors `Protocol`'s spellings rather than deriving serde on the domain type:
renaming a domain variant must not silently change the wire.
Allowed:
mcptargetstringrequiredmin length 1 · max length 2048
Responses
201Created.
idstring<uuid>required400Malformed body.
errorErrorDetailrequiredShow 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.
errorErrorDetailrequiredShow 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.manage.
errorErrorDetailrequiredShow 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.
errorErrorDetailrequiredShow 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_requestsinternalmessagestringrequired409Idempotency-Key was already used for a different request. Duplicate credential target.
errorErrorDetailrequiredShow 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