Skip to main content
Create a new empty workflow with the given name. The response returns the new workflow’s id, name, and a url that opens it in Clay. Add nodes and tools with the Clay app or the workflow MCP tools.
clay workflows create --name <name>

Flags

FlagDescription
--name <name>Workflow name. Required. Must be non-empty and at most 255 characters.

Output

{
  "id": "wf_abc123",
  "name": "Lead enrichment",
  "url": "https://app.clay.com/..."
}
FieldTypeDescription
idstringId of the new workflow.
namestringDisplay name.
urlstringLink that opens the workflow in Clay.

Errors

CodeExitNotes
validation_error2--name is missing, empty, or longer than 255 characters.
auth_forbidden3The API key lacks the terracotta:cli scope.

Examples

clay workflows create --name "Lead enrichment"
clay workflows create --name "Lead enrichment" | jq -r '.id'
clay workflows create --name "Lead enrichment" | jq -r '.url'