On this pageGet messageGEThttps://api.courier.com/messages/:message_idFetch the status of a message you've previously sent.PATH PARAMSmessage_idstringrequiredA unique identifier associated with the message you wish to retrieve (results from a send).Responses200 OKobject400 Bad Requestobject404 Message Not FoundobjectAUTH TOKENTry ItcURLNode.jsRubyPythonGoPHPcurl --request GET \ --url https://api.courier.com/messages/1-5e2b2615-05efbb3acab9172f88dd3f6f \ --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/1-5e2b2615-05efbb3acab9172f88dd3f6f', 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/1-5e2b2615-05efbb3acab9172f88dd3f6f")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/1-5e2b2615-05efbb3acab9172f88dd3f6f"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/1-5e2b2615-05efbb3acab9172f88dd3f6f" 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/1-5e2b2615-05efbb3acab9172f88dd3f6f', [ 'headers' => [ 'Accept' => 'application/json', ],]);echo $response->getBody();CopyResponse Example200 OK400 Bad Request404 Message Not Found{ "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", "providers": [ { "sent": 1562611074138, "delivered": 1562611077139, "clicked": 1562611084123, "opened": 1562611083411, "error": "400 Bad Request", "provider": "twilio", "status": "SENT" } ]}CopyExampleMethod: GETURL: https://api.courier.com/messages/1-5e2b2615-05efbb3acab9172f88dd3f6f