Skip to content

Commit f5cfa07

Browse files
committed
docs: Updated hql docs for api to point to swagger
1 parent 061d633 commit f5cfa07

File tree

1 file changed

+4
-19
lines changed

1 file changed

+4
-19
lines changed

docs/features/hql.mdx

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -100,27 +100,12 @@ Saved queries can be revisited and shared within your organization.
100100

101101
### Via API
102102

103-
HQL endpoints are namespaced under `/v1/helicone-sql` and require an authenticated request scoped to your organization.
104-
105-
```bash
106-
curl -X POST "https://api.helicone.ai/v1/helicone-sql/execute" \
107-
-H "Authorization: Bearer $HELICONE_API_KEY" \
108-
-H "Content-Type: application/json" \
109-
-d '{
110-
"sql": "SELECT request_model, COUNT() AS c FROM request_response_rmt GROUP BY request_model ORDER BY c DESC LIMIT 50"
111-
}'
112-
```
103+
Interactive API documentation is available at: [https://api.helicone.ai/docs/#/HeliconeSql](https://api.helicone.ai/docs/#/HeliconeSql)
113104

114-
Download large result sets as CSV:
105+
### API Limits
115106

116-
```bash
117-
curl -X POST "https://api.helicone.ai/v1/helicone-sql/download" \
118-
-H "Authorization: Bearer $HELICONE_API_KEY" \
119-
-H "Content-Type: application/json" \
120-
-d '{
121-
"sql": "SELECT * FROM request_response_rmt WHERE request_created_at >= toDateTime64(now(), 3) - INTERVAL 7 DAY"
122-
}'
123-
```
107+
- **Query limit**: 300,000 rows maximum per query
108+
- **Rate limits**: 100 queries/min, 10 CSV downloads/min
124109

125110
## Related
126111

0 commit comments

Comments
 (0)