Skip to main content
POST
/
v1
/
auth
/
select-company
Switch company context
curl --request POST \
  --url https://api.usenaive.ai/v1/auth/select-company \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "company_id": "<string>"
}
'
{
  "selected": true,
  "company_id": "<string>",
  "company_name": "<string>",
  "agent_id": "<string>",
  "api_key": "<string>",
  "hint": "<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.

selected
boolean
company_id
string
company_name
string
agent_id
string
api_key
string
hint
string