Callbacks

Create a callback

post/v2/apps/{app_id}/callbacks

Request

  • Base URL
    https://api.tenjin.com
  • Auth
    HTTP bearer

Path parameters

app_idstring uuid required

Id of the app

Request body

callback_template_idstring uuid required

Id of the callback template the callback is made from

namestring

Name of the callback

activeboolean

Whether Tenjin sends the callback. Defaults to true when the callback is created

customer_parametersobject

A value for each parameter in the template's customer_parameters; creating a callback requires every one

eventstring

Event of the app that sends the callback

user_filter'all' | 'channel' | 'channel_and_organic' | 'non_channel'

Users the callback is sent for

Response

The created callback

metaobject required

Always empty

Example response

{
  "data": {
    "attributes": {
      "name": "Facebook install",
      "event": "open",
      "action": "ping_on_first",
      "channel_id": 3,
      "url": "https://example.com/postback?advertising_id={{advertising_id}}",
      "http_method": "GET",
      "active": true,
      "customer_parameters": {
        "remote_app_id": "1234567890"
      },
      "user_filter": "all"
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.