Traces API
POST Traces
This endpoint lets you download traces for a project.
You will need a project level API key which can be generated on the same page
by clicking Generate API Key
.
A complete list of supported parameters for the POST traces
endpoint is provided below.
x-api-key
string
requiredYour project level API key. This is a header parameter.
projectId
string
requiredID of your project. This can be found on the langtrace traces tab.
page
integer
requiredThe page number to retrieve. Starts from 1.
pageSize
integer
requiredThe number of traces to retrieve per page. Maximum value is 100.
traces
object
result
array
List of retrieved traces.
metadata
object
Metadata containing pagination information.
page
integer
Page number of the current page.
page_size
integer
Number of traces per page.
total_pages
integer
Total number of pages. If the current page is less than the total pages, there are more traces to retrieve.