Create a job
POST
/v1/jobs
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 Body required
Section titled “Request Body required ” Media type application/json
object
artifact_id
required
string
action
required
string
trigger_type
string
schedule
Required for cron jobs.
string
event_type
Required for event jobs.
string
config
required
Action-specific configuration.
object
retry_config
object
maxAttempts
integer
backoffType
string
initialDelay
integer
Examples
Example weeklyEmail
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
Media type application/json
object
id
string
artifact_id
string
action
string
trigger_type
string
schedule
Cron expression (cron jobs only).
string
event_type
string
config
object
enabled
boolean
next_run_at
integer
last_run_at
integer
last_status
string
created_at
integer
Example
{ "action": "email", "trigger_type": "cron", "event_type": "artifact.updated"}Invalid request
Media type application/json
object
success
required
boolean
error
required
Human-readable message.
string
code
required
Machine-readable error code.
string
Example
{ "success": false}