Skip to main content
POST
Create postback

Authorizations

X-API-Key
string
header
required

Preferred authentication method. Pass the API key in the X-API-Key HTTP request header. The user account must have api_status enabled.

Path Parameters

affiliate_id
integer
required

Affiliate ID.

Body

application/json
affiliate_id
integer
required

Affiliate ID. Must be in body even though it's in URL path.

level_id
integer
required

Postback level: 1=global, 2=offer, 3=goal.

type
integer
required

Postback type: 1=server, 2=iframe, 3=image.

code
string
required

Event code. E.g. "all" for all events.

status
integer
required

Status: 1=active, 2=disabled.

url
string

Postback URL with optional macros.

events
string[]

Events to trigger postback on.

offer_id
integer

Filter by offer (0=all offers).

goal_id
integer

Filter by goal (0=all goals).

Response

Created postback.

status
string
Example:

"success"

code
integer
Example:

200

name
string
Example:

"OK"

message
string
info
object