GET /api/orgs
List every org the current user belongs to, not just the one tied to the bearer token. Used by the org-switcher UI.
curl https://www.mnueron.com/api/orgs \
-H "Authorization: Bearer $MNUERON_API_TOKEN"
Response
{
"orgs": [
{
"id": "01HQ…",
"slug": "alice-workspace",
"name": "Alice's workspace",
"plan": "free",
"role": "owner",
"created_at": 1735000000000
},
{
"id": "01HR…",
"slug": "acme-engineering-3f2a1d",
"name": "Acme Engineering",
"plan": "team",
"role": "owner",
"created_at": 1737070000000
}
]
}
To switch into a specific org programmatically, use the token issued by POST /api/orgs when the org was created, or mint a new token from that org's /account-settings/tokens page.