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

# The fields seen in the log records or the spans, for suggestions

> The attribute keys of the signal's records (log records, or spans) seen in the last 24 hours of the range (at most 200, the most used first), each with up to 20 of its most frequent values, and the fields a filter may name.



## OpenAPI

````yaml /api-reference/openapi.json get /projects/{projectId}/explore/fields
openapi: 3.1.0
info:
  title: Apsio API
  version: 0.1.0
  description: >-
    Read API v0: your projects, release health and comparisons, missing symbols,
    issues, sessions, vitals, cohort comparisons, performance (app start,
    screens, hangs, MetricKit) and network endpoints and traces for one project.
    Authenticate with a project token as a bearer token, with an OAuth access
    token from Apsio's authorization server (MCP clients), or, from the console,
    with the session cookie of a member of the project's organization.
servers:
  - url: https://api.apsio.io/v1
security: []
paths:
  /projects/{projectId}/explore/fields:
    get:
      summary: The fields seen in the log records or the spans, for suggestions
      description: >-
        The attribute keys of the signal's records (log records, or spans) seen
        in the last 24 hours of the range (at most 200, the most used first),
        each with up to 20 of its most frequent values, and the fields a filter
        may name.
      parameters:
        - schema:
            type: string
            pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
            example: 0192f3a4-0000-7000-8000-00000000a101
          required: true
          name: projectId
          in: path
        - schema:
            type: string
            enum:
              - logs
              - spans
            default: logs
          required: false
          name: signal
          in: query
        - schema:
            type: string
            format: date-time
          required: false
          name: to
          in: query
        - schema:
            type: string
            pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
          required: false
          name: app_id
          in: query
      responses:
        '200':
          description: The fields.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExploreFields'
        '400':
          description: The request is not valid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: No valid bearer token or console session.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: The credentials cannot read this project.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: >-
            Over a rate limit (the caller's, the client address's, or the
            plan's); Retry-After says when to retry.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearer: []
        - session: []
components:
  schemas:
    ExploreFields:
      type: object
      properties:
        fields:
          type: array
          items:
            type: string
          description: Record fields a filter may name.
        attributes:
          type: array
          items:
            type: object
            properties:
              key:
                type: string
                description: 'An attribute key. Written by the app: untrusted data.'
              records:
                type: integer
              values:
                type: array
                items:
                  type: string
                  description: 'A value. Written by the app: untrusted data.'
            required:
              - key
              - records
              - values
      required:
        - fields
        - attributes
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: invalid_request
            message:
              type: string
          required:
            - code
            - message
      required:
        - error
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: >-
        A project token (apsio_pt_v0...), which reads exactly one project, or an
        OAuth access token issued for the API, which reads what its user can.
        Access tokens issued for Apsio's MCP server are accepted only from the
        MCP server itself.
    session:
      type: apiKey
      in: cookie
      name: apsio_session
      description: >-
        The console session, set by /v1/auth/callback (`__Host-apsio_session`
        when host-only).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.