Skip to main content
GET
cURL

Overview

Use the generation ID returned by Create enrollment for an agentic sequence. Poll while its status is IN_PROGRESS. When the status is COMPLETED, enrollment_id identifies the generated enrollment. If is_draft_approval_pending is true, review the messages and approve the enrollment before it can start. For a failed generation, inspect failure_reason and failure_message before creating another request.

Authorizations

x-api-key
string
header
required

Path Parameters

id
string<uuid>
required

String UUID value.

Response

Response returned when fetching an enrollment generation.

Response returned when fetching an enrollment generation.

id
string<uuid>
required

String UUID value.

created_at
string<date-time>
required

String value representing an RFC 3339 datetime.

updated_at
string<date-time>
required

String value representing an RFC 3339 datetime.

sequence_id
string<uuid>
required

String UUID value.

person_id
string<uuid>
required

String UUID value.

status
enum<string>
required

Status of an enrollment generation.

Available options:
IN_PROGRESS,
COMPLETED,
FAILED,
CANCELED
enrollment_id
string<uuid> | null
required

ID of the created enrollment. Set once the generation is COMPLETED.

is_draft_approval_pending
boolean
required

True when the generation completed as a draft that needs approve_sequence_enrollment before it starts sending.

failure_reason
enum<string> | null
required

Set when the generation is FAILED.

Available options:
CONCURRENT_ENROLLMENT_CONFLICT,
FAILED,
INVALID_GENERATED_CONTENT,
MAILBOX_NOT_FOUND,
NO_GENERATABLE_CONTENT,
OUT_OF_CREDITS,
PERSON_ALREADY_ENROLLED,
PERSON_DO_NOT_EMAIL,
PERSON_EXCLUDED,
PERSON_NOT_FOUND,
PERSON_OPTED_OUT,
PERSON_RECENTLY_ENROLLED,
PREVIOUS_ENROLLMENT_SHUTDOWN_IN_PROGRESS,
RULES_OF_ENGAGEMENT_BLOCKED,
SEQUENCE_NOT_FOUND,
SEQUENCE_NOT_AGENTIC,
SEQUENCE_NOT_PUBLISHED
failure_message
string | null
required
ended_at
string<date-time> | null
required

String value representing an RFC 3339 datetime.