Skip to main content
GET
Get embedded credential session status
Returns the authoritative state of an Embedded Credential Capture session. Call this endpoint from your backend after the widget posts a completion event.

Notes

  • Only trust credential_id and selected_blueprint_key from this authenticated response, never from browser input.
  • Persist both values only when status is completed.
  • embed_url is null after the session completes or expires.
  • If the status is non-terminal after a completion event, poll every 2 seconds for a short period.
See Embedded Credential Capture for the complete integration flow.

Authorizations

Authorization
string
header
required

Your Rubie API key as a bearer token.

Path Parameters

id
string
required

Response

Embedded credential session

id
string
required

Opaque embedded credential session id.

Example:

"ecs_MQ"

status
enum<string>
required

Lifecycle status of an embedded credential session. completed and expired are terminal. Treat this as an open string set and keep polling on statuses you do not recognise.

Available options:
pending,
completed,
expired
blueprint_keys
string[]
required

Exact set of Blueprints displayed in the widget.

Required array length: 1 - 50 elements
parent_origin
string<uri>
required

Exact allowlisted HTTPS origin permitted to frame the widget.

Example:

"https://app.example.com"

expires_at
string<date-time>
required
created_at
string<date-time>
required
embed_url
string<uri> | null

Origin-bound iframe URL. Present while the session is pending and null after it completes or expires.

selected_blueprint_key
string | null

Blueprint selected by the end user. Present when status is completed and guaranteed to belong to blueprint_keys.

credential_id
string | null

Vaulted credential id. Present only when status is completed. Retain it against the initiating user and selected Blueprint.

Example:

"cred_NDc"

completed_at
string<date-time> | null