> ## 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.

# Transparent proxy to DataHub GMS

> Forward the incoming request verbatim to DataHub GMS.

The client authenticates to this endpoint with ``Authorization: Bearer <psk>``
where ``<psk>`` matches ``NLP_API_PSK`` (platform) or a user PSK. The proxy
replaces ``Authorization`` with the DataHub service token, then injects
``X-DataHub-Actor`` so GMS attributes the action to the right user — using
the resolved Keycloak ``preferred_username`` URN-encoded for user PSKs.
Any client-supplied actor header is dropped (see _HOP_BY_HOP_REQUEST_HEADERS)
so users can't impersonate each other.



## OpenAPI

````yaml put /api/datahub/{path}
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/datahub/{path}:
    patch:
      tags:
        - DataHub proxy
      summary: Transparent proxy to DataHub GMS
      description: >-
        Forward the incoming request verbatim to DataHub GMS.


        The client authenticates to this endpoint with ``Authorization: Bearer
        <psk>``

        where ``<psk>`` matches ``NLP_API_PSK`` (platform) or a user PSK. The
        proxy

        replaces ``Authorization`` with the DataHub service token, then injects

        ``X-DataHub-Actor`` so GMS attributes the action to the right user —
        using

        the resolved Keycloak ``preferred_username`` URN-encoded for user PSKs.

        Any client-supplied actor header is dropped (see
        _HOP_BY_HOP_REQUEST_HEADERS)

        so users can't impersonate each other.
      operationId: datahub_proxy_api_datahub__path__get
      parameters:
        - name: path
          in: path
          required: true
          schema:
            type: string
            title: Path
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````