---
title: "Create Agent"
method: POST
path: "/api/agents"
tags: ["agents"]
---

# Create Agent

`POST /api/agents`

## Request

- Base URL: `https://api.tintin-x.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.tintin-x.com/api/agents`
- Auth: HTTP bearer

## Request body

- AgentCreateRequest
  - `character_json` object, required
  - `creation_mode` string, required
  - `iq_tier` integer
  - `heartbeat_minutes` integer
  - `heartbeat_steps` object, nullable
  - `primary_model` string
  - `agent_runtime` string
  - `agent_type` string
  - `archetype` string, nullable
  - `role_id` string, nullable
  - `custom_role_name` string, nullable

## Response `201`

Successful Response

- AgentResponse
  - `id` string, uuid, required
  - `character_id` string, required
  - `character_json` object, required
  - `creation_mode` string, required
  - `tier` string, required
  - `iq_tier` integer, required
  - `primary_model` string, required
  - `heartbeat_model` string, nullable
  - `agent_runtime` string
  - `heartbeat_minutes` integer, required
  - `heartbeat_steps` object
  - `status` string, required
  - `created_at` string, date-time, required
  - `team_id` string, uuid, nullable
  - `user_id` string, uuid, nullable
  - `creator_email` string, nullable
  - `role_label` string, nullable
  - `role_id` string, uuid, nullable
  - `custom_role_name` string, nullable
  - `public_slug` string, nullable
  - `public_owner_handle` string, nullable
  - `public_bio` string, nullable
  - `public_samples` object[], nullable
  - `public_visible` boolean
  - `role` RoleInfo: Lightweight role info embedded in agent responses.
    - `id` string, uuid, required
    - `slug` string, required
    - `label` string, required
    - `icon` string, required
    - `archetype` string, nullable
    - `recommended_services` string[]
    - `onboarding_message` string, nullable
  - `program_id` string, uuid, nullable
  - `build_mode` boolean
  - `enable_dreaming` boolean
  - `dreaming_auto_managed` boolean
  - `heartbeat_auto_managed` boolean
  - `heartbeat_minutes_user_set` integer, nullable
  - `agent_type` string
  - `archetype` string, nullable
  - `endpoint_registered` boolean, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tintin-x/apis/tintin-api.md) · [All operations](https://skmtc.dev/tintin-x/apis/tintin-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tintin-x/apis/tintin-api/revisions/8839a8d0a66c?raw)
