Agents

Create an agent

Creates a new custom agent.

post/agents

Request

  • Base URL
    https://workflow.loopfour.ai/api/v1
  • URL
    https://workflow.loopfour.ai/api/v1/agents
  • Auth
    API key in header x-api-key

Request body

namestring required

Agent display name.

type'extraction' | 'content' | 'transform' | 'decision' | 'code' | 'classification' | 'custom' required
systemPromptstring required

System prompt defining agent behavior.

provider'openai' | 'anthropic'

AI provider (default: openai).

modelstring

Model ID (defaults to gpt-5.6-sol).

outputSchemaobject

JSON Schema for structured output.

temperaturenumber

Temperature (0.0-2.0), defaults to 0.7.

maxTokensinteger

Max tokens in response, defaults to 4096.

Response

Agent created

successunknown

Example response

{
  "data": {
    "id": "agent_abc123",
    "model": "claude-opus-5"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.