AI Gateway Admin

PATCH /ai/providers/{id}

Changed on

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    HTTP bearer

Path parameters

idinteger required

Request body

api_keystring password nullable

A credential. Write-only: it is never returned, and the AI assistant supplies it through a secret slot instead of typing it into the conversation.

base_urlstring nullable

Double-Option: absent = leave unchanged, present-null = clear (revert to the provider's default endpoint), present-value = set. Moving the base URL to another address drops the per-key private-address trust.

default_modelstring nullable

Double-Option: absent = leave unchanged, present-null = clear the pinned model (revert to the per-provider default), present-value = set.

display_namestring nullable
is_activeboolean nullable
trust_private_addressboolean nullable

true trusts the exact private ip:port of the (new) base URL for this key only (requires settings:write); false removes the trust.

Response

Provider key updated

api_key_maskedstring required

Masked API key (only last 4 chars visible)

base_urlstring nullable
created_atstring required
default_modelstring nullable

Model id this provider serves (NULL → per-provider default).

display_namestring required
idinteger required
is_activeboolean required
providerstring required
trusted_private_addressstring nullable

Exact private ip:port this key may reach without that address being in the instance-wide trusted private networks. None when not set.

trusted_private_address_set_atstring nullable

When the per-key trust was set (ISO 8601).

trusted_private_address_set_byinteger nullable

User who set the per-key trust.

updated_atstring required

Changes

    • breaking

      removed the required property extensions from the response with the status

    • breaking

      removed the required property extensions from the response with the status

    • breaking

      removed the required property extensions from the response with the status

    1 more change in this revision