> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ariacompute.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Agent Loadout - POST /v1/workspaces/:workspace_id/agents

> Create an Agent Loadout via POST /v1/workspaces/:workspace_id/agents. Minimum role contributor.

Create an Agent Loadout — bound to assets such as knowledge bases, memory cubes, and skills, and applied when [running an agent](https://docs.ariacompute.com/api-reference/memo/agent/run.md).

## Endpoint

```http theme={null}
POST /v1/workspaces/:workspace_id/agents
```

## Authentication

`Authorization: Bearer <jwt>` or `X-API-Key <sk_...>`. Minimum role: **contributor**.

## Path parameters

**workspace\_id** `string` *required*

Workspace id.

## Request body

**name** `string`

Agent name.

**description** `string`

Description.

**prompt** `string`

System prompt.

**tools** `string[]`

Enabled tools.

## Response

**id** `string`

Agent id (`agent_...`).

**workspace\_id** `string`

Owning workspace id.

**owner\_id** `string`

Owner user id.

**name** `string`

Name.

**description** `string`

Description.

**prompt** `string`

System prompt.

**tools** `string[]`

Tools.

**visibility** `string`

Visibility.

**created\_at** `string`

Creation time (RFC3339).

**updated\_at** `string`

Update time (RFC3339).

## Example

```bash cURL theme={null}
curl -X POST https://memo.ariacompute.com/v1/workspaces/ws_01a2b3c4d5e6/agents \
  -H "Authorization: Bearer <jwt>" \
  -H "Content-Type: application/json" \
  -d '{"name":"Doc Assistant","description":"Answers from the KB","prompt":"You are a doc assistant.","tools":["rag"]}'
```

```json 200 theme={null}
{
  "id": "agent_01a2b3c4d5e6",
  "workspace_id": "ws_01a2b3c4d5e6",
  "owner_id": "usr_01a2b3c4d5e6",
  "name": "Doc Assistant",
  "description": "Answers from the KB",
  "prompt": "You are a doc assistant.",
  "tools": ["rag"],
  "visibility": "private",
  "created_at": "2026-10-12T12:00:00Z",
  "updated_at": "2026-10-12T12:00:00Z"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.