curl 'https://api.contactship.ai/v1/contacts/CONTACT_ID/comments' \
-H 'x-api-key: YOUR_API_KEY'
const response = await fetch(
`https://api.contactship.ai/v1/contacts/${encodeURIComponent(contactId)}/comments`,
{ headers: { 'x-api-key': apiKey } },
);
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const { data } = await response.json();
console.log(data.total_comments, data.comments);
{
"statusCode": 123,
"data.total_comments": 123,
"data.comments": [
{}
]
}Contactos
Get Contact Comments
Read comments associated with a contact in your organization.
GET
/
v1
/
contacts
/
{contactId}
/
comments
curl 'https://api.contactship.ai/v1/contacts/CONTACT_ID/comments' \
-H 'x-api-key: YOUR_API_KEY'
const response = await fetch(
`https://api.contactship.ai/v1/contacts/${encodeURIComponent(contactId)}/comments`,
{ headers: { 'x-api-key': apiKey } },
);
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const { data } = await response.json();
console.log(data.total_comments, data.comments);
{
"statusCode": 123,
"data.total_comments": 123,
"data.comments": [
{}
]
}Retrieve the comments for a contact. Use Create comment to add a new entry.
This endpoint does not expose pagination or sorting query parameters.
string
requerido
Your organization API key.
string
requerido
The contact UUID.
Response
number
200 on success.
number
Number of comments returned.
object[]
Comments with
id, content, created_by, and created_at. The creator may be a user object or a source identifier; do not assume a separate user_name field.curl 'https://api.contactship.ai/v1/contacts/CONTACT_ID/comments' \
-H 'x-api-key: YOUR_API_KEY'
const response = await fetch(
`https://api.contactship.ai/v1/contacts/${encodeURIComponent(contactId)}/comments`,
{ headers: { 'x-api-key': apiKey } },
);
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const { data } = await response.json();
console.log(data.total_comments, data.comments);
