Skip to content
Docs

API reference / Operations by tag

postbacks

Outgoing postbacks (including CAPI presets), their logs and retries.

20 operations. Base URL https://api.metrixed.com/v1; see authentication, errors and pagination.

Operations

MethodPathSummary
GET/partner/mmp-templatesPartner portal: MMP outbound presets (url_template mmp:, method, config_keys, notes) for a postback that sends conversions to the partner's MMP; the advertiser-side inbound URL is not included
GET/partner/postbacksList Postbacks
POST/partner/postbacksCreate Postback
GET/partner/postbacks/{id}Get Postback
PATCH/partner/postbacks/{id}Update Postback
DELETE/partner/postbacks/{id}Delete Postback
GET/partner/postbacks/{id}/deliveriesPartner portal: recent deliveries of an own postback
POST/partner/postbacks/{id}/testPartner portal: send a test of an own postback
POST/partner/postbacks/bulk/applyBulk edit apply
POST/partner/postbacks/bulk/previewBulk edit preview
POST/partner/postbacks/searchSearch Postbacks (advanced)
GET/postbacksList Postbacks
POST/postbacksCreate Postback
GET/postbacks/{id}Get Postback
PATCH/postbacks/{id}Update Postback
DELETE/postbacks/{id}Delete Postback
POST/postbacks/{id}/testSend a test postback
POST/postbacks/bulk/applyBulk edit apply
POST/postbacks/bulk/previewBulk edit preview
POST/postbacks/searchSearch Postbacks (advanced)

GET /partner/mmp-templates

Partner portal: MMP outbound presets (url_template mmp:, method, config_keys, notes) for a postback that sends conversions to the partner's MMP; the advertiser-side inbound URL is not included

Operation getPartnerMmpTemplates. Auth: API key (Bearer) or session cookie.

StatusDescriptionBody
200okapplication/json PartnerMMPTemplateList
defaulterrorapplication/json Error
bash
curl 'https://api.metrixed.com/v1/partner/mmp-templates' \
  -H "Authorization: Bearer $DT_API_KEY" \
  -H 'Accept: application/json'

Example 200 response:

json
{
  "data": [
    {}
  ]
}

GET /partner/postbacks

List Postbacks

Operation getPartnerPostbacks. Auth: API key (Bearer) or session cookie.

ParameterInTypeRequiredDescription
pagequeryintegerno
page_sizequeryintegerno
sortquerystringnofield or -field
includequerystringnocomma-separated relationships
filterqueryobject (free-form)no
qquerystringnofree-text search
StatusDescriptionBody
200okapplication/json PostbackList
defaulterrorapplication/json Error
bash
curl 'https://api.metrixed.com/v1/partner/postbacks?page=1&page_size=50' \
  -H "Authorization: Bearer $DT_API_KEY" \
  -H 'Accept: application/json'

Example 200 response:

json
{
  "data": [
    {}
  ],
  "page": {}
}

POST /partner/postbacks

Create Postback

Operation postPartnerPostbacks. Auth: API key (Bearer) or session cookie.

Request body (application/json, required): PostbackCreate

FieldTypeFlagsDescription
partner_idstring
offer_idstring
goal_idstring
event_scopeenum: conversion, goal, conversion_goal, all
typeenum: url, iframe_pixel, image_pixel, javascript_pixel
methodenum: GET, POST, PUT, PATCH, DELETE
url_templatestringrequired
body_templatestring
headersobject (free-form)
statusenum: active, pending, paused, disabled
allowed_conversion_statusesarray of enum: pending, approved, rejected, cancelled, extended, flagged, scrubbed
block_zero_payoutboolean
fire_onarray of enum: create, status_change, payout_change, reversal
delay_secondsinteger
retry_policyobject (free-form)
StatusDescriptionBody
201okapplication/json Postback
defaulterrorapplication/json Error
bash
curl -X POST 'https://api.metrixed.com/v1/partner/postbacks' \
  -H "Authorization: Bearer $DT_API_KEY" \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  --data-raw '{"url_template":""}'

Example 201 response:

json
{
  "external_ref": ""
}

GET /partner/postbacks/{id}

Get Postback

Operation getPartnerPostbacksId. Auth: API key (Bearer) or session cookie.

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
200okapplication/json Postback
defaulterrorapplication/json Error
bash
curl 'https://api.metrixed.com/v1/partner/postbacks/<id>' \
  -H "Authorization: Bearer $DT_API_KEY" \
  -H 'Accept: application/json'

Example 200 response:

json
{
  "external_ref": ""
}

PATCH /partner/postbacks/{id}

Update Postback

Operation patchPartnerPostbacksId. Auth: API key (Bearer) or session cookie.

ParameterInTypeRequiredDescription
idpathstringyes

Request body (application/json, required): PostbackUpdate

FieldTypeFlagsDescription
partner_idstring
offer_idstring
goal_idstring
event_scopeenum: conversion, goal, conversion_goal, all
typeenum: url, iframe_pixel, image_pixel, javascript_pixel
methodenum: GET, POST, PUT, PATCH, DELETE
url_templatestring
body_templatestring
headersobject (free-form)
statusenum: active, pending, paused, disabled
allowed_conversion_statusesarray of enum: pending, approved, rejected, cancelled, extended, flagged, scrubbed
block_zero_payoutboolean
fire_onarray of enum: create, status_change, payout_change, reversal
delay_secondsinteger
retry_policyobject (free-form)
StatusDescriptionBody
200okapplication/json Postback
defaulterrorapplication/json Error
bash
curl -X PATCH 'https://api.metrixed.com/v1/partner/postbacks/<id>' \
  -H "Authorization: Bearer $DT_API_KEY" \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  --data-raw '{"partner_id":"","offer_id":"","goal_id":"","event_scope":"conversion"}'

Example 200 response:

json
{
  "external_ref": ""
}

DELETE /partner/postbacks/{id}

Delete Postback

Operation deletePartnerPostbacksId. Auth: API key (Bearer) or session cookie.

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
204okapplication/json Ok
defaulterrorapplication/json Error
bash
curl -X DELETE 'https://api.metrixed.com/v1/partner/postbacks/<id>' \
  -H "Authorization: Bearer $DT_API_KEY" \
  -H 'Accept: application/json'

Example 204 response:

json
{
  "ok": false
}

GET /partner/postbacks/{id}/deliveries

Partner portal: recent deliveries of an own postback

Operation getPartnerPostbacksIdDeliveries. Auth: API key (Bearer) or session cookie.

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
200okapplication/json LogSearchResult
defaulterrorapplication/json Error
bash
curl 'https://api.metrixed.com/v1/partner/postbacks/<id>/deliveries' \
  -H "Authorization: Bearer $DT_API_KEY" \
  -H 'Accept: application/json'

Example 200 response:

json
{
  "rows": [
    {}
  ],
  "next_cursor": "",
  "has_more": false
}

POST /partner/postbacks/{id}/test

Partner portal: send a test of an own postback

Operation postPartnerPostbacksIdTest. Auth: API key (Bearer) or session cookie.

ParameterInTypeRequiredDescription
idpathstringyes

Request body (application/json, required): ConversionCreate

FieldTypeFlagsDescription
conversion_idstring
click_idstring
impression_idstring
txn_idstring
order_idstring
conversion_typeenum: base, goal, event, upsell, rebill, refund, chargeback, adjustment
goal_idstring
goal_keystring
offer_idstring
partner_idstring
advertiser_idstring
landing_page_idstring
creative_idstring
coupon_codestring
tsstring (date-time)
click_tsstring (date-time)
ctit_secondsinteger
statusenum: pending, approved, rejected, cancelled, extended, flagged, scrubbed
status_reasonstring
status_sourcestring
is_hidden_from_partnerboolean
payoutstringdecimal string
revenuestringdecimal string
sale_amountstringdecimal string
currencystring
fx_ratestringdecimal string
profitstringdecimal string
advobject (free-form)adv1..adv10
paramsobject (free-form)sub1..sub15, source, ...
methodenum: postback, pixel, iframe, js, sdk, s2s, coupon, manual, import
attributionobject (free-form)model, touch, confidence, is_organic
ipstring
click_ipstring
geoobject (free-form)
deviceobject (free-form)
user_idstring
fraudobject (free-form)score, reasons, rule_ids
is_testboolean
raw_requeststring
historyarray of object (free-form)
StatusDescriptionBody
200okapplication/json LogSearchResult
defaulterrorapplication/json Error
bash
curl -X POST 'https://api.metrixed.com/v1/partner/postbacks/<id>/test' \
  -H "Authorization: Bearer $DT_API_KEY" \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  --data-raw '{"conversion_id":"","click_id":"","impression_id":"","txn_id":""}'

Example 200 response:

json
{
  "rows": [
    {}
  ],
  "next_cursor": "",
  "has_more": false
}

POST /partner/postbacks/bulk/apply

Bulk edit apply

Operation postPartnerPostbacksBulkApply. Auth: API key (Bearer) or session cookie.

Request body (application/json, required): BulkPatch

FieldTypeFlagsDescription
idsarray of stringrequired
patchesarray of objectrequired
StatusDescriptionBody
200okapplication/json BulkPreview
defaulterrorapplication/json Error
bash
curl -X POST 'https://api.metrixed.com/v1/partner/postbacks/bulk/apply' \
  -H "Authorization: Bearer $DT_API_KEY" \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  --data-raw '{"ids":[""],"patches":[{"field":"","value":{}}]}'

Example 200 response:

json
{
  "affected": 0,
  "changes": [
    {}
  ],
  "warnings": [
    ""
  ],
  "token": ""
}

POST /partner/postbacks/bulk/preview

Bulk edit preview

Operation postPartnerPostbacksBulkPreview. Auth: API key (Bearer) or session cookie.

Request body (application/json, required): BulkPatch

FieldTypeFlagsDescription
idsarray of stringrequired
patchesarray of objectrequired
StatusDescriptionBody
200okapplication/json BulkPreview
defaulterrorapplication/json Error
bash
curl -X POST 'https://api.metrixed.com/v1/partner/postbacks/bulk/preview' \
  -H "Authorization: Bearer $DT_API_KEY" \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  --data-raw '{"ids":[""],"patches":[{"field":"","value":{}}]}'

Example 200 response:

json
{
  "affected": 0,
  "changes": [
    {}
  ],
  "warnings": [
    ""
  ],
  "token": ""
}

POST /partner/postbacks/search

Search Postbacks (advanced)

Operation postPartnerPostbacksSearch. Auth: API key (Bearer) or session cookie.

Request body (application/json, required): SearchRequest

FieldTypeFlagsDescription
filtersarray of object
searchstring
sortarray of object (free-form)
pageinteger
page_sizeinteger
includearray of string
StatusDescriptionBody
200okapplication/json PostbackList
defaulterrorapplication/json Error
bash
curl -X POST 'https://api.metrixed.com/v1/partner/postbacks/search' \
  -H "Authorization: Bearer $DT_API_KEY" \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  --data-raw '{"filters":[{}],"search":"","sort":[{}],"page":0}'

Example 200 response:

json
{
  "data": [
    {}
  ],
  "page": {}
}

GET /postbacks

List Postbacks

Operation getPostbacks. Auth: API key (Bearer) or session cookie.

ParameterInTypeRequiredDescription
pagequeryintegerno
page_sizequeryintegerno
sortquerystringnofield or -field
includequerystringnocomma-separated relationships
filterqueryobject (free-form)no
qquerystringnofree-text search
StatusDescriptionBody
200okapplication/json PostbackList
defaulterrorapplication/json Error
bash
curl 'https://api.metrixed.com/v1/postbacks?page=1&page_size=50' \
  -H "Authorization: Bearer $DT_API_KEY" \
  -H 'Accept: application/json'

Example 200 response:

json
{
  "data": [
    {}
  ],
  "page": {}
}

POST /postbacks

Create Postback

Operation postPostbacks. Auth: API key (Bearer) or session cookie.

Request body (application/json, required): PostbackCreate

FieldTypeFlagsDescription
partner_idstring
offer_idstring
goal_idstring
event_scopeenum: conversion, goal, conversion_goal, all
typeenum: url, iframe_pixel, image_pixel, javascript_pixel
methodenum: GET, POST, PUT, PATCH, DELETE
url_templatestringrequired
body_templatestring
headersobject (free-form)
statusenum: active, pending, paused, disabled
allowed_conversion_statusesarray of enum: pending, approved, rejected, cancelled, extended, flagged, scrubbed
block_zero_payoutboolean
fire_onarray of enum: create, status_change, payout_change, reversal
delay_secondsinteger
retry_policyobject (free-form)
StatusDescriptionBody
201okapplication/json Postback
defaulterrorapplication/json Error
bash
curl -X POST 'https://api.metrixed.com/v1/postbacks' \
  -H "Authorization: Bearer $DT_API_KEY" \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  --data-raw '{"url_template":""}'

Example 201 response:

json
{
  "external_ref": ""
}

GET /postbacks/{id}

Get Postback

Operation getPostbacksId. Auth: API key (Bearer) or session cookie.

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
200okapplication/json Postback
defaulterrorapplication/json Error
bash
curl 'https://api.metrixed.com/v1/postbacks/<id>' \
  -H "Authorization: Bearer $DT_API_KEY" \
  -H 'Accept: application/json'

Example 200 response:

json
{
  "external_ref": ""
}

PATCH /postbacks/{id}

Update Postback

Operation patchPostbacksId. Auth: API key (Bearer) or session cookie.

ParameterInTypeRequiredDescription
idpathstringyes

Request body (application/json, required): PostbackUpdate

FieldTypeFlagsDescription
partner_idstring
offer_idstring
goal_idstring
event_scopeenum: conversion, goal, conversion_goal, all
typeenum: url, iframe_pixel, image_pixel, javascript_pixel
methodenum: GET, POST, PUT, PATCH, DELETE
url_templatestring
body_templatestring
headersobject (free-form)
statusenum: active, pending, paused, disabled
allowed_conversion_statusesarray of enum: pending, approved, rejected, cancelled, extended, flagged, scrubbed
block_zero_payoutboolean
fire_onarray of enum: create, status_change, payout_change, reversal
delay_secondsinteger
retry_policyobject (free-form)
StatusDescriptionBody
200okapplication/json Postback
defaulterrorapplication/json Error
bash
curl -X PATCH 'https://api.metrixed.com/v1/postbacks/<id>' \
  -H "Authorization: Bearer $DT_API_KEY" \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  --data-raw '{"partner_id":"","offer_id":"","goal_id":"","event_scope":"conversion"}'

Example 200 response:

json
{
  "external_ref": ""
}

DELETE /postbacks/{id}

Delete Postback

Operation deletePostbacksId. Auth: API key (Bearer) or session cookie.

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
204okapplication/json Ok
defaulterrorapplication/json Error
bash
curl -X DELETE 'https://api.metrixed.com/v1/postbacks/<id>' \
  -H "Authorization: Bearer $DT_API_KEY" \
  -H 'Accept: application/json'

Example 204 response:

json
{
  "ok": false
}

POST /postbacks/{id}/test

Send a test postback

Operation postPostbacksIdTest. Auth: API key (Bearer) or session cookie.

ParameterInTypeRequiredDescription
idpathstringyes

Request body (application/json, required): ConversionCreate

FieldTypeFlagsDescription
conversion_idstring
click_idstring
impression_idstring
txn_idstring
order_idstring
conversion_typeenum: base, goal, event, upsell, rebill, refund, chargeback, adjustment
goal_idstring
goal_keystring
offer_idstring
partner_idstring
advertiser_idstring
landing_page_idstring
creative_idstring
coupon_codestring
tsstring (date-time)
click_tsstring (date-time)
ctit_secondsinteger
statusenum: pending, approved, rejected, cancelled, extended, flagged, scrubbed
status_reasonstring
status_sourcestring
is_hidden_from_partnerboolean
payoutstringdecimal string
revenuestringdecimal string
sale_amountstringdecimal string
currencystring
fx_ratestringdecimal string
profitstringdecimal string
advobject (free-form)adv1..adv10
paramsobject (free-form)sub1..sub15, source, ...
methodenum: postback, pixel, iframe, js, sdk, s2s, coupon, manual, import
attributionobject (free-form)model, touch, confidence, is_organic
ipstring
click_ipstring
geoobject (free-form)
deviceobject (free-form)
user_idstring
fraudobject (free-form)score, reasons, rule_ids
is_testboolean
raw_requeststring
historyarray of object (free-form)
StatusDescriptionBody
200okapplication/json LogSearchResult
defaulterrorapplication/json Error
bash
curl -X POST 'https://api.metrixed.com/v1/postbacks/<id>/test' \
  -H "Authorization: Bearer $DT_API_KEY" \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  --data-raw '{"conversion_id":"","click_id":"","impression_id":"","txn_id":""}'

Example 200 response:

json
{
  "rows": [
    {}
  ],
  "next_cursor": "",
  "has_more": false
}

POST /postbacks/bulk/apply

Bulk edit apply

Operation postPostbacksBulkApply. Auth: API key (Bearer) or session cookie.

Request body (application/json, required): BulkPatch

FieldTypeFlagsDescription
idsarray of stringrequired
patchesarray of objectrequired
StatusDescriptionBody
200okapplication/json BulkPreview
defaulterrorapplication/json Error
bash
curl -X POST 'https://api.metrixed.com/v1/postbacks/bulk/apply' \
  -H "Authorization: Bearer $DT_API_KEY" \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  --data-raw '{"ids":[""],"patches":[{"field":"","value":{}}]}'

Example 200 response:

json
{
  "affected": 0,
  "changes": [
    {}
  ],
  "warnings": [
    ""
  ],
  "token": ""
}

POST /postbacks/bulk/preview

Bulk edit preview

Operation postPostbacksBulkPreview. Auth: API key (Bearer) or session cookie.

Request body (application/json, required): BulkPatch

FieldTypeFlagsDescription
idsarray of stringrequired
patchesarray of objectrequired
StatusDescriptionBody
200okapplication/json BulkPreview
defaulterrorapplication/json Error
bash
curl -X POST 'https://api.metrixed.com/v1/postbacks/bulk/preview' \
  -H "Authorization: Bearer $DT_API_KEY" \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  --data-raw '{"ids":[""],"patches":[{"field":"","value":{}}]}'

Example 200 response:

json
{
  "affected": 0,
  "changes": [
    {}
  ],
  "warnings": [
    ""
  ],
  "token": ""
}

POST /postbacks/search

Search Postbacks (advanced)

Operation postPostbacksSearch. Auth: API key (Bearer) or session cookie.

Request body (application/json, required): SearchRequest

FieldTypeFlagsDescription
filtersarray of object
searchstring
sortarray of object (free-form)
pageinteger
page_sizeinteger
includearray of string
StatusDescriptionBody
200okapplication/json PostbackList
defaulterrorapplication/json Error
bash
curl -X POST 'https://api.metrixed.com/v1/postbacks/search' \
  -H "Authorization: Bearer $DT_API_KEY" \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  --data-raw '{"filters":[{}],"search":"","sort":[{}],"page":0}'

Example 200 response:

json
{
  "data": [
    {}
  ],
  "page": {}
}