Skip to content

Turn workspace Files into pages

POST
/v1/workspaces/{workspaceId}/assets/to-artifacts
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.

workspaceId
required
string

Workspace ID or slug.

Media typeapplication/json
object
dryRun
boolean
limit
integer
default: 3 >= 1 <= 10
retry

Clear the marks on files kept for an error and try them again.

boolean

The batch (converted, kept, inProgress, remaining), or with dryRun the plan (files[] with convertible and inUse).

Media typeapplication/json
object
converted
Array<object>
object
id
string
name
string
artifactId
string
slug
string
kept
Array<object>
object
id
string
name
string
code
string
message
string
inProgress

Files another call is converting right now; they finish there.

integer
remaining
integer
files

Only with dryRun.

Array<object>
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

Media typeapplication/json
object
success
required
boolean
error
required

Human-readable message.

string
code
required

Machine-readable error code.

string
request_id

Correlation id (also the X-Request-Id header). Quote it in support tickets.

string
reason

Finer cause under code. For UNAUTHORIZED: missing, invalid, revoked or expired.

string
hint

What to do next, in plain words.

string
suggestion
string
param

The request field at fault.

string
docs

Doc page for this error.

string
redirect_url
string
support

Present on 5xx — how to reach a human.

object
how
string
include
Array<string>

Example

{
"success": false,
"support": {
"how": "POST /v1/support/tickets",
"include": [
"request_id"
]
}
}