API reference

Generated from the same schemas that shape and validate live responses, so this page cannot drift from what the API actually returns.

Machine readable spec

The OpenAPI 3.1 document is served at /openapi.json. Point your client generator at it directly. Authentication is HTTP bearer; supply your key as Authorization: Bearer epk_live_XXXX.

Version 1.1.0. Base URL https://app.enrollpilot.com/api/v1.

Endpoints

get/providersList providers

Requires the providers:read scope.

Parameters

NameInTypeDescription
limitqueryintegerMaximum rows to return. Default 50, maximum 200.
cursorquerystringOpaque keyset cursor returned as nextCursor by the previous page. Omit for the first page.
updated_sincequerystringISO 8601 timestamp. Returns rows whose updatedAt is greater than or equal to this value. The boundary is inclusive, so overlap your watermark and deduplicate by id.
activequeryenum(true, false)Filter by employment status. Omit to return both active and inactive providers.

Responses

  • 200A page of results.
  • 400invalid_request: a query parameter failed validation.
  • 401invalid_key: the key is missing, malformed, unknown, revoked or expired.
  • 402payment_past_due or subscription_inactive: API access is suspended for billing reasons.
  • 403insufficient_scope or api_disabled.
  • 404not_found: unknown id, or an id belonging to another organization.
  • 405method_not_allowed: the endpoint does not support this HTTP method. The Allow header lists the methods it does support.
  • 429rate_limited: per-key or per-organization limit exceeded.
  • 500internal_error.
  • 503api_unavailable or api_temporarily_unavailable.
get/providers/{id}Get a provider

Requires the providers:read scope. Ids belonging to another organization return 404.

Parameters

NameInTypeDescription
idpathstringResource id.

Responses

  • 200The requested resource.
  • 400invalid_request: a query parameter failed validation.
  • 401invalid_key: the key is missing, malformed, unknown, revoked or expired.
  • 402payment_past_due or subscription_inactive: API access is suspended for billing reasons.
  • 403insufficient_scope or api_disabled.
  • 404not_found: unknown id, or an id belonging to another organization.
  • 405method_not_allowed: the endpoint does not support this HTTP method. The Allow header lists the methods it does support.
  • 429rate_limited: per-key or per-organization limit exceeded.
  • 500internal_error.
  • 503api_unavailable or api_temporarily_unavailable.
get/provider-groupsList provider groups

Requires the groups:read scope.

Parameters

NameInTypeDescription
limitqueryintegerMaximum rows to return. Default 50, maximum 200.
cursorquerystringOpaque keyset cursor returned as nextCursor by the previous page. Omit for the first page.
updated_sincequerystringISO 8601 timestamp. Returns rows whose updatedAt is greater than or equal to this value. The boundary is inclusive, so overlap your watermark and deduplicate by id.

Responses

  • 200A page of results.
  • 400invalid_request: a query parameter failed validation.
  • 401invalid_key: the key is missing, malformed, unknown, revoked or expired.
  • 402payment_past_due or subscription_inactive: API access is suspended for billing reasons.
  • 403insufficient_scope or api_disabled.
  • 404not_found: unknown id, or an id belonging to another organization.
  • 405method_not_allowed: the endpoint does not support this HTTP method. The Allow header lists the methods it does support.
  • 429rate_limited: per-key or per-organization limit exceeded.
  • 500internal_error.
  • 503api_unavailable or api_temporarily_unavailable.
get/provider-groups/{id}Get a provider group

Requires the groups:read scope. Ids belonging to another organization return 404.

Parameters

NameInTypeDescription
idpathstringResource id.

Responses

  • 200The requested resource.
  • 400invalid_request: a query parameter failed validation.
  • 401invalid_key: the key is missing, malformed, unknown, revoked or expired.
  • 402payment_past_due or subscription_inactive: API access is suspended for billing reasons.
  • 403insufficient_scope or api_disabled.
  • 404not_found: unknown id, or an id belonging to another organization.
  • 405method_not_allowed: the endpoint does not support this HTTP method. The Allow header lists the methods it does support.
  • 429rate_limited: per-key or per-organization limit exceeded.
  • 500internal_error.
  • 503api_unavailable or api_temporarily_unavailable.
get/enrollmentsList provider enrollment cases

Requires the enrollments:read scope.

Parameters

NameInTypeDescription
limitqueryintegerMaximum rows to return. Default 50, maximum 200.
cursorquerystringOpaque keyset cursor returned as nextCursor by the previous page. Omit for the first page.
updated_sincequerystringISO 8601 timestamp. Returns rows whose updatedAt is greater than or equal to this value. The boundary is inclusive, so overlap your watermark and deduplicate by id.
statusquerystringFilter by enrollment status.
payerquerystringFilter by payer name.
provider_idquerystringFilter by provider id.

Responses

  • 200A page of results.
  • 400invalid_request: a query parameter failed validation.
  • 401invalid_key: the key is missing, malformed, unknown, revoked or expired.
  • 402payment_past_due or subscription_inactive: API access is suspended for billing reasons.
  • 403insufficient_scope or api_disabled.
  • 404not_found: unknown id, or an id belonging to another organization.
  • 405method_not_allowed: the endpoint does not support this HTTP method. The Allow header lists the methods it does support.
  • 429rate_limited: per-key or per-organization limit exceeded.
  • 500internal_error.
  • 503api_unavailable or api_temporarily_unavailable.
get/enrollments/{id}Get an enrollment case

Requires the enrollments:read scope. Ids belonging to another organization return 404.

Parameters

NameInTypeDescription
idpathstringResource id.

Responses

  • 200The requested resource.
  • 400invalid_request: a query parameter failed validation.
  • 401invalid_key: the key is missing, malformed, unknown, revoked or expired.
  • 402payment_past_due or subscription_inactive: API access is suspended for billing reasons.
  • 403insufficient_scope or api_disabled.
  • 404not_found: unknown id, or an id belonging to another organization.
  • 405method_not_allowed: the endpoint does not support this HTTP method. The Allow header lists the methods it does support.
  • 429rate_limited: per-key or per-organization limit exceeded.
  • 500internal_error.
  • 503api_unavailable or api_temporarily_unavailable.
patch/enrollments/{id}Update an enrollment case

Requires the enrollments:write scope. Changes are attributed to the admin who created the key, marked as made through the API, and shown in the enrollment's activity timeline. Send only the fields you want to change, or just a note. Always send expectedStatus when changing status. Send expectedUpdatedAt (the updatedAt you last read) to make sure the enrollment has not changed since you read it; if either precondition fails the response is 409 conflict and nothing is written. Identical notes sent within 2 minutes of each other on the same enrollment are saved once. Returns the updated enrollment.

Parameters

NameInTypeDescription
idpathstringEnrollment case id.

Responses

  • 200The requested resource.
  • 400invalid_request: the body is not valid JSON, has an unknown field, or a field failed validation. The message names the field.
  • 401invalid_key: the key is missing, malformed, unknown, revoked or expired.
  • 402payment_past_due or subscription_inactive: API access is suspended for billing reasons.
  • 403insufficient_scope, api_disabled, or key_owner_inactive (the admin who created this key no longer has write access; create a new key).
  • 404not_found: unknown id, or an id belonging to another organization.
  • 405method_not_allowed: the endpoint does not support this HTTP method. The Allow header lists the methods it does support.
  • 409conflict: the enrollment changed since you read it, or its status is no longer expectedStatus. Fetch it again and retry.
  • 413payload_too_large: the request body is larger than 32 KB.
  • 415unsupported_media_type: send Content-Type: application/json.
  • 429rate_limited: a request limit or a write limit (30 writes per minute per key, 60 per organization) was exceeded. Retry after the Retry-After header.
  • 500internal_error.
  • 503api_unavailable or api_temporarily_unavailable. Writes are refused while rate limiting cannot be enforced; retry after the Retry-After header.
get/group-enrollmentsList group contracts

Requires the enrollments:read scope.

Parameters

NameInTypeDescription
limitqueryintegerMaximum rows to return. Default 50, maximum 200.
cursorquerystringOpaque keyset cursor returned as nextCursor by the previous page. Omit for the first page.
updated_sincequerystringISO 8601 timestamp. Returns rows whose updatedAt is greater than or equal to this value. The boundary is inclusive, so overlap your watermark and deduplicate by id.
statusquerystringFilter by group enrollment status.
payerquerystringFilter by payer name.
group_idquerystringFilter by provider group id.

Responses

  • 200A page of results.
  • 400invalid_request: a query parameter failed validation.
  • 401invalid_key: the key is missing, malformed, unknown, revoked or expired.
  • 402payment_past_due or subscription_inactive: API access is suspended for billing reasons.
  • 403insufficient_scope or api_disabled.
  • 404not_found: unknown id, or an id belonging to another organization.
  • 405method_not_allowed: the endpoint does not support this HTTP method. The Allow header lists the methods it does support.
  • 429rate_limited: per-key or per-organization limit exceeded.
  • 500internal_error.
  • 503api_unavailable or api_temporarily_unavailable.
get/group-enrollments/{id}Get a group contract

Requires the enrollments:read scope. Ids belonging to another organization return 404.

Parameters

NameInTypeDescription
idpathstringResource id.

Responses

  • 200The requested resource.
  • 400invalid_request: a query parameter failed validation.
  • 401invalid_key: the key is missing, malformed, unknown, revoked or expired.
  • 402payment_past_due or subscription_inactive: API access is suspended for billing reasons.
  • 403insufficient_scope or api_disabled.
  • 404not_found: unknown id, or an id belonging to another organization.
  • 405method_not_allowed: the endpoint does not support this HTTP method. The Allow header lists the methods it does support.
  • 429rate_limited: per-key or per-organization limit exceeded.
  • 500internal_error.
  • 503api_unavailable or api_temporarily_unavailable.
get/documentsList document metadata

Requires the documents:read scope.

Parameters

NameInTypeDescription
limitqueryintegerMaximum rows to return. Default 50, maximum 200.
cursorquerystringOpaque keyset cursor returned as nextCursor by the previous page. Omit for the first page.
updated_sincequerystringISO 8601 timestamp. Returns rows whose updatedAt is greater than or equal to this value. The boundary is inclusive, so overlap your watermark and deduplicate by id.
provider_idquerystringFilter by provider id.
group_idquerystringFilter by provider group id.

Responses

  • 200A page of results.
  • 400invalid_request: a query parameter failed validation.
  • 401invalid_key: the key is missing, malformed, unknown, revoked or expired.
  • 402payment_past_due or subscription_inactive: API access is suspended for billing reasons.
  • 403insufficient_scope or api_disabled.
  • 404not_found: unknown id, or an id belonging to another organization.
  • 405method_not_allowed: the endpoint does not support this HTTP method. The Allow header lists the methods it does support.
  • 429rate_limited: per-key or per-organization limit exceeded.
  • 500internal_error.
  • 503api_unavailable or api_temporarily_unavailable.
get/expirablesList expiring credentials

Requires the providers:read scope.

Parameters

NameInTypeDescription
limitqueryintegerMaximum rows to return. Default 50, maximum 200.
cursorquerystringOpaque keyset cursor returned as nextCursor by the previous page. Omit for the first page.
within_daysqueryintegerOnly return items expiring within this many days. Default 365, maximum 730.

Responses

  • 200A page of results.
  • 400invalid_request: a query parameter failed validation.
  • 401invalid_key: the key is missing, malformed, unknown, revoked or expired.
  • 402payment_past_due or subscription_inactive: API access is suspended for billing reasons.
  • 403insufficient_scope or api_disabled.
  • 404not_found: unknown id, or an id belonging to another organization.
  • 405method_not_allowed: the endpoint does not support this HTTP method. The Allow header lists the methods it does support.
  • 429rate_limited: per-key or per-organization limit exceeded.
  • 500internal_error.
  • 503api_unavailable or api_temporarily_unavailable.
get/enrollments/{id}/follow-upsList follow-ups and tasks on an enrollment case

Requires the enrollments:read scope. Notes are never returned. Open items are sorted by due date, soonest first; completed and all are sorted newest first. Ids belonging to another organization return 404.

Parameters

NameInTypeDescription
idpathstringEnrollment case id.
statusqueryenum(open, completed, all)Which items to return. Default open.
limitqueryintegerMaximum rows to return. Default 50, maximum 200.
cursorquerystringOpaque keyset cursor returned as nextCursor by the previous page. Omit for the first page.

Responses

  • 200A page of results.
  • 400invalid_request: a query parameter failed validation.
  • 401invalid_key: the key is missing, malformed, unknown, revoked or expired.
  • 402payment_past_due or subscription_inactive: API access is suspended for billing reasons.
  • 403insufficient_scope or api_disabled.
  • 404not_found: unknown id, or an id belonging to another organization.
  • 405method_not_allowed: the endpoint does not support this HTTP method. The Allow header lists the methods it does support.
  • 429rate_limited: per-key or per-organization limit exceeded.
  • 500internal_error.
  • 503api_unavailable or api_temporarily_unavailable.
post/enrollments/{id}/follow-upsCreate a follow-up or task on an enrollment case

Requires the enrollments:write scope. Changes are attributed to the admin who created the key, marked as made through the API, and shown in the enrollment's activity timeline. The item is assigned to the enrollment's active assignees, who are notified. An identical request sent within 2 minutes returns the existing item with status 200 instead of creating a duplicate.

Parameters

NameInTypeDescription
idpathstringEnrollment case id.

Responses

  • 200An identical follow-up was created in the last 2 minutes; it is returned and nothing new was created.
  • 201The follow-up was created.
  • 400invalid_request: the body is not valid JSON, has an unknown field, or a field failed validation. The message names the field.
  • 401invalid_key: the key is missing, malformed, unknown, revoked or expired.
  • 402payment_past_due or subscription_inactive: API access is suspended for billing reasons.
  • 403insufficient_scope, api_disabled, or key_owner_inactive (the admin who created this key no longer has write access; create a new key).
  • 404not_found: unknown id, or an id belonging to another organization.
  • 405method_not_allowed: the endpoint does not support this HTTP method. The Allow header lists the methods it does support.
  • 413payload_too_large: the request body is larger than 32 KB.
  • 415unsupported_media_type: send Content-Type: application/json.
  • 429rate_limited: a request limit or a write limit (30 writes per minute per key, 60 per organization) was exceeded. Retry after the Retry-After header.
  • 500internal_error.
  • 503api_unavailable or api_temporarily_unavailable. Writes are refused while rate limiting cannot be enforced; retry after the Retry-After header.
post/follow-ups/{id}/completeComplete a follow-up or task

Requires the enrollments:write scope. Changes are attributed to the admin who created the key, marked as made through the API, and shown in the enrollment's activity timeline. Optionally add a closing note. To schedule the next follow-up in the same call, send next (follow-ups only, not tasks). Only items on an enrollment case can be completed through the API.

Parameters

NameInTypeDescription
idpathstringFollow-up or task id, as returned by listEnrollmentFollowUps.

Responses

  • 200The requested resource.
  • 400invalid_request: the body is not valid JSON, has an unknown field, or a field failed validation. The message names the field.
  • 401invalid_key: the key is missing, malformed, unknown, revoked or expired.
  • 402payment_past_due or subscription_inactive: API access is suspended for billing reasons.
  • 403insufficient_scope, api_disabled, or key_owner_inactive (the admin who created this key no longer has write access; create a new key).
  • 404not_found: unknown id, or an id belonging to another organization.
  • 405method_not_allowed: the endpoint does not support this HTTP method. The Allow header lists the methods it does support.
  • 409already_complete: the item was already completed.
  • 413payload_too_large: the request body is larger than 32 KB.
  • 415unsupported_media_type: send Content-Type: application/json.
  • 429rate_limited: a request limit or a write limit (30 writes per minute per key, 60 per organization) was exceeded. Retry after the Retry-After header.
  • 500internal_error.
  • 503api_unavailable or api_temporarily_unavailable. Writes are refused while rate limiting cannot be enforced; retry after the Retry-After header.

Schemas

Fields marked as not always present are omitted from the payload when the key lacks the scope that unlocks them.

Provider

FieldTypeAlways present
additionalSpecialty1string or nullYes
additionalSpecialty1TaxonomyCodestring or nullYes
additionalSpecialty2string or nullYes
additionalSpecialty2TaxonomyCodestring or nullYes
additionalSpecialty3string or nullYes
additionalSpecialty3TaxonomyCodestring or nullYes
additionalSpecialty4string or nullYes
additionalSpecialty4TaxonomyCodestring or nullYes
additionalSpecialty5string or nullYes
additionalSpecialty5TaxonomyCodestring or nullYes
billingAddressstring or nullYes
billingAddressLine2string or nullYes
billingCitystring or nullYes
billingStatestring or nullYes
billingZipstring or nullYes
birthCitystring or nullNo
birthCountrystring or nullNo
caqhIdstring or nullYes
createdAtstringYes
dateOfBirthstring or nullNo
ethnicitystring or nullNo
ethnicityDetailstring or nullNo
firstNamestring or nullYes
genderstring or nullNo
groupMembershipsarray of objectYes
idstringYes
isActivebooleanYes
languagesarray of stringYes
lastNamestring or nullYes
medicaidParticipationstring or nullYes
medicaidStatesarray of stringYes
medicareParticipationstring or nullYes
medicareStatesarray of stringYes
middleNamestring or nullYes
namestringYes
npistringYes
otherEmailsarray of stringYes
personalAddressstring or nullYes
personalAddressLine2string or nullYes
personalCitystring or nullYes
personalCountystring or nullYes
personalEmailstring or nullYes
personalFaxstring or nullYes
personalPhonestring or nullYes
personalStatestring or nullYes
personalZipstring or nullYes
providerIdsarray of objectYes
secondarySpecialtystring or nullYes
secondarySpecialtyTaxonomyCodestring or nullYes
specialtystring or nullYes
specialtyTaxonomyCodestring or nullYes
startDatestring or nullYes
suffixstring or nullYes
taxonomyCodestring or nullYes
telehealthServicesbooleanYes
termedDatestring or nullYes
typestring or nullYes
updatedAtstringYes

ProviderGroup

FieldTypeAlways present
createdAtstringYes
dbastring or nullYes
groupIdsarray of objectYes
idstringYes
locationsarray of objectYes
namestringYes
npistring or nullYes
tinstring or nullYes
updatedAtstringYes

Enrollment

FieldTypeAlways present
assigneesarray of stringYes
caseNumberstring or nullYes
dueDatestring or nullYes
effectiveDatestring or nullYes
enrollmentTypeenum(MEDICARE_FFS, MEDICAID_FFS, PRIVATE_PAYER) or nullYes
idstringYes
lobsarray of objectYes
missingCountintegerYes
nextFollowUpAtstring or nullYes
nextFollowUpTypeenum(FOLLOW_UP, TASK, REMINDER, PHONE, EMAIL, FAX, MAIL, WEBSITE) or nullYes
npistringYes
participationsarray of objectYes
payerNamestringYes
providerIdstringYes
providerNamestringYes
requirementsarray of objectYes
statestring or nullYes
statusenum(NOT_STARTED, DATA_COLLECTION, DRAFT, PENDING_SIGNATURE, SUBMITTED, ACKNOWLEDGED, PRE_SCREENING, PENDED_AI, PSV_IN_PROGRESS, PEER_REVIEW, VERIFIED, COMMITTEE_REVIEW, APPROVED_PENDING_NETWORK, NEGOTIATION, PENDING_EXECUTION, FULLY_EXECUTED, LOADING_ENTRY, LINKED_ASSOCIATED, PENDING_DIRECTORY, PAR, RE_CREDENTIALING, RE_VALIDATION, WITHDRAWN, DENIED, TERMINATED, DE_PARD, SUSPENDED, ARCHIVED, LOCUM_TENENS, RECIPROCITY_TRANSFER)Yes
statusReasonstring or nullYes
updatedAtstringYes

GroupEnrollment

FieldTypeAlways present
assigneesarray of stringYes
effectiveDatestring or nullYes
enrollmentTypestring or nullYes
groupNpistring or nullYes
idstringYes
lobsarray of objectYes
payerNamestringYes
providerGroupIdstringYes
providerGroupNamestringYes
statestring or nullYes
statusstringYes
statusReasonstring or nullYes
updatedAtstringYes

Document

FieldTypeAlways present
documentTypestring or nullYes
expiresOnstring or nullYes
fileNamestring or nullYes
idstringYes
providerGroupIdstring or nullYes
providerIdstring or nullYes
statusenum(PENDING, RECEIVED, VERIFIED, REJECTED, EXPIRED)Yes
updatedAtstringYes
uploadedAtstringYes

Expirable

FieldTypeAlways present
categorystringYes
daysUntilExpiryintegerYes
expiresOnstringYes
labelstringYes
sourceIdstringYes
sourceTypeenum(PROVIDER_ID, DOCUMENT, ENROLLMENT, ADDRESS_MEDICAID, SUPERVISORY_AGREEMENT, GROUP_ID, GROUP_ADDRESS_MEDICAID, GROUP_DOCUMENT)Yes
statusenum(EXPIRED, EXPIRING_SOON, UPCOMING)Yes

FollowUp

FieldTypeAlways present
completedAtstring or nullYes
createdAtstringYes
dueDatestringYes
followUpContactstring or nullYes
followUpFormatenum(PHONE, EMAIL, FAX, MAIL, WEBSITE) or nullYes
idstringYes
isCompletebooleanYes
referenceIdstring or nullYes
titlestringYes
typeenum(FOLLOW_UP, TASK, REMINDER)Yes

EnrollmentUpdate

FieldTypeAlways present
caseNumberstring or nullNo
dueDatestring or nullNo
effectiveDatestring or nullNo
expectedStatusenum(NOT_STARTED, DATA_COLLECTION, DRAFT, PENDING_SIGNATURE, SUBMITTED, ACKNOWLEDGED, PRE_SCREENING, PENDED_AI, PSV_IN_PROGRESS, PEER_REVIEW, VERIFIED, COMMITTEE_REVIEW, APPROVED_PENDING_NETWORK, NEGOTIATION, PENDING_EXECUTION, FULLY_EXECUTED, LOADING_ENTRY, LINKED_ASSOCIATED, PENDING_DIRECTORY, PAR, RE_CREDENTIALING, RE_VALIDATION, WITHDRAWN, DENIED, TERMINATED, DE_PARD, SUSPENDED, ARCHIVED, LOCUM_TENENS, RECIPROCITY_TRANSFER)No
expectedUpdatedAtstringNo
notestringNo
revalidationDatestring or nullNo
statusenum(NOT_STARTED, DATA_COLLECTION, DRAFT, PENDING_SIGNATURE, SUBMITTED, ACKNOWLEDGED, PRE_SCREENING, PENDED_AI, PSV_IN_PROGRESS, PEER_REVIEW, VERIFIED, COMMITTEE_REVIEW, APPROVED_PENDING_NETWORK, NEGOTIATION, PENDING_EXECUTION, FULLY_EXECUTED, LOADING_ENTRY, LINKED_ASSOCIATED, PENDING_DIRECTORY, PAR, RE_CREDENTIALING, RE_VALIDATION, WITHDRAWN, DENIED, TERMINATED, DE_PARD, SUSPENDED, ARCHIVED, LOCUM_TENENS, RECIPROCITY_TRANSFER)No
statusReasonstring or nullNo
tinStatusenum(Linked, Not Linked, Unknown) or nullNo

FollowUpCreate

FieldTypeAlways present
contactstringNo
dueDatestringYes
formatenum(PHONE, EMAIL, FAX, MAIL, WEBSITE)No
notesstringNo
referenceIdstringNo
titlestringNo
typeenum(FOLLOW_UP, TASK)Yes

FollowUpComplete

FieldTypeAlways present
nextobjectNo
notestringNo

FollowUpCompleteResult

FieldTypeAlways present
completedFollowUpYes
nextFollowUp or nullYes

Error

Every failure uses this envelope. Branch on `code`; messages may be reworded.

FieldTypeAlways present
errorobjectYes

JsonValue

Any JSON value.

string or number or boolean or null or array of JsonValue or object