List this tenant's messages
GET
/v1/messages
const url = 'https://api.vocapable.com/v1/messages?limit=50';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.vocapable.com/v1/messages?limit=50' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”limit
Limit
integer
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
CursorPage[MessageSummary]
object
data
required
Data
Array<object>
MessageSummaryobject
id
required
Id
string
direction
required
MessageDirection
string
to_e164
required
To E164
string
from_e164
required
From E164
string
status
required
MessageStatus
string
inbound_intent
required
Any of:
InboundIntent
Classification of an inbound SMS; STOP writes an internal DNC entry.
string
null
segments
required
Segments
integer
created_at
required
Created At
string format: date-time
updated_at
required
Updated At
string format: date-time
has_more
Has More
boolean
Example
{ "data": [ { "direction": "outbound", "status": "queued", "inbound_intent": "stop" } ], "has_more": false}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}