.agents/skills/tinybird/rules/endpoint-files.md
Endpoint files are .pipe files with TYPE endpoint and should live under /endpoints.
Example:
DESCRIPTION >
Some meaningful description of the endpoint
NODE endpoint_node
SQL >
SELECT ...
TYPE endpoint
Use tb endpoint data to test endpoint output:
tb endpoint data my_endpoint
tb endpoint data my_endpoint --start_date 2024-01-01 --end_date 2024-01-31
Use tb endpoint data, not tb pipe data. The endpoint data command calls the endpoint as a consumer would, including parameter validation and output formatting.
tb endpoint ls to list all endpoints and their URLs.YYYY-MM-DD HH:MM:SS.MMMYYYY-MM-DD HH:MM:SSYYYYMMDD<api_base_url>/v0/pipes/openapi.json?token=<token> to get the OpenAPI definition for all endpoints.