/apis/v1/referrals/summary with the request body shown below. Authorization: Bearer<apiKey> in the Authorization header. The key must be active, unexpired, scoped to the correct community,getUserData.{ "status": "success", "data": ... }. data contains the resolved400 invalid request body, invalid cursor, invalid programId, missing fieldName for custom-field, invalid custom-field401 missing, invalid, expired, or insufficient API key/token.404 community not found, user not found, user does not belong to this community, or requested referral program was not409 duplicate users found for a custom-field identifier.503 custom-field lookup is not ready.500 unexpected Returning.AI service error.curl --location 'https://api.returning.ai/v1/referrals/summary' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data '{
"identifier": {
"type": "custom-field",
"value": "CUS-001",
"fieldName": "customerId"
},
"pagination": {
"limit": 25
}
}'{}