GET /v1/message-instances/{messageId}

List Message Instance

Path parameters

  • messageId string Required

    Message to fetch instances for

Query parameters

  • page number

    Current page

  • pageSize number

    Number of items per page

  • selectAll boolean

    Determines if all items are selected

  • where object

    App\Messages\Instances\Models\MessageInstance Filters: 0, 1

    Hide where attributes Show where attributes object
  • sort object

    App\Messages\Instances\Models\MessageInstance Sorting by

Responses

  • 200 application/json

    Paginated response

    Hide response attributes Show response attributes object
    • data array[object] Required

      Messages instance schema

      Hide data attributes Show data attributes object
      • id string Required

        id

      • companyId string Required

        Company ID

      • messageId string Required

        Messages ID

      • entityId string Required

        Entity ID

      • status string Required

        Values are draft, pending, or sent.

    • pagination object Required

      Pagination schema

      Hide pagination attributes Show pagination attributes object
      • total integer Required

        Total number of items

      • count integer Required

        Number of items on this page

      • perPage integer

        Number of items per page

      • currentPage integer

        Current page number

      • totalPages integer

        Total number of pages

  • 403 application/json

    Not authorized

    Hide response attributes Show response attributes object

    Error schema

    • statusCode number Required

      Status Code

    • messages array[string] Required

      List of error messages

    • exception object

      Exception

GET /v1/message-instances/{messageId}
curl \
 --request GET 'https://localhost/v1/message-instances/msg_xxxxxxxxxxx'
Response examples (200)
{
  "data": [
    {
      "id": "msgi_123123123123",
      "companyId": "co_123123123123",
      "messageId": "msg_123123123123",
      "entityId": "con_123123123123",
      "status": "draft"
    }
  ],
  "pagination": {
    "total": 15,
    "count": 10,
    "perPage": 10,
    "currentPage": 1,
    "totalPages": 2
  }
}
Response examples (403)
{
  "statusCode": 42.0,
  "messages": [
    "string"
  ],
  "exception": {}
}