Browse the API reference

Refresh Session

post/v1/auth/refresh

Part of Auth.

Revokes the current token and issues a new one. Accepts recently-expired tokens within the grace period.

Authentication

This operation does not require an API key.

Example request

curl
curl -X POST "https://api.robosystems.ai/v1/auth/refresh"

Responses

200 Successful Response

FieldTypeDescription
userrequiredobject

User information

orgoptionalobject

Organization information (personal org created automatically on registration)

messagerequiredstring

Success message

statusoptionalstring

Login flow state: authenticated (token present), or a passkey MFA step is required before a session is issued (mfa_token present)

One of: authenticated, mfa_required, mfa_enrollment_required

Default: authenticated

mfa_tokenoptionalstring

Short-lived token authorizing the MFA second step or forced enrollment; present only when status is not 'authenticated'

tokenoptionalstring

JWT authentication token (optional for cookie-based auth)

expires_inoptionalinteger

Token expiry time in seconds from now

refresh_thresholdoptionalinteger

Recommended refresh threshold in seconds before expiry

StatusMeaning
400Invalid request
429Rate limit exceeded
500Internal server error