---
title: "Get config schema"
method: GET
path: "/provider-config-schema"
tags: ["Provider Configs"]
---

# Get config schema

`GET /provider-config-schema`

## Request

- Base URL: `https://api.metorial.com`
- URL: `https://api.metorial.com/provider-config-schema`
- Auth: HTTP bearer

Retrieves the JSON Schema for configuration of this provider deployment.

## Query parameters

- `provider_id` string
- `provider_config_id` string
- `provider_version_id` string
- `provider_deployment_id` string

## Headers

- `Metorial-Version` string

## Response `200`

Successful response

- ConfigSchema
  - `object` 'provider.capabilities.config.schema', required: String representing the object's type
  - `schema` object, nullable, required
    - `type` 'json_schema', required
    - `schema` object, required: JSON Schema for provider configuration
  - `visibility` 'plain' | 'encrypted', required: Visibility of the config data
  - `specification_id` string, required: Specification ID
  - `provider_id` string, required: Provider ID
  - `created_at` string, date-time, required: Timestamp when created
  - `updated_at` string, date-time, required: Timestamp when last updated

## Other responses

- `400`: Invalid parameters or action
- `401`: Missing or invalid API key
- `403`: The key lacks permission for this resource
- `404`: No such resource
- `422`: Validation failed
- `429`: Rate limit exceeded
- `500`: Unexpected server error

---

[API](https://skmtc.dev/metorial/apis/metorial-api.md) - [All operations](https://skmtc.dev/metorial/apis/metorial-api/llms.txt) - [OpenAPI document](https://skmtc.dev/metorial/apis/metorial-api/revisions/10ccc89f3eac?raw)
