SDKs and OpenAPI
Use OpenAPI to generate typed request and response definitions for your integration. Torre publishes two schemas:
Both are rendered in the API Reference. Use these live documents rather than an exported copy when generating clients.
openapi-typescript generates TypeScript types only. OpenAPI Generator can generate a client that sends HTTP requests. Neither command creates an API key or grants access to another account.
Download a document
curl -fsS https://api.torre.ai/v1/openapi.json -o torre-recruiting-openapi.json
Download the Partners document from https://api.torre.ai/v1/partners/openapi.json when generating a Partners client.
Generate a client
Example with openapi-typescript:
npx openapi-typescript https://api.torre.ai/v1/openapi.json -o src/torre-api.d.ts
Example with OpenAPI Generator:
npx @openapitools/openapi-generator-cli generate \
-i https://api.torre.ai/v1/openapi.json \
-g typescript-fetch \
-o generated/torre-recruiting
When the deployed OpenAPI document changes, regenerate clients. Before an upgrade, read Versioning and lifecycle.
Attraction request variants
Generate clients from the current canonical contract. createOpening includes quiet initialization as an additional oneOf variant; activateReach accepts either the legacy budget-only input or explicit services. Opening reads can return a minimal pending setup shape. Keep optional service and expiry metadata compatible with legacy Reach responses. The same operation IDs are MCP tool names; JSON bodies are nested under body. See Attract candidates.