Share Tinybird API endpoint documentation¶
Learn how to share your Tinybird API endpoint documentation with development teams.
The Tinybird API endpoint page¶
When you publish an API endpoint, Tinybird generates a documentation page for you that is ready to share and compatible with OpenAPI 3.0. It contains your API endpoint description, information about the dynamic parameters you can use when querying this endpoint, and code snippets for quickly integrating your API in third-party applications.
To share your published API Endpoint, select Create Chart > Share this API endpoint:
Use Static Tokens to define API endpoint subsets¶
Tinybird authentication is based on Tokens, which contain different scopes for specific resources. For example, use a Token to read from one or more Endpoints or to get write permissions for a particular Data Source.
In the URLs generated for sharing a public Endpoint page, a Token parameter appears after the Endpoint ID. This page is accessible only if the Token provided in the URL has read permissions for it:
https://api.tinybird.co/endpoint/t_bdcad2252e794c6573e21e7e?token=<token_with_permissions>
For security, Tinybird automatically generates a read-only Token when sharing a public Endpoint page for the first time. If you don't explicitly use it, your Admin Token is never exposed.
The API endpoints list page¶
You can also render the Endpoint information for a given Token.
https://app.tinybird.co/<provider>/<region>/endpoints?token=<your_token>
Enter the previous URL, with your Token and the provider and region where the API endpoint is published, into the browser to retrieve a list that shows all API endpoints that the token can read from.
When integrating your Endpoint in your apps, manage dedicated Tokens. Create a Token for every app environment so you can track requests to your Endpoints by app and choose which Endpoints are accessible to them.
Once you do that, you can share auto-generated documentation with ease, without compromising your data privacy and security.
API endpoint docs pages include a read token by default. In the "Share this API endpoint" modal, you can also see public URLs for every token with read permissions for your pipe.
Browse your API docs¶
All endpoint documentation is compatible with OpenAPI 3.0 and accessible through the API. If you use a token with permissions for more than one API endpoint, the OpenAPI documentation contains information about all the API endpoints at once.