Overview
GET
/communities/{id}/members/mecommunityGet the caller’s OWN role in a community (null when not a member)
Fetch a record from me by id.
Auth: bearerAuth — calls run as the authenticated user.
Parameters
- idpathstring
Responses
200
The caller’s role, or null when they hold no membership
- rolestring?
owner | admin | moderator | member, or null (not a member).
Example
{
"role": "string"
}401
Error
- erroroptionalobject
Example
{
"error": {
"message": "string",
"code": "string"
}
}Code examples
cURL
curl -X GET "https://api.agenticdeveloperhub.com/communities/{id}/members/me" \
-H "Authorization: Bearer YOUR_TOKEN"JavaScript
const res = await fetch("https://api.agenticdeveloperhub.com/communities/{id}/members/me", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_TOKEN"
},
});
const data = await res.json();