List group texts
const url = 'https://api.pingram.io/logs/group-texts';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.pingram.io/logs/group-texts \ --header 'Authorization: Bearer <token>'List group texts for this account, newest first. Each row includes the numbers, the text, and when each number was delivered or failed.
Authorizations
Parameters
Query Parameters
Maximum number of group texts to return (default 25, max 50)
Pagination cursor from a previous response
Responses
200
Successful response
Response for GET /logs/group-texts.
object
Group texts, newest first.
One group text, outbound or inbound. Times are facts. A later failure does not erase a delivery.
object
Tracking id of this group text.
Whether this row is a send or a message someone typed.
Sending number, or the number that typed an inbound message.
The other numbers, in the order they were sent.
Text that was sent or received.
Subject shown with an outbound group text.
Pictures or files attached to this group text.
Sum of the per-recipient multimedia message price.
Notification type from the send.
When the send was accepted.
When the first number was delivered.
When the send was rejected.
Why the send was rejected.
Extra detail for support. Omitted for other callers.
When each number was delivered.
object
When each number failed.
object
Why each number failed.
object
Number on your account that is in an inbound group text.
When an inbound message arrived.
Pass this as cursor to load the next page.
Example
{ "logs": [ { "direction": "outbound" } ]}400
Bad Request - validation errors, invalid input
Standard error response for API errors.
object
Unique tracking ID for the request.
Structured error details for API error responses.
object
Machine-readable error code.
Human-readable error message.
Actionable hint for fixing the error.
Examplegenerated
{ "trackingId": "example", "error": { "code": "example", "message": "example", "fix": "example" }}401
Unauthorized
402
Payment Required - usage limits exceeded
Standard error response for API errors.
object
Unique tracking ID for the request.
Structured error details for API error responses.
object
Machine-readable error code.
Human-readable error message.
Actionable hint for fixing the error.
Examplegenerated
{ "trackingId": "example", "error": { "code": "example", "message": "example", "fix": "example" }}500
Internal Server Error
502
Bad Gateway - provider error
Standard error response for API errors.
object
Unique tracking ID for the request.
Structured error details for API error responses.
object
Machine-readable error code.
Human-readable error message.
Actionable hint for fixing the error.
Examplegenerated
{ "trackingId": "example", "error": { "code": "example", "message": "example", "fix": "example" }}