Generate Keys
Generate one or more API keys with custom configuration.
Documentation Index
Fetch the complete documentation index at: https://docs.tavily.com/llms.txt
Use this file to discover all available pages before exploring further.
This feature is available on the Enterprise plan. Talk to an expert to learn more.
Authorizations
Bearer authentication header in the form Bearer , where is your Tavily API key (e.g., Bearer tvly-YOUR_API_KEY).
Body
Parameters for generating API keys.
The permission level for the key.
admin, user The name of the key(s). Auto-generated in the format {key_type}-{expiration}-#{index}
Permission scopes for the key. Only applicable when permission_level is "user".
api:generate_keys The type of key.
development, production The number of credits for the generated keys.
1 <= x <= 100000Number of hours before the keys become deactivated.
1 <= x <= 8760The total number of keys to generate.
1 <= x <= 200Response
Keys generated successfully.
The generated API keys.
["tvly-dev-MI9p6...", "tvly-dev-f7Wrr..."]The expiration timestamp for the keys.
"2026-02-25T01:14:45Z"
The creation timestamp.
"2026-02-24T15:14:45"
A summary message about the generated keys.
"2 keys generated successfully with 200 credits each. These keys will be automatically deactivated after 10 hours"
Unique identifier for this generation request. Use this to bulk-deactivate the keys later.
"949297ca-d123-4267-8041-45398a0b847d"