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

# Get configuration

> Verify a project key and fetch effective collection and transport settings.

Verify the project key and fetch effective settings. This endpoint remains available independently of monthly event quota.

> [!WARNING]
>
> The response can contain a project-scoped identity secret. Never log the complete response or store it in a shared cache. Keep cached settings in server memory.

## Current values

| Field | Current behavior |
| - | - |
| `schemaVersion` | `"1"` |
| `refreshAfterSeconds` | 60 |
| `collection.eventsEnabled` | true |
| `collection.contentCollectionSupported` | false |
| `transport.maxBatchEvents` | 50 |
| `transport.maxBatchBytes` | 256000 |
| `transport.maxEventBytes` | 64000 |
| `identity.endUser` | Legacy HMAC settings when available, otherwise null |

Attribute and user-identifier collection follow effective project settings. Omit disabled fields when you send events. Check the event receipt separately to confirm queue acceptance.


## OpenAPI

````yaml sdk/openapi.json GET /config
openapi: 3.1.0
info:
  title: Brello Public API
  version: 1.0.0-beta.3
  description: >-
    Public SDK ingestion, scoped read endpoints, and outgoing signed webhooks.
    Read spend is SDK estimated cost; it is not a complete provider invoice. SDK
    content is not collected.
servers:
  - url: https://api.brello.app/v1
security: []
paths:
  /config:
    get:
      tags:
        - Config
      summary: Verify the project key and fetch effective SDK settings
      description: >-
        Includes a project-scoped identity secret. Never log or persist this
        response in shared caches. Authentication success does not mean events
        have been received. Available independently of monthly event quota.
      operationId: getConfig
      responses:
        '200':
          description: Authenticated project and effective collection configuration.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SdkConfig'
        '401':
          description: Invalid or revoked project key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: Config polling rate exceeded.
          headers:
            Retry-After:
              schema:
                type: integer
                minimum: 1
              description: >-
                Seconds before retrying. The SDK must also enforce its own
                maximum buffer age.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '503':
          description: SDK configuration temporarily unavailable.
          headers:
            Retry-After:
              schema:
                type: integer
                minimum: 1
              description: >-
                Seconds before retrying. The SDK must also enforce its own
                maximum buffer age.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      security:
        - projectKey: []
components:
  schemas:
    SdkConfig:
      type: object
      properties:
        data:
          type: object
          properties:
            schemaVersion:
              type: string
              enum:
                - '1'
            configVersion:
              type: string
            serverTime:
              type: string
              format: date-time
            refreshAfterSeconds:
              type: integer
              minimum: 0
              maximum: 9007199254740991
            project:
              type: object
              properties:
                id:
                  type: string
                  format: uuid
                environment:
                  type: string
                  enum:
                    - live
                    - test
              required:
                - id
                - environment
            collection:
              type: object
              properties:
                eventsEnabled:
                  type: boolean
                attributesEnabled:
                  type: boolean
                endUserIdEnabled:
                  type: boolean
                contentCollectionSupported:
                  type: boolean
                  enum:
                    - false
              required:
                - eventsEnabled
                - attributesEnabled
                - endUserIdEnabled
                - contentCollectionSupported
            transport:
              type: object
              properties:
                maxBatchEvents:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                maxBatchBytes:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                maxEventBytes:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
              required:
                - maxBatchEvents
                - maxBatchBytes
                - maxEventBytes
            identity:
              type: object
              properties:
                endUser:
                  type:
                    - object
                    - 'null'
                  properties:
                    algorithm:
                      type: string
                      enum:
                        - hmac-sha256
                    secretEncoding:
                      type: string
                      enum:
                        - base64url
                    keyVersion:
                      type: string
                    secret:
                      type: string
                    domain:
                      type: string
                      enum:
                        - brello:end-user:v1
                  required:
                    - algorithm
                    - secretEncoding
                    - keyVersion
                    - secret
                    - domain
              required:
                - endUser
          required:
            - schemaVersion
            - configVersion
            - serverTime
            - refreshAfterSeconds
            - project
            - collection
            - transport
            - identity
      required:
        - data
    ApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            requestId:
              type: string
          required:
            - code
            - message
            - requestId
      required:
        - error
  securitySchemes:
    projectKey:
      type: http
      scheme: bearer
      bearerFormat: brl_live_ / brl_test_ (legacy brello_ accepted)

````

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