💡  Beta product

This product is a Beta product. This means that it and the information is subject for change, updates or removal.
If you test this product, please let us know your feedback, so that we can make it the best possible product for you. Please share your feedback with us here.

Fetch conversation history

Request

GET https://api.46elks.com/a1/conversations

Optional request parameters

Parameter Example Description
start 2018-02-14T09:52:07.302000 Retrieve conversations before this date.
end 2018-02-14T09:52:07.302000 Retrieve conversations after this date.
limit 40 Limit the number of results on each page.

Response structure

Example JSON response
{
  "data": [
    {
      "created": "2024-06-04T14:04:01.562000",
      "expires": "2024-06-05T06:04:01.562000",
      "from": "+46766860082",
      "id": "o114c3651be30e7d3d0c2640a5c645d19",
      "items": [
          "s6b649ab16d07d67d65d34f62ab3b3aab",
          "s28ff1b67720cd4ce50934efd7af16f2a",
          "s8c3b01f0065f7197f18cecdc0c50f89b",
          "s89259f6819718dd226c65ea8274e9ac2",
          "sf1654f952d46185b016639de01200954"
      ],
      "message": "What is your favorite color?",
      "reply_url": "https://tmp.46elks.com/be4fa8e8bdd1",
      "status": "expired",
      "to": "+46766861004"
    },
    // ...
  ],
  "next": "2018-02-20T10:48:03.349000"
}
Parameter Description
data List of conversations with the same format as in Get conversation by ID.
next Link to the next page if more conversations are available.

Additional info

At most 100 conversations can be retrieved at once. Use the start and end parameters to page through the history.