POST
/
api
/
v1
/
analytics
/
exports
Trigger an Export Job
curl --request POST \
  --url https://appex.userpilot.io/api/v1/analytics/exports \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "from": "<string>",
  "to": "<string>",
  "emails": [
    "<string>"
  ],
  "event_type": [
    "<string>"
  ],
  "user_id": [
    "<string>"
  ],
  "company_id": [
    "<string>"
  ],
  "segment_id": "<string>",
  "format": "<string>",
  "exclusions": "<string>"
}'
{
  "environment_app_token": "NX-RE213S2",
  "environment_name": "production",
  "job_id": "123e4567-e89b-12d3-a456-426614174000",
  "links": "<string>",
  "start_time": "<string>"
}

Headers

Authorization
string
required

API authentication token in the format: Token {{API_KEY}}. Obtain your API key from the Userpilot Environment Settings.

Content-Type
string

The content type of the request body. Must be application/json.

Accept
string

The content type of the response body. Must be application/json.

Body

application/json

Response

201
application/json

Created - Export job successfully created

The response is of type object.