Skip to main content

Pushgate API

Pushgate API is an API for sending events to the bot via pushbacks.

Methods

All methods are listed in the Pushgate API specification.

Methods for sending events:

  • Send only the event to the bot via a pushback: GET /push_{pushbackId}.

    Example:

    curl 'https://app.jaicp.com/pushgate/push_id-example-1234'
  • Send an event with additional data to the bot via a pushback: POST /push_{pushbackId}.

    Example:

    curl --request POST 'https://app.jaicp.com/pushgate/push_id-example-1234' \
    --header 'Content-Type: application/json' \
    --data-raw '{
    "text": "03/25 only, 20% off all our business plans!"
    }'
tip

In the $pushgate.createPushback article you can learn more about how to process these events in a script.