Skip to main content
GET
/
messages
/
{message_id}
/
history
JavaScript
import Courier from '@trycourier/courier';

const client = new Courier({
  apiKey: 'My API Key',
});

const response = await client.messages.history('message_id');

console.log(response.results);
{
  "results": [
    {}
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

message_id
string
required

A unique identifier representing the message ID

Query Parameters

type
string | null

A supported Message History type that will filter the events returned.

Response

results
object[]
required