Fetch ciphertext bytes for a public link
const url = 'https://api.voidfs.com/v1/links/00000000000000000000000000000001/objects/0000000000000000000000000000000000000000000000000000000000000000';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.voidfs.com/v1/links/00000000000000000000000000000001/objects/0000000000000000000000000000000000000000000000000000000000000000Returns a ciphertext object or byte range from an object named by the link’s current envelope.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”16-byte public link ID in lowercase hex.
Example
0000000000000000000000000000000116-byte public link ID in lowercase hex.
32-byte ciphertext object ID in lowercase hex.
Example
000000000000000000000000000000000000000000000000000000000000000032-byte ciphertext object ID in lowercase hex.
Header Parameters
Section titled “Header Parameters”Single byte range (RFC 9110), for example bytes=0-65535. Ranges larger than 1048576 bytes are capped to 1048576 bytes; objects larger than 1048576 bytes require Range.
Strong ETag required to match before serving the representation (412 on mismatch).
Strong ETag from an earlier response to revalidate.
Strong ETag that must match to apply Range; otherwise the full object is served.
Responses
Section titled “Responses”Full ciphertext object bytes (for objects up to 1 MiB when Range is omitted).
Example
opaque-ciphertext-bytesHeaders
Section titled “Headers”Ciphertext byte range.
Example
opaque-ciphertext-range-bytesHeaders
Section titled “Headers”The copy named by If-None-Match is current.
Headers
Section titled “Headers”Invalid request. Conflicting credentials.
object
Problem type URI
HTTP status code
Short summary of the problem type
Human-readable explanation
Examples
{ "type": "https://docs.voidfs.com/errors/#invalid", "title": "Invalid request", "status": 400, "instance": "urn:uuid:4bf92f35-77b3-4da6-a3ce-929d0e0e4736", "error": "invalid", "category": "invalid-input"}{ "type": "https://docs.voidfs.com/errors/#conflicting-credentials", "title": "Conflicting credentials", "status": 400, "instance": "urn:uuid:4bf92f35-77b3-4da6-a3ce-929d0e0e4736", "error": "conflicting-credentials", "category": "invalid-input"}Origin not allowed. Not allowed.
object
Problem type URI
HTTP status code
Short summary of the problem type
Human-readable explanation
Examples
{ "type": "https://docs.voidfs.com/errors/#origin", "title": "Origin not allowed", "status": 403, "instance": "urn:uuid:4bf92f35-77b3-4da6-a3ce-929d0e0e4736", "error": "origin", "category": "forbidden"}{ "type": "https://docs.voidfs.com/errors/#forbidden", "title": "Not allowed", "status": 403, "instance": "urn:uuid:4bf92f35-77b3-4da6-a3ce-929d0e0e4736", "error": "forbidden", "category": "forbidden"}Not found.
object
Problem type URI
HTTP status code
Short summary of the problem type
Human-readable explanation
Examples
{ "type": "https://docs.voidfs.com/errors/#not-found", "title": "Not found", "status": 404, "instance": "urn:uuid:4bf92f35-77b3-4da6-a3ce-929d0e0e4736", "error": "not-found", "category": "not-found"}Method not allowed.
object
Problem type URI
HTTP status code
Short summary of the problem type
Human-readable explanation
Examples
{ "type": "https://docs.voidfs.com/errors/#method-not-allowed", "title": "Method not allowed", "status": 405, "instance": "urn:uuid:4bf92f35-77b3-4da6-a3ce-929d0e0e4736", "error": "method-not-allowed", "category": "invalid-input"}Headers
Section titled “Headers”Precondition failed.
object
Problem type URI
HTTP status code
Short summary of the problem type
Human-readable explanation
Examples
{ "type": "https://docs.voidfs.com/errors/#precondition-failed", "title": "Precondition failed", "status": 412, "instance": "urn:uuid:4bf92f35-77b3-4da6-a3ce-929d0e0e4736", "error": "precondition-failed", "category": "conflict"}Range not satisfiable.
object
Problem type URI
HTTP status code
Short summary of the problem type
Human-readable explanation
Examples
{ "type": "https://docs.voidfs.com/errors/#range-not-satisfiable", "title": "Range not satisfiable", "status": 416, "instance": "urn:uuid:4bf92f35-77b3-4da6-a3ce-929d0e0e4736", "error": "range-not-satisfiable", "category": "invalid-input"}Headers
Section titled “Headers”Rate limit exceeded.
object
Problem type URI
HTTP status code
Short summary of the problem type
Human-readable explanation
Examples
{ "type": "https://docs.voidfs.com/errors/#rate-limit", "title": "Rate limit exceeded", "status": 429, "instance": "urn:uuid:4bf92f35-77b3-4da6-a3ce-929d0e0e4736", "error": "rate-limit", "category": "rate-limited"}Headers
Section titled “Headers”Seconds before retrying when storage is under pressure.
Unavailable.
object
Problem type URI
HTTP status code
Short summary of the problem type
Human-readable explanation
Examples
{ "type": "https://docs.voidfs.com/errors/#unavailable", "title": "Unavailable", "status": 500, "instance": "urn:uuid:4bf92f35-77b3-4da6-a3ce-929d0e0e4736", "error": "unavailable", "category": "unavailable"}Unavailable.
object
Problem type URI
HTTP status code
Short summary of the problem type
Human-readable explanation
Examples
{ "type": "https://docs.voidfs.com/errors/#unavailable", "title": "Unavailable", "status": 503, "instance": "urn:uuid:4bf92f35-77b3-4da6-a3ce-929d0e0e4736", "error": "unavailable", "category": "unavailable"}