Threads API
Download the result archive
Download the saved result as a gzipped tar archive.
/api/v1/tasks/{taskId}/result/{backupId}/archiveUse the archivePath from Get the saved result rather than building the path yourself. If the thread saved a newer result since you read the manifest, the download answers 409: read the manifest again and download the new path.
Requires a personal API token with the tasks:read scope, sent as Authorization: Bearer over HTTPS.
Path parameters
taskIdstring (UUID)requiredThe thread. A thread that is not yours answers 404, never 403.
backupIdstring (UUID)requiredresult.backupIdfrom the manifest.
Returns
200 OK with application/gzip, saved as statefold-result.tar.gz. It holds repo/ and changes.patch.
Errors
Errors are JSON: { "version": 1, "error": { "code", "message" } }. See Errors for retry advice.
- 400
invalid_request The thread id is not a UUID.
- 401
unauthorized The bearer token is missing, invalid or revoked.
- 403
forbidden The token does not have the
tasks:readscope, or the account is suspended.- 404
not_found The thread is not yours, or it has no saved result.
- 409
conflict A newer result was saved. Fetch the manifest again.
- 503
unavailable The archive is missing, incomplete or over the 4 GiB limit.