View Spend Logs

View all spend logs, if request_id is provided, only logs for that request_id will be returned

Example Request for all logs

curl -X GET "http://0.0.0.0:8000/spend/logs" -H "Authorization: Bearer sk-1234"

Example Request for specific request_id

curl -X GET "http://0.0.0.0:8000/spend/logs?request_id=chatcmpl-6dcb2540-d3d7-4e49-bb27-291f863f112e" -H "Authorization: Bearer sk-1234"

Example Request for specific api_key

curl -X GET "http://0.0.0.0:8000/spend/logs?api_key=sk-Fn8Ej39NkBQmUagFEoUWPQ" -H "Authorization: Bearer sk-1234"

Example Request for specific user_id

curl -X GET "http://0.0.0.0:8000/spend/[email protected]" -H "Authorization: Bearer sk-1234"
Language
Credentials
Bearer
URL
Click Try It! to start a request and see the response here!