API ReferenceapiidentityPOST /v1/admin/staff/resolve

POST /v1/admin/staff/resolve

Service: identity · operationId: (none)

Resolve a WorkOS user ID to platform staff roles and scopes

Required scopes

(no scope declared — review service config)

Request body

{
  "type": "object",
  "properties": {
    "workos_user_id": {
      "type": "string",
      "minLength": 1,
      "description": "WorkOS user ID to resolve"
    }
  },
  "required": [
    "workos_user_id"
  ]
}

Responses

200 Resolved staff identity

{
  "type": "object",
  "properties": {
    "user_id": {
      "type": "string"
    },
    "email": {
      "type": "string"
    },
    "roles": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "scopes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "user_id",
    "email",
    "roles",
    "scopes"
  ]
}

400 Validation error

{
  "type": "object",
  "properties": {
    "error": {
      "type": "string"
    },
    "message": {
      "type": "string"
    }
  },
  "required": [
    "error",
    "message"
  ]
}

Example

curl -X POST https://identity.platform.loop.health/v1/admin/staff/resolve \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ ... }'