---
title: "Get Provider Credential Config"
method: GET
path: "/agent/providers/{provider}/config"
tags: ["agent"]
---

# Get Provider Credential Config

`GET /agent/providers/{provider}/config`

## Request

- Base URL: `https://platform.tracecat.com/api`
- URL: `https://platform.tracecat.com/api/agent/providers/{provider}/config`
- Auth: API key in cookie `fastapiusersauth`

Get credential field configuration for a specific provider.

## Path parameters

- `provider` string, required

## Response `200`

Successful Response

- ProviderCredentialConfig: Model for provider credential configuration.
  - `provider` string, required: The provider name
  - `label` string, required: Human-readable label for the provider
  - `fields` ProviderCredentialField[], required: Required credential fields
    - `key` string, required: The environment variable key for this credential
    - `label` string, required: Human-readable label for the field
    - `type` 'text' | 'password' | 'boolean', required: Input type: 'text', 'password', or 'boolean'
    - `description` string, required: Help text describing this credential
    - `required` boolean: Whether this field is required
    - `default` string, nullable: Default value pre-filled when no credential is stored yet

## Other responses

- `422`: Validation Error

---

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