GET
/
v0
/
queries
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&page_number=1&failures=False' \
  --header "Authorization: Bearer $UNIFY_KEY"
{}

Get the queries history, optionally for a given set of tags for a narrowed search.

Authorizations

Authorization
string
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

tags
string | array | null

Tags to filter for queries that are marked with these tags.

endpoints
string | array | null

Optionally specify an endpoint, or a list of endpoints to filter for

start_time
string | null

Timestamp of the earliest query to aggregate. Format is YYYY-MM-DD hh:mm:ss.

end_time
string | null

Timestamp of the latest query to aggregate. Format is YYYY-MM-DD hh:mm:ss.

page_number
integer | null
default:1

The query history is returned in pages, with up to 20 prompts per page. Increase the page number to see older prompts.

failures
boolean | string

indicates whether to includes failures in the return (when set as True ), or whether to return failures exlusively (when set as ‘only’).

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&page_number=1&failures=False' \
  --header "Authorization: Bearer $UNIFY_KEY"
{}