Skip to main content
These endpoints let you send SMS messages and read the inbound messages received on your Guava numbers — for example, to poll your own inbox for replies.
All requests require an Authorization: Bearer YOUR_GUAVA_API_KEY header. See the API Overview for details.

Send an SMS

Send a single SMS from one of your Guava numbers.

Request body

A JSON object with the following fields:

Response

On success, returns 201 Created:

Errors

Example

Sending SMS requires your organization to complete SMS brand and campaign registration. See Outbound & SMS Compliance.

List inbound messages

List the inbound messages received on one of your Guava numbers, oldest first. Poll this endpoint to watch for replies.

Parameters

Response

A JSON object with the following fields: Each message has the following fields:

Pagination

Messages are returned oldest first. When has_more is true, request the next page by calling again with start set to the received_at of the last message you received. Because start is inclusive, that boundary message — and any others sharing its exact timestamp — will be returned again, so dedupe by id.

Errors

Example

Sample response:
The + in a phone number must be URL-encoded as %2B in query strings. The curl -G --data-urlencode form above handles this for you.