---
title: "Get Application Analytics Config"
url: "https://nov18-dev.movespot.fyi/apis/portal-application-analytics-2/versions/7eb4e759-6c13-4850-865d-25ae682ee61a/operations/get-application-analytics-config"
---

> Full API specification: https://nov18-dev.movespot.fyi/apis/portal-application-analytics-2/versions/7eb4e759-6c13-4850-865d-25ae682ee61a.md

# Get Application Analytics Config

`GET` `/api/v3/stats/config`

Operation ID: `get-application-analytics-config`

Get config for application analytics

## Responses

- `200` - Get config
- `401` - Unauthorized

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Portal Application Analytics
  version: 3.0.1
paths:
  /api/v3/stats/config:
    get:
      operationId: get-application-analytics-config
      summary: Get Application Analytics Config
      description: Get config for application analytics
      responses:
        "200":
          $ref: "#/components/responses/GetConfig"
        "401":
          $ref: "#/components/responses/Unauthorized"
      security:
        - portalAccessToken: []
      tags:
        - Application Analytics
security:
  - portalAccessToken: []
components:
  responses:
    GetConfig:
      description: Get config
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/GetConfigResponse"
          examples:
            GetConfigNoAnalytics200response:
              $ref: "#/components/examples/GetConfigNoAnalytics200response"
            GetConfigAnalytics200response:
              $ref: "#/components/examples/GetConfigAnalytics200response"
    Unauthorized:
      description: Unauthorized
      content:
        application/problem+json:
          schema:
            $ref: "#/components/schemas/UnauthorizedError"
          examples:
            UnauthorizedExample:
              $ref: "#/components/examples/examples-UnauthorizedExample"
  schemas:
    GetConfigResponse:
      type: object
      properties:
        analytics:
          description: Null if analytics is not enabled.
          type: object
          additionalProperties: false
          nullable: true
          properties:
            percentiles:
              description: True if analytics percentiles are enabled.
              type: boolean
            retention_ms:
              description: Analytics retention in milliseconds.
              type: integer
          required:
            - percentiles
            - retention_ms
      additionalProperties: false
      required:
        - analytics
    UnauthorizedError:
      allOf:
        - $ref: "#/components/schemas/BaseError"
        - type: object
          properties:
            status:
              example: 401
            title:
              example: Unauthorized
            type:
              example: https://httpstatuses.com/401
            instance:
              example: kong:trace:1234567890
            detail:
              example: Invalid credentials
    BaseError:
      description: standard error
      type: object
      properties:
        status:
          description: >
            The HTTP status code of the error. Useful when passing the response

            body to child properties in a frontend UI. Must be returned as an
            integer.
          type: integer
          readOnly: true
        title:
          description: |
            A short, human-readable summary of the problem. It should not
            change between occurences of a problem, except for localization.
            Should be provided as "Sentence case" for direct use in the UI.
          type: string
          readOnly: true
        type:
          description: The error type.
          type: string
          readOnly: true
        instance:
          description: |
            Used to return the correlation ID back to the user, in the format
            kong:trace:<correlation_id>. This helps us find the relevant logs
            when a customer reports an issue.
          type: string
          readOnly: true
        detail:
          description: >
            A human readable explanation specific to this occurence of the
            problem.

            This field may contain request/entity data to help the user
            understand

            what went wrong. Enclose variable values in square brackets. Should
            be

            provided as "Sentence case" for direct use in the UI.
          type: string
          readOnly: true
      required:
        - status
        - title
        - instance
        - detail
      title: Error
  examples:
    GetConfigNoAnalytics200response:
      value:
        analytics: null
    GetConfigAnalytics200response:
      value:
        analytics:
          percentiles: true
          retention_ms: 31536000000
    examples-UnauthorizedExample:
      value:
        status: 401
        title: Unauthorized
        instance: kong:trace:8347343766220159418
        detail: Unauthorized
  securitySchemes:
    portalAccessToken:
      type: apiKey
      in: cookie
      name: portalaccesstoken
      description: >
        The Developer portal cookie is meant to be used by the Developer API to
        authenticate with.
```
