Base URLs
Tembo API and self-hosted deployments use the same API operations and schemas.- Tembo API:
https://api.tembo.io - Self-hosted:
https://{deployment-origin}/api/public-api
/api/public-api path prefix.
Authentication
For the Tembo API, create an API key from Settings > API Keys in the hosted Tembo dashboard. For self-hosted, create an API key in your deployment’s own dashboard. When you create a key, choose when it expires: 7, 30, 60, or 90 days, 1 year, or no expiration. The dashboard defaults to 90 days. Expired keys stop authenticating requests. When creating a key through the API, setexpiresAt
to a future timestamp, or omit it for a key that never expires.
TypeScript SDK
TEMBO_API_KEY environment variable to your API key. Keep it on your
server, not in browser code or source control.
Rust SDK
The Rust SDK is asynchronous. These examples use the Tokio runtime.Tembo::from_env() reads your API key from the TEMBO_API_KEY environment
variable.
MCP server
The Tembo MCP server lets AI clients use the public Tembo API. Its tools are generated from the same OpenAPI schema as the API reference and SDKs.Connect
Use this remote HTTP MCP endpoint:- OAuth: Add only the MCP URL. Your client opens Tembo sign-in and asks you to select and authorize an organization.
- API key: Send your organization API key as
Authorization: Bearer YOUR_API_KEY.
Self-hosted
Self-hosted deployments expose the MCP server athttps://{deployment-origin}/mcp. Connect with an API key created in your deployment. Self-hosted MCP does not require Clerk.