Skip to main content
POST

Authorizations

Authorization
string
header
default:App
required

This is the most secure authorization type and the one with the most flexibility.

API keys can be generated by calling the dedicated API method. Furthermore, API keys can have a limited scope and cover only some API methods. Lastly, they can be revoked at any time. This range of possibilities makes API keys well suited for separating the API access rights across multiple applications or use cases. Finally, the loss of an API key is easily manageable.

You can manage your API keys from GUI, or programmatically with dedicated API.

API key Authorization header example:

Body

application/json
roleArn
string
required
write-only

AWS role ARN for accessing S3 bucket. Accepted format: arn:aws:iam::account:role/role-name-with-path. Must apply character rules as referenced in AWS documentation.

bucket
string
required
write-only

AWS S3 bucket name. Must only contain safe characters, as defined in AWS documentation.

region
string
required
write-only

AWS S3 client region.

startTime
string
required
write-only

Start time of the export query. Accepted format: yyyy-MM-dd'T'HH:mm:ss.SSSZ, e.g. 2022-03-01T01:00:00.000+0000. Must be earlier than the current time and endTime, but no more than 1 year ago. startTime and endTime must be at most 24 hours apart.

endTime
string
required
write-only

End time of the export query. Accepted format: yyyy-MM-dd'T'HH:mm:ss.SSSZ, e.g. 2022-03-01T01:00:00.000+0000. Must be earlier than the current time, and later than startTime. startTime and endTime must be at most 24 hours apart.

directoryPath
string
write-only

AWS S3 directory path. Use directory/ or a nested directory path dir1/dir2/directory/. Must only contain safe characters or an equal sign, as defined in AWS documentation.

definitionIdList
string[]
write-only

An optional list of definitionIds to use as a whitelist filter for exported events. Accepted format: ["definitionId", "definitionId"], e.g. ["formSubmitted", "sms*"]. A wildcard character '*' may be used to match any number of characters in the definitionId. A list of all valid definitionIds can be obtained from the Get list of event definitions endpoint. The total number of matched definitionIds, after wildcard expansion, may not exceed 200. To export all events without filtering, do not specify a definitionIdList.

Maximum array length: 200
enrichWithMomentsInfo
boolean
write-only

If set to true, additional information, namely the campaign name, Flow's element name (if applicable), and the campaign start date and time are added to all existing events related to Moments. Defaults to false.

Response

Accepted

requestId
string
required
read-only

Event export request ID.