Skip to main content
GET
Retrieve a Job

Authorizations

Authorization
string
header
required

Authenticate requests by providing a JSON Web Token (JWT) in the Authorization header. Example: Authorization: Bearer <YOUR_JWT>

Path Parameters

siteId
string<uuid>
required

The UUID of the site.

jobId
string<uuid>
required

The UUID of the job to retrieve.

Response

The requested job object.

An asynchronous command or script to be executed on a Site.

id
string<uuid>

The unique identifier (UUID) for the job.

Example:

"8b8b2e5e-1a19-4a19-8b19-1e1919191919"

token
string

A short, unique, human-readable token for the job, often used in log filtering.

Example:

"2jP5kLqWnZ"

site_id
string<uuid>

The ID of the site this job is targeted for.

Example:

"9a9a3e6f-1b1a-4b1a-8c1a-1e1a1a1a1a1a"

idempotency_key
string<uuid>

A unique key provided by the client to prevent duplicate job creation.

Example:

"7c7c1e4e-1918-4918-8a18-1e1818181818"

description
string

A human-readable description of the job's purpose.

Example:

"Add new firewall rule for guest network"

express_execute
boolean

If true, the platform will attempt to trigger an immediate check-in from the device to execute this job sooner.

Example:

false

needs_acknowledgement
boolean

If true, the job requires an explicit success/fail notification from the device to be marked as complete.

Example:

true

should_backup
boolean

If true, a configuration backup was automatically created before this job was queued.

Example:

true

associated_backup
string | null

The path to the configuration backup file associated with this job, if one was created.

Example:

"9a9a3e6f-1b1a-4b1a-8c1a-1e1a1a1a1a1a/1667888400.rsc"

started_at
string<date-time> | null

The timestamp when the device started executing the job.

Example:

"2025-10-29T12:05:10Z"

completed_at
string<date-time> | null

The timestamp when the device reported successful completion of the job.

Example:

null

failed_at
string<date-time> | null

The timestamp when the device reported a failure during job execution.

Example:

null

created_at
string<date-time>

The timestamp when the job was created.

Example:

"2025-10-29T12:00:00Z"

log_url
string

A relative URL to the Altostrat SDX UI to view logs related to this job's execution.

Example:

"logs?group=sites&streams=9a9a...&start=...&end=...&filter={$.message=*2jP5kLqWnZ*}"

script
string

The raw RouterOS script payload of the job.

Example:

"/ip firewall filter add chain=forward action=accept src-address-list=guests"