List enrollments for an automation

GET https://emails.routeon.io/api/v1/automations/{id}/enrollments

Parameters

id string<uuid> required path
status string query
active waiting exited canceled
cursor string query

Opaque pagination cursor.

per_page integer query

Responses

200 OK
404 Resource not found within tenant scope

Example response · 200

{
    "status": "success",
    "http_code": 0,
    "payload": [
        {
            "id": "00000000-0000-0000-0000-000000000000",
            "campaign_id": "00000000-0000-0000-0000-000000000000",
            "contact_id": "00000000-0000-0000-0000-000000000000",
            "current_step_id": "string",
            "status": "active",
            "enrolled_at": "2024-01-01T00:00:00Z",
            "last_step_at": "2024-01-01T00:00:00Z",
            "exited_at": "2024-01-01T00:00:00Z",
            "exit_reason": "string"
        }
    ],
    "meta": {
        "per_page": 0,
        "cursor": "string"
    }
}

Example response · 404

{
    "status": "error",
    "http_code": 0,
    "payload": [],
    "meta": {
        "reason": "VALIDATION_ERROR",
        "validation_error": [
            {
                "field": "string",
                "message": "string"
            }
        ],
        "details": []
    }
}