provider workspace PATCH /v1/service-accounts/{service_account_user_id}/api-keys/{api_key_id}
@utdk/elevenlabs /v1/service-accounts/{service_account_user_id}/api-keys/{api_key_id}
Edit Service Account Api Key
Update an existing API key for a service account
service_account_user_id path required
string
api_key_id path required
string
xi-api-key header
Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.

Try it

Authentication
Configure credentials for ElevenLabs API Documentation
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

editServiceAccountApiKey
PATCH/v1/service-accounts/{service_account_user_id}/api-keys/{api_key_id}
Update an existing API key for a service account

Parameters

required
required

Input

required

Whether to enable or disable the API key.

required

The name of the XI API key to use (used for identification purposes only).

required

The permissions of the XI API.

The character limit of the XI API key. If provided this will limit the usage of this api key to n characters per month where n is the chosen value. Requests that incur charges will fail after reaching this monthly limit.

List of IP addresses or CIDR ranges allowed to use this API key. Each entry may be a CIDR range (e.g. '10.0.0.0/24') or a bare IP address (normalized to /32 or /128). On create, omit or pass null to allow all IPs. On update, omit to leave the whitelist unchanged, or pass "clear" to remove it.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import elevenlabs from '@utdk/elevenlabs';

await elevenlabs.editServiceAccountApiKey({
  "allowed_ips": "no_update"
})