Skip to main content
POST
Creates a new agent row and returns its id. Registration is optional: tracing under a bare name auto-registers a single stable agent per distinct name. Register explicitly when you want a real id up front, or when you deliberately need two agents sharing one display name (the only way that can happen) - from then on, disambiguate them by passing the returned _id as agentId on Submit Trace.
This endpoint always creates a new row, even if an agent with this name already exists. The implicit path (tracing under a name with no explicit agentId) keeps resolving to the oldest agent registered under that name, so existing callers never change behavior.

Authentication

string
required
Project API key.

Body

string
required
Agent display name. Leading/trailing whitespace is trimmed.

Response

Returns 201 Created.
object
The created agent: { "_id": string, "name": string, "createdAt": string }.

Errors