Patient Program
Bearer token obtained from POST /{tenantName}/admin/api_clients/{clientName}. Valid for 60 minutes.
Your organization (tenant) name, e.g. acme-health
acme-healthYour environment name: live, sandbox, or a custom name
liveUUID of the patient record
prog_name path parameter
Assigned or unassigned programs
Pagination: page number
0Pagination: page size
20Sort field with sorting order(asc or desc) after coma
Active patient program
trueBad request — the request could not be understood or was missing required parameters.
Unauthorized — the Bearer token is missing, expired, or invalid.
Forbidden — the API client role does not have permission for this resource. Check the role and security policy in Admin.
Not found — the requested resource does not exist.
Too many requests — rate limit exceeded. Implement exponential backoff.
Internal server error.
GET /{tenantName}/{instanceName}/patients/{patientId}/programs/current/{prog_name} HTTP/1.1
Host: api.live.welkincloud.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdByName": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedByName": "text",
"updatedAt": "2026-01-01T00:00:00.000Z",
"programName": "text",
"programTitle": "text",
"programDescription": "text",
"assigned": true,
"patientId": "123e4567-e89b-12d3-a456-426614174000",
"currentPhase": {
"timestamp": "2026-01-01T00:00:00.000Z",
"createdBy": "123e4567-e89b-12d3-a456-426614174000",
"createdByName": "text",
"name": "text",
"title": "text",
"description": "text",
"currentVersion": "text",
"deleted": true
},
"status": "NOT_STARTED",
"compatibleWithCurrentVersion": true,
"pathHistory": [
{
"timestamp": "2026-01-01T00:00:00.000Z",
"createdBy": "123e4567-e89b-12d3-a456-426614174000",
"createdByName": "text",
"name": "text",
"title": "text",
"description": "text",
"currentVersion": "text",
"deleted": true
}
]
}Bearer token obtained from POST /{tenantName}/admin/api_clients/{clientName}. Valid for 60 minutes.
Your organization (tenant) name, e.g. acme-health
acme-healthYour environment name: live, sandbox, or a custom name
liveUUID of the patient record
prog_id path parameter
Assigned or unassigned programs
Pagination: page number
0Pagination: page size
20Sort field with sorting order(asc or desc) after coma
Patient program enrollment record (active or finished)
trueBad request — the request could not be understood or was missing required parameters.
Unauthorized — the Bearer token is missing, expired, or invalid.
Forbidden — the API client role does not have permission for this resource. Check the role and security policy in Admin.
Not found — the requested resource does not exist.
Too many requests — rate limit exceeded. Implement exponential backoff.
Internal server error.
GET /{tenantName}/{instanceName}/patients/{patientId}/programs/history/{prog_id} HTTP/1.1
Host: api.live.welkincloud.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdByName": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedByName": "text",
"updatedAt": "2026-01-01T00:00:00.000Z",
"programName": "text",
"programTitle": "text",
"programDescription": "text",
"assigned": true,
"patientId": "123e4567-e89b-12d3-a456-426614174000",
"currentPhase": {
"timestamp": "2026-01-01T00:00:00.000Z",
"createdBy": "123e4567-e89b-12d3-a456-426614174000",
"createdByName": "text",
"name": "text",
"title": "text",
"description": "text",
"currentVersion": "text",
"deleted": true
},
"status": "NOT_STARTED",
"compatibleWithCurrentVersion": true,
"pathHistory": [
{
"timestamp": "2026-01-01T00:00:00.000Z",
"createdBy": "123e4567-e89b-12d3-a456-426614174000",
"createdByName": "text",
"name": "text",
"title": "text",
"description": "text",
"currentVersion": "text",
"deleted": true
}
]
}HTTP Request
DELETE /{tenantName}/{instanceName}/patients/{patientId}/programs/{programId}
in our example it would be:
DELETE https://api.live.welkincloud.io/gh/sb-demo/patients/08632f11-cb33-4b5b-aece-aaa360f9f747/programs/11132f11-cb33-4b5b-aece-abc125fed987
Responses
200
OK
401
Unauthorized
403
Forbidden
404
Not Found
Note: the backend resolves this by patient-program enrollment ID, not by program name — confirm the exact identifier your gateway expects before relying on this path shape.
Bearer token obtained from POST /{tenantName}/admin/api_clients/{clientName}. Valid for 60 minutes.
Your organization (tenant) name, e.g. acme-health
acme-healthYour environment name: live, sandbox, or a custom name
liveUUID of the patient record
Machine-readable program name
Patient unassigned from program
No content
Bad request — the request could not be understood or was missing required parameters.
Unauthorized — the Bearer token is missing, expired, or invalid.
Forbidden — the API client role does not have permission for this resource. Check the role and security policy in Admin.
Not found — the requested resource does not exist.
Too many requests — rate limit exceeded. Implement exponential backoff.
Internal server error.
DELETE /{tenantName}/{instanceName}/patients/{patientId}/programs/{programName} HTTP/1.1
Host: api.live.welkincloud.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
HTTP Request
PATCH /{tenantName}/{instanceName}/patients/{patientId}/programs/{programName}
in our example it would be:
PATCH https://api.live.welkincloud.io/gh/sb-demo/patients/08632f11-cb33-4b5b-aece-aaa360f9f747/programs/prog-4
Responses
201
Created
401
Unauthorized
403
Forbidden
404
Not Found
Bearer token obtained from POST /{tenantName}/admin/api_clients/{clientName}. Valid for 60 minutes.
Your organization (tenant) name, e.g. acme-health
acme-healthYour environment name: live, sandbox, or a custom name
liveUUID of the patient record
Machine-readable program name
Updated patient program
trueBad request — the request could not be understood or was missing required parameters.
Unauthorized — the Bearer token is missing, expired, or invalid.
Forbidden — the API client role does not have permission for this resource. Check the role and security policy in Admin.
Not found — the requested resource does not exist.
Too many requests — rate limit exceeded. Implement exponential backoff.
Internal server error.
PATCH /{tenantName}/{instanceName}/patients/{patientId}/programs/{programName} HTTP/1.1
Host: api.live.welkincloud.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 59
{
"status": "NOT_STARTED",
"assigned": true,
"phaseName": "text"
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdByName": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedByName": "text",
"updatedAt": "2026-01-01T00:00:00.000Z",
"programName": "text",
"programTitle": "text",
"programDescription": "text",
"assigned": true,
"patientId": "123e4567-e89b-12d3-a456-426614174000",
"currentPhase": {
"timestamp": "2026-01-01T00:00:00.000Z",
"createdBy": "123e4567-e89b-12d3-a456-426614174000",
"createdByName": "text",
"name": "text",
"title": "text",
"description": "text",
"currentVersion": "text",
"deleted": true
},
"status": "NOT_STARTED",
"compatibleWithCurrentVersion": true,
"pathHistory": [
{
"timestamp": "2026-01-01T00:00:00.000Z",
"createdBy": "123e4567-e89b-12d3-a456-426614174000",
"createdByName": "text",
"name": "text",
"title": "text",
"description": "text",
"currentVersion": "text",
"deleted": true
}
]
}HTTP Request
PATCH /{tenantName}/{instanceName}/patients/{patientId}/programs/{programName}/phases
in our example it would be:
PATCH https://api.live.welkincloud.io/gh/sb-demo/patients/08632f11-cb33-4b5b-aece-aaa360f9f747/programs/lead-management-program/phases
Responses
201
Created
401
Unauthorized
403
Forbidden
404
Not Found
Bearer token obtained from POST /{tenantName}/admin/api_clients/{clientName}. Valid for 60 minutes.
Your organization (tenant) name, e.g. acme-health
acme-healthYour environment name: live, sandbox, or a custom name
liveUUID of the patient record
Machine-readable program name
Updated patient program after phase change
trueBad request — the request could not be understood or was missing required parameters.
Unauthorized — the Bearer token is missing, expired, or invalid.
Forbidden — the API client role does not have permission for this resource. Check the role and security policy in Admin.
Not found — the requested resource does not exist.
Too many requests — rate limit exceeded. Implement exponential backoff.
Internal server error.
PATCH /{tenantName}/{instanceName}/patients/{patientId}/programs/{programName}/phases HTTP/1.1
Host: api.live.welkincloud.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 20
{
"phaseName": "text"
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdByName": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedByName": "text",
"updatedAt": "2026-01-01T00:00:00.000Z",
"programName": "text",
"programTitle": "text",
"programDescription": "text",
"assigned": true,
"patientId": "123e4567-e89b-12d3-a456-426614174000",
"currentPhase": {
"timestamp": "2026-01-01T00:00:00.000Z",
"createdBy": "123e4567-e89b-12d3-a456-426614174000",
"createdByName": "text",
"name": "text",
"title": "text",
"description": "text",
"currentVersion": "text",
"deleted": true
},
"status": "NOT_STARTED",
"compatibleWithCurrentVersion": true,
"pathHistory": [
{
"timestamp": "2026-01-01T00:00:00.000Z",
"createdBy": "123e4567-e89b-12d3-a456-426614174000",
"createdByName": "text",
"name": "text",
"title": "text",
"description": "text",
"currentVersion": "text",
"deleted": true
}
]
}Last updated
Was this helpful?