Use this request to get the statistics of a single App Templates (In-App) campaign. The response includes variants, the control group, uplift, and significance, as the template's analytics page in the InOne panel shows them.
Journey templates are not reported.
Your OAuth 2.0 token must include the mob-get-app-templates-reports scope. See OAuth 2.0 Credentials.
Endpoint and headers
POST https://gw.useinsider.com/api/mob/v2/app-templates/reporting/campaign
Header | Sample Value | Description |
|---|---|---|
Authorization | Bearer {oauth2-token} | Required. An OAuth 2.0 token for a credential with the mob-get-app-templates-reports scope. |
Content-Type | application/json | Required. |
Body parameters
Column | Description | Data Type | Required |
|---|---|---|---|
template_id | The campaign ID, as shown in the panel's App Templates list. This is the usual way to call this endpoint. Send template_id or variation_id, not both. | Integer | One of the two |
variation_id | An alternative to template_id for when you only have the ID of one of the campaign's variants. The response still reports the whole campaign, never a single variant, and applied.template_id shows the campaign ID. | Integer | One of the two |
start_time | The start of the date range as a 10-digit Unix timestamp in seconds. Send both start_time and end_time, or neither. | Integer | No |
end_time | The end of the date range. The API rejects an explicit range over 366 days. As in the panel, a shorter range is limited to the template's first year (created_at plus one year), and a range outside that year is rejected. | Integer | No |
goal_id | One of the template's goals. If missing, the template's first goal is used. A template without goals reports no conversions. | Integer | No |
report_type | "click" (default) or "view" attribution. | String | No |
Without a range, the report covers the template's lifetime up to today in your account's timezone, limited to the template's first year.
Sample request
curl --location 'https://gw.useinsider.com/api/mob/v2/app-templates/reporting/campaign' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {oauth2-token}' \
--data '{
"template_id": 4411,
"start_time": 1767560400,
"end_time": 1769893199,
"report_type": "click"
}'Sample response
{
"applied": {
"template_id": 4411,
"start_time": 1767560400,
"end_time": 1769893199,
"timezone": "Europe/Istanbul",
"goal_id": 1,
"conversion_criteria": "Purchase",
"report_type": "click"
},
"headers": {
"goals": ["Purchase", "add_to_cart"],
"new_goals": [
{ "name": "Purchase", "parameters": [{ "goal_id": 1, "name": "None" }] },
{ "name": "add_to_cart", "parameters": [{ "goal_id": 2, "name": "None" }] }
]
},
"statistics": {
"all": {
"summary": {
"impressions": 3750, "clicks": 360, "conversions": 105, "conversion_rate": 2.8,
"cr_uplift": 40, "incremental_conversions": 30,
"revenue": [{ "currency": "TRY", "revenue": 3000 }],
"incremental_revenue": [{ "currency": "TRY", "revenue": 1500 }, { "currency": "USD", "revenue": 150 }]
},
"chart": { "clicks_by_elements": { "Variant A": { "Page 1": [ { "name": "Button 1 Click", "value": 0, "percentage": 0 } ] } } },
"campaigns": [
{
"id": 4411,
"name": "Welcome Sheet",
"created_at": "2026-01-05 00:00:00",
"has_control_group": true,
"nested": [
{ "id": 44111, "label": "Control Group", "percentage": 20, "is_control_group": true, "statistics": { "...": "" } },
{ "id": 44112, "label": "Variant A", "percentage": 80, "is_control_group": false, "statistics": { "...": "" } }
]
}
]
},
"android": { "...": "same keys as all" },
"ios": { "...": "same keys as all" }
}
}Response fields
Field | Description |
|---|---|
applied | The template, window, timezone, goal, and attribution type the report was calculated with. When you sent variation_id, template_id is its parent. |
headers | The goals the template tracks. Use a goal_id from new_goals. |
statistics.<platform>.summary | The template's totals, with uplift against the control group. |
statistics.<platform>.chart | The clicks by element per variant and page, and the performance chart. |
statistics.<platform>.campaigns | The template row. nested lists each variant and the control group with its own statistics and significance. |
Error responses
Errors 400 (3001 and 3002), 401, 403 (3007), 429, 502 (3003), 503 (3005), and 504 (3006) work as described in Get Overall App Templates Analytics with OAuth 2.0. The following errors are specific to this endpoint.
400 Validation failed (3002): template-specific messages
Field | Message |
|---|---|
template_id | template_id or variation_id is required |
variation_id | cannot be sent together with template_id |
start_time or end_time | is required, when you send only the other one |
end_time | the window is longer than 366 days |
goal_id | must be a positive id, or is not one of the template's goals |
404 Not found (3004)
This status indicates that the template or variation does not exist, or that it belongs to a journey.
{
"message": "not found",
"errorCode": 3004,
"errors": { "template_id": "no reportable campaign has this id" }
}Limitations
An explicit range is at most 366 days, and the template's first year limits it, as in the panel.
Journey templates are not reported.
You can send 600 requests per 60 seconds, with a burst of 10.