Loading...

REST API

OpenAPI specification for the Tambo Cloud REST API

The Tambo Cloud REST API provides programmatic access to threads, messages, and AI generation capabilities.

OpenAPI Specification

The complete REST API is documented via an interactive OpenAPI specification available at:

api.tambo.co/api

The OpenAPI spec includes:

  • All available endpoints with request/response schemas
  • Authentication requirements
  • Interactive "Try it out" functionality
  • Code generation for multiple languages

Authentication

All API requests require a Bearer token in the Authorization header:

curl -H "Authorization: Bearer YOUR_API_KEY" \
  https://api.tambo.co/threads

Get your API key from the Tambo Cloud dashboard.

Common Endpoints

EndpointMethodDescription
/threadsGETList all threads for your project
/threadsPOSTCreate a new thread
/threads/:idGETGet a specific thread with messages
/threads/:id/advancePOSTSend a message and get AI response
/threads/:id/advancestreamPOSTSend a message with streaming response

Error Responses

The API uses RFC 9457 Problem Details for error responses. Each error response includes a type field with a URI that links to detailed documentation about that specific problem.

Common Problem Types

SDKs

For most use cases, we recommend using one of the official SDKs instead of direct REST calls: