GET /messagesGEThttps://api.courier.com/messagesFetch the statuses of messages you've previously sent.QUERY PARAMScursorstringA unique identifier that allows for fetching the next set of message statuses.eventstringA unique identifier representing the event that was used to send the event.liststringA unique identifier representing the list the message was sent to.messageIdstringA unique identifier representing the message_id returned from either /send or /send/list.notificationstringA unique identifier representing the notification that was used to send the event.recipientstringA unique identifier representing the recipient associated with the requested profile.statusstringAn indicator of the current status of the message. Multiple status values can be passed in.Responses200 OKobjectAUTH TOKENTry ItcURLNode.jsRubyPythonGoPHPcurl --request GET \ --url https://api.courier.com/messages?cursor=MTU4OTQ5NTI1ODY4NywxLTVlYmRjNWRhLTEwODZlYWFjMWRmMjEwMTNjM2I0ZjVhMA%3D%3D&event=welcome-message&list=event-change&messageId=1-5fa64f03-2a3d64b92a1f1a061ab4c3c3¬ification=1-5fa64f03-2a3d64b92a1f1a061ab4c3c3&recipient=0460766e-8463-4905-ae98-b72c7aef41d6&status=OPENED \ --header 'Accept: application/json' Copy// Dependencies to install:// $ npm install node-fetch --saveconst fetch = require('node-fetch');const options = { method: 'GET', headers: { Accept: 'application/json' },};fetch('https://api.courier.com/messages?cursor=MTU4OTQ5NTI1ODY4NywxLTVlYmRjNWRhLTEwODZlYWFjMWRmMjEwMTNjM2I0ZjVhMA%3D%3D&event=welcome-message&list=event-change&messageId=1-5fa64f03-2a3d64b92a1f1a061ab4c3c3¬ification=1-5fa64f03-2a3d64b92a1f1a061ab4c3c3&recipient=0460766e-8463-4905-ae98-b72c7aef41d6&status=OPENED', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));Copyrequire 'uri'require 'net/http'require 'openssl'url = URI("https://api.courier.com/messages?cursor=MTU4OTQ5NTI1ODY4NywxLTVlYmRjNWRhLTEwODZlYWFjMWRmMjEwMTNjM2I0ZjVhMA%3D%3D&event=welcome-message&list=event-change&messageId=1-5fa64f03-2a3d64b92a1f1a061ab4c3c3¬ification=1-5fa64f03-2a3d64b92a1f1a061ab4c3c3&recipient=0460766e-8463-4905-ae98-b72c7aef41d6&status=OPENED")http = Net::HTTP.new(url.host, url.port)http.use_ssl = truerequest = Net::HTTP::Get.new(url)request["Accept"] = 'application/json'response = http.request(request)puts response.read_bodyCopy# Dependencies to install:# $ python -m pip install requestsimport requestsurl = "https://api.courier.com/messages?cursor=MTU4OTQ5NTI1ODY4NywxLTVlYmRjNWRhLTEwODZlYWFjMWRmMjEwMTNjM2I0ZjVhMA%3D%3D&event=welcome-message&list=event-change&messageId=1-5fa64f03-2a3d64b92a1f1a061ab4c3c3¬ification=1-5fa64f03-2a3d64b92a1f1a061ab4c3c3&recipient=0460766e-8463-4905-ae98-b72c7aef41d6&status=OPENED"headers = { "Accept": "application/json"}response = requests.request("GET", url, headers=headers)print(response.text)Copypackage mainimport ( "fmt" "net/http" "io/ioutil")func main() { url := "https://api.courier.com/messages?cursor=MTU4OTQ5NTI1ODY4NywxLTVlYmRjNWRhLTEwODZlYWFjMWRmMjEwMTNjM2I0ZjVhMA%3D%3D&event=welcome-message&list=event-change&messageId=1-5fa64f03-2a3d64b92a1f1a061ab4c3c3¬ification=1-5fa64f03-2a3d64b92a1f1a061ab4c3c3&recipient=0460766e-8463-4905-ae98-b72c7aef41d6&status=OPENED" req, _ := http.NewRequest("GET", url, payload) req.Header.Add("Accept", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body))}Copy<?php// Dependencies to install:// $ composer require guzzlehttp/guzzlerequire_once('vendor/autoload.php');$client = new \GuzzleHttp\Client();$response = $client->request('GET', 'https://api.courier.com/messages?cursor=MTU4OTQ5NTI1ODY4NywxLTVlYmRjNWRhLTEwODZlYWFjMWRmMjEwMTNjM2I0ZjVhMA%3D%3D&event=welcome-message&list=event-change&messageId=1-5fa64f03-2a3d64b92a1f1a061ab4c3c3¬ification=1-5fa64f03-2a3d64b92a1f1a061ab4c3c3&recipient=0460766e-8463-4905-ae98-b72c7aef41d6&status=OPENED', [ 'headers' => [ 'Accept' => 'application/json', ],]);echo $response->getBody();CopyResponse Example200 OK{ "paging": { "cursor": "MTU4OTQ5NTI1ODY4NywxLTVlYmRjNWRhLTEwODZlYWFjMWRmMjEwMTNjM2I0ZjVhMA==", "more": true }, "results": [ { "id": "1-5e2b2615-05efbb3acab9172f88dd3f6f", "status": "DELIVERED", "enqueued": 1562611073426, "sent": 1562611074138, "delivered": 1562611077139, "opened": 1562611083411, "clicked": 1562611084123, "recipient": "CC607F6E84A34305AE98B72C", "event": "my-event", "notification": "TAFGNB3GNQ4MZVHW4WV4R8Q8ZVN4", "error": "400 Bad Request", "reason": "UNSUBSCRIBED" } ]}Copy