Mark call history as read
POST
/api/v1/calls/mark-read
const url = 'http://localhost:3001/api/v1/calls/mark-read';const options = { method: 'POST', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:3001/api/v1/calls/mark-read \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{}'Mark call history entries as read (clears unread badge).
Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”Optional IDs to mark
Media typeapplication/json
object
key
additional properties
any
Examplegenerated
{}Responses
Section titled “Responses”OK
Media typeapplication/json
object
key
additional properties
any
Examplegenerated
{}Unauthorized
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}Internal Server Error
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}