API template library

Simulate the Tavily Enterprise API key generator

A WireMock simulation of Tavily's REST API — covering batch generation of development and production keys, key info lookups, and deactivation of single keys or whole batches.

Vendor
Tavily
Functionality
Key batches, key info, deactivation
Spec version
1.0.0
Endpoints
3
Stubs
3
Protocol
REST
Validation
AI-validated Before publication, an AI agent exercised these endpoints against the real Tavily API through WireMock's recording proxy, and the recorded traffic was used to verify each stub's request and response shapes.

Live sandbox · no signup, no API key

Tavily Enterprise API Key Generator

A running WireMock Cloud instance of this template, callable right now from a terminal, a script, or an AI agent.

Base URL
https://g47yr6.wiremockapi.cloud

POST Generate API Keys [generateKeys]

curl -s -X POST 'https://g47yr6.wiremockapi.cloud/generate-keys' \
  -H 'Content-Type: application/json' \
  -d '{}'

GET Get Key Info [getKeyInfo]

curl -s -X GET 'https://g47yr6.wiremockapi.cloud/key-info'

POST Deactivate API Keys [deactivateKeys]

curl -s -X POST 'https://g47yr6.wiremockapi.cloud/deactivate-keys' \
  -H 'Content-Type: application/json' \
  -d '{}'
Method Path Summary
POST /deactivate-keys Deactivate API Keys
POST /generate-keys Generate API Keys
GET /key-info Get Key Info

Unauthenticated WireMock Cloud demo sandbox for Tavily — not an official Tavily sandbox, and it returns simulated example data only.

What's inside the Key Generator template

The template simulates Tavily's enterprise service for issuing API keys programmatically. A generate call returns a batch of keys in the tvly-dev- or tvly-prod- format, an expiry derived from ttl_hours and a request_id for the batch. Every key is remembered, so key-info reports its name, type and status, and deactivating the batch shows up on its next lookup. Provisioning code that hands out short-lived keys to users or agents can run the whole cycle against it.

  • Key generation — batches of up to 200 keys with a name, credit limit, lifetime and key type
  • Key info — the name, creation time, expiry, type and status of whichever key is in the Authorization header
  • Deactivation — a whole batch by its request_id, or the calling key when the request has no body

Tavily Enterprise API key generator mock API FAQ

A batch's keys take the batch name with a suffix, so a two-key batch called probe yields probe-#1 and probe-#2. Without a name, each key gets the key type and expiry with the same numbering, as Tavily's spec describes.

After its batch or the key itself is deactivated, or once its TTL has passed. Before that key-info reports it active, which makes expiry logic testable by generating a key with a short ttl_hours.

It returns default info: name default, expires_at never, and a type read from its prefix. Invalid admin keys aren't rejected either, because Tavily's documentation doesn't define those errors.

No, it's a separate host. Search, extract and research calls live in the Tavily Search and Extract template.

Vendor names identify APIs represented by WireMock template sources. This page does not imply vendor endorsement, certification, partnership, or official integration status.