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

# Get Journey Statistics

> Read step performance and enrollment counts for an SMS welcome journey.

Returns sending-step totals and rates, condition-step waiting counts, and enrollment totals for a journey in your account.

Declares the `journeys.read` scope. Authenticate with `X-Api-Key`; see [Authentication](/api-reference/authentication).

## Path Parameters

<ParamField path="journey_id" type="string" required>
  Journey ID returned by create or list. Use a valid journey ID; malformed IDs currently return an unexpected error.
</ParamField>

## Response Fields

<ResponseField name="journeyId" type="string">
  Journey being measured.
</ResponseField>

<ResponseField name="stepStats" type="array of objects">
  Sending steps include stepId, stepType, creativeId, creativeName, sent, sendsUnavailable, clicks, clickRate, clicksUnavailable, revenue, revenueUnavailable, and rps. Condition steps appear only when contacts are waiting, with stepId, stepType, and waiting.
</ResponseField>

<ResponseField name="enrollmentStats" type="object">
  totalEnrolled, activeEnrolled, and completed counts.
</ResponseField>

`clickRate` is clicks divided by sends, as a percentage rounded to two decimals. `revenue` is rounded to two decimals and `rps` to four; both rates are zero when no sends exist. Revenue excludes product-sale attribution. Creative IDs retain their stored string or integer type. Creative IDs and names are null for contact-card and double opt-in steps.

If a statistic cannot be loaded, its unavailable flag is true and its numeric value is zero. Treat derived rates as unavailable when their inputs are unavailable. Waiting-count failures omit condition rows and have no separate unavailable flag.

<ResponseExample>
  ```json 200 theme={null}
  {
    "journeyId": "664f1a2b3c4d5e6f7a8b9c0d",
    "stepStats": [
      {
        "stepId": "send",
        "stepType": "send_message",
        "creativeId": "710",
        "creativeName": "Welcome",
        "sent": 2,
        "sendsUnavailable": false,
        "clicks": 1,
        "clickRate": 50,
        "clicksUnavailable": false,
        "revenue": 5.01,
        "revenueUnavailable": false,
        "rps": 2.505
      },
      {
        "stepId": "condition",
        "stepType": "condition",
        "waiting": 2
      }
    ],
    "enrollmentStats": {
      "totalEnrolled": 3,
      "activeEnrolled": 2,
      "completed": 1
    }
  }
  ```
</ResponseExample>

Missing or foreign journeys return 404. A malformed stored creative ID currently returns an unexpected error.
