---
updatedAt: 2026-09-24T15:46:06.000Z
agentTools:
  projectIndex: https://dev.proof.com/llms.txt
---

# Register a Client

Registers an OAuth client from the [client metadata](https://datatracker.ietf.org/doc/html/rfc7591#section-2) in the request body and returns a [client information response](https://datatracker.ietf.org/doc/html/rfc7591#section-3.2.1). The endpoint is unauthenticated. 

The `client_secret` appears in this response only. Proof sets `grant_types`, `response_types` and `scope`, and sets `token_endpoint_auth_method` to `client_secret_post` unless the request asks for [`private_key_jwt`](https://datatracker.ietf.org/doc/html/rfc7523#section-2.2) with a `jwks` or `jwks_uri`, in which case no `client_secret` is issued.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "OAuth 2.0 API Specification",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://api.proof.com",
      "description": "Public API URL"
    }
  ],
  "components": {
    "schemas": {
      "oauth_error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "description": "An [error code](https://datatracker.ietf.org/doc/html/rfc6749#section-5.2)."
          },
          "error_description": {
            "type": "string",
            "description": "Human-readable detail about the error, for developers."
          },
          "state": {
            "type": "string",
            "description": "Accompanies some error responses."
          }
        }
      },
      "client_registration_request": {
        "type": "object",
        "required": [
          "redirect_uris"
        ],
        "properties": {
          "redirect_uris": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "[Redirect URIs](https://datatracker.ietf.org/doc/html/rfc6749#section-3.1.2) for the authorization endpoint. At least one is required."
          },
          "client_name": {
            "type": "string",
            "description": "Name shown to the User on the authorization page. Proof generates one when this is absent."
          },
          "client_uri": {
            "type": "string",
            "description": "URL of the client home page."
          },
          "logo_uri": {
            "type": "string",
            "description": "URL of a logo for the client."
          },
          "contacts": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Email addresses of people responsible for the client."
          },
          "tos_uri": {
            "type": "string",
            "description": "URL of the terms of service of the client."
          },
          "policy_uri": {
            "type": "string",
            "description": "URL of the privacy policy of the client."
          },
          "jwks_uri": {
            "type": "string",
            "description": "URL of the [JWK Set](https://datatracker.ietf.org/doc/html/rfc7517#section-5) of the client. Supply either `jwks_uri` or `jwks`."
          },
          "jwks": {
            "type": "object",
            "description": "The [JWK Set](https://datatracker.ietf.org/doc/html/rfc7517#section-5) of the client, by value. Supply either `jwks` or `jwks_uri`."
          },
          "software_id": {
            "type": "string",
            "description": "Identifier the client developer assigns to the client software."
          },
          "software_version": {
            "type": "string",
            "description": "Version of the client software."
          },
          "token_endpoint_auth_method": {
            "type": "string",
            "enum": [
              "client_secret_post",
              "private_key_jwt"
            ],
            "description": "Requested client authentication method. `private_key_jwt` requires `jwks` or `jwks_uri` and issues no `client_secret`; any other value results in `client_secret_post`."
          }
        },
        "example": {
          "client_name": "Example App",
          "redirect_uris": [
            "https://example.com/oauth/callback"
          ],
          "client_uri": "https://example.com",
          "contacts": [
            "support@example.com"
          ]
        }
      },
      "client_registration_response": {
        "type": "object",
        "properties": {
          "client_id": {
            "type": "string",
            "description": "The [`client_id`](https://datatracker.ietf.org/doc/html/rfc6749#section-2.2) issued to the client."
          },
          "client_secret": {
            "type": "string",
            "description": "The client secret issued to the client. Returned in this response only."
          },
          "client_id_issued_at": {
            "type": "integer",
            "description": "Issue time of the `client_id`, as a Unix timestamp in seconds."
          },
          "client_secret_expires_at": {
            "type": "integer",
            "description": "Expiry of the `client_secret`, as a Unix timestamp in seconds. `0` marks a secret that lasts indefinitely."
          },
          "token_endpoint_auth_method": {
            "type": "string",
            "description": "The client authentication method the client uses at the token endpoint."
          },
          "grant_types": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Grant types the client may use."
          },
          "response_types": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Response types the client may use."
          },
          "scope": {
            "type": "string",
            "description": "Space-separated [scope](https://datatracker.ietf.org/doc/html/rfc6749#section-3.3) values the client may request."
          },
          "client_name": {
            "type": "string",
            "description": "Name of the registered client."
          },
          "redirect_uris": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Redirect URIs registered for the client."
          },
          "client_uri": {
            "type": "string",
            "description": "Echoed from the registration request."
          },
          "logo_uri": {
            "type": "string",
            "description": "Echoed from the registration request."
          },
          "contacts": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Echoed from the registration request."
          },
          "tos_uri": {
            "type": "string",
            "description": "Echoed from the registration request."
          },
          "policy_uri": {
            "type": "string",
            "description": "Echoed from the registration request."
          },
          "jwks_uri": {
            "type": "string",
            "description": "Echoed from the registration request."
          },
          "jwks": {
            "type": "object",
            "description": "Echoed from the registration request."
          },
          "software_id": {
            "type": "string",
            "description": "Echoed from the registration request."
          },
          "software_version": {
            "type": "string",
            "description": "Echoed from the registration request."
          }
        }
      }
    }
  },
  "paths": {
    "/oauth/v2/register": {
      "post": {
        "summary": "Register a Client",
        "tags": [
          "OAuth 2.0"
        ],
        "operationId": "registerOAuthClient",
        "description": "Registers an OAuth client from the [client metadata](https://datatracker.ietf.org/doc/html/rfc7591#section-2) in the request body and returns a [client information response](https://datatracker.ietf.org/doc/html/rfc7591#section-3.2.1). The endpoint is unauthenticated. \n\nThe `client_secret` appears in this response only. Proof sets `grant_types`, `response_types` and `scope`, and sets `token_endpoint_auth_method` to `client_secret_post` unless the request asks for [`private_key_jwt`](https://datatracker.ietf.org/doc/html/rfc7523#section-2.2) with a `jwks` or `jwks_uri`, in which case no `client_secret` is issued.",
        "parameters": [],
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "example": {
                  "client_id": "ca53ngknk",
                  "client_secret": "08bb75e0-fa86-45ad-b9a2-231618867bf2",
                  "client_id_issued_at": 1794240549,
                  "client_secret_expires_at": 0,
                  "token_endpoint_auth_method": "client_secret_post",
                  "grant_types": [
                    "authorization_code",
                    "refresh_token"
                  ],
                  "response_types": [
                    "code"
                  ],
                  "scope": "mcp.read agentic",
                  "client_name": "Example App",
                  "redirect_uris": [
                    "https://example.com/oauth/callback"
                  ],
                  "client_uri": "https://example.com",
                  "contacts": [
                    "support@example.com"
                  ]
                },
                "schema": {
                  "$ref": "#/components/schemas/client_registration_response"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "example": {
                  "error": "invalid_redirect_uri",
                  "error_description": "invalid redirect_uri: not a uri"
                },
                "schema": {
                  "$ref": "#/components/schemas/oauth_error"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/client_registration_request"
              }
            }
          },
          "required": true
        }
      }
    }
  }
}
```