Pipes API > API Endpoint service¶
The Pipes API allows you to interact with your Pipes. Several services are included under Pipes:
- Pipes: List, create, update, or delete your Tinybird Pipes.
- API Endpoints: Publish or unpublish your Pipes as API Endpoints.
- Materialized Views and Populates: Create, delete, or populate Materialized Views.
- Scheduled Copy (Copy Pipes API): Create, delete, schedule, and trigger Copy jobs.
New to Pipes? Read the Concepts > Pipes docs.
API Endpoints¶
- POST /v0/pipes/(.+)/nodes/(.+)/endpoint¶
Publishes an API endpoint
curl -X POST \ -H "Authorization: Bearer <PIPE:CREATE token>" \ "https://api.tinybird.co/v0/pipes/:pipe/nodes/:node/endpoint"
{ "id": "t_60d8f84ce5d349b28160013ce99758c7", "name": "my_pipe", "description": "this is my pipe description", "nodes": [{ "id": "t_bd1e095da943494d9410a812b24cea81", "name": "get_all", "sql": "SELECT * FROM my_datasource", "description": "This is a description for the **first** node", "materialized": null, "cluster": null, "dependencies": ["my_datasource"], "tags": {}, "created_at": "2019-09-03 19:56:03.704840", "updated_at": "2019-09-04 07:05:53.191437", "version": 0, "project": null, "result": null, "ignore_sql_errors": false }], "endpoint": "t_bd1e095da943494d9410a812b24cea81", "created_at": "2019-09-03 19:56:03.193446", "updated_at": "2019-09-10 07:18:39.797083", "parent": null }
The response will contain a
token
if there’s a unique READ token for this pipe. You could use this token to share your endpoint.¶ Code
Description
200
No error
400
Wrong node id
403
Forbidden. Provided token doesn’t have permissions to publish a pipe, it needs
ADMIN
orPIPE:CREATE
404
Pipe not found
- DELETE /v0/pipes/(.+)/nodes/(.+)/endpoint¶
Unpublishes an API endpoint
curl -X DELETE \ -H "Authorization: Bearer <PIPE:CREATE token>" \ "https://api.tinybird.co/v0/pipes/:pipe/nodes/:node/endpoint"
¶ Code
Description
200
No error
400
Wrong node id
403
Forbidden. Provided token doesn’t have permissions to publish a pipe, it needs
ADMIN
orPIPE:CREATE
404
Pipe not found