{communityId} with the community's 24-character Mongo ObjectId.APIKeyModel key with userFields. The authenticated principal must belong to the community. Application-service user-field routes do not accept personal message API keys. A missing or unrecognized key returns 401 AUTHENTICATION_REQUIRED before field data is read.{
"meta": { "status": "success", "statusCode": 200, "code": "USER_FIELDS_LISTED" },
"message": "Read user fields api success.",
"data": [
{
"_id": "<fieldObjectId>",
"name": "Trading Volume",
"field": "trading_volume",
"type": "numerical",
"defaultValue": 0,
"isCustom": true
}
]
}{
"meta": { "status": "success", "statusCode": 200, "code": "USER_FIELDS_LISTED" },
"message": "Read user fields api success.",
"data": []
}data[].field as the durable integration key. name is display text and can change. _id is accepted by item endpoints but is less portable in configuration. Before a value write, confirm the definition's type and whether isCustom permits management operations.400 INVALID_COMMUNITY_ID: fix the path value; it must be a 24-character ObjectId.401 AUTHENTICATION_REQUIRED: supply a recognized community API key.403 API_KEY_PERMISSION_DENIED or COMMUNITY_ACCESS_DENIED: the key/principal cannot read this community.500 USER_FIELD_OPERATION_FAILED: retry the read with bounded backoff and preserve the request time for support.field key does not.curl --location 'https://api.returning.ai/v1/communities/6502c9e514a3e564c5c09c0a/user-fields?isCustom=' \
--header 'Authorization: Bearer <apiKey>'{
"meta": {
"status": "success",
"statusCode": 200,
"code": "USER_FIELDS_LISTED",
"total": 1
},
"message": "Read user fields api success.",
"data": [
{
"_id": "66f000000000000000000010",
"name": "Trading Volume",
"field": "trading_volume",
"type": "numerical",
"defaultValue": 0,
"isCustom": true
}
]
}