Skip to main content
PATCH
/
governance
/
providers
/
config
Upsert governance provider configuration
curl --request PATCH \
  --url https://app.usechar.ai/api/governance/providers/config \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "provider_key": "langguard",
  "interceptor_url": "<string>",
  "interceptor_name": "<string>",
  "is_enabled": true,
  "api_key": "<string>"
}
'
{
  "effective_status": "active",
  "reason": "<string>",
  "config": {
    "provider_key": "<string>",
    "interceptor_url": "<string>",
    "interceptor_name": "<string>",
    "api_key_last4": "<string>",
    "is_enabled": true,
    "last_test_status": "<string>",
    "last_test_message": "<string>",
    "last_test_at": "2023-11-07T05:31:56Z",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "has_api_key": true
  }
}

Authorizations

Authorization
string
header
required

WorkOS JWT token. Obtain via WorkOS AuthKit authentication flow. The token must include organization_id claim for organization-scoped endpoints.

Body

application/json
provider_key
enum<string>
required
Available options:
langguard,
byo
interceptor_url
string<uri>
required
interceptor_name
string
required
Minimum string length: 1
is_enabled
boolean
required
api_key
string
Minimum string length: 1

Response

OK

effective_status
enum<string>
required
Available options:
active,
bypassed
reason
string
required
config
object
required