Get schedule
GET/v2/schedules/:scheduleId
Gets the schedule object with all details.
Request
Path Parameters
Schedule ID.
Example:asdLZtadYvn4mBZmmStatus 200
Response Headers
{
"data": {
"id": "asdLZtadYvn4mBZmm",
"userId": "wRsJZtadYvn4mBZmm",
"name": "my-schedule",
"cronExpression": "* * * * *",
"timezone": "UTC",
"isEnabled": true,
"isExclusive": true,
"createdAt": "2019-12-12T07:34:14.202Z",
"modifiedAt": "2019-12-20T06:33:11.202Z",
"nextRunAt": "2019-04-12T07:34:10.202Z",
"lastRunAt": "2019-04-12T07:33:10.202Z",
"description": "Schedule of actor ...",
"title": "string",
"notifications": {
"email": true
},
"uiState": "Unknown Type: object,null",
"integrationTracking": {
"platform": "zapier",
"appId": "string",
"isAiTool": false
},
"actions": [
{
"id": "c6KfSgoQzFhMk3etc",
"actorId": "jF8GGEvbEg4Au3NLA",
"runInput": {
"body": "{\\n \"foo\": \"actor\"\\n}",
"contentType": "application/json; charset=utf-8"
},
"runOptions": {
"build": "latest",
"timeoutSecs": 300,
"memoryMbytes": 1024,
"maxItems": 1000,
"maxTotalChargeUsd": 5,
"restartOnError": false,
"isMaxTotalChargeUsdSetByUser": true,
"forcePermissionLevel": "LIMITED_PERMISSIONS"
}
},
{
"id": "c6KfSgoQzFhMk3etc",
"actorTaskId": "jF8GGEvbEg4Au3NLA",
"input": {}
}
]
}
}
Schema
data object required
- id string requiredExample:
asdLZtadYvn4mBZmm - userId string requiredExample:
wRsJZtadYvn4mBZmm - name string requiredExample:
my-schedule - cronExpression string requiredExample:
* * * * * - timezone string requiredExample:
UTC - isEnabled boolean requiredExample:
true - isExclusive boolean requiredExample:
true - createdAt string<date-time> requiredExample:
2019-12-12T07:34:14.202Z - modifiedAt string<date-time> requiredExample:
2019-12-20T06:33:11.202Z - nextRunAt string,null<date-time> nullableExample:
2019-04-12T07:34:10.202Z - lastRunAt string,null<date-time> nullableExample:
2019-04-12T07:33:10.202Z - description string | null nullableExample:
Schedule of actor ... - title string | null nullable
notifications object
Notification settings for this schedule.
- email booleanExample:
true
- email booleanExample:
uiState ScheduleUiState (object,null)
State of the schedule editor in Apify Console. It's removed when an API update changes
cronExpressionortimezone, after which it isnull.- version integer
Version of the editor state format.
Example:1 data object
Editor form values, such as the frequency settings the cron expression was built from.
- cronExpression stringExample:
0 8 * * * - timezone stringExample:
UTC - property name* any
Editor form values, such as the frequency settings the cron expression was built from.
- cronExpression stringExample:
- version integer
integrationTracking object
Present only when the schedule was created by a third-party integration.
- platform string | null nullable
Name of the integration platform.
Example:zapier - appId string | null nullable
ID of the integration app.
- isAiTool boolean
Whether the resource was created by an AI tool.
Example:false
- platform string | null nullable
actions object[] required
- oneOf
- ScheduleActionRunActor
- ScheduleActionRunActorTask
- id string requiredExample:
c6KfSgoQzFhMk3etc - type requiredConstant value:
RUN_ACTOR - actorId string requiredExample:
jF8GGEvbEg4Au3NLA runInput object
- anyOf
- ScheduleActionRunInput
- null
- body string | null nullableExample:
{\n "foo": "actor"\n} - contentType string | null nullableExample:
application/json; charset=utf-8
runOptions object
- anyOf
- TaskOptions
- null
- build string | null nullableExample:
latest - timeoutSecs integer | null nullableExample:
300 - memoryMbytes integer | null nullableExample:
1024 - maxItems integer | null nullableExample:
1000 - maxTotalChargeUsd number | null nullableExample:
5 - restartOnError boolean | null nullableExample:
false - isMaxTotalChargeUsdSetByUser boolean | null nullable
Whether the user explicitly set
Example:maxTotalChargeUsd. Returned only in schedule actionrunOptions, and only if it was provided.true forcePermissionLevel object
Permission level to run the Actor with, overriding the Actor's own setting. Returned only in schedule action
runOptions, and only if it was provided.- anyOf
- ActorPermissionLevel
- null
- ActorPermissionLevel (string)
Determines the permission level that the Actor requires to run. For details, see Actor permissions.
Possible values: [
Example:LIMITED_PERMISSIONS,FULL_PERMISSIONS]LIMITED_PERMISSIONS
- id string requiredExample:
Status 400
Bad request - invalid input parameters or request body.
{
"error": {
"type": "invalid-input",
"message": "Invalid input: The request body contains invalid data."
}
}
Schema
error object required
- type ErrorType (string)
Machine-readable error type, for example
record-not-found. Use it to handle specific errors in your code. For common error types, see Errors. - message string
Human-readable error message describing what went wrong.
- data object
Additional machine-readable details about the error. Present only for some error types.
- type ErrorType (string)
Status 401
Unauthorized - the authentication token is missing or not valid.
The request doesn't include an API token.
{
"error": {
"type": "token-not-provided",
"message": "Authentication token was not provided"
}
}
The API token isn't valid, or its user no longer exists.
{
"error": {
"type": "user-or-token-not-found",
"message": "User was not found or authentication token is not valid"
}
}
Schema
error object required
- type ErrorType (string)
Machine-readable error type, for example
record-not-found. Use it to handle specific errors in your code. For common error types, see Errors. - message string
Human-readable error message describing what went wrong.
- data object
Additional machine-readable details about the error. Present only for some error types.
- type ErrorType (string)
Status 403
Forbidden - insufficient permissions to perform this action.
{
"error": {
"type": "insufficient-permissions",
"message": "You do not have permission to perform this action."
}
}
Schema
error object required
- type ErrorType (string)
Machine-readable error type, for example
record-not-found. Use it to handle specific errors in your code. For common error types, see Errors. - message string
Human-readable error message describing what went wrong.
- data object
Additional machine-readable details about the error. Present only for some error types.
- type ErrorType (string)
Status 404
Not found - the requested resource does not exist.
{
"error": {
"type": "record-not-found",
"message": "The requested resource was not found."
}
}
Schema
error object required
- type ErrorType (string)
Machine-readable error type, for example
record-not-found. Use it to handle specific errors in your code. For common error types, see Errors. - message string
Human-readable error message describing what went wrong.
- data object
Additional machine-readable details about the error. Present only for some error types.
- type ErrorType (string)
Status 405
Method not allowed.
{
"error": {
"type": "method-not-allowed",
"message": "This API end-point can only be accessed using the following HTTP methods: OPTIONS,GET"
}
}
Schema
error object required
- type ErrorType (string)
Machine-readable error type, for example
record-not-found. Use it to handle specific errors in your code. For common error types, see Errors. - message string
Human-readable error message describing what went wrong.
- data object
Additional machine-readable details about the error. Present only for some error types.
- type ErrorType (string)
Status 429
Too many requests - rate limit exceeded.
{
"error": {
"type": "rate-limit-exceeded",
"message": "You have exceeded the rate limit. Please try again later."
}
}
Schema
error object required
- type ErrorType (string)
Machine-readable error type, for example
record-not-found. Use it to handle specific errors in your code. For common error types, see Errors. - message string
Human-readable error message describing what went wrong.
- data object
Additional machine-readable details about the error. Present only for some error types.
- type ErrorType (string)