Exports
List and get exported Social BI reports and dashboards, and download their files.
Oktopost lets you export reports and dashboards in multiple formats: user-friendly formats for sharing with colleagues (PDF, PPT, Excel) or raw data formats for ingestion into external BI systems (CSV). The Exports endpoint provides access to files generated from your Social BI reports and dashboards. Use these endpoints to retrieve export details, download files, and manage your exported reports.
To create exports, use the Oktopost user interface. This endpoint retrieves previously generated export files.
List Exports
Retrieve all exports in the account.
GET /v2/bi-export
Parameters
Prop
Type
See Pagination for shared behavior.
Example Request
curl -X GET "https://api.oktopost.com/v2/bi-export" \
-u ACCOUNT_ID:API_KEYExample Response
{
"Result": true,
"Exports": [
{
"Id": "032000000000001",
"DestinationType": "email",
"Destination": {
"Email": "john.doe@example.com",
"FirstName": "John",
"LastName": "Doe"
},
"Type": "Posts",
"Frequency": "Every day at 10:00 AM",
"TimeRange": "Last 30 Days",
"Status": "active"
}
],
"Total": 30
}The shape of Destination depends on DestinationType:
// azure
{
"AccountName": "Acme",
"Container": "AcmeContainer"
},
// email
{
"Email": "john.doe@example.com",
"FirstName": "John",
"LastName": "Doe"
},
// FTP
{
"Host": "ftp.example.com",
"Port" :21,
"Timeout" :10,
"Directory": "path/to/destination",
"Username": "",
"Password": ""
},
// SFTP
{
"Host": "sftp.example.com",
"Port" :21,
"Timeout" :10,
"Directory": "path/to/destination",
"Username": "",
"Password": ""
},
// S3_bucket
{
"BucketName": "AcmeBucket",
"Path": "path/to/destination"
}Get Export
Retrieve the metadata for a single export and a temporary link to download its last file.
GET /v2/bi-export/:exportId
Parameters
Prop
Type
Example Request
curl -X GET "https://api.oktopost.com/v2/bi-export/032000000000001" \
-u ACCOUNT_ID:API_KEYExample Response
{
"Result": true,
"Export": {
"Id": "032000000000001",
"DestinationType": "Email",
"Destination": {
"Email": "john.doe@example.com",
"FirstName": "John",
"LastName": "Doe"
},
"Type": "Posts",
"Frequency": "Every day at 10 AM",
"TimeRange": "Last 30 Days",
"Status": "inactive",
"LastRunDate": "2020-07-27 08:31:45",
"LastRunFile": "https://com-oktopost-bi-export.s3.amazonaws.com/001000000000001/..."
}
}