Skip to main content
POST
/
v1
/
auth
/
session
/
switch-company
Switch active company (session)
curl --request POST \
  --url https://api.usenaive.ai/v1/auth/session/switch-company \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "company_id": "<string>"
}
'
{}

Authorizations

Authorization
string
header
required

Workspace API key. Create one via the dashboard or POST /v1/auth/keys.

Body

application/json
company_id
string
required

Response

Switched.

The response is of type object.