Skip to main content
PUT
/
orgs
/
active
Switch active organization
curl --request PUT \
  --url https://app.autoposting.ai/api-proxy/orgs/active \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "orgId": "org_02HXYZ"
}
'
{
  "success": true,
  "data": {
    "activeOrgId": "org_02HXYZ"
  }
}

Authorizations

Authorization
string
header
required

API key as Authorization: Bearer sk-social-...

Body

application/json
orgId
string
required
Example:

"org_02HXYZ"

Response

Success

success
boolean
required
Example:

true

data
object
required