Generate one or more API keys with custom configuration.
Bearer authentication header in the form Bearer
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 <= 200Keys 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"