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

# Get v1 macro status

# GET /v1/macro/status

Return macro source-health, country coverage, freshness, and source-rights posture from runtime validation artifacts or an explicit degraded fallback

<Info>
  Audience: application and coding agent.
</Info>

## Canonical metadata

* `requestId`
* `traceparent`

## Example request

<RequestExample>
  ```bash theme={null}
  curl -X GET \
    -H "x-api-key: $SECAPI_API_KEY" \
    -H "secapi-version: 2026-03-19" \
    "https://api.secapi.ai/v1/macro/status"
  ```
</RequestExample>

## Example response

<ResponseExample>
  ```json theme={null}
  {
    "object": "macro_status",
    "status": "ready",
    "generatedAt": "2026-06-09T22:15:00.000Z",
    "artifactGeneratedAt": "2026-06-09T22:15:00.000Z",
    "computedAt": "2026-06-09T22:15:00.000Z",
    "statusSource": "validation_artifacts",
    "countries": [
      {
        "country": "US",
        "status": "ready",
        "seriesCount": 32,
        "freshCount": 32,
        "staleCount": 0,
        "sourceErrorCount": 0,
        "fallbackCount": 0,
        "latestMaterializedAt": "2026-06-01T00:00:00.000Z",
        "oldestFreshnessAgeHours": 560,
        "topAlerts": []
      }
    ],
    "sources": [
      {
        "sourceKey": "fred",
        "status": "ready",
        "indicatorCount": 33,
        "unexpectedFallbackCount": 0,
        "sourceErrorCount": 0,
        "artifactStatus": "available",
        "topAlerts": []
      }
    ],
    "alerts": [],
    "methodology": {
      "id": "macro_status_artifact_v1",
      "version": "v1",
      "summary": "Macro status is artifact-backed when runtime validation artifacts are available; otherwise it returns an explicit degraded runtime-registry fallback."
    },
    "sourceRights": {
      "posture": "public_safe_summary",
      "summary": "Status exposes source posture counts and freshness health, not credentials or raw vendor payloads."
    }
  }
  ```
</ResponseExample>

## Give this prompt to your agent

<Prompt>
  Use SEC API GET /v1/macro/status to return macro source-health, country coverage, freshness, and source-rights posture from runtime validation artifacts or an explicit degraded fallback. Preserve `requestId`, `traceparent` in the output. Return a concise markdown summary plus the exact structured payload fields that a downstream engineer or agent should keep using this result.
</Prompt>

## Failure posture

* treat non-2xx responses as contract-aware failures, not free-form errors
* preserve `requestId` and `traceparent` in logs and downstream reports
* if provenance or freshness metadata is present, return it unchanged so trust is not lost in the handoff
