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
required

Your project level API key. This is a header parameter.

projectId
string
required

ID of your project. This can be found on the langtrace traces tab.

page
integer
required

The page number to retrieve. Starts from 1.

pageSize
integer
required

The 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.