myOrganizations
Requires an authenticated session.
Lists every organization the signed-in person belongs to, matched by email, with their role and plan in each, for the organization switcher.
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
query MyOrganizations {
myOrganizations {
id
code
name
planName
language
logoUrl
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query MyOrganizations {\n myOrganizations {\n id\n code\n name\n planName\n language\n logoUrl\n }\n}"
}
EOF
Response:
{
"data": {
"myOrganizations": [
{
"id": "string",
"code": "string",
"name": "string",
"planName": "string",
"language": "string",
"logoUrl": "string"
}
]
}
}
myOrganizations: [MyOrganization!]!
Type
MyOrganization object
An organization the signed-in user belongs to.