For the complete documentation index, see llms.txt. This page is also available as Markdown.

Query Exports

Operations related to Query Exports for exporting data matching a specific OTQL query. Enables flexible data extraction beyond segment-based exports, allowing custom queries to retrieve and export specific user attributes, event data, profiles, or aggregated analytics results to files for external analysis and reporting.

Find exports

get
/exports
Query parameters
organisation_idinteger · int64Required

The organisation id owning the export

keywordsstringOptional

matching export name

namestringOptional

The export name

start_datestringOptional

The export starting date

end_datestringOptional

The export end date

archivedbooleanOptional

Filter archived exports

order_bystring[]Optional

Oredring

label_idsinteger · int64[]Optional

label ids

first_resultinteger · int32Optional

Offset from which the search must be performed

max_resultsinteger · int32Optional

Number of maximum items that shall be return by this search

Responses
200

Success !

application/json
totalintegerRequired
max_resultsintegerRequired
statusstring · enumRequiredPossible values:
countintegerRequired
first_resultintegerRequired
get/exports
GET /v1/exports?organisation_id=1 HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "total": 1,
  "max_results": 1,
  "data": [
    {
      "organisation_id": "text",
      "priority": "LOW",
      "datamart_id": "text",
      "name": "text",
      "id": "text",
      "created_ts": 0,
      "query_id": "text",
      "output_format": "CSV"
    }
  ],
  "status": "ok",
  "count": 1,
  "first_result": 1
}

Create new export

post
/exports
Query parameters
organisation_idinteger · int64Required

The organisation id owning the export

Body
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
post/exports
POST /v1/exports?organisation_id=1 HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 87

{
  "type": "QUERY",
  "priority": "LOW",
  "name": "text",
  "query_id": "text",
  "output_format": "CSV"
}
{
  "status": "ok",
  "data": {
    "type": "QUERY",
    "organisation_id": "text",
    "priority": "LOW",
    "datamart_id": "text",
    "name": "text",
    "id": "text",
    "created_ts": 0,
    "query_id": "text",
    "output_format": "CSV"
  }
}

Last updated

Was this helpful?