> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xcale.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Register a client

> Dynamic client registration (RFC 7591): a client announces its redirect URIs and receives a client_id.



## OpenAPI

````yaml /openapi.public.json post /oauth/register
openapi: 3.0.3
info:
  description: >-
    The endpoints a client outside xcale calls to connect to the xcale MCP:
    discovery, client registration, authorization, the token exchange and the
    MCP endpoint.
  title: xcale MCP
  version: 1.0.0
servers:
  - url: https://api.xcale.app
security: []
paths:
  /oauth/register:
    post:
      summary: Register a client
      description: >-
        Dynamic client registration (RFC 7591): a client announces its redirect
        URIs and receives a client_id.
      operationId: registerClient
      requestBody:
        content:
          application/json:
            schema:
              description: Client metadata (RFC 7591). Fields not listed here are ignored.
              properties:
                client_name:
                  description: The name of the app. It is never trusted as identity.
                  maxLength: 100
                  type: string
                grant_types:
                  items:
                    enum:
                      - authorization_code
                      - refresh_token
                    type: string
                  type: array
                redirect_uris:
                  description: >-
                    Where the person is sent back: `https`, or `http` on a
                    loopback host. No fragment, at most 2048 characters each.
                  items:
                    type: string
                  maxItems: 5
                  minItems: 1
                  type: array
                response_types:
                  items:
                    enum:
                      - code
                    type: string
                  type: array
                token_endpoint_auth_method:
                  description: 'Ignored: every client is public (`none`).'
                  type: string
              required:
                - redirect_uris
              type: object
        description: Client metadata (RFC 7591). Fields not listed here are ignored.
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                properties:
                  client_id:
                    type: string
                  client_id_issued_at:
                    description: Seconds since the Unix epoch.
                    type: integer
                  client_name:
                    type: string
                  grant_types:
                    items:
                      enum:
                        - authorization_code
                        - refresh_token
                      type: string
                    type: array
                  redirect_uris:
                    items:
                      type: string
                    type: array
                  response_types:
                    items:
                      enum:
                        - code
                      type: string
                    type: array
                  token_endpoint_auth_method:
                    enum:
                      - none
                    type: string
                required:
                  - client_id
                  - client_id_issued_at
                  - redirect_uris
                  - grant_types
                  - response_types
                  - token_endpoint_auth_method
                type: object
          description: >-
            The client is registered. It expires in 24 hours unless a connection
            is made with it.
          headers:
            Cache-Control:
              description: 'Always `no-store`: the answer is never cached.'
              schema:
                type: string
        '400':
          content:
            application/json:
              schema:
                properties:
                  error:
                    enum:
                      - invalid_client_metadata
                      - invalid_redirect_uri
                    type: string
                  error_description:
                    description: A short English explanation for a developer.
                    type: string
                required:
                  - error
                type: object
          description: The client metadata is not valid.
          headers:
            Cache-Control:
              description: 'Always `no-store`: the answer is never cached.'
              schema:
                type: string
        '429':
          content:
            application/json:
              schema:
                properties:
                  error:
                    enum:
                      - temporarily_unavailable
                    type: string
                  error_description:
                    description: A short English explanation for a developer.
                    type: string
                required:
                  - error
                type: object
          description: >-
            Too many registrations from this address. Wait `Retry-After`
            seconds.
          headers:
            Cache-Control:
              description: 'Always `no-store`: the answer is never cached.'
              schema:
                type: string
            Retry-After:
              description: Seconds to wait before the next call.
              schema:
                type: string
        '503':
          content:
            application/json:
              schema:
                properties:
                  error:
                    enum:
                      - temporarily_unavailable
                    type: string
                  error_description:
                    enum:
                      - connector_disabled
                    type: string
                required:
                  - error
                type: object
          description: The xcale MCP is not enabled on this deployment. Try again later.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.