POST
/
v1
/
automations
Create an automation
curl --request POST \
  --url https://platform.jobbit.uk/v1/automations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Weekly booking summary",
  "slug": "weekly-bookings",
  "pause_after_failures": 5
}
'
import requests

url = "https://platform.jobbit.uk/v1/automations"

payload = {
"name": "Weekly booking summary",
"slug": "weekly-bookings",
"pause_after_failures": 5
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Weekly booking summary',
slug: 'weekly-bookings',
pause_after_failures: 5
})
};

fetch('https://platform.jobbit.uk/v1/automations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://platform.jobbit.uk/v1/automations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Weekly booking summary',
'slug' => 'weekly-bookings',
'pause_after_failures' => 5
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://platform.jobbit.uk/v1/automations"

payload := strings.NewReader("{\n \"name\": \"Weekly booking summary\",\n \"slug\": \"weekly-bookings\",\n \"pause_after_failures\": 5\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://platform.jobbit.uk/v1/automations")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Weekly booking summary\",\n \"slug\": \"weekly-bookings\",\n \"pause_after_failures\": 5\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://platform.jobbit.uk/v1/automations")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Weekly booking summary\",\n \"slug\": \"weekly-bookings\",\n \"pause_after_failures\": 5\n}"

response = http.request(request)
puts response.read_body
{
  "id": "2d9c6a40-7e18-4b3f-a5d2-61f08b4c9e37",
  "owner_id": "7b0e2c4a-1d3f-4c8e-9a52-6f1d0e8b3a77",
  "name": "Weekly booking summary",
  "slug": "weekly-bookings",
  "enabled": true,
  "published_version_id": null,
  "paused_reason": null,
  "paused_at": null,
  "pause_after_failures": 5,
  "description": "Emails Kent Physio a summary of the week's bookings every Monday.",
  "description_by_you": false,
  "notify": {
    "failures": true,
    "needs_you": true,
    "every_run": false
  },
  "monthly_limit_usd": 3,
  "monthly_limit_credits": 1000,
  "full_automation": false,
  "service_limits": {},
  "service_limits_credits": {},
  "created_at": "2026-10-12T09:30:00+00:00",
  "project_id": null,
  "role": "owner",
  "state": "draft",
  "attention": [],
  "missing_secrets": [],
  "missing_accounts": [],
  "running": false,
  "summary": {
    "automation_id": "2d9c6a40-7e18-4b3f-a5d2-61f08b4c9e37",
    "last_execution_id": null,
    "last_status": null,
    "last_reason": "completed",
    "last_error": null,
    "last_created_at": "2026-11-02T08:00:00+00:00",
    "last_finished_at": "2026-11-02T08:00:41+00:00",
    "running": 0,
    "waiting": 0,
    "working": 0,
    "runs_24h": 0,
    "runs_30d": 0,
    "failed_in_row": 0,
    "cost_30d_usd": 0.084,
    "cost_30d_credits": 28,
    "average_run_credits": 7,
    "next_run_at": "2026-11-09T08:00:00+00:00",
    "questions": 0,
    "approvals": 0,
    "latest_version_id": "88e1d5b2-43a7-4c06-9f3e-b7a0c2d41e59",
    "latest_version_status": "published",
    "recent": []
  }
}
{
"error": {
"code": "invalid_key",
"message": "the API key is missing or invalid",
"request_id": "5d3f0b7c8a2e4e19b6c47a90d1e2f3a4"
}
}
{
"error": {
"code": "insufficient_scope",
"message": "this key does not have the deploy:write permission",
"details": {
"required": "deploy:write"
},
"request_id": "5d3f0b7c8a2e4e19b6c47a90d1e2f3a4"
}
}
{
"error": {
"code": "not_found",
"message": "unknown project",
"request_id": "5d3f0b7c8a2e4e19b6c47a90d1e2f3a4"
}
}
{
"error": {
"code": "conflict",
"message": "slug 'weekly-bookings' is taken",
"request_id": "5d3f0b7c8a2e4e19b6c47a90d1e2f3a4"
}
}
{
"error": {
"code": "invalid_request",
"message": "the request is not valid",
"details": [
{
"location": [
"body",
"name"
],
"message": "String should match pattern '^[a-z0-9][a-z0-9-]*$'",
"type": "string_pattern_mismatch"
}
],
"request_id": "5d3f0b7c8a2e4e19b6c47a90d1e2f3a4"
}
}
{
"error": {
"code": "rate_limited",
"message": "too many read requests, retry in 4 s",
"details": {
"group": "read",
"limit": 120,
"window_seconds": 60
},
"request_id": "5d3f0b7c8a2e4e19b6c47a90d1e2f3a4"
}
}

Authorizations

Authorization
string
header
required

An API key from Settings → API keys, sent as Authorization: Bearer jb_live_…

Body

application/json
name
string
required

The name.

Required string length: 1 - 80
slug
string

A short name, unique among your automations.

Pattern: ^[a-z0-9][a-z0-9-]{0,63}$
project_id
string

Put the automation in a project you can edit.

Maximum string length: 64
pause_after_failures
integer

Pause after this many failures in a row.

Required range: 1 <= x <= 100

Response

The automation.

An automation.

id
string
required

The automation id.

name
string
required

The name.

enabled
boolean
required

Whether it starts on its triggers. A paused automation is not enabled.

state
enum<string>
required

draft (nothing published), attention (needs the person), paused or active.

Available options:
draft,
attention,
paused,
active
owner_id
string

The account that owns it.

slug
string | null

A short name used in addresses.

published_version_id
string | null

The live version. Null for a draft.

paused_reason
enum<string> | null

Why it paused: manual, failures or budget.

Available options:
manual,
failures,
budget,
null
paused_at
string<date-time> | null

When it paused.

pause_after_failures
integer | null

It pauses after this many failures in a row.

description
string | null

What it does.

description_by_you
boolean

Whether the description was written by a person rather than taken from the package.

notify
object
monthly_limit_usd
number | null

The monthly spending limit in US dollars.

monthly_limit_credits
number | null

The monthly spending limit in credits.

full_automation
boolean

Whether it may take actions without asking.

service_limits
object

Spending limits by service in US dollars.

service_limits_credits
object

Spending limits by service (ai, agent) in credits.

created_at
string<date-time>

When it was created.

project_id
string | null

The project it belongs to.

role
enum<string>

The account's role on it.

Available options:
owner,
editor,
viewer
attention
enum<string>[]

Why it needs the person.

Available options:
missing_secrets,
missing_accounts,
account_expired,
question,
approval,
consent,
build_failed,
paused_after_failures,
paused_for_budget,
failing
missing_secrets
string[]

Secret names the live version needs and does not have.

missing_accounts
object[]

Connected-account slots that are not usable.

running
boolean

Whether a run is in progress.

summary
object

How the automation has been doing.