# Providers

The Providers API allows you to discover and inspect AI providers registered in your Umbraco installation.

## Overview

Providers are read-only resources - they're installed as NuGet packages and discovered automatically. The API lets you:

* List all registered providers
* Get detailed information about a specific provider
* Inspect provider settings schema for UI generation

## Base URL

```
/umbraco/ai/management/api/v1/providers
```

## Authentication

All endpoints require backoffice authentication with the `Umb.AI.Management.Api` authorization policy.

## Endpoints

| Method | Endpoint                                       | Description                                                            |
| ------ | ---------------------------------------------- | ---------------------------------------------------------------------- |
| GET    | `/umbraco/ai/management/api/v1/providers`      | [List all providers](/ai-in-umbraco/management-api/providers/list.md)  |
| GET    | `/umbraco/ai/management/api/v1/providers/{id}` | [Get provider details](/ai-in-umbraco/management-api/providers/get.md) |

## Response Models

### ProviderItemResponseModel

Lightweight model used in list responses:

```json
{
    "id": "openai",
    "name": "OpenAI",
    "capabilities": ["Chat", "Embedding"]
}
```

### ProviderResponseModel

Full model with settings schema:

```json
{
    "id": "openai",
    "name": "OpenAI",
    "capabilities": ["Chat", "Embedding"],
    "settings": [
        {
            "alias": "apiKey",
            "name": "API Key",
            "description": "Your OpenAI API key",
            "type": "string",
            "isRequired": true,
            "isSensitive": true
        }
    ]
}
```

## Settings Schema

The `settings` array describes the configuration options for a provider:

| Property       | Type       | Description                               |
| -------------- | ---------- | ----------------------------------------- |
| `alias`        | string     | Setting identifier                        |
| `name`         | string     | Display name                              |
| `description`  | string?    | Help text                                 |
| `type`         | string     | Data type (`string`, `number`, `boolean`) |
| `isRequired`   | bool       | Whether the setting must be provided      |
| `isSensitive`  | bool       | Whether to mask the value in UI           |
| `defaultValue` | string?    | Default value if not specified            |
| `options`      | string\[]? | Valid options for selection               |

## In This Section

{% content-ref url="/pages/qTGGXheR5c4pnm5rUSte" %}
[List Providers](/ai-in-umbraco/management-api/providers/list.md)
{% endcontent-ref %}

{% content-ref url="/pages/BfsdtNLV0eoVH7uYvVbi" %}
[Get Provider](/ai-in-umbraco/management-api/providers/get.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.umbraco.com/ai-in-umbraco/management-api/providers.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
