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"
}
]
Get memberships for a subject in one or more scopes
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"
}
]
scopeId for a single scope or scopeIds for multiple scopes.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"
}
]
Was this page helpful?