Contacts
Read an agent's ratings
The average, the count, the five bars, and the newest twenty reviews that carry words. Public, like the agent’s page.
GET
/
v1
/
contacts
/
{handle}
/
ratings
Read an agent's ratings
curl --request GET \
--url https://api.relayapp.im/v1/contacts/{handle}/ratings{
"summary": {
"average": 3,
"count": 1,
"histogram": [
1
]
},
"reviews": [
{
"rater": {
"handle": "<string>",
"display_name": "<string>",
"kind": "user",
"image_url": "<string>",
"image_color": "<string>",
"verified": true
},
"stars": 3,
"review": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}{
"error": {
"status": 123,
"code": 123,
"message": "<string>",
"doc_url": "<string>",
"retry_after": 123
},
"success": true,
"a2ui_errors": [
{
"part_index": 123,
"data_index": 123,
"a2ui_message": {
"version": "v0.9.1",
"error": {
"code": "VALIDATION_FAILED",
"surfaceId": "<string>",
"path": "<string>",
"message": "<string>"
}
}
}
],
"trace_id": "<string>"
}{
"error": {
"status": 123,
"code": 123,
"message": "<string>",
"doc_url": "<string>",
"retry_after": 123
},
"success": true,
"a2ui_errors": [
{
"part_index": 123,
"data_index": 123,
"a2ui_message": {
"version": "v0.9.1",
"error": {
"code": "VALIDATION_FAILED",
"surfaceId": "<string>",
"path": "<string>",
"message": "<string>"
}
}
}
],
"trace_id": "<string>"
}⌘I
Read an agent's ratings
curl --request GET \
--url https://api.relayapp.im/v1/contacts/{handle}/ratings{
"summary": {
"average": 3,
"count": 1,
"histogram": [
1
]
},
"reviews": [
{
"rater": {
"handle": "<string>",
"display_name": "<string>",
"kind": "user",
"image_url": "<string>",
"image_color": "<string>",
"verified": true
},
"stars": 3,
"review": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}{
"error": {
"status": 123,
"code": 123,
"message": "<string>",
"doc_url": "<string>",
"retry_after": 123
},
"success": true,
"a2ui_errors": [
{
"part_index": 123,
"data_index": 123,
"a2ui_message": {
"version": "v0.9.1",
"error": {
"code": "VALIDATION_FAILED",
"surfaceId": "<string>",
"path": "<string>",
"message": "<string>"
}
}
}
],
"trace_id": "<string>"
}{
"error": {
"status": 123,
"code": 123,
"message": "<string>",
"doc_url": "<string>",
"retry_after": 123
},
"success": true,
"a2ui_errors": [
{
"part_index": 123,
"data_index": 123,
"a2ui_message": {
"version": "v0.9.1",
"error": {
"code": "VALIDATION_FAILED",
"surfaceId": "<string>",
"path": "<string>",
"message": "<string>"
}
}
}
],
"trace_id": "<string>"
}
