GET
/v1/users/me/usage
curl \
--request GET 'https://api.sensay.io/v1/users/me/usage' \
--header "X-ORGANIZATION-SECRET: $API_KEY" \
--header "X-USER-ID: $API_KEY" \
--header "X-API-Version: 2025-03-25"
Response examples (200)
{
"conversations": {
"currentMonthTotal": 42,
"currentMonthByReplica": {
"14e42ac9-369e-432c-97ab-7e7250a779b7": 5,
"5ee26dc3-49d2-43a8-a45b-25a1c78382cd": 12,
"9c0cf332-387e-4067-96e5-007c1f03e0d4": 3
}
},
"knowledgeBaseEntries": {
"total": 67,
"byReplica": {
"14e42ac9-369e-432c-97ab-7e7250a779b7": 25,
"5ee26dc3-49d2-43a8-a45b-25a1c78382cd": 32,
"9c0cf332-387e-4067-96e5-007c1f03e0d4": 10
}
},
"success": true
}
Response examples (400)
{
"error": "A text representation of the error",
"success": false,
"request_id": "xyz1::reg1:reg1::ab3c4-1234567890123-0123456789ab",
"fingerprint": "14fceadd84e74ec499afe9b0f7952d6b"
}
Response examples (401)
{
"error": "A text representation of the error",
"success": false,
"request_id": "xyz1::reg1:reg1::ab3c4-1234567890123-0123456789ab",
"fingerprint": "14fceadd84e74ec499afe9b0f7952d6b"
}
Response examples (404)
{
"error": "A text representation of the error",
"success": false,
"request_id": "xyz1::reg1:reg1::ab3c4-1234567890123-0123456789ab"
}
Response examples (415)
{
"error": "A text representation of the error",
"success": false,
"request_id": "xyz1::reg1:reg1::ab3c4-1234567890123-0123456789ab",
"fingerprint": "14fceadd84e74ec499afe9b0f7952d6b"
}
Response examples (500)
{
"error": "A text representation of the error",
"success": false,
"request_id": "xyz1::reg1:reg1::ab3c4-1234567890123-0123456789ab",
"fingerprint": "14fceadd84e74ec499afe9b0f7952d6b",
"inner_exception": {
"name": "Server overheated",
"cause": "Request too complicated",
"error": "The server overheated due to an unexpected situation",
"stack": "Error: Server overheated due to an unexpected situation\n at Object.eval (eval at <anonymous>..."
}
}