Lists SQL snippets for the logged in user
get
/v1/snippetsOAuth scopes
- database:read
The fine-grained token must include the following permissions to access this endpoint:
- snippets_read
Query parameters
- project_refOptionalstring
Project ref
- cursorOptionalstring
- limitOptionalstring
- sort_byOptionalenum
- sort_orderOptionalenum
Response codes
- 200
- 401
- 403
- 429
- 500
Response (200)
{ "data": [ { "id": "lorem", "inserted_at": "lorem", "updated_at": "lorem", "type": "sql", "visibility": "user", "name": "lorem", "description": "lorem", "project": { "id": 42, "name": "lorem" }, "owner": { "id": 42, "username": "lorem" }, "updated_by": { "id": 42, "username": "lorem" }, "favorite": true } ], "cursor": "lorem"}