Test a callback URL

POST /v1/publishers/callbacks/test

to be written

application/json

Body Required

  • url string Required
  • data object Required
    Hide data attribute Show data attribute object
    • * string Additional properties
  • tags object Required
    Hide tags attribute Show tags attribute object
    • * string Additional properties
  • custom_fields object Required
    Hide custom_fields attribute Show custom_fields attribute object
    • * string Additional properties

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
    • data object

      Additional properties are allowed.

      Hide data attributes Show data attributes object
      • response object Required

        Additional properties are allowed.

        Hide response attributes Show response attributes object
        • status_code integer(int32) Required

          The status code of the call

        • body string Required

          The first 100 bytes of the response

        • content_type string Required

          The content type of the response

      • url string Required
      • legacy_macros array[string] Required
      • invalid_macros array[string] Required
  • 406 application/json

    VPN detected

    Hide response attribute Show response attribute object
    • data object

      Additional properties are allowed.

POST /v1/publishers/callbacks/test
curl \
 -X POST https://api.bitlabs.ai/v1/publishers/callbacks/test \
 -H "X-S2S-Token: $API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"url":"string","data":{"additionalProperty1":"string","additionalProperty2":"string"},"tags":{"additionalProperty1":"string","additionalProperty2":"string"},"custom_fields":{"additionalProperty1":"string","additionalProperty2":"string"}}'
Request examples
{
  "url": "string",
  "data": {
    "additionalProperty1": "string",
    "additionalProperty2": "string"
  },
  "tags": {
    "additionalProperty1": "string",
    "additionalProperty2": "string"
  },
  "custom_fields": {
    "additionalProperty1": "string",
    "additionalProperty2": "string"
  }
}
Response examples (200)
{
  "data": {
    "response": {
      "status_code": 200,
      "body": "OK - it works",
      "content_type": "text/plain"
    },
    "url": "string",
    "legacy_macros": [
      "string"
    ],
    "invalid_macros": [
      "string"
    ]
  }
}
Response examples (406)
{
  "error": {
    "details": {
      "msg": "vpn detected",
      "http": "406 Not Acceptable"
    }
  }
}