Download a bulk export
const url = 'https://api.bursary.dev/exports/x7Kp2mQvR8sT4nWyZ1aBcD';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.bursary.dev/exports/x7Kp2mQvR8sT4nWyZ1aBcDRedeems a link minted by POST /v1/exports or by the console and returns the gzipped file. The token is the credential, so this endpoint takes no key and no session — which is what lets a browser follow the link directly.
Spent, expired, and never-issued all answer 410 with the same code. They are not distinguished, because distinguishing them would make this endpoint an oracle for guessing tokens, and because the next step is the same in every case: mint another link.
The body is gzip. Decompress it with anything ordinary — gzip -d, Python’s gzip, Node’s zlib, a browser’s DecompressionStream.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The opaque token from a minted link. Single use.
Example
x7Kp2mQvR8sT4nWyZ1aBcDThe opaque token from a minted link. Single use.
Responses
Section titled “Responses”The file
The request could not be read
object
object
object
object
Example
{ "success": false}No usable credential was presented
object
object
object
object
Example
{ "success": false}The credential does not permit this
object
object
object
object
Example
{ "success": false}No such resource
object
object
object
object
Example
{ "success": false}The request is ambiguous or conflicts with existing state
object
object
object
object
Example
{ "success": false}The request body is not a media type this route declares
object
object
object
object
Example
{ "success": false}The request was read and failed validation
object
object
object
object
Example
{ "success": false}Something failed on our side
object
object
object
object
Example
{ "success": false}