Skip to content

Get the latest export and its download URL

GET/v1/exports/latest
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
200

Latest export, or null if there has never been one

jobExportJob | nullrequired
Show properties
One of:
ExportJob
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.

null
null
canStartNewbooleanrequired
nextAvailableAtnumber | nullrequired

When the next export can start, or null if one can start now

Try it
Server
Authorization
Request
curl -X GET 'https://teakvault.com/api/v1/exports/latest' \
  -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"
  },
  "canStartNew": true,
  "nextAvailableAt": 0
}

Was this page helpful?