VocalDocscontracts 1.65.0

Read an enrollment

GET /v1/campaigns/{campaign_id}/contacts/{enrollment_id}

PropertyValue
Operationget_campaign_enrollment
GroupCampaigns
Scopecampaigns:read
Scopes of include valuescontent needs campaigns:content
Route classread
IdempotencyNo Idempotency-Key
AuditAn audited content read campaigns.enrollment.read, when the request names an include value
Released in1.65.0
Phase 0 hostServed (the hosted api pins 1.65.0)

Answers one enrollment (1.65.0); its variables only when the read names include=content, which needs campaigns:content and is an audited content read.

Request

Set VOCAL_API to the base URL of your API and VOCAL_API_KEY to an API key with the campaigns:read scope (Authentication and keys). Replace each placeholder, such as agt_... or <name>, with your own value.

curl "$VOCAL_API/v1/campaigns/cmp_.../contacts/cen_..." \
  -H "Authorization: Bearer $VOCAL_API_KEY"

Parameters

NameInTypeRequiredDescription
campaign_idpathCampaignIdyesThe id of a Campaign: cmp_ and the row's UUIDv7 in 26 Crockford base32 characters. Opaque and safe to log.
enrollment_idpathCampaignEnrollmentIdyesThe id of the enrollment of one Contact in a Campaign: cen_ and the row's UUIDv7 in 26 Crockford base32 characters. Opaque and safe to log.
includequeryarray of CampaignEnrollmentIncludenocontent adds the variables (campaigns:content).

Responses

StatusContent typeShapeError codes
200application/jsonCampaignEnrollment
400application/jsonErrorEnvelopeinvalid_request
401application/jsonErrorEnvelopeunauthenticated
403application/jsonErrorEnvelopeforbidden
404application/jsonErrorEnvelopenot_found
429application/jsonErrorEnveloperate_limited
500application/jsonErrorEnvelopeinternal_error

Fields of the 200 answer

The shape is CampaignEnrollment.

FieldTypeRequiredDescription
all_attemptsintegeryesEvery attempt, those that never rang included.
armCampaignArmKeyyes
attemptsintegeryesAttempts that reached ringing.
campaign_idCampaignIdyes
completed_atTimestamp or nullyes
contact_idContactIdyes
created_atTimestampyes
dispositionCampaignDisposition or nullyesThe terminal disposition of a completed enrollment; null otherwise.
idCampaignEnrollmentIdyes
ineligible_codeCampaignIneligibleCode or nullyes
last_call_idCallId or nullyes
last_ended_reasonEndedReason or nullyes
live_call_idCallId or nullyes
next_attempt_atTimestamp or nullyes
object"campaign_enrollment"yes
outcome_idOutcomeId or nullyes
phone_number_idPhoneNumberId or nullyesThe number assigned at the first permit, sticky for the enrollment.
priorityintegeryes
process_idProcessInstanceId or nullyesThe contact instance, started with the first permit; null before it.
statusCampaignEnrollmentStatusyes
variablesobject or nullyesPer-enrollment variables. Content; null unless the read names include=content.