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

# Set the app registration for an OAuth MCP server

> For sign-in servers that don't let apps register themselves: a client
ID (and secret) registered by hand. Admins for Global servers, the owner
for personal ones. The secret is write-only.



## OpenAPI

````yaml put /api/registry/mcp-servers/{artifact_id}/oauth/client
openapi: 3.1.0
info:
  title: Nx1 AI API
  description: |

    AI API for Nx1 Data Platform Management and Automated Data Tasks.

    Authentication is required via PSK in Authorization header.

    Default PSK is | [ask a friend] |
  version: 0.10.2
servers: []
security: []
paths:
  /api/registry/mcp-servers/{artifact_id}/oauth/client:
    put:
      tags:
        - Registry
      summary: Set the app registration for an OAuth MCP server
      description: |-
        For sign-in servers that don't let apps register themselves: a client
        ID (and secret) registered by hand. Admins for Global servers, the owner
        for personal ones. The secret is write-only.
      operationId: set_oauth_client_api_registry_mcp_servers__artifact_id__oauth_client_put
      parameters:
        - name: artifact_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            description: The artifact's ID.
            title: Artifact Id
          description: The artifact's ID.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OAuthClientRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthClientStatus'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Conflict
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unprocessable Content
      security:
        - OAuth2AuthorizationCodeBearer: []
        - APIKeyHeader: []
components:
  schemas:
    OAuthClientRequest:
      properties:
        client_id:
          type: string
          maxLength: 512
          minLength: 1
          title: Client Id
        client_secret:
          anyOf:
            - type: string
              maxLength: 4096
            - type: 'null'
          title: Client Secret
      type: object
      required:
        - client_id
      title: OAuthClientRequest
      description: >-
        A client registered by hand, for servers that don't allow it
        automatically.
    OAuthClientStatus:
      properties:
        configured:
          type: boolean
          title: Configured
        required:
          type: boolean
          title: Required
          default: false
      type: object
      required:
        - configured
      title: OAuthClientStatus
      description: Whether this server has an OAuth client for this deployment.
    ErrorResponse:
      properties:
        error:
          type: string
          title: Error
          description: A brief description of the error that occurred.
        code:
          type: integer
          title: Code
          description: The HTTP status code associated with the error.
          default: 500
      type: object
      required:
        - error
      title: ErrorResponse
  securitySchemes:
    OAuth2AuthorizationCodeBearer:
      type: oauth2
      flows:
        authorizationCode:
          scopes: {}
          authorizationUrl: >-
            https://sso-rapid.rapid.nx1cloud.com/realms/rapid/protocol/openid-connect/auth
          tokenUrl: >-
            https://sso-rapid.rapid.nx1cloud.com/realms/rapid/protocol/openid-connect/token
    APIKeyHeader:
      type: apiKey
      in: header
      name: Authorization-PSK

````

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