generated from mintlify/starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
553da2d
commit 64ecce5
Showing
6 changed files
with
222 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
--- | ||
title: 'Get Query History' | ||
api: 'GET /v0/queries' | ||
--- | ||
Get the queries history, optionally for a given set of tags for a narrowed search. | ||
|
||
#### Authorizations | ||
|
||
<ParamField header="Authorization" type="string" required="true"> | ||
Bearer authentication header of the form `Bearer <token>`, where `<token>` is your auth token. | ||
</ParamField> | ||
|
||
#### Query Parameters | ||
|
||
<ParamField query="tags" type="string | array | null" > | ||
Tags to filter for queries that are marked with these tags. | ||
</ParamField> | ||
|
||
<ParamField query="endpoints" type="string | array | null" > | ||
Optionally specify an endpoint, or a list of endpoints to filter for | ||
</ParamField> | ||
|
||
<ParamField query="start_time" type="string | null" > | ||
Timestamp of the earliest query to aggregate. Format is `YYYY-MM-DD hh:mm:ss`. | ||
</ParamField> | ||
|
||
<ParamField query="end_time" type="string | null" > | ||
Timestamp of the latest query to aggregate. Format is `YYYY-MM-DD hh:mm:ss`. | ||
</ParamField> | ||
|
||
<RequestExample> | ||
|
||
```bash cURL | ||
curl --request GET \ | ||
--url 'https://api.unify.ai/v0/queries?tags=my_tag&endpoints=gpt-4o@openai&start_time=2024-07-12%2004:20:32&end_time=2024-08-12%2004:20:32' \ | ||
--header 'Authorization: Bearer <UNIFY_KEY>' | ||
``` | ||
|
||
```python Python | ||
import requests | ||
|
||
url = "https://api.unify.ai/v0/queries?tags=my_tag&endpoints=gpt-4o@openai&start_time=2024-07-12%2004:20:32&end_time=2024-08-12%2004:20:32" | ||
|
||
headers = {"Authorization": "Bearer <token>"} | ||
|
||
response = requests.request("GET", url, headers=headers) | ||
|
||
print(response.text) | ||
``` | ||
|
||
</RequestExample> | ||
<ResponseExample> | ||
|
||
```json 200 | ||
{} | ||
``` | ||
|
||
```json 422 | ||
{ | ||
"detail": [ | ||
{ | ||
"loc": [ | ||
"string" | ||
], | ||
"msg": "string", | ||
"type": "string" | ||
} | ||
] | ||
} | ||
``` | ||
|
||
</ResponseExample> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
title: 'Get Query Tags' | ||
api: 'GET /v0/tags' | ||
--- | ||
Returns a list of the tags in your account | ||
|
||
#### Authorizations | ||
|
||
<ParamField header="Authorization" type="string" required="true"> | ||
Bearer authentication header of the form `Bearer <token>`, where `<token>` is your auth token. | ||
</ParamField> | ||
|
||
<RequestExample> | ||
|
||
```bash cURL | ||
curl --request GET \ | ||
--url 'https://api.unify.ai/v0/tags' \ | ||
--header 'Authorization: Bearer <UNIFY_KEY>' | ||
``` | ||
|
||
```python Python | ||
import requests | ||
|
||
url = "https://api.unify.ai/v0/tags" | ||
|
||
headers = {"Authorization": "Bearer <token>"} | ||
|
||
response = requests.request("GET", url, headers=headers) | ||
|
||
print(response.text) | ||
``` | ||
|
||
</RequestExample> | ||
<ResponseExample> | ||
|
||
```json 200 | ||
{} | ||
``` | ||
|
||
</ResponseExample> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters