Skip to main content
GET
/
v1
/
organizations
/
current
Get current organization context
curl --request GET \
  --url http://0.0.0.0:3000/v1/organizations/current \
  --header 'Authorization: Bearer <token>'
{
  "org": {
    "id": "org_abc123",
    "name": "Minha Casa"
  },
  "myRole": "admin",
  "isOwner": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Organization-Id
string

ID da organização para contexto (opcional). Quando presente, filtra recursos da org.

Response

Current organization data and user role

org
object
myRole
enum<string> | null
Available options:
admin,
member,
null
isOwner
boolean