Skip to main content
GET
Get credential session status
Returns the current session projection. Poll while status is pending (or any status you do not recognize). Persist credential_id only when status is completed.

Status values

Treat status as an open string set. Additional non-terminal values may appear later (for example while Rubie verifies the credential). Keep polling on unrecognized values; only branch on the three above.

Notes

  • hosted_url is present while the session is pending and cleared afterward.
  • credential_id is null until completed. Do not persist an id read from any other status.
  • If you used return_url, call this endpoint on the redirect landing page to retrieve and save the completed session’s credential_id.
See Hosted credential collection.

Authorizations

Authorization
string
header
required

Your Rubie API key as a bearer token.

Path Parameters

id
string
required

Response

Session

id
string
required
Example:

"sess_MQ"

status
enum<string>
required

Lifecycle status of the session. completed always means terminal and usable: the credential is vaulted and may be passed to a run. expired is terminal and not usable. pending means the end user has not finished the hosted form yet.

Treat this as an open string set rather than a fixed enum. Additional non-terminal statuses may be introduced between collection and completed — for example while Rubie verifies the credential against the target system. Keep polling on any status you do not recognise, and only branch on the three values above. Code written as if (status === "completed") { save(credential_id) } stays correct.

Available options:
pending,
completed,
expired
strategy_id
string
required
Example:

"strat_NQ"

expires_at
string<date-time>
required
created_at
string<date-time>
required
hosted_url
string | null

Rubie-hosted form URL. Open for the end user while status is pending.

return_url
string<uri> | null

Customer URL supplied when the session was created. After collection, Rubie redirects here with session_id appended as a query parameter.

credential_id
string | null

Present only when status is completed, and stable for the life of the credential. Retain it against your user record. Do not persist an id read from a session in any other status.

Example:

"cred_NDc"

completed_at
string<date-time> | null