API referenceAgents APIAgentsCreate an agent

Create an agent

⚠️
Preview — this feature is being built; the design below is the spec.
POST https://app.syntic.ai/v1/agents

Save a new agent definition: its model, instructions, tools and limits. The new agent starts at version 1 and appears in the Console’s AI Agents area. Writing definitions needs a key created by someone with the Developer role or higher.

For how this fits into a full workflow, see Agent definitions.

Headers

HeaderRequiredValue
AuthorizationYesBearer <key>: a private inference key (sk_live_...). See Authentication.
syntic-betaYes, while in previewagents-2026-11-01. Without it the call fails with 400 beta_required. See Versioning.
Content-TypeYesapplication/json
Idempotency-KeyNoUp to 255 characters. Retrying with the same key within 24 hours returns the first result instead of creating a duplicate. See Idempotency.

Body parameters

ParameterTypeRequiredNotes
namestringYesUnique in the workspace.
modelstringYesFor example Amara S1.2.
instructionsstringYesUp to 100,000 characters.
descriptionstringNoUp to 500 characters.
toolsarrayNoDefault []. Schemas are validated on save.
tool_policyobjectNoDefault {"default": "allow"}. Turning on tools the Console marks as approval-required needs a key created by an Administrator or Owner.
mcp_serversarrayNoDefault [].
skillsarrayNoDefault [].
environment_idstringNoDefault null.
memory_store_idsarrayNoDefault []. Ids must exist in the workspace.
vault_idsarrayNoDefault [].
limitsobjectNoMissing fields take workspace defaults.
metadataobjectNoUp to 16 string pairs.

Response

201 Created, Content-Type: application/json

{
  "id": "agt_01JC4R8W6Q2N9X3T5V7Y",
  "type": "agent",
  "name": "refund-desk",
  "description": "Handles refund requests from the support inbox.",
  "version": 1,
  "status": "active",
  "model": "Amara S1.2",
  "instructions": "You handle refund requests for Acme Store. Look the order up before answering.",
  "tools": [
    {
      "type": "function",
      "function": {
        "name": "lookup_order",
        "description": "Fetch an order by its id.",
        "parameters": {
          "type": "object",
          "properties": {
            "order_id": {
              "type": "string"
            }
          },
          "required": [
            "order_id"
          ]
        }
      }
    }
  ],
  "tool_policy": {
    "default": "allow",
    "require_approval": [
      "issue_refund"
    ]
  },
  "mcp_servers": [],
  "skills": [],
  "environment_id": null,
  "memory_store_ids": [],
  "vault_ids": [],
  "limits": {
    "max_turns": 30,
    "max_output_tokens_per_turn": 4096,
    "session_token_budget": 400000,
    "session_cost_budget_usd": 2.0
  },
  "metadata": {
    "team": "support"
  },
  "created_at": "2026-11-03T09:14:22Z",
  "updated_at": "2026-11-05T16:02:10Z"
}
FieldTypeDescription
idstringStarts with agt_; the same across versions.
namestringUnique in the workspace: 1 to 64 lowercase letters, digits, - and _.
versionintegerThe version this object describes, from 1.
statusstringactive or archived.
modelstringA Syntic model name. Unknown names are rejected; there is no fallback here.
instructionsstringSystem instructions, up to 100,000 characters.
toolsarrayFunction tools and built-in tool entries, up to 128.
tool_policyobjectdefault (allow or ask) plus require_approval and deny lists of tool names.
mcp_serversarrayRemote MCP servers; tokens come from a vault by name.
skillsarray{skill_id, version} entries.
environment_idstring or nullWhere code tools run; null means no code execution.
memory_store_idsarrayMemory stores the agent may use.
vault_idsarrayVaults whose secrets tools may use.
limitsobjectDefaults for every session: max_turns, max_output_tokens_per_turn, session_token_budget, session_cost_budget_usd.
metadataobjectUp to 16 string pairs.

Examples

curl -sS https://app.syntic.ai/v1/agents \
  -H "Authorization: Bearer $SYNTIC_API_KEY" \
  -H "syntic-beta: agents-2026-11-01" \
  -H "Idempotency-Key: 8d6f0c1e-4b2a-4a57-9f0e-2f1d3c4b5a69" \
  -H "Content-Type: application/json" \
  -d '{
      "name": "refund-desk",
      "model": "Amara S1.2",
      "instructions": "You handle refund requests for Acme Store. Look the order up before answering.",
      "tools": [
        {
          "type": "function",
          "function": {
            "name": "lookup_order",
            "description": "Fetch an order by its id.",
            "parameters": {
              "type": "object",
              "properties": {
                "order_id": {
                  "type": "string"
                }
              },
              "required": [
                "order_id"
              ]
            }
          }
        }
      ],
      "limits": {
        "max_turns": 30
      }
    }'

Errors

Errors use the error envelope and carry a request_id. Codes specific to this operation:

StatustypecodeWhen
400invalid_request_errorbeta_requiredThe syntic-beta header is missing.
400invalid_request_errorinvalid_nameDisallowed characters or too long.
400invalid_request_errorunknown_modelmodel is not in the catalog.
400invalid_request_errorinvalid_tool_schemaA tool’s parameters is not a valid JSON Schema object, a tool name repeats, or a size limit is exceeded.
400invalid_request_errorunknown_referenceA skill, vault, memory store or environment id does not exist in this workspace.
403permission_errorrole_requiredThe key’s creator does not hold the role this change needs.
409conflict_errorname_takenAnother agent already uses this name.
401authentication_errorinvalid_api_keyThe key is missing, unknown, revoked or expired.
429rate_limit_errorrate_limitedToo many requests; wait for Retry-After. See Rate-limit headers.
Was this page helpful?