---
title: "Define an agent identity"
method: POST
path: "/agents"
tags: ["Registries"]
---

# Define an agent identity

`POST /agents`

Define an agent identity

## Headers

- `Idempotency-Key` string

## Request body

- object
  - `address` string, required — The agent's globally unique email address; mail to it must route to an endpoint the account controls.
  - `endpoint_id` string, uuid — Optional. The endpoint the agent runs on. Omit it to resolve the endpoint from the address's routing automatically; supply it to pin a specific endpoint, which is then validated against the address's route.
  - `display_name` string, required
  - `title` string, nullable
  - `description` string, nullable
  - `tags` string[]

## Response `201`

Agent defined

- object
  - `success` true, required
  - `data` object, required
    - `id` string, uuid, required
    - `address` string, required

## Other responses

- `401` — Invalid or missing API key
- `409` — The request conflicts with the current state of the resource
- `422` — The request was well-formed but could not be processed. For Payments this covers a missing payout address, a failed payment verification, a spend-policy decline, or an expired challenge; `error.code` distinguishes them.

---

[API](https://skmtc.dev/primitive/apis/primitive-api.md) · [All operations](https://skmtc.dev/primitive/apis/primitive-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/primitive/primitive-api/revisions/c2299d28022c/schema)
