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

# Search Credible documentation

> Search Credible's platform documentation and return the most relevant content as plain text. Authenticate with `Authorization: Bearer <auth0-jwt>` or `Authorization: ApiKey <group-access-token>`.



## OpenAPI

````yaml /code-assist-public-api.yaml post /search_credible_docs
openapi: 3.0.0
info:
  title: Coding API
  description: >-
    Public API for Credible's Code Assist service. Its externally-facing
    capability is a Malloy documentation search (`POST /search_malloy_docs`)
    that any authenticated caller — including a customer's own MCP server — can
    invoke directly with a Group Access Token. The remaining endpoints back the
    Credible VS Code extension and are not part of the external integration
    surface.
  version: 1.0.0
servers:
  - url: https://{organization}.coding.credibledata.com
    description: Production API server
    variables:
      organization:
        default: demo
        description: Your organization subdomain
security:
  - bearerAuth: []
  - apiKeyAuth: []
tags:
  - name: codeAssist
    description: Code Assist API endpoints
paths:
  /search_credible_docs:
    post:
      tags:
        - codeAssist
      summary: Search Credible documentation
      description: >-
        Search Credible's platform documentation and return the most relevant
        content as plain text. Authenticate with `Authorization: Bearer
        <auth0-jwt>` or `Authorization: ApiKey <group-access-token>`.
      operationId: searchCredibleDocs
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: string
              description: Natural-language query about the Credible platform.
              minLength: 1
      responses:
        '200':
          description: Successful response
          content:
            text/plain:
              schema:
                type: string
                description: Relevant documentation content
        '400':
          description: >-
            The request was malformed or can not be performed given the state of
            the system.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: >-
            Can not perform the operation due to insufficient permissions or the
            state of the system.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: The specified resource was not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: An internal server error occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ErrorResponse:
      description: Standard error response body.
      type: object
      required:
        - error_code
        - message
      properties:
        error_code:
          type: string
          description: A code identifying the type of error
          enum:
            - INVALID_INPUT
            - UNAUTHORIZED
            - FORBIDDEN
            - NOT_FOUND
            - CONFLICT
            - INTERNAL_ERROR
            - BAD_GATEWAY
            - GATEWAY_TIMEOUT
        message:
          type: string
          description: A human-readable error message
        details:
          type: string
          description: Additional error details, if available
          nullable: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: |
        Auth0-issued user JWT. Provide as `Authorization: Bearer <token>`.
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: |
        HMAC-signed API key JWT (Group Access Token) issued by Credible. Provide
        as `Authorization: ApiKey <token>` (note the `ApiKey ` prefix in place
        of the usual `Bearer `). Include the full string — prefix and token —
        in this field.

````