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

# Get unredacted Iceberg REST catalog config (machine-to-machine)

> Return the **unredacted** connection config (OAuth2 credential/token/server-uri) for a single
Iceberg REST catalog. Machine-to-machine only (general PSK) since it exposes secrets — consumed
by the Gravitino Iceberg REST server's dynamic config provider. Returns 404 for unknown,
system, or non-Iceberg-REST catalogs.



## OpenAPI

````yaml get /api/metastore/catalogs/{catalog_name}/config
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/metastore/catalogs/{catalog_name}/config:
    get:
      tags:
        - Metastore
      summary: Get unredacted Iceberg REST catalog config (machine-to-machine)
      description: >-
        Return the **unredacted** connection config (OAuth2
        credential/token/server-uri) for a single

        Iceberg REST catalog. Machine-to-machine only (general PSK) since it
        exposes secrets — consumed

        by the Gravitino Iceberg REST server's dynamic config provider. Returns
        404 for unknown,

        system, or non-Iceberg-REST catalogs.
      operationId: >-
        get_iceberg_catalog_config_api_metastore_catalogs__catalog_name__config_get
      parameters:
        - name: catalog_name
          in: path
          required: true
          schema:
            type: string
            description: Catalog name.
            title: Catalog Name
          description: Catalog name.
      responses:
        '200':
          description: Iceberg REST catalog config retrieved successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IcebergCatalogConfigResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - OAuth2AuthorizationCodeBearer: []
        - APIKeyHeader: []
components:
  schemas:
    IcebergCatalogConfigResponse:
      properties:
        name:
          type: string
          title: Name
          description: Catalog name.
        catalog_type:
          type: string
          title: Catalog Type
          description: Connector type (always `iceberg`).
          default: iceberg
        uri:
          type: string
          title: Uri
          description: Upstream Iceberg REST catalog URI.
        credential:
          type: string
          title: Credential
          description: >-
            OAuth2 client credential (`client-id:client-secret`); empty if token
            auth.
          default: ''
        oauth2_server_uri:
          type: string
          title: Oauth2 Server Uri
          description: OAuth2 token endpoint (server-uri) for the client-credentials flow.
          default: ''
        token:
          type: string
          title: Token
          description: >-
            Bearer token — alternative to the OAuth2 credential flow; empty if
            unused.
          default: ''
        scope:
          type: string
          title: Scope
          description: OAuth2 scope.
          default: catalog
        vended_credentials:
          type: boolean
          title: Vended Credentials
          description: Whether the upstream catalog vends storage credentials.
          default: true
        warehouse:
          type: string
          title: Warehouse
          description: Warehouse identifier (upstream catalog selector).
          default: ''
        region:
          type: string
          title: Region
          description: AWS region for S3 storage, if set.
          default: ''
      type: object
      required:
        - name
        - uri
      title: IcebergCatalogConfigResponse
      description: >-
        Unredacted connection config for a single Iceberg REST catalog.


        Machine-to-machine only (general PSK). Unlike ``/catalogs/details`` this
        returns the

        real OAuth2 credential / token / server-uri (not ``***``) so the
        Gravitino Iceberg REST

        server's config provider can stand up a REST-backed catalog that
        authenticates upstream.
    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
    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
  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

````