---
title: "Register an OAuth client (RFC 7591)"
method: POST
path: "/oauth2/register"
tags: ["agent-auth"]
---

# Register an OAuth client (RFC 7591)

`POST /oauth2/register`

## Request

- Base URL: `https://api.letsship.ai/v1`
- URL: `https://api.letsship.ai/v1/oauth2/register`
- Auth: none declared

Dynamic client registration for public clients: PKCE, no client secret, token_endpoint_auth_method none. Redirect URIs must be https, http on a loopback host (any port), or a private-use scheme. A client can instead use the HTTPS URL of a Client ID Metadata Document as its client_id, with no registration.

## Request body

- ClientRegistrationRequest
  - `redirect_uris` string[], required
  - `client_name` string
  - `client_uri` string
  - `logo_uri` string
  - `grant_types` string[]
  - `response_types` string[]
  - `token_endpoint_auth_method` string
  - `application_type` string

## Response `201`

Registered.

- ClientRegistrationResponse
  - `client_id` string, required
  - `client_id_issued_at` integer, required
  - `client_name` string
  - `redirect_uris` string[], required
  - `grant_types` string[], required
  - `response_types` string[], required
  - `token_endpoint_auth_method` 'none', required

## Other responses

- `400`: invalid_redirect_uri or invalid_client_metadata.
- `429`: Too many registrations from this address.

---

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