Skip to main content
POST
Accept client portal invitation

Authorizations

x-api-key
string
header
required

CX API key. Create one in CX under Settings → Advanced → API Keys.

Body

application/json

Accept invitation request (invite, client, password required)

client
string
invite
string
password
string
token
string

Response

Session data for authenticated user

_id
string
active
boolean
amr
enum<string>[]

AMR is the set of authentication method references completed this session.

Available options:
pwd,
email_link,
sms,
mfa,
otp,
sso
automation
boolean

Used to track if the session is for an automation (e.g. API key) or a user

client
object
created_on
string
exchanged
boolean

If the session ID is exchanged for a token, we need to set it here so it's not exchanged again

expires_on
string
ip
string
mechanism
string
otp
string

If 2FA is required, an OTP is generated and sent to the user As long as the OTP exists here, the session is NOT valid. When the user enters the OTP, it gets cleared from the session and the session becomes valid.

refreshOn
string

The session needs to automatically refresh itself every 5 minutes to keep the data from going stale.

team
object
token
string
type
string

Session type: Normal | Delegate | Desktop

updatedOn
string

Used to track if the session data is stale. The client passes a x-session-update header which must be before or at the update time. If not, the session is refreshed

user
object
user_agent
string