application/json
TypeScript Definitions
Use the request body type in TypeScript.
A calendar date, YYYY-MM-DD, in the report time zone.
Value in
A calendar date, YYYY-MM-DD, in the report time zone.
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/projects/string/analytics/reports/acquisition-cohorts" \ -H "Content-Type: application/json" \ -d '{ "from": "string", "groupBy": "surface", "to": "string" }'{ "projectId": "string", "groupBy": "surface", "currency": "string", "timezone": "string", "environment": "production", "from": "string", "to": "string", "start": "string", "end": "string", "asOf": "string", "days": [ -9007199254740991 ], "groups": [ { "network": "string", "campaignId": "string", "campaignName": "string", "adsetId": "string", "adsetName": "string", "adId": "string", "adName": "string", "surface": "web", "cohorts": [ { "week": "string", "from": "string", "to": "string", "people": -9007199254740991, "cells": [ { "day": -9007199254740991, "people": -9007199254740991, "payingPeople": -9007199254740991, "grossRevenue": -9007199254740991, "refunds": -9007199254740991, "netRevenue": -9007199254740991, "maturity": "complete" } ] } ] } ], "total": [ { "week": "string", "from": "string", "to": "string", "people": -9007199254740991, "cells": [ { "day": -9007199254740991, "people": -9007199254740991, "payingPeople": -9007199254740991, "grossRevenue": -9007199254740991, "refunds": -9007199254740991, "netRevenue": -9007199254740991, "maturity": "complete" } ] } ]}{ "error": { "type": "invalid_request", "code": "string", "message": "string", "param": "string" }}{ "error": { "type": "unauthenticated", "code": "string", "message": "string", "param": "string" }}{ "error": { "type": "permission_denied", "code": "string", "message": "string", "param": "string" }}{ "error": { "type": "not_found", "code": "string", "message": "string", "param": "string" }}{ "error": { "type": "internal", "code": "string", "message": "string", "param": "string" }}