SparrowDesk
Conversation reply imports

Bulk import conversation replies

Backdated, no notifications/workflows/SLA. Returns a job id to poll. [requires "edit all tickets" scope]

POST
/imports/conversations/{id}/replies/create_many
AuthorizationBearer <token>

In: header

Path Parameters

idstring

The SparrowDesk conversation id

Header Parameters

x-import-source?string

Optional label identifying the system the replies were imported from

include_in_reports?boolean

Add the conversation to reports and recalculate its report data (first response and waiting times) from all of its replies. Conversations imported with include_in_reports are recalculated without it.

Defaultfalse
replies

Historical replies to import, oldest first

Items1 <= items

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://app.sparrowdesk.com/v1/imports/conversations/string/replies/create_many" \  -H "Content-Type: application/json" \  -d '{    "replies": [      {        "author_type": "agent",        "html_body": "string",        "created_at": "2019-08-24T14:15:22Z"      }    ]  }'
{
  "data": {
    "job_id": "string",
    "status": "queued",
    "total_replies": 0,
    "status_url": "string",
    "poll_after_ms": 2000
  }
}
{
  "message": "Unauthorized"
}
{
  "error": {
    "message": "string"
  }
}
{
  "error": {
    "message": "string"
  }
}
{
  "name": "RateLimitExceeded",
  "message": "Rate limit exceeded for: APIS_PER_MINUTE",
  "code": 429,
  "details": [
    {
      "name": "APIS_PER_MINUTE",
      "quota": 0,
      "count": 0,
      "remaining": 0
    }
  ]
}