/api/v1/exports (POST)
POST
/api/v1/exports
const url = 'https://example.com/api/v1/exports';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","scope":{"locationId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"},"options":{"ended":true,"trashed":true,"history":true,"aiCalls":true,"readable":true,"pdf":true,"locale":"en","digits":"western"},"includeSecrets":true,"passphrase":"example","passphraseAgain":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/exports \ --header 'Content-Type: application/json' \ --data '{ "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "scope": { "locationId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }, "options": { "ended": true, "trashed": true, "history": true, "aiCalls": true, "readable": true, "pdf": true, "locale": "en", "digits": "western" }, "includeSecrets": true, "passphrase": "example", "passphraseAgain": "example" }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
id
required
string format: uuid
scope
required
string
locationId
string format: uuid
status
required
string
progress
required
object
done
required
integer
total
required
integer
bytes
integer
sha256
string
includesSecrets
required
boolean
options
required
object
ended
required
boolean
trashed
required
boolean
history
required
boolean
aiCalls
required
boolean
readable
required
boolean
pdf
required
boolean
locale
required
string
digits
required
string
createdAt
required
string
finishedAt
string
expiresAt
string
error
string
fileUrl
string
Example
{ "scope": "location", "status": "queued", "options": { "digits": "western" }}