ExportData
curl --request POST \
--url https://api.siftstack.com/api/v1/export \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"outputFormat": "EXPORT_OUTPUT_FORMAT_UNSPECIFIED",
"exportOptions": {
"useLegacyFormat": true,
"simplifyChannelNames": true,
"combineRuns": true,
"splitExportByAsset": true,
"splitExportByRun": true
},
"channelIds": [
"<string>"
],
"calculatedChannelConfigs": [
{
"name": "<string>",
"expression": "<string>",
"channelReferences": [
{
"channelReference": "<string>",
"channelIdentifier": "<string>"
}
],
"units": "<string>"
}
]
}
'import requests
url = "https://api.siftstack.com/api/v1/export"
payload = {
"outputFormat": "EXPORT_OUTPUT_FORMAT_UNSPECIFIED",
"exportOptions": {
"useLegacyFormat": True,
"simplifyChannelNames": True,
"combineRuns": True,
"splitExportByAsset": True,
"splitExportByRun": True
},
"channelIds": ["<string>"],
"calculatedChannelConfigs": [
{
"name": "<string>",
"expression": "<string>",
"channelReferences": [
{
"channelReference": "<string>",
"channelIdentifier": "<string>"
}
],
"units": "<string>"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.siftstack.com/api/v1/export"
payload := strings.NewReader("{\n \"outputFormat\": \"EXPORT_OUTPUT_FORMAT_UNSPECIFIED\",\n \"exportOptions\": {\n \"useLegacyFormat\": true,\n \"simplifyChannelNames\": true,\n \"combineRuns\": true,\n \"splitExportByAsset\": true,\n \"splitExportByRun\": true\n },\n \"channelIds\": [\n \"<string>\"\n ],\n \"calculatedChannelConfigs\": [\n {\n \"name\": \"<string>\",\n \"expression\": \"<string>\",\n \"channelReferences\": [\n {\n \"channelReference\": \"<string>\",\n \"channelIdentifier\": \"<string>\"\n }\n ],\n \"units\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"presignedUrl": "<string>",
"jobId": "<string>"
}{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}ExportService
ExportData
Export data.
POST
/
api
/
v1
/
export
ExportData
curl --request POST \
--url https://api.siftstack.com/api/v1/export \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"outputFormat": "EXPORT_OUTPUT_FORMAT_UNSPECIFIED",
"exportOptions": {
"useLegacyFormat": true,
"simplifyChannelNames": true,
"combineRuns": true,
"splitExportByAsset": true,
"splitExportByRun": true
},
"channelIds": [
"<string>"
],
"calculatedChannelConfigs": [
{
"name": "<string>",
"expression": "<string>",
"channelReferences": [
{
"channelReference": "<string>",
"channelIdentifier": "<string>"
}
],
"units": "<string>"
}
]
}
'import requests
url = "https://api.siftstack.com/api/v1/export"
payload = {
"outputFormat": "EXPORT_OUTPUT_FORMAT_UNSPECIFIED",
"exportOptions": {
"useLegacyFormat": True,
"simplifyChannelNames": True,
"combineRuns": True,
"splitExportByAsset": True,
"splitExportByRun": True
},
"channelIds": ["<string>"],
"calculatedChannelConfigs": [
{
"name": "<string>",
"expression": "<string>",
"channelReferences": [
{
"channelReference": "<string>",
"channelIdentifier": "<string>"
}
],
"units": "<string>"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.siftstack.com/api/v1/export"
payload := strings.NewReader("{\n \"outputFormat\": \"EXPORT_OUTPUT_FORMAT_UNSPECIFIED\",\n \"exportOptions\": {\n \"useLegacyFormat\": true,\n \"simplifyChannelNames\": true,\n \"combineRuns\": true,\n \"splitExportByAsset\": true,\n \"splitExportByRun\": true\n },\n \"channelIds\": [\n \"<string>\"\n ],\n \"calculatedChannelConfigs\": [\n {\n \"name\": \"<string>\",\n \"expression\": \"<string>\",\n \"channelReferences\": [\n {\n \"channelReference\": \"<string>\",\n \"channelIdentifier\": \"<string>\"\n }\n ],\n \"units\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"presignedUrl": "<string>",
"jobId": "<string>"
}{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Available options:
EXPORT_OUTPUT_FORMAT_UNSPECIFIED, EXPORT_OUTPUT_FORMAT_CSV, EXPORT_OUTPUT_FORMAT_SUN Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Response
A successful response.
Was this page helpful?
⌘I