Get a line reputation audit
GET/v3/phone_numbers/{phoneNumber}/reputation_audit/{auditId}
Returns the audit’s status and, once complete, the report. Audits are
scoped to the line in the URL — an auditId started on a different
line returns 404.
Get a line reputation audit
curl https://api.linqapp.com/api/partner/v3/phone_numbers/$PHONE_NUMBER/reputation_audit/$AUDIT_ID \
-H "Authorization: Bearer $LINQ_API_V3_API_KEY"{
"audit_id": "audit_id",
"status": "pending",
"error": "error",
"generated_at": "2019-12-27T18:11:19.117Z",
"phone": "phone",
"report": {
"action_items": [
{
"detail": "detail",
"expected_impact": "high",
"priority": 0,
"title": "title"
}
],
"drivers": [
{
"key": "low_engagement",
"metric": "metric",
"summary": "summary"
}
],
"evidence": {
"opt_out_chats": [
{
"chat_id": "chat_id",
"messages_after_stop": 0
}
],
"unhealthy_chats": [
{
"chat_id": "chat_id",
"driver_keys": [
"low_engagement"
],
"status": "AT_RISK"
}
]
},
"primary_driver": "primary_driver",
"severity": "HEALTHY",
"summary_markdown": "## Line reputation summary\n\n**Status:** AT_RISK\n..."
}
}{
"error": {
"status": 401,
"code": 2004,
"message": "Unauthorized - missing or invalid authentication token",
"doc_url": "https://docs.linqapp.com/error/codes/2xxx/2004/"
},
"success": false
}{
"error": {
"status": 403,
"code": 2005,
"message": "Access denied - insufficient permissions for this resource",
"doc_url": "https://docs.linqapp.com/error/codes/2xxx/2005/"
},
"success": false
}{
"error": {
"status": 404,
"code": 2001,
"message": "Resource not found",
"doc_url": "https://docs.linqapp.com/error/codes/2xxx/2001/"
},
"success": false
}{
"error": {
"status": 500,
"code": 3006,
"message": "Internal server error",
"doc_url": "https://docs.linqapp.com/error/codes/3xxx/3006/"
},
"success": false
}Returns Examples
{
"audit_id": "audit_id",
"status": "pending",
"error": "error",
"generated_at": "2019-12-27T18:11:19.117Z",
"phone": "phone",
"report": {
"action_items": [
{
"detail": "detail",
"expected_impact": "high",
"priority": 0,
"title": "title"
}
],
"drivers": [
{
"key": "low_engagement",
"metric": "metric",
"summary": "summary"
}
],
"evidence": {
"opt_out_chats": [
{
"chat_id": "chat_id",
"messages_after_stop": 0
}
],
"unhealthy_chats": [
{
"chat_id": "chat_id",
"driver_keys": [
"low_engagement"
],
"status": "AT_RISK"
}
]
},
"primary_driver": "primary_driver",
"severity": "HEALTHY",
"summary_markdown": "## Line reputation summary\n\n**Status:** AT_RISK\n..."
}
}{
"error": {
"status": 401,
"code": 2004,
"message": "Unauthorized - missing or invalid authentication token",
"doc_url": "https://docs.linqapp.com/error/codes/2xxx/2004/"
},
"success": false
}{
"error": {
"status": 403,
"code": 2005,
"message": "Access denied - insufficient permissions for this resource",
"doc_url": "https://docs.linqapp.com/error/codes/2xxx/2005/"
},
"success": false
}{
"error": {
"status": 404,
"code": 2001,
"message": "Resource not found",
"doc_url": "https://docs.linqapp.com/error/codes/2xxx/2001/"
},
"success": false
}{
"error": {
"status": 500,
"code": 3006,
"message": "Internal server error",
"doc_url": "https://docs.linqapp.com/error/codes/3xxx/3006/"
},
"success": false
}