Create an automation that runs an agent on a cron schedule, on demand, or from incoming integrations. Each run starts a new session in the configured environment and sends the initial events.
Idempotency-Key header. Required: resending the request with the same key returns the automation the first request created, so a lost response never leaves a second schedule running
Required string length: 1 - 128
Pattern: ^\S[\s\S]*\S$|^\S$|^$
Body
application/json
name
string
required
Human-readable automation name
Required string length: 1 - 256
agent
stringobject
required
Agent to run in each session. Pass an ID to pin the latest version, or pass an object with type "agent", id, and version to pin a specific version.
Required string length: 1 - 256
environment_id
string
required
Environment ID each run's session uses
Required string length: 1 - 256
initial_events
object[]
required
Initial events sent when each run creates a session. Supply one text user.message event of up to 16384 UTF-16 code units after its text blocks are joined with newlines.
Required array length: 1 element
Show child attributes
description
string | null
What the automation is for, up to 2048 characters
Maximum string length: 2048
schedule
object | null
When the automation fires: a cron expression that names a single minute, so it fires at most once per clock hour, read in an IANA time zone name such as America/New_York. Omit it or send null to run this automation only on demand or from incoming integrations.
Show child attributes
resources
object[]
Repositories, memory stores, artifacts, skills and files to mount in each run's session. An automation stores no secrets, so a repository here cannot carry authorization_token. An artifact or skill without a version mounts the version that is current when the run starts.
Maximum array length: 72
Option 1
Option 2
Option 3
Option 4
Option 5
Show child attributes
vault_ids
string[]
Vaults whose credentials each run's session may use. Credentials are matched to the agent's MCP servers when each run starts, so a rotated or added credential applies to the next run.
Maximum array length: 20
Minimum string length: 1
mcp_server_credentials
object[]
Explicit credentials for named servers. An explicit binding wins over vault matching.
Maximum array length: 40
Show child attributes
machine_credentials
object[]
Credentials from the automation's vaults for each run's machine, as on session create. Each is checked when a run starts, so an archived credential refuses the run.
Maximum array length: 16
Show child attributes
custom_tools
enum<string>
What a run's session does when the agent calls a custom tool. refuse (default) tells the agent nobody will answer. wait pauses the session with stop_reason requires_action until your application sends user.custom_tool_result, as in a session you start yourself. Tools that need a person's approval are refused either way.
Available options:
refuse,
wait
Response
Success
id
string
required
Required string length: 1 - 128
type
enum<string>
required
Available options:
automation
name
string
required
Required string length: 1 - 256
description
string | null
required
Maximum string length: 2048
environment_id
string
required
Required string length: 1 - 256
schedule
object | null
required
Show child attributes
status
enum<string>
required
Available options:
active,
paused,
archived
pause_reason
string | null
required
revision
integer
required
Required range: 1 <= x <= 9007199254740991
last_run_at
string | null
required
created_at
string
required
updated_at
string
required
archived_at
string | null
required
agent
object
required
Show child attributes
initial_events
object[]
required
Required array length: 1 element
Show child attributes
resources
object[]
required
Maximum array length: 72
Option 1
Option 2
Option 3
Option 4
Option 5
Show child attributes
vault_ids
string[]
required
Maximum array length: 20
Minimum string length: 1
mcp_server_credentials
object[]
required
Maximum array length: 40
Show child attributes
machine_credentials
object[]
required
Maximum array length: 16
Show child attributes
custom_tools
enum<string>
required
Available options:
refuse,
wait
run_count
integer
required
Required range: -9007199254740991 <= x <= 9007199254740991
upcoming_runs_at
string[]
required
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Checkfu","description":"Open-source managed agents for any harness. Runs in your own Cloudflare account.","colors":{"primary":"#282828","light":"#D6D6D4","dark":"#737373"},"logo":{"light":"https://mintcdn.com/checkfu/roudJjfqJYVsUhiz/assets/logo-light.svg?fit=max\u0026auto=format\u0026n=roudJjfqJYVsUhiz\u0026q=85\u0026s=89c8c4d6c852e4947cbe90639b96e7cc","dark":"https://mintcdn.com/checkfu/roudJjfqJYVsUhiz/assets/logo-dark.svg?fit=max\u0026auto=format\u0026n=roudJjfqJYVsUhiz\u0026q=85\u0026s=8f10fadb0b7788ae05d6c18b16dc0913","href":"https://checkfu.com"},"favicon":"https://mintcdn.com/checkfu/4U2Fm1mjf60T5ScL/assets/favicon.svg?fit=max\u0026auto=format\u0026n=4U2Fm1mjf60T5ScL\u0026q=85\u0026s=7821f469d57188bd20540f0e055c691a","api":{"playground":{"display":"simple"}},"appearance":{"default":"light","strict":false},"background":{"color":{"light":"#FFFFFF","dark":"#171717"}},"navbar":{"links":[{"href":"https://github.com/checkfu/checkfu","label":"GitHub"}],"primary":{"type":"github","href":"https://github.com/checkfu/checkfu"}},"footer":{"socials":{"github":"https://github.com/checkfu/checkfu"},"links":[{"header":"Documentation","items":[{"label":"Quickstart","href":"/quickstart"},{"label":"Deploy","href":"/self-hosting/deploy"},{"label":"HTTP API","href":"/reference/http-api"}]},{"header":"Checkfu","items":[{"label":"Website","href":"https://checkfu.com"},{"label":"GitHub","href":"https://github.com/checkfu/checkfu"}]}]},"search":{"prompt":"Search Checkfu docs"},"seo":{"metatags":{"canonical":"https://docs.checkfu.com","og:site_name":"Checkfu documentation","og:image":"https://docs.checkfu.com/assets/og.png","twitter:card":"summary_large_image"},"indexing":"navigable"},"styling":{"eyebrows":"breadcrumbs","codeblocks":{"theme":{"light":"github-light","dark":"github-dark"}},"latex":false},"errors":{"404":{"redirect":false,"title":"Page not found","description":"Return to the [documentation home](/)."}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"markdown":{"schema":true,"instructions":["Checkfu is open source (https://github.com/checkfu/checkfu) and runs in the reader's own Cloudflare account. There is no shared hosted base URL: `checkfu deploy` prints the deployment's API URL (`https://\u003capi-worker>.workers.dev` or the CHECKFU_API_DOMAIN hostname, exported as `CHECKFU_BASE_URL` for the CLI, SDK, and curl) and MCP URL (`.../mcp`). Local development serves the API on http://localhost:1337 and MCP on http://localhost:1338/mcp.","Authenticated HTTP requests send the deployment's CHECKFU_API_KEY as `Authorization: Bearer $CHECKFU_API_KEY` (or `x-api-key`) and `Content-Type: application/json` for JSON bodies. Pass `Idempotency-Key` on retriable writes.","Core workflow: create an Agent (`POST /v1/agents`) and an Environment (`POST /v1/environments`), create a Session that references both (`POST /v1/sessions`), send a `user.message` event (`POST /v1/sessions/{session_id}/events`), and follow `GET /v1/sessions/{session_id}/events/stream` until `session.status_idle`.","Other resources: Memory stores (`/v1/memory_stores`), Files (`/v1/files`), Artifacts (`/v1/artifacts`), Vaults and credentials (`/v1/vaults`), Provider credentials (`/v1/provider_credentials`), Automations (`/v1/automations`), Inbound bindings (`/v1/inbound_bindings`), and Webhooks (`/v1/webhooks`). The deployment serves its OpenAPI 3.1 specification at `GET /openapi.json`."]},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"checkfu","hasAudioNarration":false,"actualSubdomain":"checkfu","customDomains":["docs.checkfu.com"],"gitSource":{"type":"github","owner":"checkfu","repo":"checkfu","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":false,"mountPath":"","label":"","_id":"6b0aaf67e0332a88365d3e07"},"entitlements":{},"buildId":"6b0eac971116c3bee2b8d601","clientVersion":"0.0.4377","searchFilterCounts":[{"language":"default","tag":"Reference","count":117},{"language":"default","tag":"HTTP API","count":110},{"language":"default","tag":"Documentation","count":25},{"language":"default","tag":"sessions","count":15},{"language":"default","tag":"automations","count":12},{"language":"default","tag":"vaults","count":12},{"language":"default","tag":"webhooks","count":12},{"language":"default","tag":"Concepts","count":11},{"language":"default","tag":"artifacts","count":11},{"language":"default","tag":"memory_stores","count":11}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"@font-face{font-family:\"Cal Sans\";src:url(\"/assets/fonts/cal-sans-latin-400.woff2\") format(\"woff2\");font-weight:400;font-style:normal;font-display:swap}h1,h2{font-family:\"Cal Sans\", ui-sans-serif, system-ui, -apple-system, sans-serif;font-weight:400;font-synthesis:none;letter-spacing:normal}#content-area a:not([class]),article a:not([class]){text-decoration-color:color-mix(in srgb, currentColor 30%, transparent);text-underline-offset:3px;transition:text-decoration-color 150ms ease-out}#content-area a:not([class]):hover,article a:not([class]):hover{text-decoration-color:currentColor}#sidebar,#sidebar-content{font-size:13px}#sidebar [class*=\"group-header\"]{font-size:11px;font-weight:500;letter-spacing:0.05em;text-transform:uppercase;color:color-mix(in srgb, currentColor 60%, transparent)}blockquote{font-style:normal;border-left-width:2px}#content-area table,article table{font-size:0.875rem;line-height:1.5}#content-area td,article td{vertical-align:top}#content-area th,article th{font-weight:600}img.nav-logo{height:1.5rem!important}"}]}
{"page":{"pagePath":"api-reference/automations/create-an-automation","slug":"/api-reference/automations/create-an-automation","pageMetadata":{"title":"Create an automation","description":"Create an automation that runs an agent on a cron schedule, on demand, or from incoming integrations. Each run starts a new session in the configured environment and sends the initial events.","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/automations","href":"/api-reference/automations/create-an-automation","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Create an automation that runs an agent on a cron schedule, on demand, or from incoming integrations. Each run starts a new session in the configured environment and sends the initial events.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"codeStyling":{"theme":{"light":"github-light","dark":"github-dark"}},"config":{},"pageMetadata":{"title":"Create an automation","description":"Create an automation that runs an agent on a cron schedule, on demand, or from incoming integrations. Each run starts a new session in the configured environment and sends the initial events.","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/automations","href":"/api-reference/automations/create-an-automation","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["automations"],"operationId":"automations.create","parameters":["8f958a0e-76b6-463a-bba8-c60e5ec3ea72"],"security":["b3dd7d2c-dab5-4b5a-a6ee-774100d8244e","d5bafe2d-cc1b-44c2-bac3-bfa9ff3c6ade"],"responses":{"201":"8fe8a16f-c700-4e22-ac2b-a94bc88cf7a8","202":"c317c3b7-c1f9-4604-9f33-3758b2ae2fbd","400":"ab604ffa-1ffb-4759-919c-fac63cfccef7","401":"bad82f6a-1e72-44e6-8d32-31e330912e63","404":"08ada14e-8dda-4828-b2f3-b38bb16dae3a","409":"f3e53586-0914-4d57-95ca-ef8f3e4f78a9","413":"991391f0-6712-406e-a7e1-70ed66f1d5f0","415":"0f7227b1-3d4d-4190-95e0-e6983b8e4583","429":"8e7566a7-f031-48bb-87d8-4f45213c1aa8","500":"4a3c6aaf-90ac-4976-8857-367fb73cd21c","503":"1131592e-5306-4a8d-93f9-58127dc11ae2"},"description":"Create an automation that runs an agent on a cron schedule, on demand, or from incoming integrations. Each run starts a new session in the configured environment and sends the initial events.","summary":"Create an automation","requestBody":"ebb163ac-e237-4914-bf48-efb4eecd6e43","x-forge-group-name":"automations","x-forge-method-name":"create","x-checkfu-endpoint":{"group":"automations","endpoint":"create"},"x-checkfu-mcp":{"name":"automations_createAutomation","destructive":false},"x-checkfu-cli":{"textOrObjectFields":["agent"],"repeatArrayField":{"field":"initial_events","flag":"initial-event","description":"The initial user.message event sent to each session, as JSON, YAML, or @file"},"examples":[{"command":"checkfu automations create --name \"Morning report\" --agent agent_123 --environment-id env_456 --initial-event '{\"type\":\"user.message\",\"content\":[{\"type\":\"text\",\"text\":\"Write the morning report.\"}]}' --schedule '{\"type\":\"cron\",\"expression\":\"0 9 * * 1-5\",\"timezone\":\"America/New_York\"}'","description":"Run an agent at 09:00 New York time on weekdays"}]},"method":"post","type":"path","servers":[],"path":"/v1/automations","baseUrlOptions":[],"title":"Create an automation","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"8f958a0e-76b6-463a-bba8-c60e5ec3ea72":{"name":"idempotency-key","in":"header","schema":{"type":"string","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1,"maxLength":128,"description":"Idempotency-Key header. Required: resending the request with the same key returns the automation the first request created, so a lost response never leaves a second schedule running","isRequired":true,"uniqueKey":"","typeLabel":"string"},"required":true}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":256,"description":"Human-readable automation name","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"agent":{"oneOf":[{"type":"string","description":"Agent to run in each session. Pass an ID to pin the latest version, or pass an object with type \"agent\", id, and version to pin a specific version.","maxLength":256,"minLength":1,"isRequired":true,"uniqueKey":"agent.oneOf.0","typeLabel":"string"},{"type":"object","description":"Agent to run in each session. Pass an ID to pin the latest version, or pass an object with type \"agent\", id, and version to pin a specific version.","required":["type","id"],"properties":{"type":{"type":"string","enum":["agent"],"isRequired":true,"uniqueKey":"agent.oneOf.1.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","minLength":1,"maxLength":256,"isRequired":true,"uniqueKey":"agent.oneOf.1.id","typeLabel":"string"},"version":{"type":"integer","minimum":1,"maximum":9007199254740991,"uniqueKey":"agent.oneOf.1.version","typeLabel":"integer"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"agent.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"agent","typeLabel":"string | object"},"environment_id":{"type":"string","minLength":1,"maxLength":256,"description":"Environment ID each run's session uses","isRequired":true,"uniqueKey":"environment_id","typeLabel":"string"},"initial_events":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["user.message"],"isRequired":true,"uniqueKey":"initial_events.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"],"isRequired":true,"uniqueKey":"initial_events.items.[INDEX].content.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"initial_events.items.[INDEX].content.items.[INDEX].text","typeLabel":"string"}},"required":["type","text"],"additionalProperties":false,"uniqueKey":"initial_events.items.[INDEX].content.items.[INDEX]","typeLabel":"object"},"minItems":1,"isRequired":true,"uniqueKey":"initial_events.items.[INDEX].content","typeLabel":"object[]"}},"required":["type","content"],"additionalProperties":false,"uniqueKey":"initial_events.items.[INDEX]","typeLabel":"object"},"minItems":1,"maxItems":1,"description":"Initial events sent when each run creates a session. Supply one text user.message event of up to 16384 UTF-16 code units after its text blocks are joined with newlines.","isRequired":true,"uniqueKey":"initial_events","typeLabel":"object[]"},"description":{"oneOf":[{"type":"string","description":"What the automation is for, up to 2048 characters","maxLength":2048,"uniqueKey":"description.oneOf.0","typeLabel":"string"},{"type":"null","description":"What the automation is for, up to 2048 characters","uniqueKey":"description.oneOf.1","typeLabel":"null"}],"uniqueKey":"description","typeLabel":"string | null"},"schedule":{"oneOf":[{"type":"object","description":"When the automation fires: a cron expression that names a single minute, so it fires at most once per clock hour, read in an IANA time zone name such as America/New_York. Omit it or send null to run this automation only on demand or from incoming integrations.","required":["type","expression","timezone"],"properties":{"type":{"type":"string","enum":["cron"],"isRequired":true,"uniqueKey":"schedule.oneOf.0.type","typeLabel":"enum\u003cstring>"},"expression":{"type":"string","minLength":1,"maxLength":256,"isRequired":true,"uniqueKey":"schedule.oneOf.0.expression","typeLabel":"string"},"timezone":{"type":"string","minLength":1,"maxLength":64,"isRequired":true,"uniqueKey":"schedule.oneOf.0.timezone","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"schedule.oneOf.0","typeLabel":"object"},{"type":"null","description":"When the automation fires: a cron expression that names a single minute, so it fires at most once per clock hour, read in an IANA time zone name such as America/New_York. Omit it or send null to run this automation only on demand or from incoming integrations.","uniqueKey":"schedule.oneOf.1","typeLabel":"null"}],"uniqueKey":"schedule","typeLabel":"object | null"},"resources":{"type":"array","items":{"oneOf":[{"type":"object","required":["type","url"],"properties":{"type":{"type":"string","enum":["github_repository"],"isRequired":true,"uniqueKey":"resources.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","maxLength":1024,"pattern":"^https:\\/\\/github\\.com\\/[A-Za-z0-9](?:[A-Za-z0-9_-]*[A-Za-z0-9])?\\/[A-Za-z0-9._-]+$","isRequired":true,"uniqueKey":"resources.items.[INDEX].oneOf.0.url","typeLabel":"string"},"access":{"type":"string","enum":["read_write","read_only"],"description":"read_write (default) lets the session push with the token. read_only allows clone and fetch.","uniqueKey":"resources.items.[INDEX].oneOf.0.access","typeLabel":"enum\u003cstring>"},"checkout":{"oneOf":[{"type":"object","description":"Branch or commit to check out. Defaults to the default branch.","required":["type","name"],"properties":{"type":{"type":"string","enum":["branch"],"isRequired":true,"uniqueKey":"resources.items.[INDEX].oneOf.0.checkout.oneOf.0.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","minLength":1,"maxLength":255,"isRequired":true,"uniqueKey":"resources.items.[INDEX].oneOf.0.checkout.oneOf.0.name","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"resources.items.[INDEX].oneOf.0.checkout.oneOf.0","typeLabel":"object"},{"type":"object","description":"Branch or commit to check out. Defaults to the default branch.","required":["type","sha"],"properties":{"type":{"type":"string","enum":["commit"],"isRequired":true,"uniqueKey":"resources.items.[INDEX].oneOf.0.checkout.oneOf.1.type","typeLabel":"enum\u003cstring>"},"sha":{"type":"string","pattern":"^[0-9a-f]{40}$","isRequired":true,"uniqueKey":"resources.items.[INDEX].oneOf.0.checkout.oneOf.1.sha","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"resources.items.[INDEX].oneOf.0.checkout.oneOf.1","typeLabel":"object"},{"type":"null","description":"Branch or commit to check out. Defaults to the default branch.","uniqueKey":"resources.items.[INDEX].oneOf.0.checkout.oneOf.2","typeLabel":"null"}],"uniqueKey":"resources.items.[INDEX].oneOf.0.checkout","typeLabel":"object · object · null"},"mount_path":{"type":"string","description":"Where the repository is cloned. Defaults to /workspace/\u003crepository>.","maxLength":1024,"pattern":"^(?:\\/(?:[^/\\\\.\\u0000-\\u001f\\u007f-\\u009f][^/\\\\\\u0000-\\u001f\\u007f-\\u009f]*|\\.[^/\\\\.\\u0000-\\u001f\\u007f-\\u009f][^/\\\\\\u0000-\\u001f\\u007f-\\u009f]*|\\.\\.[^/\\\\\\u0000-\\u001f\\u007f-\\u009f]+))+$","uniqueKey":"resources.items.[INDEX].oneOf.0.mount_path","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"resources.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type","memory_store_id"],"properties":{"type":{"type":"string","enum":["memory_store"],"isRequired":true,"uniqueKey":"resources.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"memory_store_id":{"type":"string","minLength":1,"maxLength":256,"description":"Memory store to mount","isRequired":true,"uniqueKey":"resources.items.[INDEX].oneOf.1.memory_store_id","typeLabel":"string"},"access":{"type":"string","enum":["read_write","read_only"],"description":"read_write (default) saves the session's changes; read_only does not","uniqueKey":"resources.items.[INDEX].oneOf.1.access","typeLabel":"enum\u003cstring>"},"instructions":{"oneOf":[{"type":"string","description":"How this session should use the store. Shown to the agent.","maxLength":4096,"uniqueKey":"resources.items.[INDEX].oneOf.1.instructions.oneOf.0","typeLabel":"string"},{"type":"null","description":"How this session should use the store. Shown to the agent.","uniqueKey":"resources.items.[INDEX].oneOf.1.instructions.oneOf.1","typeLabel":"null"}],"uniqueKey":"resources.items.[INDEX].oneOf.1.instructions","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"resources.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["type","artifact_id"],"properties":{"type":{"type":"string","enum":["artifact"],"isRequired":true,"uniqueKey":"resources.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"artifact_id":{"type":"string","minLength":1,"maxLength":256,"description":"Artifact whose files to mount, read-only","isRequired":true,"uniqueKey":"resources.items.[INDEX].oneOf.2.artifact_id","typeLabel":"string"},"version":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"Version to mount (default: the current version)","uniqueKey":"resources.items.[INDEX].oneOf.2.version","typeLabel":"integer"},"mount_path":{"type":"string","description":"Directory name under /mnt/artifacts. Defaults to a name derived from the artifact's name.","maxLength":504,"minLength":1,"pattern":"^(?:[^./\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029][^/\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029]*|\\.[^./\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029][^/\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029]*|\\.\\.[^/\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029]+)(?:\\/(?:[^./\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029][^/\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029]*|\\.[^./\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029][^/\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029]*|\\.\\.[^/\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029]+))*$","uniqueKey":"resources.items.[INDEX].oneOf.2.mount_path","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"resources.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["type","artifact_id"],"properties":{"type":{"type":"string","enum":["skill"],"isRequired":true,"uniqueKey":"resources.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"artifact_id":{"type":"string","minLength":1,"maxLength":256,"description":"Artifact that holds the skill: a SKILL.md at its root, and the files it refers to","isRequired":true,"uniqueKey":"resources.items.[INDEX].oneOf.3.artifact_id","typeLabel":"string"},"version":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"Version to use (default: the current version)","uniqueKey":"resources.items.[INDEX].oneOf.3.version","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"resources.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","required":["type","file_id"],"properties":{"type":{"type":"string","enum":["file"],"isRequired":true,"uniqueKey":"resources.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"},"file_id":{"type":"string","minLength":1,"description":"File to place in the session's uploads directory, read-only","isRequired":true,"uniqueKey":"resources.items.[INDEX].oneOf.4.file_id","typeLabel":"string"},"mount_path":{"oneOf":[{"type":"string","description":"Path under /mnt/session/uploads, such as /reports/input.csv. Omit it to use the filename, or send null to use the file ID.","maxLength":512,"minLength":1,"pattern":"^(?:[^./\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029][^/\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029]*|\\.[^./\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029][^/\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029]*|\\.\\.[^/\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029]+)(?:\\/(?:[^./\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029][^/\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029]*|\\.[^./\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029][^/\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029]*|\\.\\.[^/\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029]+))*$","uniqueKey":"resources.items.[INDEX].oneOf.4.mount_path.oneOf.0","typeLabel":"string"},{"type":"string","description":"Path under /mnt/session/uploads, such as /reports/input.csv. Omit it to use the filename, or send null to use the file ID.","maxLength":1004,"minLength":1,"pattern":"^\\/(?:[^./\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029][^/\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029]*|\\.[^./\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029][^/\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029]*|\\.\\.[^/\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029]+)(?:\\/(?:[^./\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029][^/\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029]*|\\.[^./\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029][^/\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029]*|\\.\\.[^/\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029]+))*$","uniqueKey":"resources.items.[INDEX].oneOf.4.mount_path.oneOf.1","typeLabel":"string"},{"type":"null","description":"Path under /mnt/session/uploads, such as /reports/input.csv. Omit it to use the filename, or send null to use the file ID.","uniqueKey":"resources.items.[INDEX].oneOf.4.mount_path.oneOf.2","typeLabel":"null"}],"uniqueKey":"resources.items.[INDEX].oneOf.4.mount_path","typeLabel":"string · string · null"}},"additionalProperties":false,"uniqueKey":"resources.items.[INDEX].oneOf.4","typeLabel":"object"}],"uniqueKey":"resources.items.[INDEX]","typeLabel":"object"},"maxItems":72,"description":"Repositories, memory stores, artifacts, skills and files to mount in each run's session. An automation stores no secrets, so a repository here cannot carry authorization_token. An artifact or skill without a version mounts the version that is current when the run starts.","uniqueKey":"resources","typeLabel":"object[]"},"vault_ids":{"type":"array","items":{"type":"string","minLength":1,"uniqueKey":"vault_ids.items.[INDEX]","typeLabel":"string"},"maxItems":20,"description":"Vaults whose credentials each run's session may use. Credentials are matched to the agent's MCP servers when each run starts, so a rotated or added credential applies to the next run.","uniqueKey":"vault_ids","typeLabel":"string[]"},"mcp_server_credentials":{"type":"array","items":{"type":"object","properties":{"mcp_server_name":{"type":"string","minLength":1,"maxLength":32,"pattern":"^[A-Za-z0-9-]+(?:_[A-Za-z0-9-]+)*$","isRequired":true,"uniqueKey":"mcp_server_credentials.items.[INDEX].mcp_server_name","typeLabel":"string"},"credential_id":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"mcp_server_credentials.items.[INDEX].credential_id","typeLabel":"string"}},"required":["mcp_server_name","credential_id"],"additionalProperties":false,"uniqueKey":"mcp_server_credentials.items.[INDEX]","typeLabel":"object"},"maxItems":40,"description":"Explicit credentials for named servers. An explicit binding wins over vault matching.","uniqueKey":"mcp_server_credentials","typeLabel":"object[]"},"machine_credentials":{"type":"array","items":{"type":"object","properties":{"credential_id":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"machine_credentials.items.[INDEX].credential_id","typeLabel":"string"},"env":{"type":"string","maxLength":64,"pattern":"^[A-Z_][A-Z0-9_]*$","uniqueKey":"machine_credentials.items.[INDEX].env","typeLabel":"string"}},"required":["credential_id"],"additionalProperties":false,"uniqueKey":"machine_credentials.items.[INDEX]","typeLabel":"object"},"maxItems":16,"description":"Credentials from the automation's vaults for each run's machine, as on session create. Each is checked when a run starts, so an archived credential refuses the run.","uniqueKey":"machine_credentials","typeLabel":"object[]"},"custom_tools":{"type":"string","enum":["refuse","wait"],"description":"What a run's session does when the agent calls a custom tool. refuse (default) tells the agent nobody will answer. wait pauses the session with stop_reason requires_action until your application sends user.custom_tool_result, as in a session you start yourself. Tools that need a person's approval are refused either way.","uniqueKey":"custom_tools","typeLabel":"enum\u003cstring>"}},"required":["name","agent","environment_id","initial_events"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"name":"\u003cstring>","agent":"\u003cstring>","environment_id":"\u003cstring>","initial_events":[{"type":"user.message","content":[{"type":"text","text":"\u003cstring>"}]}],"description":"\u003cstring>","schedule":{"type":"cron","expression":"\u003cstring>","timezone":"\u003cstring>"},"resources":[{"type":"github_repository","url":"\u003cstring>","checkout":{"type":"branch","name":"\u003cstring>"},"mount_path":"\u003cstring>"}],"vault_ids":["\u003cstring>"],"mcp_server_credentials":[{"mcp_server_name":"\u003cstring>","credential_id":"\u003cstring>"}],"machine_credentials":[{"credential_id":"\u003cstring>","env":"\u003cstring>"}]}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"8fe8a16f-c700-4e22-ac2b-a94bc88cf7a8":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"id","typeLabel":"string"},"type":{"type":"string","enum":["automation"],"isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","minLength":1,"maxLength":256,"isRequired":true,"uniqueKey":"name","typeLabel":"string"},"description":{"oneOf":[{"type":"string","maxLength":2048,"isRequired":true,"uniqueKey":"description.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"description.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"description","typeLabel":"string | null"},"environment_id":{"type":"string","minLength":1,"maxLength":256,"isRequired":true,"uniqueKey":"environment_id","typeLabel":"string"},"schedule":{"oneOf":[{"type":"object","required":["type","expression","timezone"],"properties":{"type":{"type":"string","enum":["cron"],"isRequired":true,"uniqueKey":"schedule.oneOf.0.type","typeLabel":"enum\u003cstring>"},"expression":{"type":"string","minLength":1,"maxLength":256,"isRequired":true,"uniqueKey":"schedule.oneOf.0.expression","typeLabel":"string"},"timezone":{"type":"string","minLength":1,"maxLength":64,"isRequired":true,"uniqueKey":"schedule.oneOf.0.timezone","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"schedule.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"schedule.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"schedule","typeLabel":"object | null"},"status":{"type":"string","enum":["active","paused","archived"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"pause_reason":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"pause_reason.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"pause_reason.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"pause_reason","typeLabel":"string | null"},"revision":{"type":"integer","minimum":1,"maximum":9007199254740991,"isRequired":true,"uniqueKey":"revision","typeLabel":"integer"},"last_run_at":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"last_run_at.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"last_run_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"last_run_at","typeLabel":"string | null"},"created_at":{"type":"string","isRequired":true,"uniqueKey":"created_at","typeLabel":"string"},"updated_at":{"type":"string","isRequired":true,"uniqueKey":"updated_at","typeLabel":"string"},"archived_at":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"archived_at.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"archived_at.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"archived_at","typeLabel":"string | null"},"agent":{"type":"object","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"agent.id","typeLabel":"string"},"version":{"type":"integer","minimum":1,"maximum":9007199254740991,"isRequired":true,"uniqueKey":"agent.version","typeLabel":"integer"}},"required":["id","version"],"additionalProperties":false,"isRequired":true,"uniqueKey":"agent","typeLabel":"object"},"initial_events":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["user.message"],"isRequired":true,"uniqueKey":"initial_events.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"],"isRequired":true,"uniqueKey":"initial_events.items.[INDEX].content.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"initial_events.items.[INDEX].content.items.[INDEX].text","typeLabel":"string"}},"required":["type","text"],"additionalProperties":false,"uniqueKey":"initial_events.items.[INDEX].content.items.[INDEX]","typeLabel":"object"},"minItems":1,"isRequired":true,"uniqueKey":"initial_events.items.[INDEX].content","typeLabel":"object[]"}},"required":["type","content"],"additionalProperties":false,"uniqueKey":"initial_events.items.[INDEX]","typeLabel":"object"},"minItems":1,"maxItems":1,"isRequired":true,"uniqueKey":"initial_events","typeLabel":"object[]"},"resources":{"type":"array","items":{"oneOf":[{"type":"object","required":["type","url"],"properties":{"type":{"type":"string","enum":["github_repository"],"isRequired":true,"uniqueKey":"resources.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"url":{"type":"string","maxLength":1024,"pattern":"^https:\\/\\/github\\.com\\/[A-Za-z0-9](?:[A-Za-z0-9_-]*[A-Za-z0-9])?\\/[A-Za-z0-9._-]+$","isRequired":true,"uniqueKey":"resources.items.[INDEX].oneOf.0.url","typeLabel":"string"},"access":{"type":"string","enum":["read_write","read_only"],"description":"read_write (default) lets the session push with the token. read_only allows clone and fetch.","uniqueKey":"resources.items.[INDEX].oneOf.0.access","typeLabel":"enum\u003cstring>"},"checkout":{"oneOf":[{"type":"object","description":"Branch or commit to check out. Defaults to the default branch.","required":["type","name"],"properties":{"type":{"type":"string","enum":["branch"],"isRequired":true,"uniqueKey":"resources.items.[INDEX].oneOf.0.checkout.oneOf.0.type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","minLength":1,"maxLength":255,"isRequired":true,"uniqueKey":"resources.items.[INDEX].oneOf.0.checkout.oneOf.0.name","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"resources.items.[INDEX].oneOf.0.checkout.oneOf.0","typeLabel":"object"},{"type":"object","description":"Branch or commit to check out. Defaults to the default branch.","required":["type","sha"],"properties":{"type":{"type":"string","enum":["commit"],"isRequired":true,"uniqueKey":"resources.items.[INDEX].oneOf.0.checkout.oneOf.1.type","typeLabel":"enum\u003cstring>"},"sha":{"type":"string","pattern":"^[0-9a-f]{40}$","isRequired":true,"uniqueKey":"resources.items.[INDEX].oneOf.0.checkout.oneOf.1.sha","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"resources.items.[INDEX].oneOf.0.checkout.oneOf.1","typeLabel":"object"},{"type":"null","description":"Branch or commit to check out. Defaults to the default branch.","uniqueKey":"resources.items.[INDEX].oneOf.0.checkout.oneOf.2","typeLabel":"null"}],"uniqueKey":"resources.items.[INDEX].oneOf.0.checkout","typeLabel":"object · object · null"},"mount_path":{"type":"string","description":"Where the repository is cloned. Defaults to /workspace/\u003crepository>.","maxLength":1024,"pattern":"^(?:\\/(?:[^/\\\\.\\u0000-\\u001f\\u007f-\\u009f][^/\\\\\\u0000-\\u001f\\u007f-\\u009f]*|\\.[^/\\\\.\\u0000-\\u001f\\u007f-\\u009f][^/\\\\\\u0000-\\u001f\\u007f-\\u009f]*|\\.\\.[^/\\\\\\u0000-\\u001f\\u007f-\\u009f]+))+$","uniqueKey":"resources.items.[INDEX].oneOf.0.mount_path","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"resources.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["type","memory_store_id"],"properties":{"type":{"type":"string","enum":["memory_store"],"isRequired":true,"uniqueKey":"resources.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"memory_store_id":{"type":"string","minLength":1,"maxLength":256,"description":"Memory store to mount","isRequired":true,"uniqueKey":"resources.items.[INDEX].oneOf.1.memory_store_id","typeLabel":"string"},"access":{"type":"string","enum":["read_write","read_only"],"description":"read_write (default) saves the session's changes; read_only does not","uniqueKey":"resources.items.[INDEX].oneOf.1.access","typeLabel":"enum\u003cstring>"},"instructions":{"oneOf":[{"type":"string","description":"How this session should use the store. Shown to the agent.","maxLength":4096,"uniqueKey":"resources.items.[INDEX].oneOf.1.instructions.oneOf.0","typeLabel":"string"},{"type":"null","description":"How this session should use the store. Shown to the agent.","uniqueKey":"resources.items.[INDEX].oneOf.1.instructions.oneOf.1","typeLabel":"null"}],"uniqueKey":"resources.items.[INDEX].oneOf.1.instructions","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"resources.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","required":["type","artifact_id"],"properties":{"type":{"type":"string","enum":["artifact"],"isRequired":true,"uniqueKey":"resources.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"artifact_id":{"type":"string","minLength":1,"maxLength":256,"description":"Artifact whose files to mount, read-only","isRequired":true,"uniqueKey":"resources.items.[INDEX].oneOf.2.artifact_id","typeLabel":"string"},"version":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"Version to mount (default: the current version)","uniqueKey":"resources.items.[INDEX].oneOf.2.version","typeLabel":"integer"},"mount_path":{"type":"string","description":"Directory name under /mnt/artifacts. Defaults to a name derived from the artifact's name.","maxLength":504,"minLength":1,"pattern":"^(?:[^./\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029][^/\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029]*|\\.[^./\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029][^/\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029]*|\\.\\.[^/\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029]+)(?:\\/(?:[^./\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029][^/\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029]*|\\.[^./\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029][^/\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029]*|\\.\\.[^/\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029]+))*$","uniqueKey":"resources.items.[INDEX].oneOf.2.mount_path","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"resources.items.[INDEX].oneOf.2","typeLabel":"object"},{"type":"object","required":["type","artifact_id"],"properties":{"type":{"type":"string","enum":["skill"],"isRequired":true,"uniqueKey":"resources.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"artifact_id":{"type":"string","minLength":1,"maxLength":256,"description":"Artifact that holds the skill: a SKILL.md at its root, and the files it refers to","isRequired":true,"uniqueKey":"resources.items.[INDEX].oneOf.3.artifact_id","typeLabel":"string"},"version":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"Version to use (default: the current version)","uniqueKey":"resources.items.[INDEX].oneOf.3.version","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"resources.items.[INDEX].oneOf.3","typeLabel":"object"},{"type":"object","required":["type","file_id"],"properties":{"type":{"type":"string","enum":["file"],"isRequired":true,"uniqueKey":"resources.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"},"file_id":{"type":"string","minLength":1,"description":"File to place in the session's uploads directory, read-only","isRequired":true,"uniqueKey":"resources.items.[INDEX].oneOf.4.file_id","typeLabel":"string"},"mount_path":{"type":"string","minLength":1,"maxLength":512,"pattern":"^(?:[^./\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029][^/\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029]*|\\.[^./\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029][^/\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029]*|\\.\\.[^/\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029]+)(?:\\/(?:[^./\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029][^/\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029]*|\\.[^./\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029][^/\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029]*|\\.\\.[^/\\\\\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029]+))*$","description":"Path relative to /mnt/session/uploads, up to 1003 UTF-16 code units. Defaults to the file's name.","uniqueKey":"resources.items.[INDEX].oneOf.4.mount_path","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"resources.items.[INDEX].oneOf.4","typeLabel":"object"}],"uniqueKey":"resources.items.[INDEX]","typeLabel":"object"},"maxItems":72,"isRequired":true,"uniqueKey":"resources","typeLabel":"object[]"},"vault_ids":{"type":"array","items":{"type":"string","minLength":1,"uniqueKey":"vault_ids.items.[INDEX]","typeLabel":"string"},"maxItems":20,"isRequired":true,"uniqueKey":"vault_ids","typeLabel":"string[]"},"mcp_server_credentials":{"type":"array","items":{"type":"object","properties":{"mcp_server_name":{"type":"string","minLength":1,"maxLength":32,"pattern":"^[A-Za-z0-9-]+(?:_[A-Za-z0-9-]+)*$","isRequired":true,"uniqueKey":"mcp_server_credentials.items.[INDEX].mcp_server_name","typeLabel":"string"},"credential_id":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"mcp_server_credentials.items.[INDEX].credential_id","typeLabel":"string"}},"required":["mcp_server_name","credential_id"],"additionalProperties":false,"uniqueKey":"mcp_server_credentials.items.[INDEX]","typeLabel":"object"},"maxItems":40,"isRequired":true,"uniqueKey":"mcp_server_credentials","typeLabel":"object[]"},"machine_credentials":{"type":"array","items":{"type":"object","properties":{"credential_id":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"machine_credentials.items.[INDEX].credential_id","typeLabel":"string"},"env":{"type":"string","maxLength":64,"pattern":"^[A-Z_][A-Z0-9_]*$","uniqueKey":"machine_credentials.items.[INDEX].env","typeLabel":"string"}},"required":["credential_id"],"additionalProperties":false,"uniqueKey":"machine_credentials.items.[INDEX]","typeLabel":"object"},"maxItems":16,"isRequired":true,"uniqueKey":"machine_credentials","typeLabel":"object[]"},"custom_tools":{"type":"string","enum":["refuse","wait"],"isRequired":true,"uniqueKey":"custom_tools","typeLabel":"enum\u003cstring>"},"run_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"isRequired":true,"uniqueKey":"run_count","typeLabel":"integer"},"upcoming_runs_at":{"type":"array","items":{"type":"string","uniqueKey":"upcoming_runs_at.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"upcoming_runs_at","typeLabel":"string[]"}},"required":["id","type","name","description","environment_id","schedule","status","pause_reason","revision","last_run_at","created_at","updated_at","archived_at","agent","initial_events","resources","vault_ids","mcp_server_credentials","machine_credentials","custom_tools","run_count","upcoming_runs_at"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"\u003cstring>","type":"automation","name":"\u003cstring>","description":"\u003cstring>","environment_id":"\u003cstring>","schedule":{"type":"cron","expression":"\u003cstring>","timezone":"\u003cstring>"},"status":"active","pause_reason":"\u003cstring>","revision":4503599627370496,"last_run_at":"\u003cstring>","created_at":"\u003cstring>","updated_at":"\u003cstring>","archived_at":"\u003cstring>","agent":{"id":"\u003cstring>","version":4503599627370496},"initial_events":[{"type":"user.message","content":[{"type":"text","text":"\u003cstring>"}]}],"resources":[{"type":"github_repository","url":"\u003cstring>","access":"read_write","checkout":{"type":"branch","name":"\u003cstring>"},"mount_path":"\u003cstring>"}],"vault_ids":["\u003cstring>"],"mcp_server_credentials":[{"mcp_server_name":"\u003cstring>","credential_id":"\u003cstring>"}],"machine_credentials":[{"credential_id":"\u003cstring>","env":"\u003cstring>"}],"custom_tools":"refuse","run_count":0,"upcoming_runs_at":["\u003cstring>"]}}},"exampleType":"generated"}},"exampleType":"generated"},"c317c3b7-c1f9-4604-9f33-3758b2ae2fbd":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"type":{"type":"string","enum":["automation"],"isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"pending":{"type":"boolean","enum":[true],"isRequired":true,"uniqueKey":"pending","typeLabel":"enum\u003cboolean>"}},"required":["id","type","pending"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"\u003cstring>","type":"automation","pending":true}}},"exampleType":"generated"}},"exampleType":"generated"},"ab604ffa-1ffb-4759-919c-fac63cfccef7":{"description":"Error","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"error":{"type":"object","properties":{"type":{"type":"string","enum":["invalid_request_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"code":{"type":"string","enum":["session_awaiting_action","idempotency_key_reused","agent_model_unavailable","automation_reference_unavailable","automation_memory_store_archived","automation_schedule_unusable","automation_capacity_reached","credential_url_taken","mcp_server_blocked","mcp_server_credential_invalid","mcp_server_credentials_ambiguous","machine_credential_invalid"],"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"}},"required":["type","message"],"additionalProperties":false,"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"accepted":{"type":"array","uniqueKey":"accepted","typeLabel":"array"},"failed_index":{"type":"number","uniqueKey":"failed_index","typeLabel":"number"},"unconfirmed_index":{"type":"number","uniqueKey":"unconfirmed_index","typeLabel":"number"}},"required":["type","error","request_id"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"error","error":{"type":"invalid_request_error","message":"\u003cstring>","code":"session_awaiting_action"},"request_id":"\u003cstring>","accepted":"\u003carray>","failed_index":123,"unconfirmed_index":123}}},"exampleType":"generated"}},"exampleType":"generated"},"bad82f6a-1e72-44e6-8d32-31e330912e63":{"description":"Error","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"error":{"type":"object","properties":{"type":{"type":"string","enum":["authentication_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"code":{"type":"string","enum":["session_awaiting_action","idempotency_key_reused","agent_model_unavailable","automation_reference_unavailable","automation_memory_store_archived","automation_schedule_unusable","automation_capacity_reached","credential_url_taken","mcp_server_blocked","mcp_server_credential_invalid","mcp_server_credentials_ambiguous","machine_credential_invalid"],"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"}},"required":["type","message"],"additionalProperties":false,"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"accepted":{"type":"array","uniqueKey":"accepted","typeLabel":"array"},"failed_index":{"type":"number","uniqueKey":"failed_index","typeLabel":"number"},"unconfirmed_index":{"type":"number","uniqueKey":"unconfirmed_index","typeLabel":"number"}},"required":["type","error","request_id"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"error","error":{"type":"authentication_error","message":"\u003cstring>","code":"session_awaiting_action"},"request_id":"\u003cstring>","accepted":"\u003carray>","failed_index":123,"unconfirmed_index":123}}},"exampleType":"generated"}},"exampleType":"generated"},"08ada14e-8dda-4828-b2f3-b38bb16dae3a":{"description":"Error","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"error":{"type":"object","properties":{"type":{"type":"string","enum":["not_found_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"code":{"type":"string","enum":["session_awaiting_action","idempotency_key_reused","agent_model_unavailable","automation_reference_unavailable","automation_memory_store_archived","automation_schedule_unusable","automation_capacity_reached","credential_url_taken","mcp_server_blocked","mcp_server_credential_invalid","mcp_server_credentials_ambiguous","machine_credential_invalid"],"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"}},"required":["type","message"],"additionalProperties":false,"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"accepted":{"type":"array","uniqueKey":"accepted","typeLabel":"array"},"failed_index":{"type":"number","uniqueKey":"failed_index","typeLabel":"number"},"unconfirmed_index":{"type":"number","uniqueKey":"unconfirmed_index","typeLabel":"number"}},"required":["type","error","request_id"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"error","error":{"type":"not_found_error","message":"\u003cstring>","code":"session_awaiting_action"},"request_id":"\u003cstring>","accepted":"\u003carray>","failed_index":123,"unconfirmed_index":123}}},"exampleType":"generated"}},"exampleType":"generated"},"f3e53586-0914-4d57-95ca-ef8f3e4f78a9":{"description":"Error","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"error":{"type":"object","properties":{"type":{"type":"string","enum":["conflict_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"code":{"type":"string","enum":["session_awaiting_action","idempotency_key_reused","agent_model_unavailable","automation_reference_unavailable","automation_memory_store_archived","automation_schedule_unusable","automation_capacity_reached","credential_url_taken","mcp_server_blocked","mcp_server_credential_invalid","mcp_server_credentials_ambiguous","machine_credential_invalid"],"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"}},"required":["type","message"],"additionalProperties":false,"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"accepted":{"type":"array","uniqueKey":"accepted","typeLabel":"array"},"failed_index":{"type":"number","uniqueKey":"failed_index","typeLabel":"number"},"unconfirmed_index":{"type":"number","uniqueKey":"unconfirmed_index","typeLabel":"number"}},"required":["type","error","request_id"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"error","error":{"type":"conflict_error","message":"\u003cstring>","code":"session_awaiting_action"},"request_id":"\u003cstring>","accepted":"\u003carray>","failed_index":123,"unconfirmed_index":123}}},"exampleType":"generated"}},"exampleType":"generated"},"991391f0-6712-406e-a7e1-70ed66f1d5f0":{"description":"Error","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"error":{"type":"object","properties":{"type":{"type":"string","enum":["payload_too_large"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"code":{"type":"string","enum":["session_awaiting_action","idempotency_key_reused","agent_model_unavailable","automation_reference_unavailable","automation_memory_store_archived","automation_schedule_unusable","automation_capacity_reached","credential_url_taken","mcp_server_blocked","mcp_server_credential_invalid","mcp_server_credentials_ambiguous","machine_credential_invalid"],"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"}},"required":["type","message"],"additionalProperties":false,"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"accepted":{"type":"array","uniqueKey":"accepted","typeLabel":"array"},"failed_index":{"type":"number","uniqueKey":"failed_index","typeLabel":"number"},"unconfirmed_index":{"type":"number","uniqueKey":"unconfirmed_index","typeLabel":"number"}},"required":["type","error","request_id"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"error","error":{"type":"payload_too_large","message":"\u003cstring>","code":"session_awaiting_action"},"request_id":"\u003cstring>","accepted":"\u003carray>","failed_index":123,"unconfirmed_index":123}}},"exampleType":"generated"}},"exampleType":"generated"},"0f7227b1-3d4d-4190-95e0-e6983b8e4583":{"description":"Error","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"error":{"type":"object","properties":{"type":{"type":"string","enum":["unsupported_media_type"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"code":{"type":"string","enum":["session_awaiting_action","idempotency_key_reused","agent_model_unavailable","automation_reference_unavailable","automation_memory_store_archived","automation_schedule_unusable","automation_capacity_reached","credential_url_taken","mcp_server_blocked","mcp_server_credential_invalid","mcp_server_credentials_ambiguous","machine_credential_invalid"],"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"}},"required":["type","message"],"additionalProperties":false,"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"accepted":{"type":"array","uniqueKey":"accepted","typeLabel":"array"},"failed_index":{"type":"number","uniqueKey":"failed_index","typeLabel":"number"},"unconfirmed_index":{"type":"number","uniqueKey":"unconfirmed_index","typeLabel":"number"}},"required":["type","error","request_id"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"error","error":{"type":"unsupported_media_type","message":"\u003cstring>","code":"session_awaiting_action"},"request_id":"\u003cstring>","accepted":"\u003carray>","failed_index":123,"unconfirmed_index":123}}},"exampleType":"generated"}},"exampleType":"generated"},"8e7566a7-f031-48bb-87d8-4f45213c1aa8":{"description":"Error","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"error":{"type":"object","properties":{"type":{"type":"string","enum":["rate_limit_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"code":{"type":"string","enum":["session_awaiting_action","idempotency_key_reused","agent_model_unavailable","automation_reference_unavailable","automation_memory_store_archived","automation_schedule_unusable","automation_capacity_reached","credential_url_taken","mcp_server_blocked","mcp_server_credential_invalid","mcp_server_credentials_ambiguous","machine_credential_invalid"],"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"}},"required":["type","message"],"additionalProperties":false,"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"accepted":{"type":"array","uniqueKey":"accepted","typeLabel":"array"},"failed_index":{"type":"number","uniqueKey":"failed_index","typeLabel":"number"},"unconfirmed_index":{"type":"number","uniqueKey":"unconfirmed_index","typeLabel":"number"}},"required":["type","error","request_id"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"error","error":{"type":"rate_limit_error","message":"\u003cstring>","code":"session_awaiting_action"},"request_id":"\u003cstring>","accepted":"\u003carray>","failed_index":123,"unconfirmed_index":123}}},"exampleType":"generated"}},"exampleType":"generated"},"4a3c6aaf-90ac-4976-8857-367fb73cd21c":{"description":"Error","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"error":{"type":"object","properties":{"type":{"type":"string","enum":["internal_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"code":{"type":"string","enum":["session_awaiting_action","idempotency_key_reused","agent_model_unavailable","automation_reference_unavailable","automation_memory_store_archived","automation_schedule_unusable","automation_capacity_reached","credential_url_taken","mcp_server_blocked","mcp_server_credential_invalid","mcp_server_credentials_ambiguous","machine_credential_invalid"],"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"}},"required":["type","message"],"additionalProperties":false,"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"accepted":{"type":"array","uniqueKey":"accepted","typeLabel":"array"},"failed_index":{"type":"number","uniqueKey":"failed_index","typeLabel":"number"},"unconfirmed_index":{"type":"number","uniqueKey":"unconfirmed_index","typeLabel":"number"}},"required":["type","error","request_id"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"error","error":{"type":"internal_error","message":"\u003cstring>","code":"session_awaiting_action"},"request_id":"\u003cstring>","accepted":"\u003carray>","failed_index":123,"unconfirmed_index":123}}},"exampleType":"generated"}},"exampleType":"generated"},"1131592e-5306-4a8d-93f9-58127dc11ae2":{"description":"Error","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["error"],"isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"error":{"type":"object","properties":{"type":{"type":"string","enum":["service_unavailable"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"code":{"type":"string","enum":["session_awaiting_action","idempotency_key_reused","agent_model_unavailable","automation_reference_unavailable","automation_memory_store_archived","automation_schedule_unusable","automation_capacity_reached","credential_url_taken","mcp_server_blocked","mcp_server_credential_invalid","mcp_server_credentials_ambiguous","machine_credential_invalid"],"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"}},"required":["type","message"],"additionalProperties":false,"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"type":"string","minLength":1,"isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"accepted":{"type":"array","uniqueKey":"accepted","typeLabel":"array"},"failed_index":{"type":"number","uniqueKey":"failed_index","typeLabel":"number"},"unconfirmed_index":{"type":"number","uniqueKey":"unconfirmed_index","typeLabel":"number"}},"required":["type","error","request_id"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"error","error":{"type":"service_unavailable","message":"\u003cstring>","code":"session_awaiting_action"},"request_id":"\u003cstring>","accepted":"\u003carray>","failed_index":123,"unconfirmed_index":123}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"b3dd7d2c-dab5-4b5a-a6ee-774100d8244e":{"bearer":{"type":"http","scheme":"Bearer","scopes":[],"schemeName":"bearer"}},"d5bafe2d-cc1b-44c2-bac3-bfa9ff3c6ade":{"apiKey":{"type":"apiKey","name":"x-api-key","in":"header","scopes":[],"schemeName":"apiKey"}}},"servers":{},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"Bearer","scopes":[],"schemeName":"bearer"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearer","name":"Authorization"}],"title":"bearer"},{"schemes":[{"scheme":{"type":"apiKey","name":"x-api-key","in":"header","scopes":[],"schemeName":"apiKey"},"schema":{"title":"x-api-key","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKey","name":"x-api-key"}],"title":"apiKey"}]},"originalFileLocation":"openapi.json"},"subdomain":"checkfu","siteName":"Checkfu","title":"Create an automation - Checkfu","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-01T09:53:00.854Z","originalFileLocation":"api-reference/automations/create-an-automation.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Create an automation that runs an agent on a cron schedule, on demand, or from incoming integrations. Each run starts a new session in the configured environment and sends the initial events.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Checkfu\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/checkfu/WyYtCDf7eiuEgSr2/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/checkfu/WyYtCDf7eiuEgSr2/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/checkfu/WyYtCDf7eiuEgSr2/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/checkfu/WyYtCDf7eiuEgSr2/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/checkfu/WyYtCDf7eiuEgSr2/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/checkfu/WyYtCDf7eiuEgSr2/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/checkfu/WyYtCDf7eiuEgSr2/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/checkfu/WyYtCDf7eiuEgSr2/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/checkfu/WyYtCDf7eiuEgSr2/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create an automation - Checkfu\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create an automation that runs an agent on a cron schedule, on demand, or from incoming integrations. Each run starts a new session in the configured environment and sends the initial events.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Checkfu documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.checkfu.com/api-reference/automations/create-an-automation\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://docs.checkfu.com/assets/og.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create an automation - Checkfu\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create an automation that runs an agent on a cron schedule, on demand, or from incoming integrations. Each run starts a new session in the configured environment and sends the initial events.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://docs.checkfu.com/assets/og.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/checkfu/WyYtCDf7eiuEgSr2/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Checkfu\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#282828\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.checkfu.com/api-reference/automations/create-an-automation\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/automations/create-an-automation.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.checkfu.com/#organization\",\"name\":\"Checkfu\",\"url\":\"https://docs.checkfu.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/checkfu/roudJjfqJYVsUhiz/assets/logo-light.svg?fit=max\u0026auto=format\u0026n=roudJjfqJYVsUhiz\u0026q=85\u0026s=89c8c4d6c852e4947cbe90639b96e7cc\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.checkfu.com#website\",\"name\":\"Checkfu\",\"url\":\"https://docs.checkfu.com\",\"publisher\":{\"@id\":\"https://docs.checkfu.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.checkfu.com/api-reference/automations/create-an-automation#webpage\",\"url\":\"https://docs.checkfu.com/api-reference/automations/create-an-automation\",\"name\":\"Create an automation\",\"description\":\"Create an automation that runs an agent on a cron schedule, on demand, or from incoming integrations. Each run starts a new session in the configured environment and sends the initial events.\",\"dateModified\":\"2026-12-01T09:53:00.854Z\",\"isPartOf\":{\"@id\":\"https://docs.checkfu.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.checkfu.com/api-reference/automations/create-an-automation#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.checkfu.com/api-reference/automations/create-an-automation#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"HTTP API\",\"item\":\"https://docs.checkfu.com/api-reference/health/health-check\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"automations\",\"item\":\"https://docs.checkfu.com/api-reference/automations/list-automations\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Create an automation\",\"item\":\"https://docs.checkfu.com/api-reference/automations/create-an-automation\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.checkfu.com/api-reference/automations/create-an-automation#apireference\",\"headline\":\"Create an automation\",\"name\":\"Create an automation\",\"description\":\"Create an automation that runs an agent on a cron schedule, on demand, or from incoming integrations. Each run starts a new session in the configured environment and sends the initial events.\",\"url\":\"https://docs.checkfu.com/api-reference/automations/create-an-automation\",\"mainEntityOfPage\":{\"@id\":\"https://docs.checkfu.com/api-reference/automations/create-an-automation#webpage\"},\"image\":\"https://docs.checkfu.com/assets/og.png\",\"dateModified\":\"2026-12-01T09:53:00.854Z\",\"publisher\":{\"@id\":\"https://docs.checkfu.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.checkfu.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Checkfu\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Checkfu\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/automations/create-an-automation.md","siteName":"Checkfu","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"Reference","groups":[{"group":"Interfaces","pages":[{"title":"HTTP API","href":"/reference/http-api"},{"title":"TypeScript SDK","href":"/reference/typescript-sdk"},{"title":"CLI reference","sidebarTitle":"CLI","href":"/reference/cli"},{"title":"MCP server","sidebarTitle":"MCP","href":"/reference/mcp"}]},{"group":"Specifications","pages":[{"title":"Session events","sidebarTitle":"Events","href":"/reference/events"},{"title":"Errors","href":"/reference/errors"},{"title":"Limits","href":"/reference/limits"}]},{"group":"HTTP API","pages":[{"group":"health","pages":[{"title":"Health check","deprecated":null,"version":null,"openapi":"/openapi.json get /health","href":"/api-reference/health/health-check"}]},{"group":"auth","pages":[{"title":"Verify a credential","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/auth/verify","href":"/api-reference/auth/verify-a-credential"}]},{"group":"agents","pages":[{"title":"List agents","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/agents","href":"/api-reference/agents/list-agents"},{"title":"Create an agent","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/agents","href":"/api-reference/agents/create-an-agent"},{"title":"Retrieve an agent","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/agents/{agent_id}","href":"/api-reference/agents/retrieve-an-agent"},{"title":"Update an agent","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/agents/{agent_id}","href":"/api-reference/agents/update-an-agent"},{"title":"List agent versions","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/agents/{agent_id}/versions","href":"/api-reference/agents/list-agent-versions"},{"title":"Archive an agent","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/agents/{agent_id}/archive","href":"/api-reference/agents/archive-an-agent"}]},{"group":"models","pages":[{"title":"List suggested models","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/models","href":"/api-reference/models/list-suggested-models"}]},{"group":"provider_credentials","pages":[{"title":"List model provider credentials","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/provider_credentials","href":"/api-reference/provider_credentials/list-model-provider-credentials"},{"title":"Add a model provider credential","deprecated":null,"version":null,"openapi":"/openapi.json put /v1/provider_credentials/{credential_id}","href":"/api-reference/provider_credentials/add-a-model-provider-credential"},{"title":"Revoke a model provider credential","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/provider_credentials/{credential_id}","href":"/api-reference/provider_credentials/revoke-a-model-provider-credential"}]},{"group":"inbound_bindings","pages":[{"title":"List incoming endpoints without credential material","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/inbound_bindings","href":"/api-reference/inbound_bindings/list-incoming-endpoints-without-credential-material"},{"title":"Create a signed endpoint for an automation","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/inbound_bindings","href":"/api-reference/inbound_bindings/create-a-signed-endpoint-for-an-automation"},{"title":"Read the status of incoming endpoint setup","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/inbound_bindings/{binding_id}/setup","href":"/api-reference/inbound_bindings/read-the-status-of-incoming-endpoint-setup"},{"title":"Confirm a Notion webhook after verifying its subscription","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/inbound_bindings/{binding_id}/confirm","href":"/api-reference/inbound_bindings/confirm-a-notion-webhook-after-verifying-its-subscription"},{"title":"Install or replace a Linear webhook signing secret","deprecated":null,"version":null,"openapi":"/openapi.json put /v1/inbound_bindings/{binding_id}/signing_secret","href":"/api-reference/inbound_bindings/install-or-replace-a-linear-webhook-signing-secret"},{"title":"Revoke a signed endpoint","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/inbound_bindings/{binding_id}","href":"/api-reference/inbound_bindings/revoke-a-signed-endpoint"}]},{"group":"inbound_deliveries","pages":[{"title":"Receive a signed webhook or Discord interaction","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/incoming/{binding_id}","href":"/api-reference/inbound_deliveries/receive-a-signed-webhook-or-discord-interaction"}]},{"group":"environments","pages":[{"title":"List environments","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/environments","href":"/api-reference/environments/list-environments"},{"title":"Create an environment","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/environments","href":"/api-reference/environments/create-an-environment"},{"title":"Retrieve an environment","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/environments/{environment_id}","href":"/api-reference/environments/retrieve-an-environment"},{"title":"Update an environment","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/environments/{environment_id}","href":"/api-reference/environments/update-an-environment"},{"title":"Delete an environment","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/environments/{environment_id}","href":"/api-reference/environments/delete-an-environment"},{"title":"Archive an environment","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/environments/{environment_id}/archive","href":"/api-reference/environments/archive-an-environment"}]},{"group":"sessions","pages":[{"title":"List sessions","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/sessions","href":"/api-reference/sessions/list-sessions"},{"title":"Create a session","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/sessions","href":"/api-reference/sessions/create-a-session"},{"title":"Retrieve a session","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/sessions/{session_id}","href":"/api-reference/sessions/retrieve-a-session"},{"title":"Select a session runtime","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/sessions/{session_id}/runtime","href":"/api-reference/sessions/select-a-session-runtime"},{"title":"Archive a session","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/sessions/{session_id}/archive","href":"/api-reference/sessions/archive-a-session"},{"title":"List session events","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/sessions/{session_id}/events","href":"/api-reference/sessions/list-session-events"},{"title":"Send session events","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/sessions/{session_id}/events","href":"/api-reference/sessions/send-session-events"},{"title":"Stream session events","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/sessions/{session_id}/events/stream","href":"/api-reference/sessions/stream-session-events"},{"title":"Retrieve a session's outputs","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/sessions/{session_id}/outputs","href":"/api-reference/sessions/retrieve-a-sessions-outputs"},{"title":"Retrieve recorded model usage and cost","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/sessions/{session_id}/usage","href":"/api-reference/sessions/retrieve-recorded-model-usage-and-cost"},{"title":"List recorded model requests","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/sessions/{session_id}/usage/requests","href":"/api-reference/sessions/list-recorded-model-requests"},{"title":"List a session's output history","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/sessions/{session_id}/outputs/history","href":"/api-reference/sessions/list-a-sessions-output-history"},{"title":"List session resources","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/sessions/{session_id}/resources","href":"/api-reference/sessions/list-session-resources"},{"title":"Retrieve a session resource","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/sessions/{session_id}/resources/{resource_id}","href":"/api-reference/sessions/retrieve-a-session-resource"},{"title":"Rotate a repository's token","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/sessions/{session_id}/resources/{resource_id}","href":"/api-reference/sessions/rotate-a-repositorys-token"}]},{"group":"automations","pages":[{"title":"List automations","description":"List automations in creation order, oldest first by default. Archived automations are left out unless include_archived is true. The list catches up shortly after a create or archive, so an automation missing from it does not mean its create failed: to find out, resend the create with its original idempotency key, which returns the automation it created.","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/automations","href":"/api-reference/automations/list-automations"},{"title":"Create an automation","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/automations","href":"/api-reference/automations/create-an-automation"},{"title":"Retrieve an automation","description":"Retrieve an automation by ID","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/automations/{automation_id}","href":"/api-reference/automations/retrieve-an-automation"},{"title":"Update an automation","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/automations/{automation_id}","href":"/api-reference/automations/update-an-automation"},{"title":"Pause an automation","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/automations/{automation_id}/pause","href":"/api-reference/automations/pause-an-automation"},{"title":"Unpause an automation","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/automations/{automation_id}/unpause","href":"/api-reference/automations/unpause-an-automation"},{"title":"Archive an automation","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/automations/{automation_id}/archive","href":"/api-reference/automations/archive-an-automation"},{"title":"Run an automation now","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/automations/{automation_id}/run","href":"/api-reference/automations/run-an-automation-now"},{"title":"List automation runs","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/automations/{automation_id}/runs","href":"/api-reference/automations/list-automation-runs"},{"title":"Retrieve an automation run","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/automations/{automation_id}/runs/{run}","href":"/api-reference/automations/retrieve-an-automation-run"},{"title":"Retrieve an automation run by ID","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/automation_runs/{automation_run_id}","href":"/api-reference/automations/retrieve-an-automation-run-by-id"},{"title":"List automation runs across automations","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/automation_runs","href":"/api-reference/automations/list-automation-runs-across-automations"}]},{"group":"artifacts","pages":[{"title":"List artifacts","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/artifacts","href":"/api-reference/artifacts/list-artifacts"},{"title":"Create an artifact","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/artifacts","href":"/api-reference/artifacts/create-an-artifact"},{"title":"Retrieve an artifact","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/artifacts/{artifact_id}","href":"/api-reference/artifacts/retrieve-an-artifact"},{"title":"Delete an artifact","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/artifacts/{artifact_id}","href":"/api-reference/artifacts/delete-an-artifact"},{"title":"Create an artifact version","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/artifacts/{artifact_id}/versions","href":"/api-reference/artifacts/create-an-artifact-version"},{"title":"Retrieve an artifact version","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/artifacts/{artifact_id}/versions/{version}","href":"/api-reference/artifacts/retrieve-an-artifact-version"},{"title":"Retrieve an artifact file","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/artifacts/{artifact_id}/versions/{version}/file","href":"/api-reference/artifacts/retrieve-an-artifact-file"},{"title":"Download an artifact file","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/artifacts/{artifact_id}/versions/{version}/content","href":"/api-reference/artifacts/download-an-artifact-file"},{"title":"Create a viewing link","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/artifacts/{artifact_id}/versions/{version}/links","href":"/api-reference/artifacts/create-a-viewing-link"},{"title":"Publish an artifact","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/artifacts/{artifact_id}/publication","href":"/api-reference/artifacts/publish-an-artifact"},{"title":"Unpublish an artifact","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/artifacts/{artifact_id}/publication","href":"/api-reference/artifacts/unpublish-an-artifact"}]},{"group":"artifact_data","pages":[{"title":"Describe an artifact's database","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/artifacts/{artifact_id}/data","href":"/api-reference/artifact_data/describe-an-artifacts-database"},{"title":"List documents","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/artifacts/{artifact_id}/data/{collection}","href":"/api-reference/artifact_data/list-documents"},{"title":"Add a document","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/artifacts/{artifact_id}/data/{collection}","href":"/api-reference/artifact_data/add-a-document"},{"title":"Retrieve a document","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/artifacts/{artifact_id}/data/{collection}/{document_id}","href":"/api-reference/artifact_data/retrieve-a-document"},{"title":"Put a document","deprecated":null,"version":null,"openapi":"/openapi.json put /v1/artifacts/{artifact_id}/data/{collection}/{document_id}","href":"/api-reference/artifact_data/put-a-document"},{"title":"Delete a document","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/artifacts/{artifact_id}/data/{collection}/{document_id}","href":"/api-reference/artifact_data/delete-a-document"}]},{"group":"files","pages":[{"title":"List files","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/files","href":"/api-reference/files/list-files"},{"title":"Upload a file","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/files","href":"/api-reference/files/upload-a-file"},{"title":"Retrieve a file","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/files/{file_id}","href":"/api-reference/files/retrieve-a-file"},{"title":"Delete a file","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/files/{file_id}","href":"/api-reference/files/delete-a-file"},{"title":"Download a file","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/files/{file_id}/content","href":"/api-reference/files/download-a-file"}]},{"group":"vaults","pages":[{"title":"List vaults","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/vaults","href":"/api-reference/vaults/list-vaults"},{"title":"Create a vault","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/vaults","href":"/api-reference/vaults/create-a-vault"},{"title":"Retrieve a vault","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/vaults/{vault_id}","href":"/api-reference/vaults/retrieve-a-vault"},{"title":"Update a vault","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/vaults/{vault_id}","href":"/api-reference/vaults/update-a-vault"},{"title":"Delete a vault","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/vaults/{vault_id}","href":"/api-reference/vaults/delete-a-vault"},{"title":"Archive a vault","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/vaults/{vault_id}/archive","href":"/api-reference/vaults/archive-a-vault"},{"title":"List credentials","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/vaults/{vault_id}/credentials","href":"/api-reference/vaults/list-credentials"},{"title":"Create a credential","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/vaults/{vault_id}/credentials","href":"/api-reference/vaults/create-a-credential"},{"title":"Retrieve a credential","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/vaults/{vault_id}/credentials/{credential_id}","href":"/api-reference/vaults/retrieve-a-credential"},{"title":"Update a credential","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/vaults/{vault_id}/credentials/{credential_id}","href":"/api-reference/vaults/update-a-credential"},{"title":"Delete a credential","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/vaults/{vault_id}/credentials/{credential_id}","href":"/api-reference/vaults/delete-a-credential"},{"title":"Archive a credential","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/vaults/{vault_id}/credentials/{credential_id}/archive","href":"/api-reference/vaults/archive-a-credential"}]},{"group":"webhooks","pages":[{"title":"List webhooks","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/webhooks","href":"/api-reference/webhooks/list-webhooks"},{"title":"Create a webhook","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/webhooks","href":"/api-reference/webhooks/create-a-webhook"},{"title":"Retrieve a webhook","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/webhooks/{webhook_id}","href":"/api-reference/webhooks/retrieve-a-webhook"},{"title":"Update a webhook","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/webhooks/{webhook_id}","href":"/api-reference/webhooks/update-a-webhook"},{"title":"Delete a webhook","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/webhooks/{webhook_id}","href":"/api-reference/webhooks/delete-a-webhook"},{"title":"Pause a webhook","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/webhooks/{webhook_id}/pause","href":"/api-reference/webhooks/pause-a-webhook"},{"title":"Resume a webhook","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/webhooks/{webhook_id}/resume","href":"/api-reference/webhooks/resume-a-webhook"},{"title":"Rotate a webhook signing secret","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/webhooks/{webhook_id}/rotate-secret","href":"/api-reference/webhooks/rotate-a-webhook-signing-secret"},{"title":"Send a test webhook event","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/webhooks/{webhook_id}/test","href":"/api-reference/webhooks/send-a-test-webhook-event"},{"title":"List webhook deliveries","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/webhooks/{webhook_id}/deliveries","href":"/api-reference/webhooks/list-webhook-deliveries"},{"title":"Retrieve a webhook delivery","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/webhooks/{webhook_id}/deliveries/{delivery_id}","href":"/api-reference/webhooks/retrieve-a-webhook-delivery"},{"title":"Redeliver a webhook event","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/webhooks/{webhook_id}/deliveries/{delivery_id}/redeliver","href":"/api-reference/webhooks/redeliver-a-webhook-event"}]},{"group":"memory_stores","pages":[{"title":"List memory stores","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/memory_stores","href":"/api-reference/memory_stores/list-memory-stores"},{"title":"Create a memory store","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/memory_stores","href":"/api-reference/memory_stores/create-a-memory-store"},{"title":"Retrieve a memory store","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/memory_stores/{memory_store_id}","href":"/api-reference/memory_stores/retrieve-a-memory-store"},{"title":"Update a memory store","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/memory_stores/{memory_store_id}","href":"/api-reference/memory_stores/update-a-memory-store"},{"title":"Delete a memory store","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/memory_stores/{memory_store_id}","href":"/api-reference/memory_stores/delete-a-memory-store"},{"title":"Archive a memory store","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/memory_stores/{memory_store_id}/archive","href":"/api-reference/memory_stores/archive-a-memory-store"},{"title":"List memories","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/memory_stores/{memory_store_id}/memories","href":"/api-reference/memory_stores/list-memories"},{"title":"Create a memory","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/memory_stores/{memory_store_id}/memories","href":"/api-reference/memory_stores/create-a-memory"},{"title":"Retrieve a memory","deprecated":null,"version":null,"openapi":"/openapi.json get /v1/memory_stores/{memory_store_id}/memories/{memory_id}","href":"/api-reference/memory_stores/retrieve-a-memory"},{"title":"Update a memory","deprecated":null,"version":null,"openapi":"/openapi.json post /v1/memory_stores/{memory_store_id}/memories/{memory_id}","href":"/api-reference/memory_stores/update-a-memory"},{"title":"Delete a memory","deprecated":null,"version":null,"openapi":"/openapi.json delete /v1/memory_stores/{memory_store_id}/memories/{memory_id}","href":"/api-reference/memory_stores/delete-a-memory"}]},{"group":"API Reference","pages":[{"title":"Webhook delivery","version":null,"deprecated":null,"openapi":"/openapi.json webhook event","href":"/api-reference/webhook-delivery"}]}]}]}]},"basePath":"","title":"Create an automation - Checkfu","deploymentId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","buildId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-C6Z1vAfX.js","snippetPresets-Bjd6OXRM.js","utils-QL6OhUyF.js","style-to-object-BY3JEAdk.js","utils-Dsq-HLeF.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-CEYfmkoV.js","conditional-requirements-CFM0id0Q.js","cloneDeep-CHgPjMM8.js","_Uint8Array-IXRJ_ueo.js","isObject-FP1Yky1u.js","ApiExamples-pq4ns9YA.js","usePlaygroundInputsStore-D-gnigmo.js","shallow-DIfWGPrf.js","isEqual-DDFuixlH.js","CodeSnippets-8g5rilZj.js","CodeSnippet-C_J7pouP.js","use-playground-group-access-bkOyfPao.js","Page-B_smDgrp.js","api-description-markdown-DtcP2u3s.js","DynamicMarkdown-DOefW1_8.js","SectionHeading-Cg4lfWZw.js","MethodPill-BnqygvYm.js","getPastedJson-BGXYEZ3P.js","Check2Icon-BBeO3TOS.js","axios-CsQoIw0U.js","Markdown-D5IqLG6A.js","AssistantPageLink-_S2h4i6W.js","dist-DzZqOeCq.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}