Skip to main content
POST
/
api
/
v1
/
metrics
Get metric observations (batch)
curl --request POST \
  --url https://sacra.com/api/v1/metrics/ \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "company_id": "<string>",
  "company_domain": "<string>",
  "company_ids": [
    "<string>"
  ],
  "company_domains": [
    "<string>"
  ],
  "metric_base": "<string>",
  "metric_view": "<string>",
  "measurement_scenario": "<string>",
  "base_period": "<string>",
  "growth_period": "<string>",
  "measurement_end_date_gte": "2023-11-07T05:31:56Z",
  "measurement_end_date_lte": "2023-11-07T05:31:56Z",
  "comparison_window_end_date_gte": "2023-11-07T05:31:56Z",
  "comparison_window_end_date_lte": "2023-11-07T05:31:56Z",
  "created_at_gte": "2023-11-07T05:31:56Z",
  "created_at_lte": "2023-11-07T05:31:56Z",
  "updated_at_gte": "2023-11-07T05:31:56Z",
  "updated_at_lte": "2023-11-07T05:31:56Z",
  "include_all_signal_evidence": false,
  "page_size": 123,
  "page_after": "<string>",
  "page_before": "<string>"
}
'
{
  "metrics": [
    {
      "metric_id": "604e0090-a7ac-470c-ae63-376e0f5055f1",
      "metric_definition": {
        "base": "trailing_revenue",
        "view": "value",
        "base_period": "year",
        "base_forward": null,
        "growth_period": null,
        "growth_period_length": null
      },
      "measurement": {
        "scenario": "historical",
        "end_date": "2025-12-31",
        "custom_start_date": null,
        "comparison_window_end_date": null,
        "comparison_window_custom_start_date": null,
        "type": "equals",
        "unit_kind": "currency",
        "currency_code": "USD",
        "amount": 2200000000,
        "low": null,
        "high": null,
        "scope_name": null,
        "scope_type": null,
        "status": "Active"
      },
      "updated_at": "2026-02-26T20:27:13.693661+00:00",
      "created_at": "2026-02-25T20:17:24.752169+00:00",
      "company": {
        "id": "239",
        "slug": "kraken",
        "domain": "kraken.com"
      },
      "citations": {
        "summary": {
          "count": 1,
          "latest_updated_at": "2026-02-25T20:17:40.923084+00:00"
        },
        "sources": [
          {
            "link": "https://blog.kraken.com/news/kraken-2025-financials",
            "headline": "Kraken 2025 Financials",
            "quote": "Adjusted revenue reached $2.2 billion, representing 33% year-over-year growth.",
            "publication": "blog.kraken.com",
            "type": "article"
          }
        ]
      }
    }
  ],
  "pagination": {
    "page_size": 30,
    "current_page_items": 1,
    "total_items": 13,
    "after_cursor": "Start",
    "before_cursor": null,
    "next_link": null,
    "prev_link": null
  },
  "meta": {
    "query_type": "single-company",
    "companies_count": 1,
    "companies": [
      {
        "id": "239",
        "slug": "kraken",
        "domain": "kraken.com"
      }
    ]
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.sacra.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Authenticate using one of two formats:

  • Organization/user token: Token <your-token>
  • Stytch JWT: Bearer <your-jwt>

Body

company_id
string

Filter by a single company ID.

company_domain
string

Filter by a single company domain (e.g. stripe.com).

company_ids
string[]

List of company IDs.

company_domains
string[]

List of company domains.

metric_base
string

Comma-separated metric_definition.base values (e.g. revenue,arr).

metric_view
string

Comma-separated metric_definition.view values (e.g. value,growth).

measurement_scenario
string

Comma-separated measurement.scenario values (e.g. historical,projection).

base_period
string

Comma-separated metric_definition.base_period values.

growth_period
string

Comma-separated metric_definition.growth_period values.

measurement_end_date_gte
string<date-time>

Filter where measurement.end_date >= this value (ISO 8601).

measurement_end_date_lte
string<date-time>

Filter where measurement.end_date <= this value (ISO 8601).

comparison_window_end_date_gte
string<date-time>

Filter where measurement.comparison_window_end_date >= this value (ISO 8601).

comparison_window_end_date_lte
string<date-time>

Filter where measurement.comparison_window_end_date <= this value (ISO 8601).

created_at_gte
string<date-time>

Filter metrics created on or after this datetime (ISO 8601).

created_at_lte
string<date-time>

Filter metrics created on or before this datetime (ISO 8601).

updated_at_gte
string<date-time>

Filter metrics updated on or after this datetime (ISO 8601).

updated_at_lte
string<date-time>

Filter metrics updated on or before this datetime (ISO 8601).

include_all_signal_evidence
boolean
default:false

When true, include all SignalEvidence rows. Default: false.

page_size
integer

Results per page. Default: 30, max: 100.

page_after
string

Cursor for the next page.

page_before
string

Cursor for the previous page.

Response

Paginated list of metric observations with citations. Same shape as GET.

metrics
object[]
required
pagination
object
required
meta
object
required