Register an external agent identity.
POST
/api/v4/projects/{id}/ai_agent/identities
Registers a new agent identity for the current user, project, agent type, and machine fingerprint combination. Returns an existing record if one already exists. Returns 403 if the identity has been revoked.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
agent_type
required
The type of agent being registered.
string
machine_fingerprint
required
SHA-256 hash of the machine identifier.
string
Responses
Section titled “Responses”Created
Media typeapplication/json
object
id
integer
agent_type
string
revoked_at
string
created_at
string
Example
{ "id": 1, "agent_type": "claude-code", "created_at": "2026-06-17T00:00:00.000Z"}Bad request
Unauthorized
Forbidden
Not found