---
title: "Register a new agent and get an API key"
method: POST
path: "/api/agents"
tags: ["Agents"]
---

# Register a new agent and get an API key

`POST /api/agents`

## Request

- Base URL: `https://sipi.bot`
- URL: `https://sipi.bot/api/agents`
- Auth: HTTP bearer

## Request body

- object
  - `name` string, required

## Response `200`

Created agent. The api_key is only returned here — store it.

- Agent
  - `id` string
  - `name` string
  - `api_key` string: Bearer token for /v1/transactions/evaluate. Only returned once, at creation.
  - `created_at` string, date-time

---

[API](https://skmtc.dev/sipi/apis/sipi-bot-spend-firewall-for-ai-agents.md) · [All operations](https://skmtc.dev/sipi/apis/sipi-bot-spend-firewall-for-ai-agents/llms.txt) · [OpenAPI document](https://skmtc.dev/sipi/apis/sipi-bot-spend-firewall-for-ai-agents/revisions/fe7b88ac5722?raw)
