Get a credential by id
const url = 'https://your-org.evershell.ai/v1/credentials/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://your-org.evershell.ai/v1/credentials/example \ --header 'Authorization: Bearer <token>'Permissions: any signed-in caller. Same per-user
narrowing as GET /credentials — fetching another
member’s personal credential by id returns 404, not 403,
so the existence of the row isn’t leaked across users.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Responses
Section titled “ Responses ”OK
object
Non-null for personal (per-user) credentials
oauth2_jwt_bearer_with_subject is Google domain-wide
delegation — same SA JSON key as the durable credential,
but mint requests carry a sub claim that impersonates the
email in provider_config.subject.
Vault path to the durable secret. Reference only — the secret value is never returned.
Provider-specific structured config. Common shapes:
{client_id, tenant_id} for Microsoft client_credentials,
{subject} for Google domain-wide delegation,
{username} for basic_auth. Never carries the secret.
object
Timestamp of the most recent successful mint by the proxy’s broker.
Short status code from the most recent mint attempt — populated alongside status=needs_reauth to surface the broker’s terminal-error reason.
AC-kind only — lets members create personal overrides
Example
{ "provider": "google", "kind": "oauth2_authorization_code", "status": "active"}Resource not found in the caller’s org
object
object
Closed-enum slug (e.g. permission_denied, validation_error, workspace_not_found)
Human-readable summary
Server-generated request id for correlating logs
Optional structured context. Validation errors land at
details.fields as a per-field map.
object
Example
{ "error": { "code": "permission_denied", "message": "caller lacks required scope", "request_id": "7f3a9c2e" }}Credentials subsystem isn’t configured on this CP (auth_disabled).
object
object
Closed-enum slug (e.g. permission_denied, validation_error, workspace_not_found)
Human-readable summary
Server-generated request id for correlating logs
Optional structured context. Validation errors land at
details.fields as a per-field map.
object
Example
{ "error": { "code": "permission_denied", "message": "caller lacks required scope", "request_id": "7f3a9c2e" }}