Get an organization
One organization, with your role in it.
GET /organizations/{org}
Returns one org. With a console token, that is any org you are a member of. With an org token, it answers only for the org the request’s host resolves to.
Authorization
A member of the org. Anyone else, and any other org, gets 404.
Path parameters
| Name | Type | Description |
|---|---|---|
org | string | The organization: its id (org_…) or its slug. It has to be an org your token can manage (see Who can call it) |
Response
200 OK
{
"id": "org_65f1c2a9e4b0d3f7a1c8e901",
"slug": "acme",
"logo": "https://…",
"role": "owner"
}
Errors
| Status | error | When |
|---|---|---|
404 | not_found | The org does not exist, your token cannot manage it, or you are not a member |
Example
curl https://acme.loginwith.dev/organizations/acme \
-H "Authorization: Bearer $TOKEN"