import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const comments = await client.portingOrders.comments.list('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');
console.log(comments.data);{
"data": [
{
"id": "f1486bae-f067-460c-ad43-73a92848f902",
"body": "Great experience so far",
"porting_order_id": "f1486bae-f067-460c-ad43-73a92848f902",
"user_type": "user",
"record_type": "porting_comment",
"created_at": "2021-03-19T10:07:15.527Z"
}
],
"meta": {
"page_number": 2,
"page_size": 25,
"total_pages": 3,
"total_results": 55
}
}Returns a list of all comments of a porting order.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const comments = await client.portingOrders.comments.list('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');
console.log(comments.data);{
"data": [
{
"id": "f1486bae-f067-460c-ad43-73a92848f902",
"body": "Great experience so far",
"porting_order_id": "f1486bae-f067-460c-ad43-73a92848f902",
"user_type": "user",
"record_type": "porting_comment",
"created_at": "2021-03-19T10:07:15.527Z"
}
],
"meta": {
"page_number": 2,
"page_size": 25,
"total_pages": 3,
"total_results": 55
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Porting Order id
Successful response
Show child attributes
"f1486bae-f067-460c-ad43-73a92848f902"
Body of comment
"Great experience so far"
"f1486bae-f067-460c-ad43-73a92848f902"
Indicates whether this comment was created by a Telnyx Admin, user, or system
admin, user, system "user"
Identifies the type of the resource.
"porting_comment"
ISO 8601 formatted date indicating when the resource was created.
"2021-03-19T10:07:15.527Z"
Was this page helpful?