> ## Documentation Index
> Fetch the complete documentation index at: https://docs.versori.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List project traces

> ListTraces returns a list of traces for the given organisation.




## OpenAPI

````yaml /openapi/platform-api.yaml get /o/{organisation_id}/projects/{project_id}/traces
openapi: 3.1.0
info:
  title: Versori Platform API
  version: 0.0.1
  license:
    name: UNLICENSED
servers:
  - description: Production
    url: https://platform.versori.com/api/v2
  - description: Staging
    url: https://platform-staging.versori.com/api/v2
  - description: Development
    url: http://localhost:8901
security:
  - bearerToken: []
  - cookie: []
paths:
  /o/{organisation_id}/projects/{project_id}/traces:
    parameters:
      - $ref: '#/components/parameters/organisation_id'
      - $ref: '#/components/parameters/project_id'
      - $ref: '#/components/parameters/project_env'
    get:
      tags:
        - projects
      summary: List project traces
      description: |
        ListTraces returns a list of traces for the given organisation.
      operationId: ListTraces
      parameters:
        - name: next_token
          in: query
          required: false
          schema:
            type: string
        - name: start
          in: query
          required: false
          schema:
            type: string
        - name: end
          in: query
          required: false
          schema:
            type: string
        - name: filter
          in: query
          required: false
          schema:
            type: string
            description: >
              Filter executions by attribute.


              Example query: 'http.request.method:POST
              executionId:01JSPK1SB6S622T6E1P9BBJTWP'


              Available attributes are:

              - "taskId"

              - "taskType"

              - "executionId"

              - "error.message"

              - "error.stack"

              - "schedule"

              - "connection"

              - "http.request.method"

              - "http.response.status_code"

              - "server.address"

              - "server.port"

              - "url.full"

              - "url.path"

              - "url.query"

              - "url.scheme"
        - name: error
          in: query
          required: false
          schema:
            type: boolean
        - name: task
          in: query
          required: false
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TraceSearch'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  parameters:
    organisation_id:
      name: organisation_id
      in: path
      required: true
      schema:
        type: string
        format: ulid
        x-go-type: ulid.ULID
        x-go-name: OrganisationID
        x-go-type-import:
          path: versori.dev/vergo/ulid
    project_id:
      name: project_id
      in: path
      required: true
      schema:
        type: string
        format: ulid
        x-go-type: ulid.ULID
        x-go-name: ProjectID
        x-go-type-import:
          path: versori.dev/vergo/ulid
    project_env:
      name: project_env
      in: query
      required: false
      schema:
        type: string
  schemas:
    TraceSearch:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/SpanSummary'
        nextToken:
          type: string
          x-go-type-skip-optional-pointer: true
      required:
        - items
    Error:
      type: object
      properties:
        code:
          type: string
          description: Code is a machine-readable error code.
        message:
          type: string
          description: Message is a human-readable error message.
        fields:
          type: array
          items:
            $ref: '#/components/schemas/ErrorField'
          x-go-type-skip-optional-pointer: true
        details:
          type: string
          x-go-type-skip-optional-pointer: true
      required:
        - code
        - message
    SpanSummary:
      type: object
      properties:
        traceId:
          type: string
          description: The unique identifier for the trace
        spanId:
          type: string
          description: The unique identifier for the span within the trace
        name:
          type: string
          description: The name of the span
        serviceName:
          type: string
          description: The name of the service that generated the span
        startTime:
          type: string
          format: date-time
          description: The time when the span started
        duration:
          type: string
          description: The duration of the span
        executionId:
          type: string
      required:
        - traceId
        - spanId
        - name
        - serviceName
        - startTime
        - duration
        - executionId
    ErrorField:
      description: ErrorField denotes a field which has an error.
      type: object
      properties:
        field:
          type: string
          description: >
            Field is the name of the field which has an error, this may be a
            path to a nested field, including array

            elements. The format of this field is of the form:
            "field1.field2[0].field3"
        message:
          type: string
          description: Message is the error message for this specific field.
      required:
        - field
        - message
  securitySchemes:
    bearerToken:
      description: >
        Bearer token authentication used by the Versori Platform. External
        consumers must provide an API key, however

        internal consumers must provide a JWT id_token issued by our IdP.
      type: http
      scheme: bearer
    cookie:
      description: Cookie authentication used by the Versori Platform.
      type: apiKey
      in: cookie
      name: cookie

````