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

# Get Report Options

> List the metric ids, channel ids, date range presets and lead condition fields that the report endpoints accept with GET /api/reports.

Returns what the [report endpoints](https://octanist.com/docs/api-reference/endpoint/run-report.md) accept: the metric ids per report with their meaning, the channel ids for filters, the date range presets, and the lead fields that conditions can use. It also returns the organization's currency, timezone and attribution model.

Call it once when you build a report integration. Labels, forms and custom field keys for filters are in [`GET /api/workspace`](https://octanist.com/docs/api-reference/endpoint/workspace).

Reports need an active Octanist plan. Read-only API keys can use this endpoint.

## Example Request

```bash theme={null}
curl -X GET \
  -H "X-API-KEY: your_api_key" \
  "https://octanist.com/api/reports"
```

## Example Response

Lists are shortened.

```json theme={null}
{
  "success": true,
  "data": {
    "currency": "EUR",
    "timezone": "Europe/Amsterdam",
    "today": "2026-03-10",
    "attributionModel": {
      "id": "last_click",
      "meaning": "the last visit before converting gets the lead"
    },
    "callTrackingEnabled": true,
    "dateRangePresets": ["today", "yesterday", "last7days", "last30days", "thisMonth", "lastMonth"],
    "metrics": {
      "leads": [
        {
          "id": "total_leads",
          "name": "Total Leads",
          "description": "Total number of leads created in the selected period"
        },
        {
          "id": "cpl",
          "name": "Cost Per Lead",
          "description": "Average cost to acquire one lead (Ad spend / Total Leads)"
        }
      ],
      "traffic": [
        { "id": "sessions", "name": "Sessions", "description": "Website visits" }
      ],
      "ads": [],
      "calls": []
    },
    "channels": [
      { "id": "google", "name": "Google Ads" },
      { "id": "organic", "name": "Organic / Direct" },
      { "id": "other-paid", "name": "Other paid traffic" },
      { "id": "manual", "name": "Added by hand" }
    ],
    "leadConditionFields": [
      { "field": "visit_country", "meaning": "country the visitor was in when converting, as ISO codes (NL, BE, DE)" }
    ]
  },
  "meta": {
    "requestId": "req_a1b2c3d4e5f6",
    "timestamp": "2026-03-10T12:00:00.000Z"
  }
}
```

## Response Fields

| Field | Type | Description |
| - | - | - |
| `currency` | string | Currency of money metrics |
| `timezone` | string | Timezone that date ranges and date buckets use |
| `today` | string | Today's date in that timezone (`YYYY-MM-DD`) |
| `attributionModel` | object | `id` and `meaning` of the [attribution model](https://octanist.com/docs/settings/attribution.md) that credits leads to channels |
| `callTrackingEnabled` | boolean | Whether the calls report is available |
| `dateRangePresets` | string\[] | Values for `dateRange.preset` |
| `metrics` | object | Metric ids per report (`leads`, `traffic`, `ads`, `calls`), each with `id`, `name` and `description` |
| `channels` | array | Channel ids with names, for the `channels` filter |
| `leadConditionFields` | array | Fields for lead `conditions`, each with `field` and `meaning` |

## Values

These are the values at the time of writing. The response is the reference.

**Lead report metrics:** `total_leads`, `open_leads`, `qualified_leads`, `won_leads`, `lost_leads`, `value_won`, `value_lost`, `avg_lead_value`, `total_spend`, `extra_costs`, `total_cost`, `cpl`, `cpql`, `cpwl`, `cpc`, `qualify_rate`, `win_rate`, `close_rate`, `ctr`, `clicks`, `impressions`, `roas`, `win_lose_ratio`

**Traffic report metrics:** `sessions`, `visitors`, `pageviews`, `session_leads`, `session_qualified`, `session_won`, `session_revenue`, `session_conversion_rate`, `revenue_per_session`

**Ads report metrics:** `ad_spend`, `ad_clicks`, `ad_impressions`, `ad_ctr`, `ad_cpc`, `platform_conversions`, `cost_per_platform_conversion`

**Calls report metrics:** `calls`, `answered_calls`, `missed_calls`, `missed_call_rate`, `avg_call_duration`, `call_leads`, `call_to_lead_rate`

**Channels:** `google`, `meta`, `microsoft`, `linkedin`, `tiktok`, `x`, `reddit`, `snapchat`, `pinterest`, `organic`, `other-paid`, `manual`

**Date range presets:** `today`, `yesterday`, `last7days`, `last14days`, `thisWeek`, `lastWeek`, `last30days`, `thisMonth`, `lastMonth`, `last90days`, `thisQuarter`, `lastQuarter`, `last180days`, `last365days`, `thisYear`, `lastYear`

**Lead condition fields:** `email`, `phone`, `phone_country`, `name`, `note`, `created_via`, `visit_country`, `device`, `browser`, `os`, `landing_domain`, `landing_path`, `referrer_host`, `utm_source`, `utm_medium`, `utm_campaign`

## Error Responses

| Status | Code | Description |
| - | - | - |
| 401 | `UNAUTHORIZED` | Missing or invalid API key |
| 403 | `FORBIDDEN` | The organization has no active plan |
| 500 | `INTERNAL_ERROR` | Server error |


## OpenAPI

````yaml GET /api/reports
openapi: 3.0.1
info:
  title: Octanist API
  description: >-
    The Octanist API allows you to create, update and read leads, run reports,
    read workspace settings, retrieve statistics, and access ad spend data.
  version: 2.5.0
  contact:
    name: Octanist Support
    url: https://octanist.com/docs
servers:
  - url: https://octanist.com
    description: Production server
security:
  - apiKeyAuth: []
paths:
  /api/reports:
    get:
      tags:
        - Reports
      summary: Get Report Options
      description: >-
        Metric ids per report, channel ids, date range presets and lead
        condition fields. Needs an active plan.
      responses:
        '200':
          description: Report options
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    $ref: '#/components/schemas/ReportOptions'
                  meta:
                    $ref: '#/components/schemas/Meta'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: The organization has no active plan
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ReportOptions:
      type: object
      properties:
        currency:
          type: string
          example: EUR
        timezone:
          type: string
          example: Europe/Amsterdam
        today:
          type: string
          format: date
        attributionModel:
          type: object
          properties:
            id:
              type: string
              example: last_click
            meaning:
              type: string
              nullable: true
        callTrackingEnabled:
          type: boolean
        dateRangePresets:
          type: array
          items:
            type: string
          example:
            - today
            - yesterday
            - last7days
            - last14days
            - thisWeek
            - lastWeek
            - last30days
            - thisMonth
            - lastMonth
            - last90days
            - thisQuarter
            - lastQuarter
            - last180days
            - last365days
            - thisYear
            - lastYear
        metrics:
          type: object
          properties:
            leads:
              type: array
              items:
                type: object
                properties:
                  id:
                    type: string
                  name:
                    type: string
                  description:
                    type: string
            traffic:
              type: array
              items:
                type: object
                properties:
                  id:
                    type: string
                  name:
                    type: string
                  description:
                    type: string
            ads:
              type: array
              items:
                type: object
                properties:
                  id:
                    type: string
                  name:
                    type: string
                  description:
                    type: string
            calls:
              type: array
              items:
                type: object
                properties:
                  id:
                    type: string
                  name:
                    type: string
                  description:
                    type: string
        channels:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              name:
                type: string
        leadConditionFields:
          type: array
          items:
            type: object
            properties:
              field:
                type: string
              meaning:
                type: string
    Meta:
      type: object
      properties:
        requestId:
          type: string
          example: req_a1b2c3d4e5f6
        timestamp:
          type: string
          format: date-time
          example: '2026-03-10T12:00:00.000Z'
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          example: false
        error:
          type: object
          properties:
            code:
              type: string
              description: Error code
              example: VALIDATION_ERROR
            message:
              type: string
              description: Human readable error message
              example: Human readable error message
            details:
              type: object
              description: Optional additional error details
        meta:
          $ref: '#/components/schemas/Meta'
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY
      description: API key for authentication

````

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