---
title: "Replace an owner key using the current key; invalidates previous keys, browser sessions and pending claims"
method: POST
path: "/v1/sites/{domain}/key"
---

# Replace an owner key using the current key; invalidates previous keys, browser sessions and pending claims

`POST /v1/sites/{domain}/key`

## Request

- Base URL: `https://agentwebmap.com`
- URL: `https://agentwebmap.com/v1/sites/{domain}/key`
- Auth: HTTP bearer

## Path parameters

- `domain` string, required

## Response `200`

Store the new key; it is shown once

- OwnerKey
  - `domain` string, required
  - `api_key` string, required
  - `note` string, required

## Other responses

- `401`: Bad or missing credentials
- `404`: Not found

---

[API](https://skmtc.dev/agentwebmap/apis/agent-web-map-api.md) · [All operations](https://skmtc.dev/agentwebmap/apis/agent-web-map-api/llms.txt) · [OpenAPI document](https://skmtc.dev/agentwebmap/apis/agent-web-map-api/revisions/26289e71cf75?raw)
