Get the caller
Módulo Identity
GET/meme.get
Returns the calling person, their memberships and engagements, and the organization the credential is bound to. A rule that refuses the request returns 422 with `refusal` and `reason`.
- Requiere la capacidad me.profile.write.
- Alcances de OAuth: me.
- Estados de error: 400, 401, 422, 429. Los errores son detalles de problema RFC 9457.
Respuesta 200: Me
| Campo | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| person_id | string (uuid) | Sí | Identifier of the calling person. |
| active_organization_id | string (uuid) | null | Sí | Identifier of the organization the credential is bound to. |
| membership_count | integer | Sí | Internal memberships held.Restricciones: range 0 to any |
| engagement_count | integer | Sí | External engagements held.Restricciones: range 0 to any |
{
"person_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
"active_organization_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
"membership_count": 2,
"engagement_count": 5
}Ejemplos de código
curl -X GET "$XOS_BASE_URL/me" \
-H "Authorization: Bearer $XOS_API_KEY"const { data, etag } = await xos.me.get();response = xos.me.get()xos me get