Home / Developers / API reference / connection-keys
connection-keys
List keys
GET /v1/organizations/{organizationId}/connections/{connectionId}/keys
- Operation ID
listKeys- Authentication
- bearerAuth
- Authorization operation
connection.read
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
organizationId | path | string (uuid) | required | |
connectionId | path | string (uuid) | required |
Request body
No request body.
Responses
200 OK
Headers: X-Correlation-ID (Server-generated request correlation ID (req_<uuid>).)
application/json
| Field | Type | Required | Description |
|---|---|---|---|
connection_id | any | optional | |
data | any | optional | |
max_trusted | integer | optional | |
trusted_count | any | optional |
Error responses
| Status | Description | Error codes | Body |
|---|---|---|---|
| 400 | Malformed request | invalid_request, invalid_url, secret_ref_not_bound | Error |
| 401 | Unauthenticated, step-up required (RFC 9470 challenge in WWW-Authenticate) or invalid portal link | unauthenticated, insufficient_user_authentication, portal_link_invalid | Error |
| 403 | Operation not permitted for this caller | forbidden, step_up_required, passkey_enrollment_required, passkey_identity_mismatch, dpop_production_environment_only, client_identity_required, workforce_identity_required, break_glass_not_permitted, elevation_invalid, elevation_expired, elevation_self_approval, impersonation_forbidden, impersonation_not_consented, impersonation_self_consent, explicit_consent_required, ticket_consent_invalid, ticket_consent_expired, ticket_consent_ended, ticket_consent_forbidden, recovery_self_approval, recovery_method_not_allowed, recovery_channel_not_allowed, approver_not_permitted, approver_is_requester, self_approval_forbidden | Error |
| 404 | Not found (or outside the caller's scope) | not_found, correlation_policy_missing | Error |
| 429 | Rate limited | rate_limited | Error |
| 500 | Internal error (no detail leaked) | internal_error | Error |
| 503 | Dependency unavailable (fail closed) | engine_unavailable, egress_unavailable, temporarily_unavailable | Error |
Add key
POST /v1/organizations/{organizationId}/connections/{connectionId}/keys
- Operation ID
addKey- Authentication
- bearerAuth
- Authorization operation
connection.write
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
organizationId | path | string (uuid) | required | |
connectionId | path | string (uuid) | required | |
Idempotency-Key | header | string | optional | Replays of the same key and request return the stored response (Idempotent-Replayed: true); the same key with a different request → 422 idempotency_key_reused.
|
Request body
Required.
application/json
| Field | Type | Required | Description |
|---|---|---|---|
certificate | string | optional |
Responses
201 Created
Headers: X-Correlation-ID (Server-generated request correlation ID (req_<uuid>).); Idempotent-Replayed (true when the response is a stored idempotent replay.)
application/json
| Field | Type | Required | Description |
|---|---|---|---|
key_id | string (uuid) | optional | |
connection_id | string (uuid) | optional | |
fingerprint_sha256 | string | optional | |
subject | string | optional | |
valid_from | string (date-time) | optional | |
valid_to | string (date-time) | optional | |
trust_status | string | optional | |
approved_by | string | null | optional | |
approved_at | string | null (date-time) | optional | |
days_until_expiry | integer | optional | |
expired | boolean | optional | |
expiring_soon | boolean | optional |
Error responses
| Status | Description | Error codes | Body |
|---|---|---|---|
| 400 | Malformed request | invalid_request, invalid_url, secret_ref_not_bound | Error |
| 401 | Unauthenticated, step-up required (RFC 9470 challenge in WWW-Authenticate) or invalid portal link | unauthenticated, insufficient_user_authentication, portal_link_invalid | Error |
| 403 | Operation not permitted for this caller | forbidden, step_up_required, passkey_enrollment_required, passkey_identity_mismatch, dpop_production_environment_only, client_identity_required, workforce_identity_required, break_glass_not_permitted, elevation_invalid, elevation_expired, elevation_self_approval, impersonation_forbidden, impersonation_not_consented, impersonation_self_consent, explicit_consent_required, ticket_consent_invalid, ticket_consent_expired, ticket_consent_ended, ticket_consent_forbidden, recovery_self_approval, recovery_method_not_allowed, recovery_channel_not_allowed, approver_not_permitted, approver_is_requester, self_approval_forbidden | Error |
| 404 | Not found (or outside the caller's scope) | not_found, correlation_policy_missing | Error |
| 409 | Conflict with current state | conflict, invalid_state_transition, stale_config_version, connection_not_validated, correlation_policy_missing, ambiguous_acknowledgment_required, too_many_credentials, trusted_certificate_limit, domain_conflict, policy_version_conflict, invalid_configuration, agents_disabled, inactive_principal_or_grant, elevation_expired, recovery_expired, impersonation_consent_expired, impersonation_consent_revoked, ticket_consent_ended, change_already_decided, change_expired, owner_exists, no_verified_owner, promotion_stale | Error |
| 413 | Request body too large | payload_too_large | Error |
| 422 | Semantically invalid request | invalid_request, invalid_url, dpop_confidential_only, invalid_configuration, idempotency_key_reused, certificate_rejected, protocol_mismatch, jwks_unusable, agent_policy_invalid, assurance_policy_invalid, passwordless_policy_invalid, attenuation_violation, unverified_source, domain_not_verified, invitation_invalid, overlap_unsupported, registration_denied | Error |
| 429 | Rate limited | rate_limited | Error |
| 500 | Internal error (no detail leaked) | internal_error | Error |
| 503 | Dependency unavailable (fail closed) | engine_unavailable, egress_unavailable, temporarily_unavailable | Error |
Approve connection key
POST /v1/organizations/{organizationId}/connections/{connectionId}/keys/{keyId}/approve
Moves a certificate through its lifecycle. Approval (pending -> trusted) is explicit, records the approver, requires step-up, and is bounded to two trusted certificates (FR-015).
- Operation ID
approveConnectionKey- Authentication
- bearerAuth
- Authorization operation
connection_key.approve
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
organizationId | path | string (uuid) | required | |
connectionId | path | string (uuid) | required | |
keyId | path | string | required | |
Idempotency-Key | header | string | optional | Replays of the same key and request return the stored response (Idempotent-Replayed: true); the same key with a different request → 422 idempotency_key_reused.
|
Request body
Optional.
Empty body or {}; unknown fields are rejected.
application/json
| Field | Type | Required | Description |
|---|---|---|---|
(body) | object | optional |
Responses
200 OK
Headers: X-Correlation-ID (Server-generated request correlation ID (req_<uuid>).); Idempotent-Replayed (true when the response is a stored idempotent replay.)
application/json
| Field | Type | Required | Description |
|---|---|---|---|
key_id | string (uuid) | optional | |
connection_id | string (uuid) | optional | |
fingerprint_sha256 | string | optional | |
subject | string | optional | |
valid_from | string (date-time) | optional | |
valid_to | string (date-time) | optional | |
trust_status | string | optional | |
approved_by | string | null | optional | |
approved_at | string | null (date-time) | optional | |
days_until_expiry | integer | optional | |
expired | boolean | optional | |
expiring_soon | boolean | optional |
Error responses
| Status | Description | Error codes | Body |
|---|---|---|---|
| 400 | Malformed request | invalid_request, invalid_url, secret_ref_not_bound | Error |
| 401 | Unauthenticated, step-up required (RFC 9470 challenge in WWW-Authenticate) or invalid portal link | unauthenticated, insufficient_user_authentication, portal_link_invalid | Error |
| 403 | Operation not permitted for this caller | forbidden, step_up_required, passkey_enrollment_required, passkey_identity_mismatch, dpop_production_environment_only, client_identity_required, workforce_identity_required, break_glass_not_permitted, elevation_invalid, elevation_expired, elevation_self_approval, impersonation_forbidden, impersonation_not_consented, impersonation_self_consent, explicit_consent_required, ticket_consent_invalid, ticket_consent_expired, ticket_consent_ended, ticket_consent_forbidden, recovery_self_approval, recovery_method_not_allowed, recovery_channel_not_allowed, approver_not_permitted, approver_is_requester, self_approval_forbidden | Error |
| 404 | Not found (or outside the caller's scope) | not_found, correlation_policy_missing | Error |
| 409 | Conflict with current state | conflict, invalid_state_transition, stale_config_version, connection_not_validated, correlation_policy_missing, ambiguous_acknowledgment_required, too_many_credentials, trusted_certificate_limit, domain_conflict, policy_version_conflict, invalid_configuration, agents_disabled, inactive_principal_or_grant, elevation_expired, recovery_expired, impersonation_consent_expired, impersonation_consent_revoked, ticket_consent_ended, change_already_decided, change_expired, owner_exists, no_verified_owner, promotion_stale | Error |
| 413 | Request body too large | payload_too_large | Error |
| 422 | Semantically invalid request | invalid_request, invalid_url, dpop_confidential_only, invalid_configuration, idempotency_key_reused, certificate_rejected, protocol_mismatch, jwks_unusable, agent_policy_invalid, assurance_policy_invalid, passwordless_policy_invalid, attenuation_violation, unverified_source, domain_not_verified, invitation_invalid, overlap_unsupported, registration_denied | Error |
| 429 | Rate limited | rate_limited | Error |
| 500 | Internal error (no detail leaked) | internal_error | Error |
| 503 | Dependency unavailable (fail closed) | engine_unavailable, egress_unavailable, temporarily_unavailable | Error |
Retire connection key
POST /v1/organizations/{organizationId}/connections/{connectionId}/keys/{keyId}/retire
Moves a certificate through its lifecycle. Approval (pending -> trusted) is explicit, records the approver, requires step-up, and is bounded to two trusted certificates (FR-015).
- Operation ID
retireConnectionKey- Authentication
- bearerAuth
- Authorization operation
connection.write
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
organizationId | path | string (uuid) | required | |
connectionId | path | string (uuid) | required | |
keyId | path | string | required | |
Idempotency-Key | header | string | optional | Replays of the same key and request return the stored response (Idempotent-Replayed: true); the same key with a different request → 422 idempotency_key_reused.
|
Request body
Optional.
Empty body or {}; unknown fields are rejected.
application/json
| Field | Type | Required | Description |
|---|---|---|---|
(body) | object | optional |
Responses
200 OK
Headers: X-Correlation-ID (Server-generated request correlation ID (req_<uuid>).); Idempotent-Replayed (true when the response is a stored idempotent replay.)
application/json
| Field | Type | Required | Description |
|---|---|---|---|
key_id | string (uuid) | optional | |
connection_id | string (uuid) | optional | |
fingerprint_sha256 | string | optional | |
subject | string | optional | |
valid_from | string (date-time) | optional | |
valid_to | string (date-time) | optional | |
trust_status | string | optional | |
approved_by | string | null | optional | |
approved_at | string | null (date-time) | optional | |
days_until_expiry | integer | optional | |
expired | boolean | optional | |
expiring_soon | boolean | optional |
Error responses
| Status | Description | Error codes | Body |
|---|---|---|---|
| 400 | Malformed request | invalid_request, invalid_url, secret_ref_not_bound | Error |
| 401 | Unauthenticated, step-up required (RFC 9470 challenge in WWW-Authenticate) or invalid portal link | unauthenticated, insufficient_user_authentication, portal_link_invalid | Error |
| 403 | Operation not permitted for this caller | forbidden, step_up_required, passkey_enrollment_required, passkey_identity_mismatch, dpop_production_environment_only, client_identity_required, workforce_identity_required, break_glass_not_permitted, elevation_invalid, elevation_expired, elevation_self_approval, impersonation_forbidden, impersonation_not_consented, impersonation_self_consent, explicit_consent_required, ticket_consent_invalid, ticket_consent_expired, ticket_consent_ended, ticket_consent_forbidden, recovery_self_approval, recovery_method_not_allowed, recovery_channel_not_allowed, approver_not_permitted, approver_is_requester, self_approval_forbidden | Error |
| 404 | Not found (or outside the caller's scope) | not_found, correlation_policy_missing | Error |
| 409 | Conflict with current state | conflict, invalid_state_transition, stale_config_version, connection_not_validated, correlation_policy_missing, ambiguous_acknowledgment_required, too_many_credentials, trusted_certificate_limit, domain_conflict, policy_version_conflict, invalid_configuration, agents_disabled, inactive_principal_or_grant, elevation_expired, recovery_expired, impersonation_consent_expired, impersonation_consent_revoked, ticket_consent_ended, change_already_decided, change_expired, owner_exists, no_verified_owner, promotion_stale | Error |
| 413 | Request body too large | payload_too_large | Error |
| 422 | Semantically invalid request | invalid_request, invalid_url, dpop_confidential_only, invalid_configuration, idempotency_key_reused, certificate_rejected, protocol_mismatch, jwks_unusable, agent_policy_invalid, assurance_policy_invalid, passwordless_policy_invalid, attenuation_violation, unverified_source, domain_not_verified, invitation_invalid, overlap_unsupported, registration_denied | Error |
| 429 | Rate limited | rate_limited | Error |
| 500 | Internal error (no detail leaked) | internal_error | Error |
| 503 | Dependency unavailable (fail closed) | engine_unavailable, egress_unavailable, temporarily_unavailable | Error |
Revoke connection key
POST /v1/organizations/{organizationId}/connections/{connectionId}/keys/{keyId}/revoke
Moves a certificate through its lifecycle. Approval (pending -> trusted) is explicit, records the approver, requires step-up, and is bounded to two trusted certificates (FR-015).
- Operation ID
revokeConnectionKey- Authentication
- bearerAuth
- Authorization operation
connection.write
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
organizationId | path | string (uuid) | required | |
connectionId | path | string (uuid) | required | |
keyId | path | string | required | |
Idempotency-Key | header | string | optional | Replays of the same key and request return the stored response (Idempotent-Replayed: true); the same key with a different request → 422 idempotency_key_reused.
|
Request body
Optional.
Empty body or {}; unknown fields are rejected.
application/json
| Field | Type | Required | Description |
|---|---|---|---|
(body) | object | optional |
Responses
200 OK
Headers: X-Correlation-ID (Server-generated request correlation ID (req_<uuid>).); Idempotent-Replayed (true when the response is a stored idempotent replay.)
application/json
| Field | Type | Required | Description |
|---|---|---|---|
key_id | string (uuid) | optional | |
connection_id | string (uuid) | optional | |
fingerprint_sha256 | string | optional | |
subject | string | optional | |
valid_from | string (date-time) | optional | |
valid_to | string (date-time) | optional | |
trust_status | string | optional | |
approved_by | string | null | optional | |
approved_at | string | null (date-time) | optional | |
days_until_expiry | integer | optional | |
expired | boolean | optional | |
expiring_soon | boolean | optional |
Error responses
| Status | Description | Error codes | Body |
|---|---|---|---|
| 400 | Malformed request | invalid_request, invalid_url, secret_ref_not_bound | Error |
| 401 | Unauthenticated, step-up required (RFC 9470 challenge in WWW-Authenticate) or invalid portal link | unauthenticated, insufficient_user_authentication, portal_link_invalid | Error |
| 403 | Operation not permitted for this caller | forbidden, step_up_required, passkey_enrollment_required, passkey_identity_mismatch, dpop_production_environment_only, client_identity_required, workforce_identity_required, break_glass_not_permitted, elevation_invalid, elevation_expired, elevation_self_approval, impersonation_forbidden, impersonation_not_consented, impersonation_self_consent, explicit_consent_required, ticket_consent_invalid, ticket_consent_expired, ticket_consent_ended, ticket_consent_forbidden, recovery_self_approval, recovery_method_not_allowed, recovery_channel_not_allowed, approver_not_permitted, approver_is_requester, self_approval_forbidden | Error |
| 404 | Not found (or outside the caller's scope) | not_found, correlation_policy_missing | Error |
| 409 | Conflict with current state | conflict, invalid_state_transition, stale_config_version, connection_not_validated, correlation_policy_missing, ambiguous_acknowledgment_required, too_many_credentials, trusted_certificate_limit, domain_conflict, policy_version_conflict, invalid_configuration, agents_disabled, inactive_principal_or_grant, elevation_expired, recovery_expired, impersonation_consent_expired, impersonation_consent_revoked, ticket_consent_ended, change_already_decided, change_expired, owner_exists, no_verified_owner, promotion_stale | Error |
| 413 | Request body too large | payload_too_large | Error |
| 422 | Semantically invalid request | invalid_request, invalid_url, dpop_confidential_only, invalid_configuration, idempotency_key_reused, certificate_rejected, protocol_mismatch, jwks_unusable, agent_policy_invalid, assurance_policy_invalid, passwordless_policy_invalid, attenuation_violation, unverified_source, domain_not_verified, invitation_invalid, overlap_unsupported, registration_denied | Error |
| 429 | Rate limited | rate_limited | Error |
| 500 | Internal error (no detail leaked) | internal_error | Error |
| 503 | Dependency unavailable (fail closed) | engine_unavailable, egress_unavailable, temporarily_unavailable | Error |