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 Required Additional properties
  • tags object Required
    Hide tags attribute Show tags attribute object
    • * string Required Additional properties
  • custom_fields object Required
    Hide custom_fields attribute Show custom_fields attribute object
    • * string Required Additional properties

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
  • 406 application/json

    VPN detected

    Hide response attribute Show response attribute object
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"
    }
  }
}