v2

latestOpenAPI 3.1.02026-07-312303692.4 MB
Message

Pollerv2 Consumer Poll

Poll messages from a sink.

get/api/v1/app/{app_id}/polling-endpoint/{sink_id}/consumer/{consumer_id}

Path parameters

app_idstring required

The Application's ID or UID.

Example:unique-identifier

The Application's ID or UID.

sink_idstring required

The Endpoint's ID or UID.

Example:unique-identifier

The Endpoint's ID or UID.

consumer_idstring required

Query parameters

limitinteger
lease_duration_msinteger nullable

Lease duration in milliseconds.

Lease duration in milliseconds.

starting_position'earliest' | 'latest'

Response

doneboolean required

Example response

{
  "data": [
    {
      "eventId": "unique-identifier",
      "eventType": "user.signup",
      "payload": {
        "type": "user.created",
        "email": "test@example.com",
        "username": "test_user"
      },
      "channels": [
        "project_123",
        "group_2"
      ],
      "id": "msg_1srOrx2ZWZBpBUvZwXKQmoEYga2",
      "tags": [
        "project_1337"
      ]
    }
  ]
}