import

Migration only: Import messages onto an existing issue

Changed on

Migration only. This endpoint brings historical data into Pylon from another system and isn't meant for everyday writes. To create records as part of normal use, call POST /issues/{id}/reply or POST /issues/{id}/note instead.

Imports one or more messages onto an existing issue. Imported messages keep the timestamps you send and don't kick off triggers, notifications, or AI side effects.

Rate limit: 120 requests per minute

post/import/issues/{id}/messages

Request

  • Base URL
    https://api.usepylon.com
  • URL
    https://api.usepylon.com/import/issues/{id}/messages
  • Auth
    HTTP bearer

Path parameters

idstring required

The ID of the issue.

Request body

Response

request_idstring required

The request ID for tracking.

Example response

{
  "data": {
    "business_hours_time_in_status_seconds": {
      "new": 120,
      "waiting_on_customer": 1800
    },
    "custom_fields": {
      "priority": {
        "value": "high"
      }
    },
    "state": "new",
    "time_in_status_seconds": {
      "new": 120,
      "waiting_on_customer": 3600
    },
    "workspace_phone_number": "+14155551234"
  }
}

Changes

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property / to the response with the status