Turn workspace Files into pages
const url = 'https://shareout.site/v1/workspaces/example/assets/to-artifacts';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"dryRun":true,"limit":3,"retry":true}'};
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://shareout.site/v1/workspaces/example/assets/to-artifacts \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "dryRun": true, "limit": 3, "retry": true }'Owners/admins. Each convertible file becomes a page by its owner, in its folder, and the file is soft-deleted; a file a page embeds is kept (IN_USE). Bounded per call: repeat until remaining is 0. Safe to repeat while a call is still running: a file is claimed before it is transcribed, a claimed file is left to that call (inProgress), and a claim left by a call that died is taken over after 15 minutes without making a second page. dryRun: true lists what would be converted and writes nothing.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Workspace ID or slug.
Request Body
Section titled “Request Body”object
Clear the marks on files kept for an error and try them again.
Responses
Section titled “Responses”The batch (converted, kept, inProgress, remaining), or with dryRun the plan (files[] with convertible and inUse).
object
object
object
Files another call is converting right now; they finish there.
Only with dryRun.
object
Example generated
{ "converted": [ { "id": "example", "name": "example", "artifactId": "example", "slug": "example" } ], "kept": [ { "id": "example", "name": "example", "code": "example", "message": "example" } ], "inProgress": 1, "remaining": 1, "files": [ {} ]}Access denied
object
Human-readable message.
Machine-readable error code.
Correlation id (also the X-Request-Id header). Quote it in support tickets.
Finer cause under code. For UNAUTHORIZED: missing, invalid, revoked or expired.
What to do next, in plain words.
The request field at fault.
Doc page for this error.
Present on 5xx — how to reach a human.
object
Example
{ "success": false, "support": { "how": "POST /v1/support/tickets", "include": [ "request_id" ] }}