Skip to main content
PUT
Upsert Credential

Authorizations

gateway_session
string
cookie
required

Secure same-origin browser session cookie.

Path Parameters

provider
string
required

Body

application/json
credential

API keys are strings. Google service accounts use a JSON key string. aws_credentials accepts access_key_id and secret_access_key; temporary credentials also require session_token and an ISO expires_at with timezone. aws_assume_role accepts role_arn only. Its trust policy must require the server-owned ExternalId aixy-{organization_id}-{project_id}, or aixy-{organization_id}-organization for organization defaults. Explicit session credentials are not automatically renewed.

credential_type
enum<string> | null
Available options:
api_key,
google_service_account,
aws_credentials,
aws_assume_role
api_key
string | null
deprecated
connection
ProviderConnectionRequest · object | null
project_id
string | null
display_name
string | null
base_url
string | null
cost_attribution_mode
enum<string> | null
Available options:
hybrid,
provider_reported,
pricing_rules,
disabled
reported_cost_format
enum<string> | null
Available options:
auto,
none,
usage_cost,
usage_cost_usd
stream_usage_format
enum<string> | null
Available options:
auto,
none,
openai_include_usage

Response

Successful Response