GET
/
v1
/
manage
/
apikey
/
{api_key_id}
curl --request GET \
  --url https://api.requesty.ai/v1/manage/apikey/{api_key_id} \
  --header 'Authorization: Bearer <token>'
{
  "completions_requests": 123,
  "spend": 123
}

Authorizations

Authorization
string
header
required

API key for authentication

Path Parameters

api_key_id
string
required

Query Parameters

start_date
string
required

Start date for usage data in YYYY-MM-DD format (e.g., 2025-01-01). Maximum range is 31 days between start_date and end_date.

Example:

"2025-01-01"

end_date
string

End date for usage data in YYYY-MM-DD format (e.g., 2025-01-31). Defaults to tomorrow if not specified. Maximum range is 31 days from start_date.

Example:

"2025-01-31"

Response

200
application/json

Successfully retrieved usage data

The response is of type object.