Update Provider Key

Changed on

Rotate the workspace's key for a provider. 404 if none is configured.

Full replacement, not a partial update — unlike the agent/config mirrors there is no exclude_unset, because api_key is the whole point of the call.

put/tokenwise/settings/provider-keys

Request

  • Base URL
    https://api.ai21.com (the document declares no server; this is the origin it was published from)
  • URL
    https://api.ai21.com/tokenwise/settings/provider-keys
  • Auth
    none declared

Request body

providerstring required
api_keystring password required

Response

Successful Response

providerstring required
masked_keystring
created_atstring date-time required
updated_atstring date-time required

Changes