List organizations
List organizations the signed-in user belongs to.
Returns membership rows, including the organization on each row. An organization the user has not joined is absent.
1. Request URL
GET https://api.medicaltrace.net/v1/organizations
2. Request parameters
| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
Authorization | header | Yes | string | Bearer token from POST /auth/login. The sample value demo.local.jwt is a placeholder. |
3. Request example
curl -s -X GET 'https://api.medicaltrace.net/v1/organizations' \
-H 'authorization: Bearer demo.local.jwt'4. Response data
HTTP 200. The body below uses the fictional DEMO-BED-001 fixtures.
[
{
"orgId": "11111111-1111-4111-8111-111111111111",
"role": "admin",
"permissions": [
"asset:read"
],
"status": "ACTIVE",
"organization": {
"id": "11111111-1111-4111-8111-111111111111",
"displayName": "Demo Manufacturer",
"status": "APPROVED",
"capabilities": [
"manufacturer"
]
}
}
]5. Response fields
| Field | Type | Description | Example |
|---|---|---|---|
[].orgId | string | Organization id to send as X-Organization-Id. | 11111111-1111-4111-8111-111111111111 |
[].role | string | Membership role. | admin |
[].status | string | ACTIVE, INVITED, or REVOKED. This route only queries ACTIVE. | ACTIVE |
[].organization.displayName | string | Name to show in a client. | Demo Manufacturer |