Loading...

GET /api/sms

If a driver says a pickup notice never arrived, look for the message in the SMS history of the account charged for sending it. If another account supplies the licenses, the message is recorded in that account’s history. Narrow the search to the time when the notice was expected.

Messages appear newest first. Match the phone number and text to identify the message, then check whether it is marked as sent, sending or failed. The cost may be an estimate until the final amount is known. If sending failed, the entry may also give the reason.

Request Details

HTTP method GET
Path /api/sms

Request Parameters

Query parameters

ParameterTypeRequiredDescription
from
toDate-timeOptional
Date-timeNoInclusive start and end date-times. Use UTC or an explicit offset. If to is absent, the end is now. If from is absent, the start is 24 hours before the end.
limitIntegerOptionalIntegerNoDefaults to 200 messages. Values below 1 are raised to 1 and values above 1000 are reduced to 1000.

Authentication Required

Requires read permission on the SMS page.

Send the token in the Authorization: Bearer {token} header. See Authentication.

Example Request

GET /api/sms?from=2027-01-10T00:00:00Z&to=2027-01-11T00:00:00Z&limit=20 HTTP/1.1 Host: api.plaspy.com Authorization: Bearer {token}

Response Parameters

The Presence column describes an HTTP 200 response. Conditional fields are omitted when they have no value. For a list, presence applies to each returned item.

Each entry in messages can include an ID, UTC date, number, message text, user and device. The status is sent, failed or sending. The value is the final cost or, if unavailable, the estimate. A failed message can include a reason in error.

FieldTypePresenceDescription
messagesObject arrayAlwaysObject arrayAlwaysMessages in the period, newest first.
apiUsageIntegerAlwaysIntegerAlwaysUsage units for this request.
apiDailyUsageIntegerAlwaysIntegerAlwaysAccount usage for the day before this request is added.

Fields in each messages item

FieldTypePresenceDescription
idStringAlwaysStringAlwaysMessage ID.
dateDate-timeAlwaysDate-timeAlwaysMessage time in UTC.
numberStringAlwaysStringAlwaysRecipient’s phone number.
messageStringConditionalStringConditionalText of the SMS.
statusStringAlwaysStringAlwaysSending status: sent, failed or sending.
valueNumberConditionalNumberConditionalFinal cost, or the estimate if the final cost is unavailable.
userStringConditionalStringConditionalName of the associated user, if available.
deviceStringConditionalStringConditionalName of the associated device, if available.
errorStringConditionalStringConditionalReason for the failure, when available.

Example Successful Response

The example shows an HTTP 200 response.

{ "messages": [ { "id": "example-sms", "date": "2027-01-10T14:30:00", "number": "+12025550127", "message": "Delivery complete", "status": "sent", "value": 0.05 } ], "apiUsage": 1, "apiDailyUsage": 24 }

Errors

HTTP statusWhen it occurs
400If a date or limit does not have the expected format. If the request quota has been reached, error contains the reason.
401If a valid Bearer token is missing.
403If the user lacks the required permission. The reason appears in error.
500An unexpected error occurred while processing the request.

In an error response that includes success, its value is false and error contains the message. Field validation failures can appear in the errors object, with a list of messages for each field.

Example Error Response

{ "success": false, "error": "Your user does not have permission to do this." }
Index
Questions?

We answer all support request within 24 business hours approximately, If you have a question that needs an immediate resolution, please contact us by other way.

We answer you in business hours, as soon as possible. We are located in Bogotá, Colombia, time zone (GMT-5).

Last modification: 2026-11-30 11:01:21