Skip to main content
POST
/
workflows
/
create_workflow
Create Workflow
curl --request POST \
  --url https://api.sixtyfour.ai/workflows/create_workflow \
  --header 'Content-Type: application/json' \
  --data '
{
  "workflow_name": "<string>",
  "workflow_description": "<string>",
  "workflow_definition": {
    "blocks": [
      {
        "sequence_number": 123,
        "block_type": "<string>",
        "block_name": "<string>",
        "specs": {},
        "block_id": "<string>"
      }
    ],
    "edges": [
      {
        "from_block_id": "<string>",
        "to_block_id": "<string>",
        "condition": "<string>"
      }
    ]
  },
  "id": "<string>"
}
'
{
  "id": "<string>",
  "name": "<string>",
  "status": "<string>",
  "step": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "user_uuid": "<string>",
  "org_id": "<string>",
  "description": "<string>",
  "last_run_date": "2023-11-07T05:31:56Z",
  "workflow_definition": {
    "blocks": [
      {
        "sequence_number": 123,
        "block_type": "<string>",
        "block_name": "<string>",
        "specs": {},
        "block_id": "<string>"
      }
    ],
    "edges": [
      {
        "from_block_id": "<string>",
        "to_block_id": "<string>",
        "condition": "<string>"
      }
    ]
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.sixtyfour.ai/llms.txt

Use this file to discover all available pages before exploring further.

Headers

x-api-key
string | null

Body

application/json
workflow_name
string
required

Human-readable workflow name.

workflow_description
string
required

Human-readable workflow description.

workflow_definition
WorkflowGraph · object
required

Workflow definition as a graph of blocks and edges.

id
string | null

Optional pre-generated workflow ID supplied by the client.

Response

Successful Response

id
string
required

Workflow identifier.

name
string
required

Workflow name.

status
string
required

Lifecycle status of the workflow definition (e.g. draft, ready).

step
string
required

Current authoring step in the builder UI.

created_at
string<date-time>
required

Timestamp when the record was created.

updated_at
string<date-time>
required

Timestamp when the record was last updated.

user_uuid
string | null

User who created the workflow.

org_id
string | null

Organization that owns the workflow.

description
string | null

Workflow description.

last_run_date
string<date-time> | null

Timestamp of the most recent run.

workflow_definition
WorkflowGraph · object

Workflow graph; included on detail responses.