import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const comments = await client.portouts.comments.list('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');
console.log(comments.data);{
"data": [
{
"id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
"record_type": "portout",
"body": "This is a comment",
"portout_id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
"user_id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
"created_at": "2018-02-02T22:25:27.521Z"
}
],
"meta": {
"total_pages": 13,
"total_results": 13,
"page_number": 3,
"page_size": 1
}
}Returns a list of comments for a portout request.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const comments = await client.portouts.comments.list('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');
console.log(comments.data);{
"data": [
{
"id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
"record_type": "portout",
"body": "This is a comment",
"portout_id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
"user_id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
"created_at": "2018-02-02T22:25:27.521Z"
}
],
"meta": {
"total_pages": 13,
"total_results": 13,
"page_number": 3,
"page_size": 1
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Portout id
Portout Comments
Show child attributes
"0ccc7b54-4df3-4bca-a65a-3da1ecc777f0"
Comment body
"This is a comment"
Identifies the user who created the comment. Will be null if created by Telnyx Admin
"0ccc7b54-4df3-4bca-a65a-3da1ecc777f0"
Comment creation timestamp in ISO 8601 format
"2018-02-02T22:25:27.521Z"
Identifies the type of the resource.
"portout"
Identifies the associated port request
"0ccc7b54-4df3-4bca-a65a-3da1ecc777f0"
Show child attributes
Total number of pages based on pagination settings
13
Total number of results
13
Current Page based on pagination settings (included when defaults are used.)
3
Number of results to return per page based on pagination settings (included when defaults are used.)
1
Was this page helpful?