Skip to content

Schedules API

7 operationsjobs:readjobs:write

Cron schedules that fire a job on every tick, with no overlap, pause and resume, and declarative upsert by name.

GET/schedulesList schedules.
POST/schedulesCreate a cron schedule that fires a job on every tick.
PUT/schedulesCreate or update a schedule by name, for declarative sync.
DELETE/schedules/{scheduleId}Delete a schedule.
GET/schedules/{scheduleId}Get a schedule with its next run time.
PATCH/schedules/{scheduleId}Update, pause or resume a schedule.
POST/schedules/{scheduleId}/runRun a schedule now, by hand, such as a saved flow with input values for this run. Refused while its last run is still queued or running.

List schedules.

GET/v1/schedules
scope jobs:read

Parameters

page
integer
limit
integer
withTotal
boolean
type
string

Response

45 fields
pageOptionsPageResult | null
hasNextboolean
pageinteger (int32)
totalinteger (int64)
resultsSchedule[]
browserBrowserRequest | null
actionsAction[]
envstring[]
inputmap
profileIdstring
timeoutSecondsinteger (int32)
tunnelstring
urlstring
clientRefstring
createdAtinteger (int64)
cronstring
flowFlowRequest | null
inputmap
stepsFlowStep[]
jitterSecondsinteger (int32)
lastRunAtinteger (int64) | null
maxAttemptsinteger (int32)
metadatamap
namestring
nextRunAtinteger (int64) | null
requestHttpRequest | null
bodystring
headersmap
methodstring
timeoutSecondsinteger (int32)
urlstring
scheduleIdstring
scriptScriptRequest | null
envstring[]
runtimestring
sourcestring
timeoutSecondsinteger (int32)
skillsSkillsRequest | null
maxMinutesinteger (int32)
profileIdstring
stepsSkillStep[]
tunnelstring
statusstring
timezonestring
updatedAtinteger (int64)
curl "https://api.hoshime.com/v1/schedules" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "pageOptions": {
    "hasNext": false,
    "page": 0,
    "total": 0
  },
  "results": [
    {
      "browser": null,
      "clientRef": "…",
      "createdAt": 0,
      "cron": "…",
      "flow": null,
      "jitterSeconds": 0,
      "lastRunAt": null,
      "maxAttempts": 0,
      "metadata": {},
      "name": "…",
      "nextRunAt": null,
      "request": null,
      "scheduleId": "abc123",
      "script": null,
      "skills": null,
      "status": "…",
      "timezone": "…",
      "updatedAt": 0
    }
  ]
}

Create a cron schedule that fires a job on every tick.

POST/v1/schedules
scope jobs:write

Request body

browser
BrowserRequest | null
actions
Action[]
env
string[]
input
map
profileId
string
timeoutSeconds
integer (int32)
tunnel
string
url
string
required
cron
string
flow
FlowRequest | null
input
map
steps
FlowStep[]
required
jitterSeconds
integer (int32)
maxAttempts
integer (int32)
metadata
map
name
string
required
request
HttpRequest | null
body
string
headers
map
method
string
required
timeoutSeconds
integer (int32)
url
string
required
script
ScriptRequest | null
env
string[]
runtime
string
required
source
string
required
timeoutSeconds
integer (int32)
skills
SkillsRequest | null
maxMinutes
integer (int32)
profileId
string
steps
SkillStep[]
required
tunnel
string
timezone
string

Response

67 fields
browserBrowserRequest | null
actionsAction[]
heightinteger (int32)
keystring
maxLoopsinteger (int32)
msinteger (int32)
optionalboolean | null
scriptstring
selectorstring
textstring
typestring
urlstring
urlPatternstring
valuesstring[]
widthinteger (int32)
envstring[]
inputmap
profileIdstring
timeoutSecondsinteger (int32)
tunnelstring
urlstring
clientRefstring
createdAtinteger (int64)
cronstring
flowFlowRequest | null
inputmap
stepsFlowStep[]
aiFlowAI | null
browserBrowserRequest | null
checkFlowCheck | null
endpointFlowEndpoint | null
idstring
ifstring
maxAttemptsinteger (int32)
requestHttpRequest | null
scriptScriptRequest | null
skillsSkillsRequest | null
waitFlowWait | null
jitterSecondsinteger (int32)
lastRunAtinteger (int64) | null
maxAttemptsinteger (int32)
metadatamap
namestring
nextRunAtinteger (int64) | null
requestHttpRequest | null
bodystring
headersmap
methodstring
timeoutSecondsinteger (int32)
urlstring
scheduleIdstring
scriptScriptRequest | null
envstring[]
runtimestring
sourcestring
timeoutSecondsinteger (int32)
skillsSkillsRequest | null
maxMinutesinteger (int32)
profileIdstring
stepsSkillStep[]
optionalboolean
paramsobject | null
skillstring
tunnelstring
statusstring
timezonestring
updatedAtinteger (int64)
curl -X POST "https://api.hoshime.com/v1/schedules" \
  -H "Authorization: Bearer $HOSHIME_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "browser": {
      "actions": [
        {
          "height": 0,
          "key": "…",
          "maxLoops": 0,
          "ms": 0,
          "optional": null,
          "script": "…",
          "selector": "…",
          "text": "…",
          "type": "…",
          "url": "https://…",
          "urlPattern": "…",
          "values": [],
          "width": 0
        }
      ],
      "env": [
        "…"
      ],
      "input": {},
      "profileId": "abc123",
      "timeoutSeconds": 0,
      "tunnel": "…",
      "url": "https://…"
    },
    "cron": "…",
    "flow": {
      "input": {},
      "steps": [
        {
          "ai": null,
          "browser": null,
          "check": null,
          "endpoint": null,
          "id": "abc123",
          "if": "…",
          "maxAttempts": 0,
          "request": null,
          "script": null,
          "skills": null,
          "wait": null
        }
      ]
    },
    "jitterSeconds": 0,
    "maxAttempts": 0,
    "metadata": {},
    "name": "…",
    "request": {
      "body": "…",
      "headers": {},
      "method": "…",
      "timeoutSeconds": 0,
      "url": "https://…"
    },
    "script": {
      "env": [
        "…"
      ],
      "runtime": "…",
      "source": "…",
      "timeoutSeconds": 0
    },
    "skills": {
      "maxMinutes": 0,
      "profileId": "abc123",
      "steps": [
        {
          "optional": false,
          "params": null,
          "skill": "…"
        }
      ],
      "tunnel": "…"
    },
    "timezone": "…"
  }'
200 Response shape
{
  "browser": {
    "actions": [
      {
        "height": 0,
        "key": "…",
        "maxLoops": 0,
        "ms": 0,
        "optional": null,
        "script": "…",
        "selector": "…",
        "text": "…",
        "type": "…",
        "url": "https://…",
        "urlPattern": "…",
        "values": [],
        "width": 0
      }
    ],
    "env": [
      "…"
    ],
    "input": {},
    "profileId": "abc123",
    "timeoutSeconds": 0,
    "tunnel": "…",
    "url": "https://…"
  },
  "clientRef": "…",
  "createdAt": 0,
  "cron": "…",
  "flow": {
    "input": {},
    "steps": [
      {
        "ai": null,
        "browser": null,
        "check": null,
        "endpoint": null,
        "id": "abc123",
        "if": "…",
        "maxAttempts": 0,
        "request": null,
        "script": null,
        "skills": null,
        "wait": null
      }
    ]
  },
  "jitterSeconds": 0,
  "lastRunAt": 0,
  "maxAttempts": 0,
  "metadata": {},
  "name": "…",
  "nextRunAt": 0,
  "request": {
    "body": "…",
    "headers": {},
    "method": "…",
    "timeoutSeconds": 0,
    "url": "https://…"
  },
  "scheduleId": "abc123",
  "script": {
    "env": [
      "…"
    ],
    "runtime": "…",
    "source": "…",
    "timeoutSeconds": 0
  },
  "skills": {
    "maxMinutes": 0,
    "profileId": "abc123",
    "steps": [
      {
        "optional": false,
        "params": null,
        "skill": "…"
      }
    ],
    "tunnel": "…"
  },
  "status": "…",
  "timezone": "…",
  "updatedAt": 0
}

Create or update a schedule by name, for declarative sync.

PUT/v1/schedules
scope jobs:write

Request body

browser
BrowserRequest | null
actions
Action[]
env
string[]
input
map
profileId
string
timeoutSeconds
integer (int32)
tunnel
string
url
string
required
cron
string
flow
FlowRequest | null
input
map
steps
FlowStep[]
required
jitterSeconds
integer (int32)
maxAttempts
integer (int32)
metadata
map
name
string
required
request
HttpRequest | null
body
string
headers
map
method
string
required
timeoutSeconds
integer (int32)
url
string
required
script
ScriptRequest | null
env
string[]
runtime
string
required
source
string
required
timeoutSeconds
integer (int32)
skills
SkillsRequest | null
maxMinutes
integer (int32)
profileId
string
steps
SkillStep[]
required
tunnel
string
status
string
timezone
string

Response

67 fields
browserBrowserRequest | null
actionsAction[]
heightinteger (int32)
keystring
maxLoopsinteger (int32)
msinteger (int32)
optionalboolean | null
scriptstring
selectorstring
textstring
typestring
urlstring
urlPatternstring
valuesstring[]
widthinteger (int32)
envstring[]
inputmap
profileIdstring
timeoutSecondsinteger (int32)
tunnelstring
urlstring
clientRefstring
createdAtinteger (int64)
cronstring
flowFlowRequest | null
inputmap
stepsFlowStep[]
aiFlowAI | null
browserBrowserRequest | null
checkFlowCheck | null
endpointFlowEndpoint | null
idstring
ifstring
maxAttemptsinteger (int32)
requestHttpRequest | null
scriptScriptRequest | null
skillsSkillsRequest | null
waitFlowWait | null
jitterSecondsinteger (int32)
lastRunAtinteger (int64) | null
maxAttemptsinteger (int32)
metadatamap
namestring
nextRunAtinteger (int64) | null
requestHttpRequest | null
bodystring
headersmap
methodstring
timeoutSecondsinteger (int32)
urlstring
scheduleIdstring
scriptScriptRequest | null
envstring[]
runtimestring
sourcestring
timeoutSecondsinteger (int32)
skillsSkillsRequest | null
maxMinutesinteger (int32)
profileIdstring
stepsSkillStep[]
optionalboolean
paramsobject | null
skillstring
tunnelstring
statusstring
timezonestring
updatedAtinteger (int64)
curl -X PUT "https://api.hoshime.com/v1/schedules" \
  -H "Authorization: Bearer $HOSHIME_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "browser": {
      "actions": [
        {
          "height": 0,
          "key": "…",
          "maxLoops": 0,
          "ms": 0,
          "optional": null,
          "script": "…",
          "selector": "…",
          "text": "…",
          "type": "…",
          "url": "https://…",
          "urlPattern": "…",
          "values": [],
          "width": 0
        }
      ],
      "env": [
        "…"
      ],
      "input": {},
      "profileId": "abc123",
      "timeoutSeconds": 0,
      "tunnel": "…",
      "url": "https://…"
    },
    "cron": "…",
    "flow": {
      "input": {},
      "steps": [
        {
          "ai": null,
          "browser": null,
          "check": null,
          "endpoint": null,
          "id": "abc123",
          "if": "…",
          "maxAttempts": 0,
          "request": null,
          "script": null,
          "skills": null,
          "wait": null
        }
      ]
    },
    "jitterSeconds": 0,
    "maxAttempts": 0,
    "metadata": {},
    "name": "…",
    "request": {
      "body": "…",
      "headers": {},
      "method": "…",
      "timeoutSeconds": 0,
      "url": "https://…"
    },
    "script": {
      "env": [
        "…"
      ],
      "runtime": "…",
      "source": "…",
      "timeoutSeconds": 0
    },
    "skills": {
      "maxMinutes": 0,
      "profileId": "abc123",
      "steps": [
        {
          "optional": false,
          "params": null,
          "skill": "…"
        }
      ],
      "tunnel": "…"
    },
    "status": "…",
    "timezone": "…"
  }'
200 Response shape
{
  "browser": {
    "actions": [
      {
        "height": 0,
        "key": "…",
        "maxLoops": 0,
        "ms": 0,
        "optional": null,
        "script": "…",
        "selector": "…",
        "text": "…",
        "type": "…",
        "url": "https://…",
        "urlPattern": "…",
        "values": [],
        "width": 0
      }
    ],
    "env": [
      "…"
    ],
    "input": {},
    "profileId": "abc123",
    "timeoutSeconds": 0,
    "tunnel": "…",
    "url": "https://…"
  },
  "clientRef": "…",
  "createdAt": 0,
  "cron": "…",
  "flow": {
    "input": {},
    "steps": [
      {
        "ai": null,
        "browser": null,
        "check": null,
        "endpoint": null,
        "id": "abc123",
        "if": "…",
        "maxAttempts": 0,
        "request": null,
        "script": null,
        "skills": null,
        "wait": null
      }
    ]
  },
  "jitterSeconds": 0,
  "lastRunAt": 0,
  "maxAttempts": 0,
  "metadata": {},
  "name": "…",
  "nextRunAt": 0,
  "request": {
    "body": "…",
    "headers": {},
    "method": "…",
    "timeoutSeconds": 0,
    "url": "https://…"
  },
  "scheduleId": "abc123",
  "script": {
    "env": [
      "…"
    ],
    "runtime": "…",
    "source": "…",
    "timeoutSeconds": 0
  },
  "skills": {
    "maxMinutes": 0,
    "profileId": "abc123",
    "steps": [
      {
        "optional": false,
        "params": null,
        "skill": "…"
      }
    ],
    "tunnel": "…"
  },
  "status": "…",
  "timezone": "…",
  "updatedAt": 0
}

Delete a schedule.

DELETE/v1/schedules/{scheduleId}
scope jobs:write

Parameters

scheduleId
string · path
required

Response

1 fields
statusboolean
curl -X DELETE "https://api.hoshime.com/v1/schedules/{scheduleId}" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "status": false
}

Get a schedule with its next run time.

GET/v1/schedules/{scheduleId}
scope jobs:read

Parameters

scheduleId
string · path
required

Response

67 fields
browserBrowserRequest | null
actionsAction[]
heightinteger (int32)
keystring
maxLoopsinteger (int32)
msinteger (int32)
optionalboolean | null
scriptstring
selectorstring
textstring
typestring
urlstring
urlPatternstring
valuesstring[]
widthinteger (int32)
envstring[]
inputmap
profileIdstring
timeoutSecondsinteger (int32)
tunnelstring
urlstring
clientRefstring
createdAtinteger (int64)
cronstring
flowFlowRequest | null
inputmap
stepsFlowStep[]
aiFlowAI | null
browserBrowserRequest | null
checkFlowCheck | null
endpointFlowEndpoint | null
idstring
ifstring
maxAttemptsinteger (int32)
requestHttpRequest | null
scriptScriptRequest | null
skillsSkillsRequest | null
waitFlowWait | null
jitterSecondsinteger (int32)
lastRunAtinteger (int64) | null
maxAttemptsinteger (int32)
metadatamap
namestring
nextRunAtinteger (int64) | null
requestHttpRequest | null
bodystring
headersmap
methodstring
timeoutSecondsinteger (int32)
urlstring
scheduleIdstring
scriptScriptRequest | null
envstring[]
runtimestring
sourcestring
timeoutSecondsinteger (int32)
skillsSkillsRequest | null
maxMinutesinteger (int32)
profileIdstring
stepsSkillStep[]
optionalboolean
paramsobject | null
skillstring
tunnelstring
statusstring
timezonestring
updatedAtinteger (int64)
curl "https://api.hoshime.com/v1/schedules/{scheduleId}" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "browser": {
    "actions": [
      {
        "height": 0,
        "key": "…",
        "maxLoops": 0,
        "ms": 0,
        "optional": null,
        "script": "…",
        "selector": "…",
        "text": "…",
        "type": "…",
        "url": "https://…",
        "urlPattern": "…",
        "values": [],
        "width": 0
      }
    ],
    "env": [
      "…"
    ],
    "input": {},
    "profileId": "abc123",
    "timeoutSeconds": 0,
    "tunnel": "…",
    "url": "https://…"
  },
  "clientRef": "…",
  "createdAt": 0,
  "cron": "…",
  "flow": {
    "input": {},
    "steps": [
      {
        "ai": null,
        "browser": null,
        "check": null,
        "endpoint": null,
        "id": "abc123",
        "if": "…",
        "maxAttempts": 0,
        "request": null,
        "script": null,
        "skills": null,
        "wait": null
      }
    ]
  },
  "jitterSeconds": 0,
  "lastRunAt": 0,
  "maxAttempts": 0,
  "metadata": {},
  "name": "…",
  "nextRunAt": 0,
  "request": {
    "body": "…",
    "headers": {},
    "method": "…",
    "timeoutSeconds": 0,
    "url": "https://…"
  },
  "scheduleId": "abc123",
  "script": {
    "env": [
      "…"
    ],
    "runtime": "…",
    "source": "…",
    "timeoutSeconds": 0
  },
  "skills": {
    "maxMinutes": 0,
    "profileId": "abc123",
    "steps": [
      {
        "optional": false,
        "params": null,
        "skill": "…"
      }
    ],
    "tunnel": "…"
  },
  "status": "…",
  "timezone": "…",
  "updatedAt": 0
}

Update, pause or resume a schedule.

PATCH/v1/schedules/{scheduleId}
scope jobs:write

Parameters

scheduleId
string · path
required

Request body

browser
BrowserRequest | null
actions
Action[]
env
string[]
input
map
profileId
string
timeoutSeconds
integer (int32)
tunnel
string
url
string
required
cron
string | null
flow
FlowRequest | null
input
map
steps
FlowStep[]
required
jitterSeconds
integer (int32) | null
maxAttempts
integer (int32)
metadata
map
name
string
request
HttpRequest | null
body
string
headers
map
method
string
required
timeoutSeconds
integer (int32)
url
string
required
script
ScriptRequest | null
env
string[]
runtime
string
required
source
string
required
timeoutSeconds
integer (int32)
skills
SkillsRequest | null
maxMinutes
integer (int32)
profileId
string
steps
SkillStep[]
required
tunnel
string
status
string
timezone
string

Response

67 fields
browserBrowserRequest | null
actionsAction[]
heightinteger (int32)
keystring
maxLoopsinteger (int32)
msinteger (int32)
optionalboolean | null
scriptstring
selectorstring
textstring
typestring
urlstring
urlPatternstring
valuesstring[]
widthinteger (int32)
envstring[]
inputmap
profileIdstring
timeoutSecondsinteger (int32)
tunnelstring
urlstring
clientRefstring
createdAtinteger (int64)
cronstring
flowFlowRequest | null
inputmap
stepsFlowStep[]
aiFlowAI | null
browserBrowserRequest | null
checkFlowCheck | null
endpointFlowEndpoint | null
idstring
ifstring
maxAttemptsinteger (int32)
requestHttpRequest | null
scriptScriptRequest | null
skillsSkillsRequest | null
waitFlowWait | null
jitterSecondsinteger (int32)
lastRunAtinteger (int64) | null
maxAttemptsinteger (int32)
metadatamap
namestring
nextRunAtinteger (int64) | null
requestHttpRequest | null
bodystring
headersmap
methodstring
timeoutSecondsinteger (int32)
urlstring
scheduleIdstring
scriptScriptRequest | null
envstring[]
runtimestring
sourcestring
timeoutSecondsinteger (int32)
skillsSkillsRequest | null
maxMinutesinteger (int32)
profileIdstring
stepsSkillStep[]
optionalboolean
paramsobject | null
skillstring
tunnelstring
statusstring
timezonestring
updatedAtinteger (int64)
curl -X PATCH "https://api.hoshime.com/v1/schedules/{scheduleId}" \
  -H "Authorization: Bearer $HOSHIME_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "browser": {
      "actions": [
        {
          "height": 0,
          "key": "…",
          "maxLoops": 0,
          "ms": 0,
          "optional": null,
          "script": "…",
          "selector": "…",
          "text": "…",
          "type": "…",
          "url": "https://…",
          "urlPattern": "…",
          "values": [],
          "width": 0
        }
      ],
      "env": [
        "…"
      ],
      "input": {},
      "profileId": "abc123",
      "timeoutSeconds": 0,
      "tunnel": "…",
      "url": "https://…"
    },
    "cron": "…",
    "flow": {
      "input": {},
      "steps": [
        {
          "ai": null,
          "browser": null,
          "check": null,
          "endpoint": null,
          "id": "abc123",
          "if": "…",
          "maxAttempts": 0,
          "request": null,
          "script": null,
          "skills": null,
          "wait": null
        }
      ]
    },
    "jitterSeconds": 0,
    "maxAttempts": 0,
    "metadata": {},
    "name": "…",
    "request": {
      "body": "…",
      "headers": {},
      "method": "…",
      "timeoutSeconds": 0,
      "url": "https://…"
    },
    "script": {
      "env": [
        "…"
      ],
      "runtime": "…",
      "source": "…",
      "timeoutSeconds": 0
    },
    "skills": {
      "maxMinutes": 0,
      "profileId": "abc123",
      "steps": [
        {
          "optional": false,
          "params": null,
          "skill": "…"
        }
      ],
      "tunnel": "…"
    },
    "status": "…",
    "timezone": "…"
  }'
200 Response shape
{
  "browser": {
    "actions": [
      {
        "height": 0,
        "key": "…",
        "maxLoops": 0,
        "ms": 0,
        "optional": null,
        "script": "…",
        "selector": "…",
        "text": "…",
        "type": "…",
        "url": "https://…",
        "urlPattern": "…",
        "values": [],
        "width": 0
      }
    ],
    "env": [
      "…"
    ],
    "input": {},
    "profileId": "abc123",
    "timeoutSeconds": 0,
    "tunnel": "…",
    "url": "https://…"
  },
  "clientRef": "…",
  "createdAt": 0,
  "cron": "…",
  "flow": {
    "input": {},
    "steps": [
      {
        "ai": null,
        "browser": null,
        "check": null,
        "endpoint": null,
        "id": "abc123",
        "if": "…",
        "maxAttempts": 0,
        "request": null,
        "script": null,
        "skills": null,
        "wait": null
      }
    ]
  },
  "jitterSeconds": 0,
  "lastRunAt": 0,
  "maxAttempts": 0,
  "metadata": {},
  "name": "…",
  "nextRunAt": 0,
  "request": {
    "body": "…",
    "headers": {},
    "method": "…",
    "timeoutSeconds": 0,
    "url": "https://…"
  },
  "scheduleId": "abc123",
  "script": {
    "env": [
      "…"
    ],
    "runtime": "…",
    "source": "…",
    "timeoutSeconds": 0
  },
  "skills": {
    "maxMinutes": 0,
    "profileId": "abc123",
    "steps": [
      {
        "optional": false,
        "params": null,
        "skill": "…"
      }
    ],
    "tunnel": "…"
  },
  "status": "…",
  "timezone": "…",
  "updatedAt": 0
}

Run a schedule now, by hand, such as a saved flow with input values for this run. Refused while its last run is still queued or running.

POST/v1/schedules/{scheduleId}/run
scope jobs:write

Bills 1 unit when the run is queued, plus what the run bills, as POST /v1/jobs does.

Parameters

scheduleId
string · path
required

Request body

input
map

Response

117 fields
attemptinteger (int32)
browserBrowserRequest | null
actionsAction[]
heightinteger (int32)
keystring
maxLoopsinteger (int32)
msinteger (int32)
optionalboolean | null
scriptstring
selectorstring
textstring
typestring
urlstring
urlPatternstring
valuesstring[]
widthinteger (int32)
envstring[]
inputmap
profileIdstring
timeoutSecondsinteger (int32)
tunnelstring
urlstring
browserResultBrowserResult | null
durationMsinteger (int32)
evaluateResultsstring[]
finalUrlstring
httpStatusinteger (int32)
clientRefstring
createdAtinteger (int64)
errorstring
exportExportRequest | null
endpointstring
maxItemsinteger (int32)
paramsmap
platformstring
exportResultExportResult | null
completeboolean
itemsinteger (int64)
pagesinteger (int32)
unitsinteger (int64)
finishedAtinteger (int64) | null
flowFlowRequest | null
inputmap
stepsFlowStep[]
aiFlowAI | null
browserBrowserRequest | null
checkFlowCheck | null
endpointFlowEndpoint | null
idstring
ifstring
maxAttemptsinteger (int32)
requestHttpRequest | null
scriptScriptRequest | null
skillsSkillsRequest | null
waitFlowWait | null
flowResultFlowResult | null
stepsFlowStepResult[]
attemptsinteger (int32)
errorstring
finishedAtinteger (int64) | null
idstring
outputany | null
startedAtinteger (int64)
statusstring
idempotencyKeystring | null
jobIdstring
maxAttemptsinteger (int32)
metadatamap
nextAttemptAtinteger (int64)
requestHttpRequest | null
bodystring
headersmap
methodstring
timeoutSecondsinteger (int32)
urlstring
resultHttpResult | null
bodyPreviewstring
latencyMsinteger (int32)
statusCodeinteger (int32)
runAtinteger (int64)
scheduleIdstring
scriptScriptRequest | null
envstring[]
runtimestring
sourcestring
timeoutSecondsinteger (int32)
scriptResultScriptResult | null
durationMsinteger (int32)
exitCodeinteger (int32)
stderrstring
stdoutstring
skillsSkillsRequest | null
maxMinutesinteger (int32)
profileIdstring
stepsSkillStep[]
optionalboolean
paramsobject | null
skillstring
tunnelstring
skillsResultSkillsResult | null
durationMsinteger (int32)
stepsSkillStepResult[]
attemptsinteger (int32)
codestring
durationMsinteger (int64)
errorstring
healedSkillHeal[]
resultobject | null
skillstring
startedAtinteger (int64)
statusstring
urlstring
startedAtinteger (int64) | null
statusstring
ttlinteger (int64)
typestring
updatedAtinteger (int64)
curl -X POST "https://api.hoshime.com/v1/schedules/{scheduleId}/run" \
  -H "Authorization: Bearer $HOSHIME_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "input": {}
  }'
200 Response shape
{
  "attempt": 0,
  "browser": {
    "actions": [
      {
        "height": 0,
        "key": "…",
        "maxLoops": 0,
        "ms": 0,
        "optional": null,
        "script": "…",
        "selector": "…",
        "text": "…",
        "type": "…",
        "url": "https://…",
        "urlPattern": "…",
        "values": [],
        "width": 0
      }
    ],
    "env": [
      "…"
    ],
    "input": {},
    "profileId": "abc123",
    "timeoutSeconds": 0,
    "tunnel": "…",
    "url": "https://…"
  },
  "browserResult": {
    "durationMs": 0,
    "evaluateResults": [
      "…"
    ],
    "finalUrl": "https://…",
    "httpStatus": 0
  },
  "clientRef": "…",
  "createdAt": 0,
  "error": "…",
  "export": {
    "endpoint": "…",
    "maxItems": 0,
    "params": {},
    "platform": "…"
  },
  "exportResult": {
    "complete": false,
    "items": 0,
    "pages": 0,
    "units": 0
  },
  "finishedAt": 0,
  "flow": {
    "input": {},
    "steps": [
      {
        "ai": null,
        "browser": null,
        "check": null,
        "endpoint": null,
        "id": "abc123",
        "if": "…",
        "maxAttempts": 0,
        "request": null,
        "script": null,
        "skills": null,
        "wait": null
      }
    ]
  },
  "flowResult": {
    "steps": [
      {
        "attempts": 0,
        "error": "…",
        "finishedAt": null,
        "id": "abc123",
        "output": null,
        "startedAt": 0,
        "status": "…"
      }
    ]
  },
  "idempotencyKey": "…",
  "jobId": "abc123",
  "maxAttempts": 0,
  "metadata": {},
  "nextAttemptAt": 0,
  "request": {
    "body": "…",
    "headers": {},
    "method": "…",
    "timeoutSeconds": 0,
    "url": "https://…"
  },
  "result": {
    "bodyPreview": "…",
    "latencyMs": 0,
    "statusCode": 0
  },
  "runAt": 0,
  "scheduleId": "abc123",
  "script": {
    "env": [
      "…"
    ],
    "runtime": "…",
    "source": "…",
    "timeoutSeconds": 0
  },
  "scriptResult": {
    "durationMs": 0,
    "exitCode": 0,
    "stderr": "…",
    "stdout": "…"
  },
  "skills": {
    "maxMinutes": 0,
    "profileId": "abc123",
    "steps": [
      {
        "optional": false,
        "params": null,
        "skill": "…"
      }
    ],
    "tunnel": "…"
  },
  "skillsResult": {
    "durationMs": 0,
    "steps": [
      {
        "attempts": 0,
        "code": "…",
        "durationMs": 0,
        "error": "…",
        "healed": [],
        "result": null,
        "skill": "…",
        "startedAt": 0,
        "status": "…",
        "url": "https://…"
      }
    ]
  },
  "startedAt": 0,
  "status": "…",
  "ttl": 0,
  "type": "…",
  "updatedAt": 0
}
esc
↑↓ move↵ open