Sms
Following Query Parameters can be used to sort or find approporiately
We can use any combination of this parameters in single request: Example: {{url}}/{{tenantName}}/{{instanceName}}/patients/{{patientId}}/sms?status=DELIVERED,FAILED&phone=+15625345678&starred=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
When specified, size per page
20Example: 100When specified, search by 'to' or 'from' phone
%2B14084757104When specified, search by status [SCHEDULED, ACCEPTED, SENT, RECEIVED, DELIVERED, UNDELIVERED, FAILED, UNRECOGNISED]
ACCEPTED,SENTWhen specified, page number
0Example: 0Allows one to specify the sort order of the returned sms collection
date%2CDESCWhen specified, will execute a search based on message field
When specified, search by sender id
When specified, search by receiver id
When specified, search by direction (IN or OUT)
When specified, search by starred (boolean value) field (as an important sms)
When specified, search by 'from' phone
When specified, search by 'to' phone
When specified, search by sender name
When specified, search by receiver name
Paginated list of SMS messages
Standard paginated response wrapper.
Total number of matching records
Total number of pages
Current page number (zero-based)
Page size
Number of elements on the current page
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.
GET /{tenantName}/{instanceName}/patients/{patientId}/sms HTTP/1.1
Host: api.live.welkincloud.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"content": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z",
"createdBy": "123e4567-e89b-12d3-a456-426614174000",
"updatedBy": "123e4567-e89b-12d3-a456-426614174000",
"createdByName": "text",
"updatedByName": "text",
"sendNow": true,
"sentAt": "2026-01-01T00:00:00.000Z",
"receivedAt": "2026-01-01T00:00:00.000Z",
"deletedAt": "2026-01-01T00:00:00.000Z",
"date": "2026-01-01T00:00:00.000Z",
"careTeam": "text",
"patientInfo": "text",
"sender": "123e4567-e89b-12d3-a456-426614174000",
"senderType": "CS_TOOL_CLIENT",
"senderName": "text",
"from": "text",
"receiver": "123e4567-e89b-12d3-a456-426614174000",
"receiverType": "CS_TOOL_CLIENT",
"receiverName": "text",
"to": "text",
"direction": "OUT",
"externalId": "text",
"starred": true,
"errorMessage": "text",
"assignedBy": "123e4567-e89b-12d3-a456-426614174000",
"assignedByName": "text",
"hasHistory": true,
"unrecognized": true,
"message": "text",
"parts": 1,
"status": "SCHEDULED",
"messageType": "CARE_TEAM",
"phoneId": "123e4567-e89b-12d3-a456-426614174000",
"attachments": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"originalName": "text",
"size": 1,
"contentType": "text",
"storageKey": "text"
}
],
"attachmentsFromTemplate": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"originalName": "text",
"size": 1,
"contentType": "text",
"storageKey": "text"
}
],
"skipEvent": true
}
],
"pageable": {
"sort": {
"sorted": true,
"unsorted": true,
"empty": true
},
"pageSize": 1,
"pageNumber": 1,
"offset": 1,
"unpaged": true,
"paged": true
},
"totalElements": 1,
"totalPages": 1,
"last": true,
"first": true,
"number": 1,
"size": 1,
"numberOfElements": 1,
"empty": true,
"sort": {
"sorted": true,
"unsorted": true,
"empty": true
}
}{{url}} / {{tenantName}} / {{instanceName}} / patients / {{patientId}} / sms / {{uuid}}
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
UUID of the resource
SMS record
CARE_TEAMPossible values: 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.
GET /{tenantName}/{instanceName}/patients/{patientId}/sms/{uuid} HTTP/1.1
Host: api.live.welkincloud.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z",
"createdBy": "123e4567-e89b-12d3-a456-426614174000",
"updatedBy": "123e4567-e89b-12d3-a456-426614174000",
"createdByName": "text",
"updatedByName": "text",
"sendNow": true,
"sentAt": "2026-01-01T00:00:00.000Z",
"receivedAt": "2026-01-01T00:00:00.000Z",
"deletedAt": "2026-01-01T00:00:00.000Z",
"date": "2026-01-01T00:00:00.000Z",
"careTeam": "text",
"patientInfo": "text",
"sender": "123e4567-e89b-12d3-a456-426614174000",
"senderType": "CS_TOOL_CLIENT",
"senderName": "text",
"from": "text",
"receiver": "123e4567-e89b-12d3-a456-426614174000",
"receiverType": "CS_TOOL_CLIENT",
"receiverName": "text",
"to": "text",
"direction": "OUT",
"externalId": "text",
"starred": true,
"errorMessage": "text",
"assignedBy": "123e4567-e89b-12d3-a456-426614174000",
"assignedByName": "text",
"hasHistory": true,
"unrecognized": true,
"message": "text",
"parts": 1,
"status": "SCHEDULED",
"messageType": "CARE_TEAM",
"phoneId": "123e4567-e89b-12d3-a456-426614174000",
"attachments": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"originalName": "text",
"size": 1,
"contentType": "text",
"storageKey": "text"
}
],
"attachmentsFromTemplate": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"originalName": "text",
"size": 1,
"contentType": "text",
"storageKey": "text"
}
],
"skipEvent": true
}Request to receive sms attachment.
smsId - SMS ID
fileId - file id to be taken from the attachments block
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
smsId path parameter
UUID of the uploaded file
Binary attachment file.
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.
GET /{tenantName}/{instanceName}/patients/{patientId}/sms/{smsId}/attachments/{fileId} HTTP/1.1
Host: api.live.welkincloud.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Last updated
Was this helpful?