Home / Developers / API reference / portal-links
portal-links
Create portal link
POST /v1/organizations/{organizationId}/portal-links
- Operation ID
createPortalLink- Authentication
- bearerAuth
- Authorization operation
portal_link.create
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
organizationId | 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 |
|---|---|---|---|
capabilities | array of string | optional | |
ttl_seconds | integer | 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 |
|---|---|---|---|
link_id | string (uuid) | optional | |
organization_id | string (uuid) | optional | |
capabilities | array of string | optional | |
expires_at | string (date-time) | optional | |
token | string | null | optional | |
token_redacted | boolean | optional | |
url | string | null | 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 |
Redeem portal link
POST /v1/portal-links/redeem
Exchanges a one-time portal link for a portal session. It is the only route without bearer authentication (the link is the credential) and is IP rate limited. Every failure looks the same to the caller; failures against an existing link are audited. Unauthenticated: the single-use portal link token in the body is the credential (design §14). Returns a short-lived portal session.
- Operation ID
redeemPortalLink- Authentication
- None (security: [])
Parameters
No parameters.
Request body
Required.
application/json
| Field | Type | Required | Description |
|---|---|---|---|
token | string | optional |
Responses
201 Created
Headers: X-Correlation-ID (Server-generated request correlation ID (req_<uuid>).)
application/json
| Field | Type | Required | Description |
|---|---|---|---|
session_token | string | optional | |
session_id | string (uuid) | optional | |
application_id | string (uuid) | optional | |
environment | string | optional | |
organization_id | string (uuid) | optional | |
capabilities | array of string | optional | |
expires_at | string (date-time) | optional |
Error responses
| Status | Description | Error codes | Body |
|---|---|---|---|
| 400 | Malformed request | invalid_request, invalid_url, secret_ref_not_bound | 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 |
Verify a portal-link session with a passkey
POST /v1/portal-sessions/current/step-up
OD-13 (b), FR-041/FR-043 (ADR-025). Authenticated by the portal-link session itself (avps_…). The body carries the access token of a passkey ceremony in the admin realm: an engine-verified human with phishing-resistant amr, auth_time within the step-up max age, role org_identity_admin or org_owner of exactly this session's application, environment and organization. The first call binds the session to that administrator; later calls must present the same administrator and refresh the ceremony time. Until bound, sensitive operations of the session (connection write/activate, correlation policy, directory credential issue, domain verification, signing-certificate approval, privileged role mappings) answer 403 passkey_enrollment_required; once bound but stale, 403 step_up_required. Refusals: 403 passkey_enrollment_required (not an engine passkey token), 403 passkey_identity_mismatch (other scope, or the session is bound to another administrator), 403 step_up_required (ceremony not fresh). Every attempt is audited (portal_session.step_up); the engine token is never stored or echoed.
- Operation ID
stepUpPortalSession- Authentication
- bearerAuth
- Authorization operation
portal_session.step_up
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
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 |
|---|---|---|---|
access_token | string | required |
|
Responses
200 OK — the session is bound and stepped up until `step_up_expires_at`.
Headers: X-Correlation-ID (Server-generated request correlation ID (req_<uuid>).)
application/json
| Field | Type | Required | Description |
|---|---|---|---|
session_id | string (uuid) | optional | |
passkey_subject | string | optional | |
bound_at | string (date-time) | optional | |
step_up_at | string (date-time) | optional | |
step_up_expires_at | string (date-time) | 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 |
| 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 |