Skip to main content
Credentials

Credential Schemas

Forward API reference.

Vault credential object

Create, get, list, and archive endpoints return this structure. Credential secrets such as token, access_token, refresh_token, client_secret, and secret_value are accepted only in create requests and are never returned in responses.
FieldTypeDescription
idstringCredential ID with the vcred_ prefix
typestringAlways "vault_credential"
vault_idstringOwning Vault ID
authCredential auth objectSanitized auth details; secrets are never returned
display_namestring | nullCompatibility field. Currently always null and not persisted
metadataobjectCustom metadata object stored with the credential; defaults to {}
archived_atstring | nullArchive time in RFC 3339 format; null while active
created_atstringCreation time in RFC 3339 format
updated_atstringLast update time in RFC 3339 format

Create credential request

FieldTypeRequiredDescription
authCredential auth objectYesCredential authentication information
display_namestringNoAccepted for compatibility; currently returned as null and not persisted
metadataobjectNoCustom metadata stored with the credential; defaults to {}

Credential auth object

auth uses type to select the authentication type. Responses never include secret fields.

static_bearer

FieldTypeRequiredDescription
typestringYesAlways "static_bearer"
mcp_server_urlstringYesMCP server URL, at most 2048 characters
tokenstringYes (request)Static Bearer token. Accepted only in create requests and never returned in responses

mcp_oauth

FieldTypeRequiredDescription
typestringYesAlways "mcp_oauth"
mcp_server_urlstringYesMCP server URL, at most 2048 characters
client_idstringYesOAuth client ID
client_secretstringYes (request)OAuth client secret. Accepted only in create requests and never returned in responses
access_tokenstringNo (request)Access token already obtained through OAuth. Accepted only in create requests and never returned in responses
refresh_tokenstringNo (request)OAuth refresh token. Accepted only in create requests and never returned in responses

secret_value

FieldTypeRequiredDescription
typestringYesAlways "secret_value"
secret_valuestringYes (request)Generic secret value. Accepted only in create requests and never returned in responses
The create endpoint for the Forward Credential API defines the supported authentication types. Unlisted types return 400 invalid_request_error during creation.

List pagination fields

FieldTypeDescription
dataarray of Vault credential objectsRecords on the current page
has_morebooleanWhether another page is available
next_pagestring | nullForward cursor for the next page (recommended). Equals the current page's last_id when has_more=true; otherwise null
first_idstring | nullID of the first record on the current page
last_idstring | nullID of the last record on the current page
The request cursor parameters page, after_id, and before_id are mutually exclusive; providing more than one returns 400. Use page where possible; it has the same semantics as after_id.