API reference / Operations by tag
tracking
Tracking-link generation, link and postback testers, and the link encoder/decoder.
5 operations. Base URL https://api.metrixed.com/v1; see authentication, errors and pagination.
Operations
| Method | Path | Summary |
|---|---|---|
| POST | /offers/{id}/tracking-link | Generate tracking link |
| POST | /tracking/decode | Decode ids |
| POST | /tracking/encode | Encode ids |
| POST | /tracking/test-link | Resolve a link and explain every decision |
| POST | /tracking/test-postback | Dry-run an inbound postback |
POST /offers/{id}/tracking-link
Generate tracking link
Operation postOffersIdTrackingLink. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Request body (application/json, required): TrackingLinkRequest
| Field | Type | Flags | Description |
|---|---|---|---|
partner_id | string | required | |
tracking_domain_id | string | ||
landing_page_id | string | ||
creative_id | string | ||
style | enum: native, numeric, trackier, everflow, tune, affise, cake, app | ||
params | object (free-form) | sub1.. source etc. | |
deep_link | string | ||
encode_deep_link | boolean | ||
with_qr | boolean | ||
with_pixels | boolean | ||
google_ads_format | boolean | ||
force_transparent | boolean |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json TrackingLinkResult |
| default | error | application/json Error |
curl -X POST 'https://api.metrixed.com/v1/offers/<id>/tracking-link' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data-raw '{"partner_id":""}'
Example 200 response:
{
"url": "",
"impression_url": "",
"click_pixel_html": "",
"impression_pixel_html": ""
}
POST /tracking/decode
Decode ids
Operation postTrackingDecode. Auth: API key (Bearer) or session cookie.
Request body (application/json, required): IdList
| Field | Type | Flags | Description |
|---|---|---|---|
ids | array of string | required |
curl -X POST 'https://api.metrixed.com/v1/tracking/decode' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data-raw '{"ids":[""]}'
Example 200 response:
{
"ids": [
""
]
}
POST /tracking/encode
Encode ids
Operation postTrackingEncode. Auth: API key (Bearer) or session cookie.
Request body (application/json, required): IdList
| Field | Type | Flags | Description |
|---|---|---|---|
ids | array of string | required |
curl -X POST 'https://api.metrixed.com/v1/tracking/encode' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data-raw '{"ids":[""]}'
Example 200 response:
{
"ids": [
""
]
}
POST /tracking/test-link
Resolve a link and explain every decision
Operation postTrackingTestLink. Auth: API key (Bearer) or session cookie.
Request body (application/json, required): TrackingLinkRequest
| Field | Type | Flags | Description |
|---|---|---|---|
partner_id | string | required | |
tracking_domain_id | string | ||
landing_page_id | string | ||
creative_id | string | ||
style | enum: native, numeric, trackier, everflow, tune, affise, cake, app | ||
params | object (free-form) | sub1.. source etc. | |
deep_link | string | ||
encode_deep_link | boolean | ||
with_qr | boolean | ||
with_pixels | boolean | ||
google_ads_format | boolean | ||
force_transparent | boolean |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json LogSearchResult |
| default | error | application/json Error |
curl -X POST 'https://api.metrixed.com/v1/tracking/test-link' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data-raw '{"partner_id":""}'
Example 200 response:
{
"rows": [
{}
],
"next_cursor": "",
"has_more": false
}
POST /tracking/test-postback
Dry-run an inbound postback
Operation postTrackingTestPostback. Auth: API key (Bearer) or session cookie.
Request body (application/json, required): ConversionCreate
| Field | Type | Flags | Description |
|---|---|---|---|
conversion_id | string | ||
click_id | string | ||
impression_id | string | ||
txn_id | string | ||
order_id | string | ||
conversion_type | enum: base, goal, event, upsell, rebill, refund, chargeback, adjustment | ||
goal_id | string | ||
goal_key | string | ||
offer_id | string | ||
partner_id | string | ||
advertiser_id | string | ||
landing_page_id | string | ||
creative_id | string | ||
coupon_code | string | ||
ts | string (date-time) | ||
click_ts | string (date-time) | ||
ctit_seconds | integer | ||
status | enum: pending, approved, rejected, cancelled, extended, flagged, scrubbed | ||
status_reason | string | ||
status_source | string | ||
is_hidden_from_partner | boolean | ||
payout | string | decimal string | |
revenue | string | decimal string | |
sale_amount | string | decimal string | |
currency | string | ||
fx_rate | string | decimal string | |
profit | string | decimal string | |
adv | object (free-form) | adv1..adv10 | |
params | object (free-form) | sub1..sub15, source, ... | |
method | enum: postback, pixel, iframe, js, sdk, s2s, coupon, manual, import | ||
attribution | object (free-form) | model, touch, confidence, is_organic | |
ip | string | ||
click_ip | string | ||
geo | object (free-form) | ||
device | object (free-form) | ||
user_id | string | ||
fraud | object (free-form) | score, reasons, rule_ids | |
is_test | boolean | ||
raw_request | string | ||
history | array of object (free-form) |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json LogSearchResult |
| default | error | application/json Error |
curl -X POST 'https://api.metrixed.com/v1/tracking/test-postback' \
-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:
{
"rows": [
{}
],
"next_cursor": "",
"has_more": false
}