Quick start
Create a Partner API token, check it, and pull your first revenue report.
This takes about five minutes. You need Partner API access for your organization (see the introduction) and a dashboard login.
1. Create a token
- Sign in to the dashboard and open Organization > API tokens.
- Create a token with:
- a label that says where it will run, such as
revenue-sync; - the
reporting:readscope; - the default expiry of one year.
- a label that says where it will run, such as
- Copy the token. You see it only once.
2. Store the token
Keep the token on your server, in a secrets manager or an environment variable. Never put it in code that runs in a browser.
export INLINE_API_TOKEN="inl_live_abcd1234_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"This value is a placeholder that shows the shape of a token. See token format.
3. Check the token
GET /v1/ping works with any valid token. It returns your organization and the token's scopes.
curl "https://partner-api.getinline.tech/v1/ping" \
-H "Authorization: Bearer $INLINE_API_TOKEN"{
"data": {
"organization": {
"id": "00000000-0000-4000-8000-000000000002",
"name": "Example Media"
},
"token": {
"key_id": "abcd1234",
"scopes": ["reporting:read"],
"expires_at": "2027-10-24T00:00:00Z"
}
}
}token.key_idmatches the key ID in the dashboard. It is safe to log.token.expires_atis when the token stops working, ornullif it never expires.
A 401 means the token is missing, mistyped, revoked, expired, or for another environment.
4. Pull a revenue report
Ask for one week of revenue. Dates are UTC, and both ends are included.
curl "https://partner-api.getinline.tech/v1/reports/revenue?start_date=2026-10-01&end_date=2026-10-07" \
-H "Authorization: Bearer $INLINE_API_TOKEN"{
"data": [
{
"date": "2026-10-01",
"publisher_id": "00000000-0000-4000-8000-000000000001",
"primary_domain": "example.com",
"gross_revenue": 20.57613,
"net_revenue": 12.345678,
"impressions": 4210,
"currency": "USD",
"is_final": true
}
],
"meta": {
"next_cursor": null,
"data_through": "2026-10-07"
}
}You get one row for each publisher and day. The other six rows are left out above.
gross_revenueis what ad partners paid.net_revenueis your share of it.primary_domainis the publisher's main domain, so you can match rows to your sites without storing Inline IDs.is_final: truemeans ad partners will not revise that date. See when numbers change.meta.next_cursorisnullon the last page. Otherwise, send it ascursorto get the next page.