---
title: "Register a hosted client to sign in with OnlyWorlds"
method: POST
path: "/api/v2/auth/register"
tags: ["Sign in"]
---

# Register a hosted client to sign in with OnlyWorlds

`POST /api/v2/auth/register`

## Request

- Base URL: `https://www.onlyworlds.com`
- URL: `https://www.onlyworlds.com/api/v2/auth/register`
- Auth: none required

OAuth 2.0 Dynamic Client Registration (RFC 7591) for a hosted client, such as an
AI assistant's connector: send `client_name`, `redirect_uris` and, optionally,
`client_uri` as JSON, and use the answer's `client_id` on the sign-in request.
Public clients only: no secret is issued, and the token request sends none. The
consent page calls the client a tool and says the host it returns the person to, or
that it is on the person's device. A client
unused for 90 days is removed. No credential is needed here.

## Response `201`

Registered: a public client (no secret), its client_id and the fields it sent. Cache-Control: no-store.

- object
  - `client_id` string, required: The client_id the tool sends from now on: random, never its name.
  - `client_name` string, required
  - `redirect_uris` string[], required
  - `client_uri` string: As sent, or empty.
  - `token_endpoint_auth_method` 'none', required
  - `grant_types` string[]
  - `response_types` string[]
  - `client_id_issued_at` integer

## Other responses

- `422`: The body is not a JSON object, client_name is missing, blank, not text, over 200 characters or holds a control character or a text-direction control, redirect_uris is not a list of 1 to 10 return addresses each exact https on a host name or http on the loopback, or client_uri is not https (invalid_request; `param` names the field).
- `429`: Too many registrations from this address (rate_limited): 10 an hour. Retry after the Retry-After header's seconds. Or too many requests: over the request budget (code too_many_requests, type rate_limited): 300 requests a minute per key or account token, 60 a minute per address for a request with neither. Retry after the Retry-After header's seconds.
- `503`: The server is busy: every request slot stayed full for 10 s (code server_busy, type api_error). Retry after the Retry-After header's seconds.

## Changes

- **2026-11-28** `e45847b3f48f`: 3 info
  - added the optional property `error/limit` to the response with the `422` status
  - added the optional property `error/limit` to the response with the `429` status
  - added the optional property `error/limit` to the response with the `503` status
- **2026-11-26** `f921dd878e35`: 3 warning
  - added the new `write_not_granted` enum value to the `error/code` response property for the response status `422`
  - added the new `write_not_granted` enum value to the `error/code` response property for the response status `429`
  - added the new `write_not_granted` enum value to the `error/code` response property for the response status `503`
- **2026-11-26** `7ef7860703bb`: 3 warning
  - added the new `narratives_only` enum value to the `error/code` response property for the response status `422`
  - added the new `narratives_only` enum value to the `error/code` response property for the response status `429`
  - added the new `narratives_only` enum value to the `error/code` response property for the response status `503`
- **2026-11-24** `d13ae467cba6`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/onlyworlds/apis/onlyworlds-api/changes/api/v2/auth/register/post.md)

---

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