Skip to main content
POST
Create a retry policy

Authorizations

Authorization
string
header
required

API key from your Sarj.ai dashboard.

Body

application/json

Policy retries after eligible unsuccessful calls.

Infrastructure failure redials use separate rules; the 7-day platform expiry applies to both.

max_retries
integer
required

Maximum additional policy retries; infrastructure failure redials do not count.

Required range: 1 <= x <= 10
Example:

2

wait_between
string<duration>
required

Delay from the terminal-status update (60 seconds to 30 days).

Example:

"PT2H"

enabled
boolean
default:true

Enable policy retries.

retry_window
TimeWindow · object | null

Daily policy retry window in timezone; edges must differ and may span midnight. Omitted: any hour.

timezone
string | null

IANA zone for retry_window; omitted: scenario timezone.

Example:

"Asia/Riyadh"

expire_after
string<duration> | null

Policy retry lifetime from the first call's end (1 hour to 7 days). Omitted: 7-day ceiling. max_retries may stop retries earlier.

Example:

"P3D"

Response

The schedule config was created.

data
PublicScheduleConfig · object
required

Policy retries after eligible unsuccessful calls.

Infrastructure failure redials use separate rules; the 7-day platform expiry applies to both.

meta
ResponseMeta · object
required

Request metadata.