---
title: "Register or re-verify a witness domain: Rightshold fetches the Ed25519 key published at https://{domain}/.well-known/rightshold-witness.pem."
method: POST
path: "/v1/ledger/witnesses"
tags: ["Ledger"]
---

# Register or re-verify a witness domain: Rightshold fetches the Ed25519 key published at https://{domain}/.well-known/rightshold-witness.pem.

`POST /v1/ledger/witnesses`

## Request

- Base URL: `https://www.rightshold.com`
- URL: `https://www.rightshold.com/v1/ledger/witnesses`
- Auth: none required

## Headers

- `X-Request-Id` string

## Request body

- object: Fields seen in accepted requests; required ones are proven by tests (omitting each returns a 4xx naming it).
  - `domain` string, required

## Response `200`

OK

- object: Inferred from 7 recorded responses; required fields appeared in every one; additional properties may appear.
  - `result` string, required
  - `witness` object, required
    - `domain` string, required
    - `key_id` string, required
    - `public_key_pem` string, required
    - `key_url` string, required
    - `registered_at` string, required
    - `last_verified_at` string, required
    - `current` boolean, required
    - `cosignatures` integer, required
  - `cosign` string, required

## Other responses

- `400`: Problem details: a stable error code, type URI, title, status and an explanation
- `401`: Problem details: a stable error code, type URI, title, status and an explanation
- `404`: Problem details: a stable error code, type URI, title, status and an explanation
- `405`: Problem details: a stable error code, type URI, title, status and an explanation
- `422`: Problem details: a stable error code, type URI, title, status and an explanation
- `429`: Request budget exhausted; retry after Retry-After seconds
- `500`: Problem details: a stable error code, type URI, title, status and an explanation
- `4XX`: {error, detail}

---

[API](https://skmtc.dev/rightshold/apis/rightshold-api.md) · [All operations](https://skmtc.dev/rightshold/apis/rightshold-api/llms.txt) · [OpenAPI document](https://skmtc.dev/rightshold/apis/rightshold-api/revisions/cfe84fdde1ca?raw)
