Register a pending approval
const url = 'https://api.voidfs.com/v1/connected-apps';const options = { method: 'POST', headers: { 'Signature-Input': 'example', 'Content-Digest': 'example', 'User-Agent': 'example', Signature: '<Signature>', 'Content-Type': 'application/json' }, body: '{"signingPublic":"d75a980182b10ab7d54bfed3c964073a0ee172f3daa62325af021a68f707511a","wrappingPublic":"8520f0098930a754748b7ddcb43ef75a0dbf3a0d26381af4eba4a98eaa9b4e6a"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.voidfs.com/v1/connected-apps \ --header 'Content-Digest: example' \ --header 'Content-Type: application/json' \ --header 'Signature: <Signature>' \ --header 'Signature-Input: example' \ --header 'User-Agent: example' \ --data '{ "signingPublic": "d75a980182b10ab7d54bfed3c964073a0ee172f3daa62325af021a68f707511a", "wrappingPublic": "8520f0098930a754748b7ddcb43ef75a0dbf3a0d26381af4eba4a98eaa9b4e6a" }'Signed by the pending app’s own key, without an account. The reply’s code is what the owner types in the web app.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”RFC 9421 signature parameters for a signed request.
RFC 9530 sha-256 digest of the signed content.
voidfs-cli/<major.minor.patch>, the connected app’s version; covered by its signature.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Example
b3c39e4a90f6113318459b5ca1a1cea14ff03c79f236054ed75a15c7acbb9b92Example
b3c39e4a90f6113318459b5ca1a1cea14ff03c79f236054ed75a15c7acbb9b92Example
{ "signingPublic": "d75a980182b10ab7d54bfed3c964073a0ee172f3daa62325af021a68f707511a", "wrappingPublic": "8520f0098930a754748b7ddcb43ef75a0dbf3a0d26381af4eba4a98eaa9b4e6a"}Responses
Section titled “Responses”Pending approval.
object
Example
{ "appId": "b3c39e4a90f6113318459b5ca1a1cea14ff03c79f236054ed75a15c7acbb9b92", "code": "WPBZ-4SUQ-6YIT-GGCF", "expiresAt": "2026-11-27T10:15:00Z"}Headers
Section titled “Headers”Invalid request. Conflicting credentials. Client update required.
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"}{ "type": "https://docs.voidfs.com/errors/#client-outdated", "title": "Client update required", "status": 400, "instance": "urn:uuid:4bf92f35-77b3-4da6-a3ce-929d0e0e4736", "error": "client-outdated", "category": "invalid-input"}Credentials required. Connected-app credential unavailable.
object
Problem type URI
HTTP status code
Short summary of the problem type
Human-readable explanation
Examples
{ "type": "https://docs.voidfs.com/errors/#unauthorized", "title": "Credentials required", "status": 401, "instance": "urn:uuid:4bf92f35-77b3-4da6-a3ce-929d0e0e4736", "error": "unauthorized", "category": "unauthorized"}{ "type": "https://docs.voidfs.com/errors/#connected-app-unavailable", "title": "Connected-app credential unavailable", "status": 401, "instance": "urn:uuid:4bf92f35-77b3-4da6-a3ce-929d0e0e4736", "error": "connected-app-unavailable", "category": "unauthorized"}Headers
Section titled “Headers”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/#forbidden", "title": "Not allowed", "status": 403, "instance": "urn:uuid:4bf92f35-77b3-4da6-a3ce-929d0e0e4736", "error": "forbidden", "category": "forbidden"}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”Unsupported media type.
object
Problem type URI
HTTP status code
Short summary of the problem type
Human-readable explanation
Examples
{ "type": "https://docs.voidfs.com/errors/#unsupported-media-type", "title": "Unsupported media type", "status": 415, "instance": "urn:uuid:4bf92f35-77b3-4da6-a3ce-929d0e0e4736", "error": "unsupported-media-type", "category": "invalid-input"}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"}