---
title: "Add an agent to the authenticated entity"
method: POST
path: "/api/v1/auth/agents"
tags: ["Auth"]
---

# Add an agent to the authenticated entity

`POST /api/v1/auth/agents`

## Request

- Base URL: `https://www.agenttax.io`
- URL: `https://www.agenttax.io/api/v1/auth/agents`
- Auth: HTTP bearer

Creates an additional agent under the calling entity. Requires a session (cookie or Bearer). CSRF-protected when the session was carried by a cookie.

## Request body

- CreateAgentRequest
  - `agent_name` string, required
  - `work_type` 'compute' | 'research' | 'information_service' | 'content' | 'consulting' | 'trading' | 'payment_processing' | 'web_hosting' | 'software_maintenance' | 'it_support' | 'custom_software'
  - `description` string

## Response `201`

Agent created.

## Other responses

- `400`: Validation failure
- `401`: Authentication required
- `403`: CSRF verification failed (cookie sessions only)

---

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