Programs
Create a program and its first version
POST /v1/programs: Create a program and its first version
POST /v1/programs
| Operation id | createProgram |
| Key scope | run: keys that run jobs (and admin keys) |
| Section | Programs |
#Request body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | yes | pattern ^[a-z0-9][a-z0-9-]{1,62}$ |
description | string | max length 1000 | |
definition | ProgramDefinition | yes | |
publish | boolean | default true | |
draft_id | string | The builder draft this version was built from; its picker confirmations move to it. · pattern ^dft_[0-9a-hjkmnp-tv-z]{26}$ |
#Example request
curl -X POST "https://api.kaab.ist/v1/programs" \
-H "Authorization: Bearer $KAAB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"acme-report","description":"Daily report export","definition":{"kaab":"1","steps":[{"goto":"https://shop.example.com/p/1"},{"extract":{"title":"h1"}}]},"publish":true}'
#Responses
#201
Program
{
"id": "prg_01j9zqk3q7m4n5p6r7s8t9v0wx",
"object": "program",
"name": "acme-report",
"description": "Daily report export",
"latest_version": 3,
"aliases": {
"latest": 3,
"production": 2
},
"canary": {
"enabled": true,
"cron": "0 */6 * * *",
"url": null
},
"created_at": "2026-09-18T10:00:00Z",
"updated_at": "2026-09-18T10:00:00Z"
}
#Errors
Every error answers with the error envelope; its code is one of the error codes.
| Status | When |
|---|---|
| 400 | request_invalid: request validation failed |
| 401 | Missing or invalid API key |
| 402 | insufficient_credits: top up to continue |
| 403 | The key's scope does not cover this operation |
| 409 | Conflicting state (see error.code) |
| 422 | Semantically invalid request (see error.code) |
| 429 | Rate limited; see Retry-After |
| 500 | internal: unexpected server error |