Skip to main content
GET
http://localhost:3000
/
memberships
curl -X GET 'https://api.example.com/memberships?subjectId=sub_123&scopeId=scope_456' \
  -H 'Authorization: Bearer YOUR_TOKEN'
[
  {
    "id": "mem_789",
    "subjectId": "sub_123",
    "scopeId": "scope_456"
  }
]

Query Parameters

subjectId
string
required
The subject ID to get memberships for
scopeId
string
Single scope ID to filter by
scopeIds
string
Comma-separated list of scope IDs to filter by
Provide either scopeId for a single scope or scopeIds for multiple scopes.

Response

Returns an array of membership objects.
memberships
array
curl -X GET 'https://api.example.com/memberships?subjectId=sub_123&scopeId=scope_456' \
  -H 'Authorization: Bearer YOUR_TOKEN'
[
  {
    "id": "mem_789",
    "subjectId": "sub_123",
    "scopeId": "scope_456"
  }
]