---
updatedAt: 2026-06-12T16:45:46.000Z
agentTools:
  projectIndex: https://docs.hosttools.com/llms.txt
---

# Register OAuth Client

Dynamically register a new OAuth 2.0 client per RFC 7591.
Registration is open only to clients whose `redirect_uris` all point at a trusted AI assistant's own domain (claude.ai, claude.com, chatgpt.com, openai.com, cursor.com) or at the user's own machine (localhost, 127.0.0.1, ::1). An app that connects to hosts' accounts from its own domain is registered by Host Tools as an official partner instead: email support@hosttools.com. A `client_name` containing "Host Tools" is refused unless the client only redirects to the local machine.
Returns client credentials that can be used in the authorization flow.
Public clients (default) do not receive a client_secret.
Confidential clients (token_endpoint_auth_method = "client_secret_post" or "client_secret_basic")
receive a client_secret that must be stored securely.


# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "1.30.0",
    "title": "Host Tools API Reference",
    "description": "Host Tools API. Supports two authentication methods:\n- **Legacy auth token**: Pass the `authToken` header with your user token\n- **OAuth 2.0 Bearer token**: Pass `Authorization: Bearer <token>` header (see OAuth endpoints below)\n\nOAuth 2.0 is recommended for new integrations. It supports granular scopes and automatic token refresh.\n",
    "contact": {
      "name": "Tom Krones",
      "email": "support@hosttools.com",
      "url": "https://hosttools.com"
    }
  },
  "servers": [
    {
      "url": "https://app.hosttools.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "OAuth2 Access Token",
        "description": "OAuth 2.0 access token obtained via the authorization code flow"
      },
      "authToken": {
        "type": "apiKey",
        "in": "header",
        "name": "authToken",
        "description": "Legacy user authentication token (UUID)"
      }
    },
    "schemas": {
      "ClientRegistrationRequest": {
        "required": [
          "client_name",
          "redirect_uris"
        ],
        "properties": {
          "client_name": {
            "type": "string",
            "description": "Human-readable name of the client application"
          },
          "redirect_uris": {
            "type": "string",
            "description": "JSON array of allowed redirect URIs"
          },
          "grant_types": {
            "type": "string",
            "description": "JSON array of grant types (default authorization_code, refresh_token)"
          },
          "response_types": {
            "type": "string",
            "description": "JSON array of response types (default code)"
          },
          "token_endpoint_auth_method": {
            "type": "string",
            "description": "Auth method (none, client_secret_post, client_secret_basic)"
          },
          "requested_scope": {
            "type": "string",
            "description": "Space-separated list of requested scopes (field name in API is \"scope\")"
          },
          "logo_uri": {
            "type": "string",
            "description": "URL of the client logo (shown on consent page)"
          }
        }
      },
      "ClientRegistrationResponse": {
        "required": [
          "client_id",
          "client_name",
          "redirect_uris"
        ],
        "properties": {
          "client_id": {
            "type": "string",
            "description": "Unique client identifier (UUID)"
          },
          "client_secret": {
            "type": "string",
            "description": "Client secret (only for confidential clients). Store securely."
          },
          "client_name": {
            "type": "string",
            "description": "Human-readable name of the client"
          },
          "redirect_uris": {
            "type": "string",
            "description": "Registered redirect URIs (array of strings)"
          },
          "grant_types": {
            "type": "string",
            "description": "Granted grant types (array of strings)"
          },
          "response_types": {
            "type": "string",
            "description": "Granted response types (array of strings)"
          },
          "token_endpoint_auth_method": {
            "type": "string",
            "description": "Token endpoint auth method"
          },
          "granted_scope": {
            "type": "string",
            "description": "Space-separated list of granted scopes (field name in API is \"scope\")"
          },
          "client_id_issued_at": {
            "type": "number",
            "description": "Unix timestamp when the client was created"
          }
        }
      },
      "ErrorModel": {
        "required": [
          "message"
        ],
        "properties": {
          "message": {
            "type": "string"
          }
        }
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    },
    {
      "authToken": []
    }
  ],
  "paths": {
    "/oauth/register": {
      "post": {
        "summary": "Register OAuth Client",
        "description": "Dynamically register a new OAuth 2.0 client per RFC 7591.\nRegistration is open only to clients whose `redirect_uris` all point at a trusted AI assistant's own domain (claude.ai, claude.com, chatgpt.com, openai.com, cursor.com) or at the user's own machine (localhost, 127.0.0.1, ::1). An app that connects to hosts' accounts from its own domain is registered by Host Tools as an official partner instead: email support@hosttools.com. A `client_name` containing \"Host Tools\" is refused unless the client only redirects to the local machine.\nReturns client credentials that can be used in the authorization flow.\nPublic clients (default) do not receive a client_secret.\nConfidential clients (token_endpoint_auth_method = \"client_secret_post\" or \"client_secret_basic\")\nreceive a client_secret that must be stored securely.\n",
        "tags": [
          "OAuth"
        ],
        "requestBody": {
          "description": "Client registration details",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ClientRegistrationRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Client registered successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientRegistrationResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorModel"
                }
              }
            }
          }
        }
      }
    }
  }
}
```