Skip to main content
POST
Makes a new workflow. Send describe (plain words: Orgo drafts the steps) or lines (the steps themselves), one of the two. The workflow’s id is its name in lowercase words joined by -, so Morning report is morning-report. A new workflow is off. Fix what to_fix says, check it with Validate, then turn it on with Update a workflow and { "on": true }.

Headers

string
8 to 255 printable characters. A retry with the same key and body within a day answers with the workflow the first request made, and makes nothing new. The same key with another body answers 409 with code: "idempotency_key_reused".

Request body

string
A few words, at most 40 characters. Left out, the name the lines or the draft give the start, else the first words of describe.
string
What it does, in plain words, at most 2,000 characters: what starts it and each step. Orgo’s drafting model writes the lines. Needs a key with AI write as well as Workflows write. Send this or lines.
string
The workflow, one JSON object per line, the start first. The format is at orgo.ai/workflows.md. Send this or describe.
string
An IANA zone its times are read in, like America/New_York. You can also set it later with Update a workflow.

Response

201, with the version in the ETag header.
string
The workflow’s id.
string | null
Its name.
boolean
false: a new workflow is off.
integer
Send it as If-Match on a later write.
string
The workflow as kept, one JSON object per step.
object
What it asks for once, name to value. Empty for a new workflow.
string[]
What still has to be done before it can run, in plain words, like Fill in channel.
object[]
The same, each with the step it is on and say. A setting to fill in is on the start.
string[]
Present when something you sent was left out or rewritten, naming each.

Example

Response

Errors

Every error is { "error", "code" }, often with say (a few words) and next (the call that fixes it).

Authorizations

Authorization
string
header
required

API key authentication. Get your key at orgo.ai/workspaces

Headers

Idempotency-Key
string

A retry with the same key and body answers as the first request did, for a day.

Required string length: 8 - 255

Body

application/json

describe or lines, one of the two.

name
string
Maximum string length: 40
describe
string

What it does, in plain words. Orgo drafts the steps.

Maximum string length: 2000
lines
string

The steps themselves, one JSON object per line (https://www.orgo.ai/workflows.md).

time_zone
string

An IANA zone its times are read in, like America/New_York.

Response

The workflow, made.

id
string
required
Pattern: ^[a-z0-9-]{1,60}$
name
string | null
required
on
boolean
required

Whether its start runs it. It is on only while it can run.

version
integer
required

Send it as If-Match on a write.

lines
string
required

The workflow, one JSON object per step, the start first (https://www.orgo.ai/workflows.md).

settings
object
required

What it asks for once, name to value.

to_fix
string[]
required

What still has to be done before it can run, in the person’s words. Empty: ready.

problems
object[]
required
turned_off
boolean

This write left it unable to run, so it was turned off.

dropped
string[]

What of the lines sent was left out or rewritten.