---
title: "Get enrollment"
full: true
_openapi:
  method: GET
  toc: []
  structuredData:
    headings: []
    contents:
      - content: "Retrieves an enrollment and its step runs"
_apiData:
  document: "https://reloop.sh/api/workflow/openapi/json"
  operationData: [{"path":"/api/workflow/v1/automations/{automation_id}/enrollments/{enrollment_id}","method":"get"}]
  parameterList: [{"name":"automation_id","type":"string","required":true,"description":"Automation ID (auto_...)","location":"path","minLength":1},{"name":"enrollment_id","type":"string","required":true,"description":"","location":"path","minLength":1}]
  responseMap: {"200":{"description":"Response for status 200","schema":{"enrollment":{"id":"enr_123456789","automationId":"auto_123456789","contactId":"con_123456789","contactEmail":"john.doe@example.com","contactFirstName":"John","contactLastName":"Doe","status":"active","currentNodeId":"wait","enrolledAt":"2026-03-23T10:00:00.000Z","completedAt":null,"cancelledAt":null},"steps":[{"id":"astep_123456789","nodeId":"is_pro","nodeType":"condition","status":"completed","scheduledFor":"2026-03-23T10:00:00.000Z","startedAt":"2026-03-23T10:00:00.000Z","finishedAt":"2026-03-23T10:00:00.000Z","emailLogId":null,"error":null},{"id":"astep_987654321","nodeId":"wait","nodeType":"delay","status":"pending","scheduledFor":"2026-03-24T10:00:00.000Z","startedAt":null,"finishedAt":null,"emailLogId":null,"error":null}]}},"401":{"description":"Response for status 401","schema":{"message":"Authentication required"}},"404":{"description":"Response for status 404","schema":{"message":"Enrollment not found","why":"No enrollment with ID \"enr_123456789\" exists for this automation.","fix":"Verify the enrollment ID."}}}
  codeSamples:
    - id: node
      lang: javascript
      label: Node.js
      source: |-
        import { Reloop } from "reloop-email";
        
        const reloop = new Reloop({ apiKey: "rl_123456789" });
        
        const { enrollment, enrollmentError } = await reloop.automations.enrollments.get(
          "auto_123456789",
          "enr_123456789",
        );
        if (enrollmentError) throw enrollmentError;
    - id: curl
      lang: bash
      label: cURL
      source: |-
        curl -X GET https://reloop.sh/api/workflow/v1/automations/auto_123456789/enrollments/enr_123456789 \
          -H "x-api-key: rl_123456789"
    - id: python
      lang: python
      label: Python
      source: |-
        import requests
        
        res = requests.get(
            "https://reloop.sh/api/workflow/v1/automations/auto_123456789/enrollments/enr_123456789",
            headers={"x-api-key": "rl_123456789"},
        )
        res.raise_for_status()
        print(res.json())
---
> For the complete documentation index, see [llms-docs.txt](/llms-docs.txt) or the site index [llms.txt](/llms.txt). Full docs corpus: [llms-full-docs.txt](/llms-full-docs.txt). Prefer markdown URLs (append `.md`) for agent consumption. Product skill: [skill.md](/skill.md).


{/* This file was generated by the OpenAPI doc generator. Do not edit this file directly. Run `bun run generate:api-docs` to regenerate. */}

<APIPage />
