tools

Get Tool Usage Logs

Return paginated spend logs for requests that invoked this tool (from SpendLogToolIndex). Declaring a tool in a request body without the model invoking it does not create an entry.

get/v1/tool/{tool_name}/logs

Request

  • Base URL: https://docs.litellm.com.cn (the document declares no server; this is the origin it was published from)
  • URL: https://docs.litellm.com.cn/v1/tool/{tool_name}/logs
  • Auth: API key in header x-litellm-api-key

Path parameters

tool_namestring required

Query parameters

pageinteger
page_sizeinteger
start_datestring nullable

YYYY-MM-DD

end_datestring nullable

YYYY-MM-DD

Response

Successful Response

pageinteger required
page_sizeinteger required
totalinteger required

Changes

No recorded changes to this operation across all 1 revision of this API.