# Claim an agent's name

`POST /agent-owners` · Praecise Shield · Agents as customers

Gives a token to publish at https://<host>/.well-known/praecise-agent.json as { "token": "..." }. For a name already proven, gives a pendingToken to prove control again.

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "agent": {
      "type": "string",
      "description": "The host of the agent's key directory."
    }
  },
  "required": [
    "agent"
  ]
}
```

## Responses

- `200`: Already claimed: the token again, or a pendingToken for a proven name.
- `201`: Claimed

## Example

```sh
curl -X POST 'https://shield.praecise.com/agent-owners' \
  -H 'Content-Type: application/json' \
  -d '{
  "agent": "string"
}'
```
