Skip to content

Raw conversions

POST
/v1/report/raw/conversions
curl --request POST \
--url 'https://restapi.affattr.com/v1/report/raw/conversions?time_format=rfc3339' \
--header 'API-KEY: <API-KEY>' \
--header 'Content-Type: application/json' \
--data '{ "app_id": [ 123 ], "blocked_reason": [ "example" ], "cap_id": [ 1 ], "conversions_type": [ "example" ], "non_organic_only": true, "order": [ "-created_at" ], "package_name": [ "example" ], "pagination": { "limit": 1000, "offset": 0 }, "time_format": "rfc3339", "time_window": { "from_not_include": false, "from_rfc3339": "2026-11-01T00:00:00Z", "to_include": false, "to_rfc3339": "2026-11-02T00:00:00Z" } }'

Conversions (postbacks to partners) of the applications, by created_at of the conversion, the blocked ones included unless blocked_reason filters them out. Client API key only.

time_format
string
Allowed values: rfc3339 proto

Format of the dates of the answer

Request

Media type application/json
object
app_id

Applications by id. Empty together with package_name: every application of the key.

Array<integer>
Example
[
123
]
blocked_reason

Why the conversion was blocked: geo, fraud, cap, or "" for a regular one. Empty list: all.

Array<string>
cap_id

Conversion caps the conversion went over, 0 for the ones no cap fired on.

Array<integer>
conversions_type

Conversion types.

Array<string>
non_organic_only

Only conversions of non-organic installs.

boolean
order

Sort fields, a name or “-name” for descending; any other value is 400. Fields: created_at, id, conversion_type, event_time, inapp_event_time, app_id, partner_id, payouts, affise_device_id. Default: created_at.

Array<string>
Example
[
"-created_at"
]
package_name

Applications by package name.

Array<string>
pagination

Page of the answer.

object
limit

Rows in the page: 10 when pagination is absent, 1000 when limit is 0, at most 10000.

integer
Example
1000
offset

Rows to skip.

integer
Example
0
time_format

Format of the dates of the answer: rfc3339 (default) or proto ({“seconds”,“nanos”}). Also accepted as a query parameter.

string
Allowed values: rfc3339 proto
time_window
required

Window by created_at of the conversion. Required.

object
from_not_include

Exclude the start of the window. By default it is included.

boolean
Example
false
from_rfc3339

Window start, RFC 3339. Without a zone the time is UTC, a date alone is its midnight UTC. Absent, unparsable or in the future: now.

string
Example
2026-11-01T00:00:00Z
to_include

Include the end of the window. By default it is excluded.

boolean
Example
false
to_rfc3339

Window end, RFC 3339, same rules as from_rfc3339. Absent, unparsable or in the future: now.

string
Example
2026-11-02T00:00:00Z

Conversions

Media type application/json
object
conversions
Array<object>
object
blocked_reason

Geo, fraud or cap; absent for a regular conversion.

string
cap_id

Conversion cap the conversion went over; absent when no cap fired.

integer
conversion_type
string
created_at

Time the conversion was created, UTC. The window of the report applies to it.

string format: date-time
currency
string
event
object
category
string
created_at

Time the row was written to the storage, UTC. Rewritten on reattribution.

string format: date-time
data
string
data_timestamp

Not filled by the report.

string format: date-time
environment

“sandbox” for a test device, “production” otherwise; empty means production.

string
Allowed values: production sandbox
first_for_user
boolean
id

Affise_event_id: id of the event, unique within the install.

string
info
object
created_at

Time the row was written to the storage, UTC. Rewritten on reattribution: do not page by it.

string format: date-time
device
object
affise_device_id
string
affise_pkg_app_name
string
app_id
integer
click_affise
object
app_id
integer
campaign_id
string
campaign_name
string
click_id
string
created_at

Time of the click, UTC.

string format: date-time
creative_id
string
gaid

GAID the ad network passed in the tracking link.

string
geo
object
city
string
connection_type

0 unknown, 2 dialup, 3 cable/DSL, 4 corporate, 5 cellular, 6 Wi-Fi.

integer
Allowed values: 0 2 3 4 5 6
country

ISO 3166-1 alpha-2.

string
isp
string
region
string
idfa

IDFA the ad network passed in the tracking link.

string
ip
string
network_id
string
network_name
string
original_params

Query parameters of the tracking link as received.

object
key
additional properties
string
partner_name
string
pub_click_id
string
site_id
string
subs
object
sub1
string
sub2
string
sub3
string
sub4
string
sub5
string
tracker_id
string
tracker_name
string
uri

Tracking link the click came by.

string
user_agent
string
click_facebook
object
account_id
integer
ad_id
integer
ad_objective_name
string
adgroup_id
integer
adgroup_name
string
campaign_group_id
integer
campaign_group_name
string
campaign_id
integer
campaign_name
string
click_google
object
ad_event_id
string
ad_group
string
ad_group_id
integer
ad_group_name
string
ad_id
integer
ad_name
string
ad_type
string
campaign_id
integer
campaign_name

Campaign name.

string
campaign_type
string
click_date

Time of the ad interaction as Google reports it, UTC.

string format: date-time
conversion_metric
string
creative_id
integer
customer_id
integer
gclid
string
interaction_type
string
keyword
string
location
integer
match_type
string
network_subtype
string
network_type
string
placement
string
timestamp

Time of the attributed conversion as Google reports it, UTC.

string format: date-time
video_id
string
customer_user_id
string
device_parameters
object
adid

IDFA.

string
android_id
string
device_name
string
device_type
string
gaid_adid

GAID.

string
idfv
string
odm_info
string
os_name
string
os_version
string
platform
string
referrer

Install referrer.

string
first_open_time

First launch of the app after the install, from the SDK (or add_event), UTC.

string format: date-time
install_source

0 unknown, 1 Google, 2 Apple, 3 Affise.

integer
Allowed values: 0 1 2 3
is_organic
boolean
is_probabilistic
boolean
language
string
partner_id

Attributed partner, absent for organic. For an agency key: the parent partner of the agency.

integer
random_user_id

Changes on every reinstall: affise_device_id + random_user_id identify an install.

string
timezone_dev
string
geo
object
city
string
connection_type

0 unknown, 2 dialup, 3 cable/DSL, 4 corporate, 5 cellular, 6 Wi-Fi.

integer
Allowed values: 0 2 3 4 5 6
country

ISO 3166-1 alpha-2.

string
isp
string
region
string
ip
string
received_at

Time the postback (or the add_event request) was received, UTC.

string format: date-time
timestamp

Created_time of the postback, UTC. See the Time section.

string format: date-time
user_agent
string
uuid

Id of the postback.

string
name

Event name (client event name, if set).

string
parameters_number

Numeric parameters of the event (affise_p_*), zeros omitted.

object
key
additional properties
number format: float64
parameters_string

String parameters of the event (affise_p_*).

object
key
additional properties
string
timestamp

Affise_event_timestamp: time of the event, UTC. The window of the report applies to it.

string format: date-time
user_data
string
id
string
original_cost

Payout before the cap actions.

number
payouts

Payout to the partner.

number
postback_urls
Array<string>
Example
{
"conversions": [
{
"event": {
"environment": "production",
"info": {
"device": {
"affise_device_id": "0b5b4d0e-7d4c-4a3c-9f62-2f7a1d1c0c11",
"click_affise": {
"created_at": "2026-11-01T10:00:00.123Z",
"geo": {
"connection_type": 0,
"country": "DE"
}
},
"device_parameters": {
"platform": "android"
},
"first_open_time": "2026-11-01T10:05:00Z",
"install_source": 0,
"random_user_id": "9a4f0f5e-31d2-4c5b-8a0b-7e7d0f1c2b3a"
},
"geo": {
"connection_type": 0,
"country": "DE"
}
},
"name": "Purchase",
"timestamp": "2026-11-01T10:07:00Z"
}
}
]
}

Bad request

Media type application/json
object
error

What went wrong. 403 always says “Access denied”.

string
request_id

Id of the request, to quote to support.

string
Example
{
"error": "Access denied",
"request_id": "6ebb1a30-76ef-42fe-8ba8-c423791de78e"
}

No credentials (answered with 403 until default-deny is enabled)

Media type application/json
object
error

What went wrong. 403 always says “Access denied”.

string
request_id

Id of the request, to quote to support.

string
Example
{
"error": "Access denied",
"request_id": "6ebb1a30-76ef-42fe-8ba8-c423791de78e"
}

Invalid credentials or no access, an agency key too

Media type application/json
object
error

What went wrong. 403 always says “Access denied”.

string
request_id

Id of the request, to quote to support.

string
Example
{
"error": "Access denied",
"request_id": "6ebb1a30-76ef-42fe-8ba8-c423791de78e"
}

Internal server error

Media type application/json
object
error

What went wrong. 403 always says “Access denied”.

string
request_id

Id of the request, to quote to support.

string
Example
{
"error": "Access denied",
"request_id": "6ebb1a30-76ef-42fe-8ba8-c423791de78e"
}