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

# Get customer journey analytics

> Returns exact lifetime lifecycle counters and email performance over an inclusive UTC date range of at most 365 days. Step metrics are combined across every activated version, laid out on the latest one.


Requires one of the following scopes: `email_marketing_journeys:read`, `email_marketing_journeys:all`, `all:read`, `all:all`



## OpenAPI

````yaml https://api.instantly.ai/openapi/api_v2.json get /api/v2/email-marketing/journeys/{id}/analytics
openapi: 3.1.0
info:
  title: API Explorer
  description: >-
    The entire API V2 documentation is interactive and can be tested here. To
    the right side of every endpoint you will see a box with an example request.
    You can click on the "Try it" button to send a request to the server right
    from the docs. You will need to provide an API key by clicking the
    `ApiKeyAuth_token` blue text.
  version: 2.0.0
servers:
  - url: https://api.instantly.ai
    description: Instantly API Server
security:
  - ApiKeyAuth: []
tags:
  - name: Analytics
    description: Endpoints related to analytics
    x-group: Analytics
  - name: OAuth
    description: >-
      OAuth authentication endpoints for connecting Google and Microsoft email
      accounts
    x-group: OAuth
  - name: Account
    description: An email account that can be used to send campaigns
    x-group: Account
  - name: Campaign
    description: A campaign that can be sent to a list of recipients
    x-group: Campaign
  - name: Email
    description: >-
      A campaign email, a reply, a manually sent email, or any other email
      that's visible in the Unibox
    x-group: Email
  - name: EmailVerification
    description: A single email verification
    x-group: Email Verification
  - name: LeadList
    description: A list used to store leads
    x-group: Lead List
  - name: InboxPlacementTest
    description: An inbox placement test
    x-group: Inbox Placement Test
  - name: InboxPlacementAnalytics
    description: Analytics data for individual emails in inbox placement tests
    x-group: Inbox Placement Analytics
  - name: InboxPlacementBlacklistAndSpamAssassinReport
    description: Report data for an inbox placement test
    x-group: Inbox Placement Blacklist And SpamAssassin Report
  - name: AIInboxManager
    description: An AI Inbox Manager agent
    x-group: AI Inbox Manager
  - name: AIDeliverabilityAgent
    description: An AI Deliverability Agent
    x-group: AI Deliverability Agent
  - name: AILeadFinderAgent
    description: An AI Lead Finder Agent
    x-group: AI Lead Finder Agent
  - name: LocalBusiness
    description: >-
      A local business found by the Local businesses search. Search businesses
      by category and location, then convert them into leads with a verified
      email in a lead list or a campaign.
    x-group: Local Business
  - name: Creator
    description: >-
      A social media creator found by the Creators search. Search creators by
      platform, niche, audience and location, then convert them into leads with
      their email.
    x-group: Creator
  - name: APIKey
    description: API Key
    x-group: API Key
  - name: AccountCampaignMapping
    description: Account Campaign Mapping
    x-group: Account Campaign Mapping
  - name: Lead
    description: A lead entity representing an individual lead
    x-group: Lead
  - name: BackgroundJob
    description: A background job that can be used to perform long-running tasks
    x-group: Background Job
  - name: CustomTag
    description: >-
      A custom tag for organizing and categorizing accounts and campaigns. You
      can use them as filters in apis that list accounts and campaigns.
    x-group: Custom Tag
  - name: CustomTagMapping
    description: >-
      This entity represents a tag being assigned to a specific campaign or
      email account. When an email account is assigned a tag, a new custom tag
      mapping entry is created, which connects the tag (`tag_id` field) with the
      email account (`resource_id` field). You can use it to see which tag si
      connected to which resource.
    x-group: Custom Tag Mapping
  - name: BlockListEntry
    description: A blocked email or domain
    x-group: Block List Entry
  - name: LeadLabel
    description: A custom label for categorizing and managing leads
    x-group: Lead Label
  - name: Workspace
    description: A workspace entity representing a workspace
    x-group: Workspace
  - name: Workflow
    description: >-
      Defines an automation workflow with its configuration, status, and
      associated meta data.
    x-group: Workflow
  - name: SuperSearchEnrichment
    description: >-
      An enrichment can take different forms, such as email enrichment or
      LinkedIn enrichment. Leads may be imported from SuperSearch using the
      dedicated endpoint, or enriched directly within a list or campaign by
      attaching an enrichment to it.
    x-group: SuperSearch Enrichment
  - name: WorkspaceGroupMember
    description: >-
      A member of a workspace group. You can use the endpoints within this
      entity to manage the members of a workspace group.
    x-group: Workspace Group Member
  - name: WorkspaceMember
    description: A member of a workspace with associated user details
    x-group: Workspace Member
  - name: CampaignSubsequence
    description: A subsequence entity representing a follow-up sequence
    x-group: Campaign Subsequence
  - name: AuditLog
    description: Audit log records for tracking system activities
    x-group: Audit Log
  - name: AISalesAgent
    description: >-
      An AI Sales Development Representative that autonomously manages outreach
      campaigns
    x-group: AI Sales Agent
  - name: Webhook
    description: A webhook subscription for receiving event notifications
    x-group: Webhook
  - name: WebhookEvent
    description: A webhook event that was sent or attempted to be sent
    x-group: Webhook Event
  - name: DFYEmailAccountOrder
    description: A Done-For-You email account order
    x-group: DFY Email Account Order
  - name: DomainForwarding
    description: Web forwarding configuration for a domain ordered through Instantly
    x-group: Domain Forwarding
  - name: CustomPromptTemplate
    description: Custom prompt templates for creating custom prompts
    x-group: Custom Prompt Template
  - name: SalesFlow
    description: >-
      Manages how sales users view and interact with campaign and lead lists
      within the sales flow.
    x-group: Sales Flow
  - name: EmailTemplate
    description: A campaign email template
    x-group: Email Template
  - name: WorkspaceBilling
    description: Workspace Billing
    x-group: Workspace Billing
  - name: CRMActions
    description: CRM related actions
    x-group: CRM Actions
  - name: SubscriberGroup
    description: >-
      A group of email marketing subscribers. Optional fields with no value are
      left out of responses. Lists page with `starting_after`: pass the previous
      page's `next_starting_after` until there is none.
    x-group: 'Inbound & Lifecycle: Subscriber Group'
  - name: SubscriberGroupImport
    description: >-
      A CSV import into a subscriber group. Emails already in the group are
      skipped, not updated. Optional fields with no value are left out of
      responses. Lists page with `starting_after`: pass the previous page's
      `next_starting_after` until there is none.
    x-group: 'Inbound & Lifecycle: Subscriber Group Import'
  - name: Subscriber
    description: >-
      An individual contact within a subscriber group. Optional fields with no
      value are left out of responses. Lists page with `starting_after`: pass
      the previous page's `next_starting_after` until there is none.
    x-group: 'Inbound & Lifecycle: Subscriber'
  - name: Segment
    description: >-
      A saved set of rules that selects contacts. Membership is worked out each
      time the segment is used. Optional fields with no value are left out of
      responses. Lists page with `cursor`: pass the previous page's
      `next_cursor` until there is none.
    x-group: 'Inbound & Lifecycle: Segment'
  - name: Broadcast
    description: >-
      An email marketing broadcast campaign. Optional fields with no value are
      left out of responses. Lists page with `starting_after`: pass the previous
      page's `next_starting_after` until there is none.
    x-group: 'Inbound & Lifecycle: Broadcast'
  - name: Domain
    description: >-
      An email sending domain. Optional fields with no value are left out of
      responses. Lists page with `starting_after`: pass the previous page's
      `next_starting_after` until there is none.
    x-group: 'Inbound & Lifecycle: Domain'
  - name: Journey
    description: >-
      A customer journey, triggered by an event or by membership of a segment.
      Optional fields with no value are left out of responses. Lists page with
      `starting_after`: pass the previous page's `next_starting_after` until
      there is none. Step contacts page with `cursor` and `next_cursor` instead.
    x-group: 'Inbound & Lifecycle: Journey'
  - name: EventCatalogEntry
    description: >-
      An event type seen in this workspace, which journey triggers and
      conversions can use. Optional fields with no value are left out of
      responses. Lists page with `starting_after`: pass the previous page's
      `next_starting_after` until there is none.
    x-group: 'Inbound & Lifecycle: Event Catalog Entry'
  - name: Template
    description: >-
      An email marketing template. Optional fields with no value are left out of
      responses. Lists page with `starting_after`: pass the previous page's
      `next_starting_after` until there is none.
    x-group: 'Inbound & Lifecycle: Template'
  - name: TemplateAsset
    description: >-
      An image or file uploaded for use in email templates. Optional fields with
      no value are left out of responses. Lists page with `starting_after`: pass
      the previous page's `next_starting_after` until there is none.
    x-group: 'Inbound & Lifecycle: Template Asset'
  - name: EmailMetrics
    description: >-
      Aggregated email marketing metrics including totals, time-series data, and
      metadata.
    x-group: 'Inbound & Lifecycle: Email Metrics'
  - name: Conversion
    description: >-
      A conversion event received for a person, credited to the emails they got
      before it.
    x-group: 'Inbound & Lifecycle: Conversion'
  - name: EngageItem
    description: >-
      A unified Engage item representing a campaign, AI agent, automation
      workflow, broadcast, or journey.
    x-group: Engage Item
paths:
  /api/v2/email-marketing/journeys/{id}/analytics:
    get:
      tags:
        - Journey
      summary: Get customer journey analytics
      description: >-
        Returns exact lifetime lifecycle counters and email performance over an
        inclusive UTC date range of at most 365 days. Step metrics are combined
        across every activated version, laid out on the latest one.



        Requires one of the following scopes: `email_marketing_journeys:read`,
        `email_marketing_journeys:all`, `all:read`, `all:all`
      operationId: getJourneyAnalytics
      parameters:
        - schema:
            type: string
            format: date
            pattern: ^\d{4}-\d{2}-\d{2}$
            example: '2026-08-13'
          example: '2026-08-13'
          in: query
          name: start_date
          required: true
          description: First UTC calendar date included in the analytics range
        - schema:
            type: string
            format: date
            pattern: ^\d{4}-\d{2}-\d{2}$
            example: '2026-08-13'
          example: '2026-08-13'
          in: query
          name: end_date
          required: true
          description: >-
            Last UTC calendar date included in the analytics range. The range is
            at most 365 days.
        - schema:
            type: string
            format: uuid
            example: 01234567-89ab-cdef-0123-456789abcdef
          example: 01234567-89ab-cdef-0123-456789abcdef
          in: path
          name: id
          required: true
          description: The ID of the customer journey
      responses:
        '200':
          description: Customer journey analytics
          content:
            application/json:
              schema:
                type: object
                properties:
                  journey_id:
                    type: string
                    format: uuid
                    examples:
                      - 01234567-89ab-cdef-0123-456789abcdef
                    description: The journey.
                    example: 01234567-89ab-cdef-0123-456789abcdef
                  version:
                    type: integer
                    minimum: 0
                    examples:
                      - 0
                    description: >-
                      The latest activated version, which `nodes` are laid out
                      on.
                    example: 0
                  range:
                    type: object
                    description: The requested date range.
                    properties:
                      start_date:
                        type: string
                        format: date
                        pattern: ^\d{4}-\d{2}-\d{2}$
                        examples:
                          - '2026-08-13'
                        description: First date included.
                        example: '2026-08-13'
                      end_date:
                        type: string
                        format: date
                        pattern: ^\d{4}-\d{2}-\d{2}$
                        examples:
                          - '2026-08-13'
                        description: Last date included.
                        example: '2026-08-13'
                    required:
                      - start_date
                      - end_date
                    additionalProperties: false
                  scopes:
                    type: object
                    description: >-
                      What period each metric group covers: `lifetime` since the
                      first activation, `requested_range` the requested dates,
                      `live` the current moment.
                    properties:
                      lifecycle:
                        type: string
                        enum:
                          - lifetime
                        examples:
                          - lifetime
                        description: Period of `lifecycle`.
                        example: lifetime
                      email:
                        type: string
                        enum:
                          - requested_range
                        examples:
                          - requested_range
                        description: >-
                          Period of `totals`, `rates`, `daily` and email node
                          metrics.
                        example: requested_range
                      delay:
                        type: string
                        enum:
                          - live
                        examples:
                          - live
                        description: Period of delay node metrics.
                        example: live
                      split:
                        type: string
                        enum:
                          - lifetime
                        examples:
                          - lifetime
                        description: Period of split node counts.
                        example: lifetime
                      tag:
                        type: string
                        enum:
                          - lifetime
                        examples:
                          - lifetime
                        description: Period of tag node metrics.
                        example: lifetime
                      slack:
                        type: string
                        enum:
                          - lifetime
                        examples:
                          - lifetime
                        description: Period of Slack node metrics.
                        example: lifetime
                    required:
                      - lifecycle
                      - email
                      - delay
                      - split
                    additionalProperties: false
                  goal:
                    type: object
                    properties:
                      source:
                        type: string
                        enum:
                          - instantly
                          - api
                          - calendly
                          - typeform
                          - shopify
                          - woocommerce
                          - wix
                          - jotform
                          - intercom
                          - pipedrive
                          - salesforce
                          - hubspot
                          - highlevel
                          - leadconnector
                          - zoho_crm
                          - attio
                        examples:
                          - api
                        description: Where the goal event comes from.
                        example: api
                      event_name:
                        type: string
                        examples:
                          - purchase.completed
                        description: The goal event.
                        example: purchase.completed
                      window_days:
                        type: integer
                        minimum: 1
                        maximum: 365
                        examples:
                          - 30
                        description: Days during which the event counts.
                        example: 30
                    required:
                      - source
                      - event_name
                      - window_days
                    additionalProperties: false
                    description: The current journey goal. Absent when it has none.
                  goal_history:
                    type: object
                    description: >-
                      Every goal the journey has had. Each person counts toward
                      the goal set when they entered. Present once any activated
                      version had a goal.
                    properties:
                      metrics_scope:
                        type: string
                        enum:
                          - lifetime
                        examples:
                          - lifetime
                        description: Always `lifetime`.
                        example: lifetime
                      totals:
                        type: object
                        description: Every goal together.
                        properties:
                          entered:
                            type: integer
                            minimum: 0
                            examples:
                              - 0
                            description: People who entered while this goal was set.
                            example: 0
                          goal_reached:
                            type: integer
                            minimum: 0
                            examples:
                              - 0
                            description: People who reached the goal.
                            example: 0
                          conversion_rate:
                            type: number
                            minimum: 0
                            examples:
                              - 0.5
                            description: '`goal_reached / entered` as a fraction.'
                            example: 0.5
                        required:
                          - entered
                          - goal_reached
                          - conversion_rate
                        additionalProperties: false
                      variants:
                        type: array
                        description: Oldest first.
                        items:
                          type: object
                          properties:
                            goal_key:
                              type: string
                              examples:
                                - 3f2a9c1e5b7d4a608e1f2c3b4a5d6e7f
                              description: Identifies this goal.
                              example: 3f2a9c1e5b7d4a608e1f2c3b4a5d6e7f
                            source:
                              type: string
                              enum:
                                - instantly
                                - api
                                - calendly
                                - typeform
                                - shopify
                                - woocommerce
                                - wix
                                - jotform
                                - intercom
                                - pipedrive
                                - salesforce
                                - hubspot
                                - highlevel
                                - leadconnector
                                - zoho_crm
                                - attio
                              examples:
                                - api
                              description: Where the goal event comes from.
                              example: api
                            event_name:
                              type: string
                              examples:
                                - purchase.completed
                              description: The goal event.
                              example: purchase.completed
                            window_days:
                              type: integer
                              minimum: 1
                              maximum: 365
                              examples:
                                - 30
                              description: Days during which the event counts.
                              example: 30
                            has_conditions:
                              type: boolean
                              examples:
                                - false
                              description: Whether the goal had conditions.
                              example: false
                            is_current:
                              type: boolean
                              examples:
                                - true
                              description: Whether this is the journey's goal now.
                              example: true
                            versions:
                              type: array
                              description: The activated versions that had this goal.
                              items:
                                type: integer
                                minimum: 1
                                examples:
                                  - 1
                                example: 1
                            periods:
                              type: array
                              description: When this goal was in effect.
                              items:
                                type: object
                                properties:
                                  start_at:
                                    type: string
                                    format: date-time
                                    examples:
                                      - '2026-08-13T09:30:00.000Z'
                                    description: When the goal took effect.
                                    example: '2026-08-13T09:30:00.000Z'
                                  end_at:
                                    type: string
                                    format: date-time
                                    description: Absent while this goal is current.
                                    examples:
                                      - '2026-09-01T12:00:00.000Z'
                                    example: '2026-09-01T12:00:00.000Z'
                                required:
                                  - start_at
                                additionalProperties: false
                            metrics:
                              type: object
                              description: Counts for this goal.
                              properties:
                                entered:
                                  type: integer
                                  minimum: 0
                                  examples:
                                    - 0
                                  description: People who entered while this goal was set.
                                  example: 0
                                goal_reached:
                                  type: integer
                                  minimum: 0
                                  examples:
                                    - 0
                                  description: People who reached the goal.
                                  example: 0
                                conversion_rate:
                                  type: number
                                  minimum: 0
                                  examples:
                                    - 0.5
                                  description: '`goal_reached / entered` as a fraction.'
                                  example: 0.5
                              required:
                                - entered
                                - goal_reached
                                - conversion_rate
                              additionalProperties: false
                          required:
                            - goal_key
                            - source
                            - event_name
                            - window_days
                            - has_conditions
                            - is_current
                            - versions
                            - periods
                            - metrics
                          additionalProperties: false
                    required:
                      - metrics_scope
                      - totals
                      - variants
                    additionalProperties: false
                  lifecycle:
                    type: object
                    description: Lifetime counts of runs through the journey.
                    properties:
                      enrolled:
                        type: integer
                        minimum: 0
                        examples:
                          - 0
                        description: Runs started.
                        example: 0
                      completed:
                        type: integer
                        minimum: 0
                        examples:
                          - 0
                        description: Runs that reached the end.
                        example: 0
                      failed:
                        type: integer
                        minimum: 0
                        examples:
                          - 0
                        description: >-
                          Runs that ended on an error. Counted in `enrolled`,
                          never in `active`.
                        example: 0
                      skipped:
                        type: integer
                        minimum: 0
                        examples:
                          - 0
                        description: >-
                          Runs that ended as skipped. Counted in `enrolled`,
                          never in `active`.
                        example: 0
                      left_by_condition:
                        type: integer
                        minimum: 0
                        examples:
                          - 0
                        description: Runs a step's conditions ended before the step ran.
                        example: 0
                      exited:
                        type: integer
                        minimum: 0
                        examples:
                          - 0
                        description: >-
                          Runs removed by an outside event, such as the person
                          being erased. Counted in `enrolled`, never in
                          `active`.
                        example: 0
                      exited_by_rule:
                        type: integer
                        minimum: 0
                        examples:
                          - 0
                        description: >-
                          People an exit rule removed from the journey. Counted
                          in `enrolled`, never in `active`.
                        example: 0
                      goal_reached:
                        type: integer
                        minimum: 0
                        examples:
                          - 0
                        description: People who reached the journey goal.
                        example: 0
                      frequency_capped:
                        type: integer
                        minimum: 0
                        examples:
                          - 0
                        description: >-
                          Emails a frequency cap skipped, across every step the
                          journey has had, including removed ones.
                        example: 0
                      active:
                        type: integer
                        minimum: 0
                        examples:
                          - 0
                        description: >-
                          Runs still in progress: `enrolled` minus every run
                          that ended.
                        example: 0
                    required:
                      - enrolled
                      - completed
                      - failed
                      - skipped
                      - active
                    additionalProperties: false
                  totals:
                    type: object
                    description: >-
                      Email counts over the requested dates, every step and
                      version together.
                    properties:
                      sent:
                        type: integer
                        minimum: 0
                        examples:
                          - 0
                        description: Emails sent.
                        example: 0
                      delivered:
                        type: integer
                        minimum: 0
                        examples:
                          - 0
                        description: Emails the recipient's mail server accepted.
                        example: 0
                      opened:
                        type: integer
                        minimum: 0
                        examples:
                          - 0
                        description: Opens.
                        example: 0
                      clicked:
                        type: integer
                        minimum: 0
                        examples:
                          - 0
                        description: Link clicks, counting every click.
                        example: 0
                      unique_clicked:
                        type: integer
                        minimum: 0
                        examples:
                          - 0
                        description: Clicks counting each recipient once per email.
                        example: 0
                      bounced:
                        type: integer
                        minimum: 0
                        examples:
                          - 0
                        description: Emails that bounced.
                        example: 0
                      complained:
                        type: integer
                        minimum: 0
                        examples:
                          - 0
                        description: Recipients who marked the email as spam.
                        example: 0
                      rejected:
                        type: integer
                        minimum: 0
                        examples:
                          - 0
                        description: Rejected emails.
                        example: 0
                      unsubscribed:
                        type: integer
                        minimum: 0
                        examples:
                          - 0
                        description: Recipients who unsubscribed from the email.
                        example: 0
                    required:
                      - sent
                      - delivered
                      - opened
                      - clicked
                      - unique_clicked
                      - bounced
                      - complained
                      - rejected
                      - unsubscribed
                    additionalProperties: false
                  rates:
                    type: object
                    description: Rates computed from `totals`.
                    properties:
                      delivery_rate:
                        type: number
                        minimum: 0
                        examples:
                          - 0.5
                        description: '`delivered / sent` as a fraction.'
                        example: 0.5
                      open_rate:
                        type: number
                        minimum: 0
                        examples:
                          - 0.5
                        description: '`opened / delivered` as a fraction.'
                        example: 0.5
                      click_rate:
                        type: number
                        minimum: 0
                        examples:
                          - 0.5
                        description: '`clicked / delivered` as a fraction.'
                        example: 0.5
                      unique_click_rate:
                        type: number
                        minimum: 0
                        examples:
                          - 0.5
                        description: '`unique_clicked / delivered` as a fraction.'
                        example: 0.5
                      click_to_open_rate:
                        type: number
                        minimum: 0
                        examples:
                          - 0.5
                        description: '`unique_clicked / opened` as a fraction.'
                        example: 0.5
                      bounce_rate:
                        type: number
                        minimum: 0
                        examples:
                          - 0.5
                        description: '`bounced / sent` as a fraction.'
                        example: 0.5
                      complaint_rate:
                        type: number
                        minimum: 0
                        examples:
                          - 0.5
                        description: '`complained / delivered` as a fraction.'
                        example: 0.5
                      unsubscribe_rate:
                        type: number
                        minimum: 0
                        examples:
                          - 0.5
                        description: '`unsubscribed / delivered` as a fraction.'
                        example: 0.5
                    required:
                      - delivery_rate
                      - open_rate
                      - click_rate
                      - unique_click_rate
                      - click_to_open_rate
                      - bounce_rate
                      - complaint_rate
                      - unsubscribe_rate
                    additionalProperties: false
                  daily:
                    type: array
                    description: Email counts per UTC day of the requested range.
                    items:
                      type: object
                      properties:
                        date:
                          type: string
                          format: date
                          pattern: ^\d{4}-\d{2}-\d{2}$
                          examples:
                            - '2026-08-13'
                          description: The UTC day.
                          example: '2026-08-13'
                        sent:
                          type: integer
                          minimum: 0
                          examples:
                            - 0
                          description: Emails sent.
                          example: 0
                        delivered:
                          type: integer
                          minimum: 0
                          examples:
                            - 0
                          description: Emails the recipient's mail server accepted.
                          example: 0
                        opened:
                          type: integer
                          minimum: 0
                          examples:
                            - 0
                          description: Opens.
                          example: 0
                        clicked:
                          type: integer
                          minimum: 0
                          examples:
                            - 0
                          description: Link clicks, counting every click.
                          example: 0
                        unique_clicked:
                          type: integer
                          minimum: 0
                          examples:
                            - 0
                          description: Clicks counting each recipient once per email.
                          example: 0
                        bounced:
                          type: integer
                          minimum: 0
                          examples:
                            - 0
                          description: Emails that bounced.
                          example: 0
                        complained:
                          type: integer
                          minimum: 0
                          examples:
                            - 0
                          description: Recipients who marked the email as spam.
                          example: 0
                        rejected:
                          type: integer
                          minimum: 0
                          examples:
                            - 0
                          description: Rejected emails.
                          example: 0
                        unsubscribed:
                          type: integer
                          minimum: 0
                          examples:
                            - 0
                          description: Recipients who unsubscribed from the email.
                          example: 0
                      required:
                        - date
                        - sent
                        - delivered
                        - opened
                        - clicked
                        - unique_clicked
                        - bounced
                        - complained
                        - rejected
                        - unsubscribed
                      additionalProperties: false
                  nodes:
                    type: array
                    description: >-
                      Workflow nodes of the latest version in definition order,
                      flat even when the journey branches. Each node's metrics
                      combine every version that had the same step. Edges come
                      from the pointers, never from the order: trigger, delay,
                      email, tag and slack nodes carry `next_step_id`, the end
                      node carries none, and a split node lists the branch it
                      routes each run into. A path merged into another by a
                      go-to points at a `go_to` node, which carries the
                      `target_step_id` it continues at and no metrics; the
                      merged step counts everyone who reaches it.
                    items:
                      type: object
                      properties:
                        type:
                          type: string
                          enum:
                            - trigger
                            - delay
                            - email
                            - tag
                            - slack
                            - split
                            - end
                            - go_to
                          examples:
                            - email
                          description: Node type.
                          example: email
                        step_id:
                          type: string
                          examples:
                            - welcome-email
                          description: The design step this node is.
                          example: welcome-email
                        name:
                          type: string
                          examples:
                            - Welcome email
                          description: >-
                            Step name on the latest version. Absent when the
                            step has none. Delay, email, split and tag nodes
                            only.
                          example: Welcome email
                        subject:
                          type: string
                          examples:
                            - Welcome to the store
                          description: >-
                            Subject line on the latest version. Metrics also
                            include sends of earlier versions. Email nodes only.
                          example: Welcome to the store
                        version:
                          type: integer
                          minimum: 0
                          examples:
                            - 0
                          description: The version the node is laid out from.
                          example: 0
                        next_step_id:
                          type: string
                          examples:
                            - welcome-email
                          description: >-
                            Step the run advances to after this node. Absent on
                            split, end and go-to nodes.
                          example: welcome-email
                        target_step_id:
                          type: string
                          examples:
                            - welcome-email
                          description: >-
                            Step the path continues at, shared with the path it
                            merges into. Go-to nodes only.
                          example: welcome-email
                        split_type:
                          type: string
                          examples:
                            - condition
                          description: >-
                            Split variant, `condition`, `attribute` or
                            `ab_test`. Split nodes only.
                          example: condition
                        metrics_scope:
                          type: string
                          enum:
                            - lifetime
                            - requested_range
                            - live
                            - none
                          examples:
                            - requested_range
                          description: >-
                            `none` means the node carries no metrics, and only a
                            go-to node has it.
                          example: requested_range
                        branches:
                          type: array
                          description: >-
                            Paths out of a split with their exact lifetime
                            routing counts across every version. A branch nobody
                            took reports zero. Split nodes only.
                          items:
                            type: object
                            properties:
                              id:
                                type: string
                                examples:
                                  - 'yes'
                                description: Branch ID.
                                example: 'yes'
                              name:
                                type: string
                                examples:
                                  - Paid plan
                                description: >-
                                  Branch name on the latest version. Absent when
                                  the branch has none.
                                example: Paid plan
                              target_step_id:
                                type: string
                                examples:
                                  - welcome-email
                                description: The first step on the branch.
                                example: welcome-email
                              taken:
                                type: integer
                                minimum: 0
                                examples:
                                  - 0
                                description: Runs routed into this branch.
                                example: 0
                              percent:
                                type: integer
                                examples:
                                  - 50
                                description: >-
                                  Authored share on the latest version, so the
                                  planned split reads next to `taken`. A/B test
                                  nodes only.
                                example: 50
                            required:
                              - id
                              - target_step_id
                              - taken
                            additionalProperties: false
                        metrics:
                          type: object
                          description: >-
                            The node's counts, over the period `metrics_scope`
                            names. Each node type carries its own.
                          properties:
                            entered:
                              type: integer
                              minimum: 0
                              examples:
                                - 0
                              description: Runs that reached the node.
                              example: 0
                            completed:
                              type: integer
                              minimum: 0
                              examples:
                                - 0
                              description: Runs that left the node to continue.
                              example: 0
                            waiting:
                              type: integer
                              minimum: 0
                              examples:
                                - 0
                              description: Runs waiting in a delay now. Delay nodes only.
                              example: 0
                            applied:
                              type: integer
                              minimum: 0
                              examples:
                                - 0
                              description: Runs the tag step applied to. Tag nodes only.
                              example: 0
                            sent:
                              type: integer
                              minimum: 0
                              examples:
                                - 0
                              description: Emails sent.
                              example: 0
                            delivered:
                              type: integer
                              minimum: 0
                              examples:
                                - 0
                              description: Emails the recipient's mail server accepted.
                              example: 0
                            opened:
                              type: integer
                              minimum: 0
                              examples:
                                - 0
                              description: Opens.
                              example: 0
                            clicked:
                              type: integer
                              minimum: 0
                              examples:
                                - 0
                              description: Link clicks, counting every click.
                              example: 0
                            unique_clicked:
                              type: integer
                              minimum: 0
                              examples:
                                - 0
                              description: Clicks counting each recipient once per email.
                              example: 0
                            bounced:
                              type: integer
                              minimum: 0
                              examples:
                                - 0
                              description: Emails that bounced.
                              example: 0
                            complained:
                              type: integer
                              minimum: 0
                              examples:
                                - 0
                              description: Recipients who marked the email as spam.
                              example: 0
                            rejected:
                              type: integer
                              minimum: 0
                              examples:
                                - 0
                              description: Rejected emails.
                              example: 0
                            unsubscribed:
                              type: integer
                              minimum: 0
                              examples:
                                - 0
                              description: Recipients who unsubscribed from the email.
                              example: 0
                            failed:
                              type: integer
                              minimum: 0
                              examples:
                                - 0
                              description: >-
                                Runs whose Slack post failed; they still
                                continued. Slack nodes only, next to `sent`.
                              example: 0
                            exited_by_rule:
                              type: integer
                              minimum: 0
                              examples:
                                - 0
                              description: >-
                                People an exit rule removed while this was the
                                last email they were sent. Email nodes only.
                              example: 0
                            frequency_capped:
                              type: integer
                              minimum: 0
                              examples:
                                - 0
                              description: >-
                                Lifetime, across versions: people who skipped
                                this email because a workspace frequency cap was
                                reached; they moved on to the next step. Email
                                nodes only.
                              example: 0
                            delivery_rate:
                              type: number
                              minimum: 0
                              examples:
                                - 0.5
                              description: '`delivered / sent` as a fraction.'
                              example: 0.5
                            open_rate:
                              type: number
                              minimum: 0
                              examples:
                                - 0.5
                              description: '`opened / delivered` as a fraction.'
                              example: 0.5
                            click_rate:
                              type: number
                              minimum: 0
                              examples:
                                - 0.5
                              description: '`clicked / delivered` as a fraction.'
                              example: 0.5
                            unique_click_rate:
                              type: number
                              minimum: 0
                              examples:
                                - 0.5
                              description: '`unique_clicked / delivered` as a fraction.'
                              example: 0.5
                            click_to_open_rate:
                              type: number
                              minimum: 0
                              examples:
                                - 0.5
                              description: '`unique_clicked / opened` as a fraction.'
                              example: 0.5
                            bounce_rate:
                              type: number
                              minimum: 0
                              examples:
                                - 0.5
                              description: '`bounced / sent` as a fraction.'
                              example: 0.5
                            complaint_rate:
                              type: number
                              minimum: 0
                              examples:
                                - 0.5
                              description: '`complained / delivered` as a fraction.'
                              example: 0.5
                            unsubscribe_rate:
                              type: number
                              minimum: 0
                              examples:
                                - 0.5
                              description: '`unsubscribed / delivered` as a fraction.'
                              example: 0.5
                          additionalProperties: false
                        goal:
                          type: object
                          description: >-
                            This email's goal on the latest version, with exact
                            lifetime counters across every version that had the
                            same goal for this step. Independent of the
                            requested dates and reset when the goal changes.
                            Email nodes with a goal only.
                          properties:
                            source:
                              type: string
                              enum:
                                - instantly
                                - api
                                - calendly
                                - typeform
                                - shopify
                                - woocommerce
                                - wix
                                - jotform
                                - intercom
                                - pipedrive
                                - salesforce
                                - hubspot
                                - highlevel
                                - leadconnector
                                - zoho_crm
                                - attio
                              examples:
                                - api
                              description: Where the goal event comes from.
                              example: api
                            event_name:
                              type: string
                              examples:
                                - purchase.completed
                              description: The goal event.
                              example: purchase.completed
                            window_days:
                              type: integer
                              minimum: 1
                              maximum: 365
                              examples:
                                - 30
                              description: Days during which the event counts.
                              example: 30
                            metrics_scope:
                              type: string
                              enum:
                                - lifetime
                              examples:
                                - lifetime
                              description: Always `lifetime`.
                              example: lifetime
                            metrics:
                              type: object
                              description: Goal counts for this email.
                              properties:
                                sent:
                                  type: integer
                                  minimum: 0
                                  examples:
                                    - 0
                                  description: Recipients the email was sent to.
                                  example: 0
                                goal_reached:
                                  type: integer
                                  minimum: 0
                                  examples:
                                    - 0
                                  description: >-
                                    Recipients who reached the goal within its
                                    window.
                                  example: 0
                                conversion_rate:
                                  type: number
                                  minimum: 0
                                  examples:
                                    - 0.5
                                  description: >-
                                    `goal_reached / sent` as a fraction, zero
                                    when nothing was sent.
                                  example: 0.5
                              required:
                                - sent
                                - goal_reached
                                - conversion_rate
                              additionalProperties: false
                          required:
                            - source
                            - event_name
                            - window_days
                            - metrics_scope
                            - metrics
                          additionalProperties: false
                      required:
                        - type
                        - version
                        - metrics_scope
                      additionalProperties: false
                      allOf:
                        - if:
                            type: object
                            properties:
                              metrics_scope:
                                enum:
                                  - none
                            required:
                              - metrics_scope
                          then:
                            type: object
                            not:
                              type: object
                              properties:
                                type:
                                  not:
                                    enum:
                                      - go_to
                              required:
                                - type
                required:
                  - journey_id
                  - version
                  - range
                  - scopes
                  - lifecycle
                  - totals
                  - rates
                  - daily
                  - nodes
                additionalProperties: false
        '400':
          description: >-
            The request is invalid. `message` names the field and the problem.
            `code` is `FST_ERR_VALIDATION` when the request does not match this
            schema and `VALIDATION_ERROR` when a value is refused after that. A
            request the resource's current state does not allow, such as pausing
            a broadcast that is not sending, has its own `code` named on that
            operation. `code` is absent on a few request-level checks.
          content:
            application/json:
              schema:
                type: object
                description: >-
                  The request is invalid. `message` names the field and the
                  problem. `code` is `FST_ERR_VALIDATION` when the request does
                  not match this schema and `VALIDATION_ERROR` when a value is
                  refused after that. A request the resource's current state
                  does not allow, such as pausing a broadcast that is not
                  sending, has its own `code` named on that operation. `code` is
                  absent on a few request-level checks.
                properties:
                  statusCode:
                    type: number
                    example: 400
                  error:
                    type: string
                    example: Bad Request
                  message:
                    type: string
                    example: 'limit: must be at most 50'
                  code:
                    type: string
                    description: >-
                      Machine-readable error code. Branch on this, not on the
                      message.
                    example: VALIDATION_ERROR
        '401':
          description: >-
            This request is unauthorized (either the Authorization header is
            missing or invalid, or the API key has been revoked)
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: number
                    enum:
                      - 401
                    examples:
                      - 401
                    example: 401
                  error:
                    type: string
                    enum:
                      - Unauthorized
                    examples:
                      - Unauthorized
                    example: Unauthorized
                  message:
                    type: string
                    examples:
                      - Missing Authorization header
                    example: Missing Authorization header
                required:
                  - statusCode
                  - error
                  - message
        '402':
          description: >-
            This request cannot be fulfilled because the workspace does not have
            an active paid plan
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: number
                    enum:
                      - 402
                    examples:
                      - 402
                    example: 402
                  error:
                    type: string
                    enum:
                      - Payment Required
                    examples:
                      - Payment Required
                    example: Payment Required
                  message:
                    type: string
                    examples:
                      - Workspace does not have an active paid plan
                    example: Workspace does not have an active paid plan
                required:
                  - statusCode
                  - error
                  - message
        '403':
          description: >-
            The workspace may not perform this action, for example while it is
            suspended. A key without the required scope gets a 401.
          content:
            application/json:
              schema:
                type: object
                description: >-
                  The workspace may not perform this action, for example while
                  it is suspended. A key without the required scope gets a 401.
                properties:
                  statusCode:
                    type: number
                    example: 403
                  error:
                    type: string
                    example: Forbidden
                  message:
                    type: string
                    example: >-
                      Workspace suspended due to a high bounce or spam complaint
                      rate. Please contact support.
                  code:
                    type: string
                    description: >-
                      Machine-readable error code. Branch on this, not on the
                      message.
                    example: WORKSPACE_SUSPENDED
        '404':
          description: The resource does not exist in this workspace.
          content:
            application/json:
              schema:
                type: object
                description: The resource does not exist in this workspace.
                properties:
                  statusCode:
                    type: number
                    example: 404
                  error:
                    type: string
                    example: Not Found
                  message:
                    type: string
                    example: Not found
                  code:
                    type: string
                    description: >-
                      Machine-readable error code. Branch on this, not on the
                      message.
                    example: NOT_FOUND
        '408':
          description: >-
            The request timed out. The outcome is unknown: a write may or may
            not have been applied. Read the resource back before retrying.
          content:
            application/json:
              schema:
                type: object
                description: >-
                  The request timed out. The outcome is unknown: a write may or
                  may not have been applied. Read the resource back before
                  retrying.
                properties:
                  statusCode:
                    type: number
                    example: 408
                  error:
                    type: string
                    example: Request Timeout
                  message:
                    type: string
                    example: An internal error occurred
        '409':
          description: The request conflicts with the current state of the resource.
          content:
            application/json:
              schema:
                type: object
                description: The request conflicts with the current state of the resource.
                properties:
                  statusCode:
                    type: number
                    example: 409
                  error:
                    type: string
                    example: Conflict
                  message:
                    type: string
                    example: The resource has changed. Reload it and try again.
                  code:
                    type: string
                    description: >-
                      Machine-readable error code. Branch on this, not on the
                      message.
                    example: CONFLICT
        '429':
          description: >-
            You have exceeded the rate limit. Please check the rate limit docs
            for more information.
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: number
                    enum:
                      - 429
                    examples:
                      - 429
                    example: 429
                  error:
                    type: string
                    enum:
                      - Too Many Requests
                    examples:
                      - Too Many Requests
                    example: Too Many Requests
                  message:
                    type: string
                    examples:
                      - Rate limit exceeded
                    example: Rate limit exceeded
                required:
                  - statusCode
                  - error
                  - message
        '500':
          description: >-
            An internal error occurred. The outcome is unknown: a write may or
            may not have been applied. Read the resource back before retrying.
          content:
            application/json:
              schema:
                type: object
                description: >-
                  An internal error occurred. The outcome is unknown: a write
                  may or may not have been applied. Read the resource back
                  before retrying.
                properties:
                  statusCode:
                    type: number
                    example: 500
                  error:
                    type: string
                    example: Internal Server Error
                  message:
                    type: string
                    example: An internal error occurred
components:
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer

````

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