This endpoint allows direct extraction of collection data in CSV format. Since this endpoint is meant as a data source, to be used in external Business Intelligence tools, no authorization header need to be created for each call.
To successfully invoke this endpoint :
The Account API Key, Bot Token and Bot Secret must be sent in the request header
An active Database package must be active on the target account.
The following request shows how to extract a direct CSV from a collection
curl --location --request GET 'https://<NODE>.xenioo.com/data/direct/<COLLECTIONNAME>/<FIELDS>/<FILTER>' \--header 'account-key: <ACCOUNT API KEY>' \--header 'bot-key: <BOT API KEY>' \--header 'bot-secret: <BOT API SECRET>' \--header 'Content-Type: application/json' \
If successful, this call will return a complete CSV file containing all of the records affected by the supplied filter.
Only the fields specified in the <FIELDS> parameter will be returned. Multiple fields must be separated using a comma. Using * (asterisk) as a value for fields will export only the fields found in the very first record returned by the query.
This endpoint will reply with the following standard HTTP codes.
Ok. The request has been successfully fulfilled.
Bad Request. The call does not contain the data required to be fulfilled.
Not Found. The specified collection has not been found.
Unauthorized. The specified collection cannot be access through API