Skip to main content

Send a practitioner credentialing outreach email

POST 

/credentialing-outreaches

Sends a credentialing outreach email for a practitioner workflow via SendGrid and persists an outreach record in the DAL. Call this after a practitioner credentialing workflow is active and you need to contact one or more recipients; for facility credentialing outreach, use the facility-specific outreach endpoint instead. The request body must include at least one recipient in toEmails. For a single-workflow outreach, supply workflowId. For a multi-workflow (multi-tenant) outreach, supply workflowIds (two or more entries) and initiatingWorkflowId, which must be a member of workflowIds; attachments are not permitted on multi-workflow requests. Multi-tenant outreach must be enabled via the OUTREACH_MULTI_TENANT_ENABLED feature flag; when disabled, a multi-workflow request returns 503. This operation is not idempotent - each call dispatches a new email via SendGrid and persists a new outreach record. Shared credentialing send: when initiatingWorkflowId belongs to a shared credentialing workflow, workflowIds (one or more of its member workflows) selects the tenants the one email covers. Every selected workflow must be a member (400 SHARED_OUTREACH_WORKFLOW_NOT_IN_RUN), none may be locked (409 SHARED_OUTREACH_TENANT_LOCKED), the caller needs outreach permission in every selected tenant (403 TENANT_OUTREACH_NOT_PERMITTED), and reasons must come from the anchor group's outreach settings (400 SHARED_OUTREACH_REASON_NOT_CONFIGURED). Nothing is sent when a check fails. The outreach records participatingTenants; CC is sent as given; no workflow status changes.

Request​

Responses​

Outreach email sent successfully. The response body shape depends on the request type: a single-workflow request (workflowId supplied) returns a bare string containing the created outreach record ID; a multi-workflow request (workflowIds with more than one entry) returns a MultiTenantOutreachResult object with an outreachId and a sends array describing the per-workflow send status.