Get all SMS

GET {{url}}/{{tenantName}}/{{instanceName}}/patients/{{patientId}}/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

Request Params

KeyDatatypeRequiredDescription
sizenumberWhen specified, size per page
phonestringWhen specified, search by 'to' or 'from' phone
statusstringWhen specified, search by status [SCHEDULED, ACCEPTED, SENT, RECEIVED, DELIVERED, UNDELIVERED, FAILED, UNRECOGNISED]
pagenumberWhen specified, page number
sortstringAllows one to specify the sort order of the returned sms collection
searchnullWhen specified, will execute a search based on message field
sendernullWhen specified, search by sender id
receivernullWhen specified, search by receiver id
directionnullWhen specified, search by direction (IN or OUT)
starrednullWhen specified, search by starred (boolean value) field (as an important sms)
fromnullWhen specified, search by 'from' phone
tonullWhen specified, search by 'to' phone
senderNamenullWhen specified, search by sender name
receiverNamenullWhen specified, search by receiver name