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

# Get Provider

> Get provider details, optionally including available models.



## OpenAPI

````yaml GET /providers/{providerId}
openapi: 3.1.1
info:
  title: Adaline API
  version: 2.0.0
  description: >-
    Public API for managing Adaline projects, prompts, datasets, evaluators,
    evaluations, providers, models, and deployments.


    Generated from Zod schemas — this spec is the single source of truth.
servers:
  - url: https://api.adaline.ai/v2
    description: Production API
security: []
tags:
  - name: datasets
    description: Manage prompt datasets and their columns and rows.
  - name: projects
    description: List and manage Adaline projects.
  - name: providers
    description: List configured LLM providers and their settings.
  - name: models
    description: List available models across providers.
  - name: prompts
    description: Create and manage prompts and their drafts.
  - name: evaluators
    description: Configure evaluators attached to a prompt.
  - name: evaluations
    description: Run and inspect evaluation results.
  - name: deployments
    description: Retrieve deployed prompt snapshots.
  - name: logs
    description: Ingest execution traces and spans for observability.
paths:
  /providers/{providerId}:
    get:
      tags:
        - providers
      summary: Get a provider
      description: Get provider details, optionally including available models.
      operationId: getProvider
      parameters:
        - schema:
            $ref: '#/components/schemas/BaseEntityId'
          required: true
          name: providerId
          in: path
        - schema:
            type:
              - boolean
              - 'null'
          required: false
          name: includeModels
          in: query
      responses:
        '200':
          description: Provider retrieved.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetProviderResponse'
          headers:
            X-Request-Id:
              description: >-
                Unique identifier for the request. Returned in every response.
                Send a custom value to correlate requests, or omit to receive a
                generated UUID.
              schema:
                type: string
                format: uuid
        '400':
          description: Bad request — validation error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized — invalid or missing API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden — API key lacks access.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    BaseEntityId:
      title: Base Entity ID
      type: string
      description: Unique identifier for an entity, between 20 and 80 characters.
      minLength: 20
      maxLength: 80
    GetProviderResponse:
      title: Get Provider Response
      description: >-
        A provider, optionally including its available models when
        `includeModels=true`. The richer `ProviderWithModels` shape is listed
        first so pydantic's anyOf resolution picks it whenever `availableModels`
        is present; otherwise it falls through to plain `Provider`.
      anyOf:
        - $ref: '#/components/schemas/ProviderWithModels'
          title: Provider With Models
        - $ref: '#/components/schemas/Provider'
          title: Provider
    ErrorResponse:
      title: Error Response
      type: object
      description: >-
        Standard error response envelope. Permits backend-specific sibling
        fields (e.g. Zod issue details) alongside the typed `error`.
      properties:
        error:
          description: >-
            Error details — typed envelope, or a raw string reason when the
            backend's validator produces a short summary (e.g. Zod validation
            fallback).
          oneOf:
            - type: string
            - type: object
              properties:
                code:
                  type: string
                  description: Machine-readable error code.
                  enum:
                    - VALIDATION_ERROR
                    - INVALID_CURSOR
                    - AUTHENTICATION_REQUIRED
                    - FORBIDDEN
                    - RESOURCE_NOT_FOUND
                    - CONFLICT
                    - PAYLOAD_TOO_LARGE
                    - RATE_LIMITED
                    - INTERNAL_ERROR
                message:
                  type: string
                  description: Human-readable error message.
                details:
                  type: array
                  description: Optional field-level validation details.
                  items:
                    type: object
                    properties:
                      field:
                        type: string
                      issue:
                        type: string
                    required:
                      - field
                      - issue
              required:
                - code
                - message
              additionalProperties: true
      required:
        - error
      additionalProperties: true
    ProviderWithModels:
      title: Provider With Models
      type: object
      properties:
        id:
          $ref: '#/components/schemas/BaseEntityId'
        settingId:
          type: string
        provider:
          type: string
        description:
          type: string
        modelSettings:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
              enabled:
                type: boolean
            required:
              - name
              - enabled
        createdAt:
          $ref: '#/components/schemas/UnixTimestamp'
        updatedAt:
          $ref: '#/components/schemas/UnixTimestamp'
        availableModels:
          type: array
          items:
            $ref: '#/components/schemas/Model'
      required:
        - id
        - settingId
        - provider
        - modelSettings
        - createdAt
        - updatedAt
        - availableModels
      description: A configured model provider with its available models.
    Provider:
      title: Provider
      type: object
      properties:
        id:
          $ref: '#/components/schemas/BaseEntityId'
        settingId:
          type: string
          maxLength: 255
          minLength: 1
        provider:
          type: string
        description:
          type: string
        modelSettings:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
              enabled:
                type: boolean
            required:
              - name
              - enabled
        createdAt:
          $ref: '#/components/schemas/UnixTimestamp'
        updatedAt:
          $ref: '#/components/schemas/UnixTimestamp'
      required:
        - id
        - settingId
        - provider
        - modelSettings
        - createdAt
        - updatedAt
      description: A configured model provider with connection settings.
    UnixTimestamp:
      title: Unix Timestamp
      type: integer
      format: int64
      description: Unix timestamp in milliseconds.
      minimum: 1672511400000
      maximum: 33229420200000
    Model:
      title: Model
      type: object
      description: An LLM model available through a configured provider.
      properties:
        id:
          type: string
        providerId:
          $ref: '#/components/schemas/BaseEntityId'
        provider:
          type: string
        model:
          type: string
        enabled:
          type: boolean
      required:
        - id
        - providerId
        - provider
        - model
        - enabled
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: 'Workspace API key. Pass as `Authorization: Bearer <key>`.'

````