Skip to main content

Retrieve all comments

GET 
/comments

Retrieve all comments

Request

Query Parameters

    filter[comment_record_type] stringrequired

    Record type that the comment relates to i.e number_order, sub_number_order or number_order_phone_number

    filter[comment_record_id] stringrequired

    ID of the record the comments relate to

Responses

200: An array of Comment Responses

default: Unexpected error

Request samples


curl -L 'https://api.telnyx.com/v2/comments' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'

Response samples


{
"data": [
{
"id": "12ade33a-21c0-473b-b055-b3c836e1c292",
"body": "Hi there, ....",
"commenter": "[email protected]",
"commenter_type": "user",
"comment_record_type": "sub_number_order",
"comment_record_id": "8ffb3622-7c6b-4ccc-b65f-7a3dc0099576",
"read_at": null,
"created_at": "2018-01-01T00:00:00.000000Z",
"updated_at": "2018-01-01T00:00:00.000000Z"
}
],
"meta": {
"total_pages": 3,
"total_results": 55,
"page_number": 2,
"page_size": 25
}
}