---
title: "Register an agent (RS-KYA L0) and receive a key-proof challenge (L1)"
method: POST
path: "/v1/agents/register"
tags: ["Rights desk"]
---

# Register an agent (RS-KYA L0) and receive a key-proof challenge (L1)

`POST /v1/agents/register`

## Request

- Base URL: `https://www.rightshold.com`
- URL: `https://www.rightshold.com/v1/agents/register`
- Auth: one of:
  - none
  - HTTP bearer

## Headers

- `X-Request-Id` string

## Request body

- object
  - `principal_id` string
  - `operator_org_id` string
  - `public_key_pem` string
  - `scopes` string[]

## Response `200`

OK

- object: Inferred from 12 recorded responses; required fields appeared in every one; additional properties may appear.
  - `agent` object, required
    - `id` string, required
    - `tier` string, required
    - `key_id` string, nullable, required
    - `scopes` string[], required
    - `tenant_id` string, required
  - `challenge` object, nullable, required
    - `payload` object
      - `challenge` string, required
      - `agent_id` string, required
      - `purpose` string, required
    - `sign_with` string
  - `credits_micro` integer, required
  - `api_key` string
  - `api_key_notice` string
  - `tracking_notice` string

## 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

---

[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)
