Skip to content

Start a ZIP export of every card and original file

One export can run at a time, and one can be started every 7 days. Poll GET /v1/exports/latest for progress and the download URL.

POST/v1/exports
Authorization
AuthorizationBearer token (OAuth access token or teakapi_ API key) · headerrequired

Bearer token. Accepts either an OAuth 2.0 access token (obtained via browser sign-in; expires after 1 hour and is refreshable) or a teakapi_ API key.

Responses
202

Export started

jobExportJobrequired
Show properties
idstringrequired
statusstringrequired
Allowed:pendingrunningreadyfailedcanceledexpired
stagestring | null
Allowed:snapshottingarchivingnull
processedCountnumber | null
cardCountnumber | null
filesIncludednumber | null
filesOmittednumber | null
sizeBytesnumber | null
failureClassstring | null
createdAtnumberrequired
updatedAtnumberrequired
completedAtnumber | null
expiresAtnumber | null
downloadUrlstring | nullrequired

Short-lived signed URL for the ZIP, present while the export is ready and not expired.

409

An export is already running; body includes job

429

An export already ran in the last 7 days; retryAt and Retry-After say when the next can start

Try it
Server
Authorization
Request
curl -X POST 'https://teakvault.com/api/v1/exports' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json'
Response
{
  "job": {
    "id": "string",
    "status": "pending",
    "stage": "snapshotting",
    "processedCount": 0,
    "cardCount": 0,
    "filesIncluded": 0,
    "filesOmitted": 0,
    "sizeBytes": 0,
    "failureClass": "string",
    "createdAt": 0,
    "updatedAt": 0,
    "completedAt": 0,
    "expiresAt": 0,
    "downloadUrl": "string"
  }
}

Was this page helpful?