Create a job
const url = 'https://shareout.site/v1/jobs';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"artifact_id":"art_abc123","action":"email","trigger_type":"cron","schedule":"0 9 * * 1","config":{"recipients":["team@company.com"],"subject":"Weekly report","includeArtifactLink":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/jobs \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "artifact_id": "art_abc123", "action": "email", "trigger_type": "cron", "schedule": "0 9 * * 1", "config": { "recipients": [ "team@company.com" ], "subject": "Weekly report", "includeArtifactLink": true } }'Schedule a recurring (cron) or event-driven task.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
Required for cron jobs.
Required for event jobs.
Action-specific configuration.
object
object
Examples
Weekly email
{ "artifact_id": "art_abc123", "action": "email", "trigger_type": "cron", "schedule": "0 9 * * 1", "config": { "recipients": [ "team@company.com" ], "subject": "Weekly report", "includeArtifactLink": true }}Responses
Section titled “Responses”Created
object
object
Cron expression (cron jobs only).
object
ISO 8601; null for event-triggered jobs.
Example
{ "job": { "action": "email", "trigger_type": "cron", "event_type": "artifact.updated" }}Invalid request
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" ] }}No access to the artifact, or a viewer scheduling delivery to someone other than themselves (viewers may only send to their own email, their own Telegram, or a Slack DM to themselves).
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" ] }}