---
title: "Get auth import schema"
method: GET
path: "/provider-auth-config-imports/schema"
tags: ["Provider Auth Imports"]
---

# Get auth import schema

`GET /provider-auth-config-imports/schema`

## Request

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

Retrieves the JSON Schema for importing authentication credentials.

## Query parameters

- `provider_id` string
- `provider_deployment_id` string
- `provider_auth_config_id` string
- `provider_auth_method_id` string

## Headers

- `Metorial-Version` string

## Response `200`

Successful response

- AuthImportSchema
  - `object` 'provider.capabilities.auth_config.schema', required: String representing the object's type
  - `schema` object, nullable, required
    - `type` 'json_schema', required
    - `schema` object, required: JSON Schema for auth import data
  - `visibility` 'encrypted', required: Visibility of the auth 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)
