Create Schedule
POSThttps://api.confident-ai.com/v2/export-schedules
Creates an export schedule in your Confident AI project and returns its id. Each run exports the window since the previous run and delivers it to the export destination you name, so a schedule starts producing files as soon as it is enabled.
curl -X POST "https://api.confident-ai.com/v2/export-schedules" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>" \
-H "Content-Type: application/json" \
-d '{
"recurrence": "ONCE",
"repeatEvery": 1,
"repeatUnit": "MINUTE",
"startAt": "2025-02-01T09:00:00Z",
"maxRuns": 12,
"endAt": "2025-12-31T23:59:59Z",
"name": "Weekly checkout conversations",
"description": "Last week'\''s checkout conversations for the data team.",
"exportType": "TRACES",
"filters": {
"operator": "AND",
"groups": [
{
"operator": "AND",
"filters": [
{
"category": "Name",
"condition": "Is",
"value": "checkout-assistant"
}
]
}
]
},
"destinationId": "<EXPORT-DESTINATION-ID>",
"enabled": true
}'{
"success": true,
"data": {
"id": "<EXPORT-SCHEDULE-ID>"
},
"link": "https://app.confident-ai.com/project/<PROJECT-ID>/project-settings/exports",
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe API key of your Confident AI project.
Request body
recurrenceenumHow often a schedule fires: ONCE runs a single time at
startAt, INTERVAL repeats everyrepeatEveryrepeatUnits.Show 2 enum valuesHide 2 enum values
ONCEINTERVAL
repeatEveryinteger | nullHow many
repeatUnits apart the runs are, for an INTERVAL schedule. Send null to clear it.repeatUnitenum | nullThe unit
repeatEverycounts for an INTERVAL schedule.Show 5 enum valuesHide 5 enum values
MINUTEHOURDAYWEEKMONTH
startAtstring | nullWhen the schedule first runs, as an ISO 8601 datetime. Send null to start it immediately.
maxRunsinteger | nullHow many times the schedule runs before it stops. Send null to let it run indefinitely.
endAtstring | nullWhen the schedule stops running, as an ISO 8601 datetime. Send null to leave it open-ended.
namestringRequiredThe name of the schedule.
descriptionstring | nullWhat the schedule exports. Send null to leave it unset.
exportTypeenumRequiredWhat each run of the schedule exports. Only project-scoped export types can be scheduled: TRACES_WITH_SPANS, TRACES, CONVERSATIONS, CONVERSATION_METRICS. Audit log exports are organization-scoped and are not export schedules. Please configure them on the platform instead.
Show 5 enum valuesHide 5 enum values
TRACESTRACES_WITH_SPANSCONVERSATIONSCONVERSATION_METRICSAUDIT_LOGS
filtersobjectA set of filter groups combined by a top-level operator. Each group combines its filter rows by its own operator, and each row matches one property, such as
NameorUser Id, against a value with a condition such asIsorContains.Show 2 propertiesHide 2 properties
operatorenumRequiredShow 2 enum valuesHide 2 enum values
ANDOR
groupslist of objectsRequiredShow 2 propertiesHide 2 properties
operatorenumRequiredShow 2 enum valuesHide 2 enum values
ANDOR
filterslist of objectsRequiredShow 4 propertiesHide 4 properties
categoryenumRequiredShow 80 enum valuesHide 80 enum values
User IdThread IdTrace UuidTrace NameTrace VersionTrace StatusTrace TagsTraceSpan UuidNameSpan NameSpan TypeSpan StatusMetrics StatusError StatusNameModelProviderIntegrationEmbedderChunk SizeTop-KHyperparameterDatasetDataset NameTest Run IDIdentifierTest FileStatusOfficialEvals ModeTests PassedTests FailedPass RateFail RateStar RatingThumbs RatingExplanationExpected OutputExpected OutcomeAnnotatorEnd UserAnnotation TypeAnnotation NameCriteriaAnnotation DateMetric ScoreMetric StatusNameMetadataClassifierMetricMetric NameTrace CountTest Case IDRequested review fromAssigned toTagsLabelsTools CalledFinalizedGolden IDIngestion TaskLatencyEnvironmentReview flagVulnerabilityVulnerability TypeAttack MethodRisk CategoryFrameworkAssessment IDPrompt AliasPrompt VersionPrompt LabelPrompt Commit HashPromptAnnotationsStatus CodeActor Type
conditionenum | enum | enum | enum | enum | enum | enum | enum | enum | enumRequiredShow 10 variantsHide 10 variants
enum
Show 6 enum valuesHide 6 enum values
Is less thanIs equal or less thanIs greater thanIs equal or greater thanIs equal toDoes not equal
- OR
enum
Show 2 enum valuesHide 2 enum values
HasHas not
- OR
enum
Show 2 enum valuesHide 2 enum values
IsIs not
- OR
enum
Show 2 enum valuesHide 2 enum values
Is one ofIs not one of
- OR
enum
Show 4 enum valuesHide 4 enum values
IsIs notIs emptyIs not empty
- OR
enum
Show 2 enum valuesHide 2 enum values
ContainsDoes not contain
- OR
enum
Show 3 enum valuesHide 3 enum values
ContainsContains onlyDoes not contain
- OR
enum
Show 4 enum valuesHide 4 enum values
Has decreased by more thanHas decreased by less thanHas increased by more thanHas increased by less than
- OR
enum
Show 1 enum valueHide 1 enum value
Has changed from
- OR
enum
Show 1 enum valueHide 1 enum value
Is between
valuestring | number | list of stringsRequiredShow 3 variantsHide 3 variants
string
- OR
number
- OR
list of strings
keystring
destinationIdstring | nullThe id of the export destination each run delivers its file to. A scheduled run has no recipient of its own, so a schedule created without a destination produces files that go nowhere.
enabledbooleanWhether the schedule starts running as soon as it is created. Defaults to true.
Response
Create Schedule succeeded.
successbooleanIndicates if the request was successful.
dataobjectA reference to an export schedule by its id.
Show 1 propertyHide 1 property
idstringThe id of the schedule, generated by Confident AI.
linkstringThis is the URL of the resource on the Confident AI platform.
deprecatedbooleanIndicates if this endpoint is deprecated.