MedicalTrace

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

ParameterInRequiredTypeDescription
AuthorizationheaderYesstringBearer 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

FieldTypeDescriptionExample
[].orgIdstringOrganization id to send as X-Organization-Id.11111111-1111-4111-8111-111111111111
[].rolestringMembership role.admin
[].statusstringACTIVE, INVITED, or REVOKED. This route only queries ACTIVE.ACTIVE
[].organization.displayNamestringName to show in a client.Demo Manufacturer