---
id: get-traces
title: "Get Traces"
description: "Get Traces"
sidebar_label: "Get Traces"
hide_title: true
hide_table_of_contents: true
api: eJy1Vk1v2zgQ/SsCTy0gxE6wJ5/qdoO22F00aLztwTCCsUTbbCmKJamgrqH/vjP8kCU79joocrJFPs4bzpsP7piDtWWTOfu0tNw8wlJI4bZskbNacwNO1OpjySZszd2DM1Bwy3KmwUDFHTd0cscUfiAEtH4QJW4LhV8/Gm62+GH4j0YYjjacaXjObLHhFbDJjrmtpmPWGaHWiHTCSVqYap0hZ9vmnWkNa37a8AqkfcqyUI6vuUFsJZSomopNrnNW8hU00vn/ifKO7B8S3otfL0A6HrJaIukzezPPZu2C2BGhYioK2IvtjOADOtL0rGxHlKC2n1Ze+CE5WY0rqpGStYseL9EcqsrVozC1qrhyL0x/22Pqe/AIRsCLs3+JLH3mwnBwvHyA55CfFrvktujJ/C5Yz6ZEuiCbVtfKYvGilZvxmH7oiBHaJ8iE3TcF1rZdNTL7HMFor6gxm9FzurjWUhQ+n0bfLJ3Z9TzThtqFE4GhBOdXheMVLbR5ch2MgW3P0T8JSdu1A/lkFXUZ5BFtHnrBOWQo5nxfw/8HTjWYUPXyGy/cQIp5uFNyNE8dqePoyf1VuA2aFSoUX9uS6T9ubo6D/gWkKD0quzWmNr8Rce5AyH7MDwCyLga7F+RxCla7OK3f33URb4n9zq7PtfV/ML2iMgFyGuqDkaVedVYWulegjrhB3aXwhuieScMQvqfIEuTDbHZ3ZDBoOxT1PXfZLE1KnJKbOs5Pny5ugx+juj9sR2GujnCfVtNUbQzqyTbOaTsZjQpZN+UVxk85uAIxAi3YIfPU72bvCOobkOVFY2ick73p3ce/+PYDhxI1ncwXfcA9pVVIlCGs0wj5cBkpY/+aNngxI36lAeNb2CacopgItar98TTUg29vofjOFU0bumdwe3x1fTU+dZl4IEO3YnVA4asj+eFhuDUMVxco3MGCodJgjkP1Zr9BXuraugpUz95AvYFHXSgc/+lGWoLwWe95d1HZORsoS+mTbFFibpCOQLvdEiz/18i2peXQ+UmjUlhYyl7vP/Cg6w7s1edYBK8zlj/t2XfUq/cqewTZEMiX+BFRAMeudik0vpAugcdnzUXQ/ZPkEvjwFXHJif3UvwQ9mNT7A4s82FlSes+pRW5Sae3iySmOVN0/ddTRyUrXIt7fzjAp/wOC3eQw
sidebar_class_name: "get api-method"
info_path: reference/api/agenta-backend
custom_edit_url: null
---

import ApiTabs from "@theme/ApiTabs";
import DiscriminatorTabs from "@theme/DiscriminatorTabs";
import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import SecuritySchemes from "@theme/ApiExplorer/SecuritySchemes";
import MimeTabs from "@theme/MimeTabs";
import ParamsItem from "@theme/ParamsItem";
import ResponseSamples from "@theme/ResponseSamples";
import SchemaItem from "@theme/SchemaItem";
import SchemaTabs from "@theme/SchemaTabs";
import Markdown from "@theme/Markdown";
import Heading from "@theme/Heading";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";

<Heading
  as={"h1"}
  className={"openapi__heading"}
  children={"Get Traces"}
>
</Heading>

<MethodEndpoint
  method={"get"}
  path={"/observability/traces/"}
>
  
</MethodEndpoint>



Get Traces

<Heading
  id={"request"}
  as={"h2"}
  className={"openapi-tabs__heading"}
  children={"Request"}
>
</Heading>

<details
  style={{"marginBottom":"1rem"}}
  className={"openapi-markdown__details"}
  data-collapsed={false}
  open={true}
>
  <summary
    style={{}}
  >
    <h3
      className={"openapi-markdown__details-summary-header-params"}
    >
      Query Parameters
    </h3>
  </summary><div>
    <ul>
      <ParamsItem
        className={"paramsItem"}
        param={{"name":"app_id","in":"query","required":true,"schema":{"type":"string","title":"App Id"}}}
      >
        
      </ParamsItem><ParamsItem
        className={"paramsItem"}
        param={{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}}}
      >
        
      </ParamsItem><ParamsItem
        className={"paramsItem"}
        param={{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"Pagesize"}}}
      >
        
      </ParamsItem><ParamsItem
        className={"paramsItem"}
        param={{"name":"type","in":"query","required":false,"schema":{"type":"string","default":"generation","title":"Type"}}}
      >
        
      </ParamsItem><ParamsItem
        className={"paramsItem"}
        param={{"name":"trace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trace Id"}}}
      >
        
      </ParamsItem><ParamsItem
        className={"paramsItem"}
        param={{"name":"environment","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Environment"}}}
      >
        
      </ParamsItem><ParamsItem
        className={"paramsItem"}
        param={{"name":"variant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Variant"}}}
      >
        
      </ParamsItem><ParamsItem
        className={"paramsItem"}
        param={{"name":"created_at","in":"query","required":false,"schema":{"type":"string","default":"desc","title":"Created At"}}}
      >
        
      </ParamsItem>
    </ul>
  </div>
</details><div>
  <div>
    <ApiTabs
      label={undefined}
      id={undefined}
    >
      <TabItem
        label={"200"}
        value={"200"}
      >
        <div>
          
          
          Successful Response
          
          
        </div><div>
          <MimeTabs
            className={"openapi-tabs__mime"}
            schemaType={"response"}
          >
            <TabItem
              label={"application/json"}
              value={"application/json"}
            >
              <SchemaTabs
                className={"openapi-tabs__schema"}
              >
                <TabItem
                  label={"Schema"}
                  value={"Schema"}
                >
                  <details
                    style={{}}
                    className={"openapi-markdown__details response"}
                    data-collapsed={false}
                    open={true}
                  >
                    <summary
                      style={{}}
                      className={"openapi-markdown__details-summary-response"}
                    >
                      <strong>
                        Schema
                      </strong>
                    </summary><div
                      style={{"textAlign":"left","marginLeft":"1rem"}}
                    >
                      
                    </div><ul
                      style={{"marginLeft":"1rem"}}
                    >
                      <SchemaItem
                        collapsible={false}
                        name={"data"}
                        required={true}
                        schemaName={"undefined[]"}
                        qualifierMessage={undefined}
                        schema={{"items":{},"type":"array","title":"Data"}}
                      >
                        
                      </SchemaItem><SchemaItem
                        collapsible={false}
                        name={"total"}
                        required={true}
                        schemaName={"Total (integer)"}
                        qualifierMessage={undefined}
                        schema={{"type":"integer","title":"Total"}}
                      >
                        
                      </SchemaItem><SchemaItem
                        collapsible={false}
                        name={"page"}
                        required={true}
                        schemaName={"Page (integer)"}
                        qualifierMessage={undefined}
                        schema={{"type":"integer","title":"Page"}}
                      >
                        
                      </SchemaItem><SchemaItem
                        collapsible={false}
                        name={"pageSize"}
                        required={true}
                        schemaName={"Pagesize (integer)"}
                        qualifierMessage={undefined}
                        schema={{"type":"integer","title":"Pagesize"}}
                      >
                        
                      </SchemaItem>
                    </ul>
                  </details>
                </TabItem><TabItem
                  label={"Example (from schema)"}
                  value={"Example (from schema)"}
                >
                  <ResponseSamples
                    responseExample={"{\n  \"data\": [\n    null\n  ],\n  \"total\": 0,\n  \"page\": 0,\n  \"pageSize\": 0\n}"}
                    language={"json"}
                  >
                    
                  </ResponseSamples>
                </TabItem>
              </SchemaTabs>
            </TabItem>
          </MimeTabs>
        </div>
      </TabItem><TabItem
        label={"422"}
        value={"422"}
      >
        <div>
          
          
          Validation Error
          
          
        </div><div>
          <MimeTabs
            className={"openapi-tabs__mime"}
            schemaType={"response"}
          >
            <TabItem
              label={"application/json"}
              value={"application/json"}
            >
              <SchemaTabs
                className={"openapi-tabs__schema"}
              >
                <TabItem
                  label={"Schema"}
                  value={"Schema"}
                >
                  <details
                    style={{}}
                    className={"openapi-markdown__details response"}
                    data-collapsed={false}
                    open={true}
                  >
                    <summary
                      style={{}}
                      className={"openapi-markdown__details-summary-response"}
                    >
                      <strong>
                        Schema
                      </strong>
                    </summary><div
                      style={{"textAlign":"left","marginLeft":"1rem"}}
                    >
                      
                    </div><ul
                      style={{"marginLeft":"1rem"}}
                    >
                      <SchemaItem
                        collapsible={true}
                        className={"schemaItem"}
                      >
                        <details
                          style={{}}
                          className={"openapi-markdown__details"}
                        >
                          <summary
                            style={{}}
                          >
                            <span
                              className={"openapi-schema__container"}
                            >
                              <strong
                                className={"openapi-schema__property"}
                              >
                                detail
                              </strong><span
                                className={"openapi-schema__name"}
                              >
                                 object[]
                              </span>
                            </span>
                          </summary><div
                            style={{"marginLeft":"1rem"}}
                          >
                            <li>
                              <div
                                style={{"fontSize":"var(--ifm-code-font-size)","opacity":"0.6","marginLeft":"-.5rem","paddingBottom":".5rem"}}
                              >
                                Array [
                              </div>
                            </li><SchemaItem
                              collapsible={true}
                              className={"schemaItem"}
                            >
                              <details
                                style={{}}
                                className={"openapi-markdown__details"}
                              >
                                <summary
                                  style={{}}
                                >
                                  <span
                                    className={"openapi-schema__container"}
                                  >
                                    <strong
                                      className={"openapi-schema__property"}
                                    >
                                      loc
                                    </strong><span
                                      className={"openapi-schema__name"}
                                    >
                                       object[]
                                    </span><span
                                      className={"openapi-schema__divider"}
                                    >
                                      
                                    </span><span
                                      className={"openapi-schema__required"}
                                    >
                                      required
                                    </span>
                                  </span>
                                </summary><div
                                  style={{"marginLeft":"1rem"}}
                                >
                                  <li>
                                    <div
                                      style={{"fontSize":"var(--ifm-code-font-size)","opacity":"0.6","marginLeft":"-.5rem","paddingBottom":".5rem"}}
                                    >
                                      Array [
                                    </div>
                                  </li><div>
                                    <span
                                      className={"badge badge--info"}
                                    >
                                      anyOf
                                    </span><SchemaTabs>
                                      <TabItem
                                        label={"MOD1"}
                                        value={"0-item-properties"}
                                      >
                                        <div
                                          style={{"marginTop":".5rem","marginBottom":".5rem"}}
                                        >
                                          
                                          
                                          string
                                          
                                          
                                        </div>
                                      </TabItem><TabItem
                                        label={"MOD2"}
                                        value={"1-item-properties"}
                                      >
                                        <div
                                          style={{"marginTop":".5rem","marginBottom":".5rem"}}
                                        >
                                          
                                          
                                          integer
                                          
                                          
                                        </div>
                                      </TabItem>
                                    </SchemaTabs>
                                  </div><li>
                                    <div
                                      style={{"fontSize":"var(--ifm-code-font-size)","opacity":"0.6","marginLeft":"-.5rem"}}
                                    >
                                      ]
                                    </div>
                                  </li>
                                </div>
                              </details>
                            </SchemaItem><SchemaItem
                              collapsible={false}
                              name={"msg"}
                              required={true}
                              schemaName={"Message (string)"}
                              qualifierMessage={undefined}
                              schema={{"type":"string","title":"Message"}}
                            >
                              
                            </SchemaItem><SchemaItem
                              collapsible={false}
                              name={"type"}
                              required={true}
                              schemaName={"Error Type (string)"}
                              qualifierMessage={undefined}
                              schema={{"type":"string","title":"Error Type"}}
                            >
                              
                            </SchemaItem><li>
                              <div
                                style={{"fontSize":"var(--ifm-code-font-size)","opacity":"0.6","marginLeft":"-.5rem"}}
                              >
                                ]
                              </div>
                            </li>
                          </div>
                        </details>
                      </SchemaItem>
                    </ul>
                  </details>
                </TabItem><TabItem
                  label={"Example (from schema)"}
                  value={"Example (from schema)"}
                >
                  <ResponseSamples
                    responseExample={"{\n  \"detail\": [\n    {\n      \"loc\": [\n        \"string\",\n        0\n      ],\n      \"msg\": \"string\",\n      \"type\": \"string\"\n    }\n  ]\n}"}
                    language={"json"}
                  >
                    
                  </ResponseSamples>
                </TabItem>
              </SchemaTabs>
            </TabItem>
          </MimeTabs>
        </div>
      </TabItem>
    </ApiTabs>
  </div>
</div>
      