Skip to navigation

Pull schedule definition (config-as-code)

Return the canonical config-as-code definition and provenance for a standalone schedule by name and target — the absorb-drift direction of the ensure protocol. The target is echoed in the form the query used, and the definition always declares enabled.

Authentication

AuthorizationBearer
API key or Clerk session token

Query parameters

namestringRequired>=1 character
flowIdstringOptional
agentIdstringOptional
flowNamestringOptional
agentNamestringOptional

Response

Canonical definition + provenance

contentHashstring
definitionobject
lastModifiedSourcestring or null
scheduleIdstring
updatedAtstring or null

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error