For AI agents: markdown of this page — /docs-content-en/calls/log/delete.md documentation index — /llms.txt
Delete journal entry
Deletes only an entry in the current user personal journal. The wrapper walks the journal with its cursor before deletion: a missing ID returns 404 even though Bitrix24 returns success. The pre-read covers the 5000 newest journal entries (at most 50 pages): an older entry returns 422 CALL_LOG_PREREAD_LIMIT_EXCEEDED, nothing is deleted, and such an entry cannot be deleted via the API.
DELETE /v1/calls/log/77
Bitrix24: call.CallLog.delete | Scope: call | Auth: X-Api-Key
Response fields
data.deleted, data.missedCounter
{
"success": true,
"data": {
"deleted": true,
"missedCounter": 0
}
}
Examples
curl -X DELETE "https://vibecode.bitrix24.com/v1/calls/log/77" -H "X-Api-Key: vibe_api_DUMMY_personal"
curl -X DELETE "https://vibecode.bitrix24.com/v1/calls/log/77" -H "X-Api-Key: vibe_app_DUMMY_oauth" -H "Authorization: Bearer DUMMY_SESSION"
const response = await fetch("https://vibecode.bitrix24.com/v1/calls/log/77", {
method: "DELETE", headers: { "X-Api-Key": "vibe_api_DUMMY_personal" }
});
const result = await response.json();
const response = await fetch("https://vibecode.bitrix24.com/v1/calls/log/77", {
method: "DELETE", headers: { "X-Api-Key": "vibe_app_DUMMY_oauth", "Authorization": "Bearer DUMMY_SESSION" }
});
const result = await response.json();
Errors
| HTTP | Code | Meaning |
|---|---|---|
| 400 | INVALID_PARAMS / INVALID_CALL_ID | Invalid input; no Bitrix24 call |
| 401 | TOKEN_MISSING / INVALID_API_KEY | Missing tokens or unusable key |
| 403 | SCOPE_DENIED / BITRIX_ACCESS_DENIED / WRITE_BLOCKED_READONLY_KEY | Missing scope, portal permission refusal, or forbidden write |
| 404 | ENTITY_NOT_FOUND | Entry not found |
| 422 | CALL_LOG_PREREAD_LIMIT_EXCEEDED | Entry not found among the 5000 newest journal entries; nothing is deleted |
| 422 | BITRIX_ERROR | Portal business refusal or unsuccessful operation |
| 429 | BITRIX_RATE_LIMIT | Portal rate limit |
| 502 / 503 | BITRIX_ERROR | Invalid response, unavailable portal or timeout |
400: invalid input.
{"success":false,"error":{"code":"INVALID_PARAMS","message":"Invalid parameter"}}