Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The comment ID.
Response
A Comment Response
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const response = await client.comments.markAsRead('id');
console.log(response.data);{
"data": {
"id": "12ade33a-21c0-473b-b055-b3c836e1c292",
"body": "Hi there, ....",
"commenter": "user@company.com",
"commenter_type": "user",
"comment_record_type": "sub_number_order",
"comment_record_id": "8ffb3622-7c6b-4ccc-b65f-7a3dc0099576",
"read_at": "2018-01-01T00:00:00.000000Z",
"created_at": "2018-01-01T00:00:00.000000Z",
"updated_at": "2018-01-01T00:00:00.000000Z"
}
}import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const response = await client.comments.markAsRead('id');
console.log(response.data);{
"data": {
"id": "12ade33a-21c0-473b-b055-b3c836e1c292",
"body": "Hi there, ....",
"commenter": "user@company.com",
"commenter_type": "user",
"comment_record_type": "sub_number_order",
"comment_record_id": "8ffb3622-7c6b-4ccc-b65f-7a3dc0099576",
"read_at": "2018-01-01T00:00:00.000000Z",
"created_at": "2018-01-01T00:00:00.000000Z",
"updated_at": "2018-01-01T00:00:00.000000Z"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The comment ID.
A Comment Response
Show child attributes
Was this page helpful?