{"_id":"58b516cb4d67aa37003c7461","user":"58402330c0507319000634d5","parentDoc":null,"__v":4,"project":"54eb50e5615ffc1900305a16","version":{"_id":"54eb63b859b1172100334fae","project":"54eb50e5615ffc1900305a16","forked_from":"54eb63a1867e1917009b711d","__v":28,"createdAt":"2015-02-23T17:30:32.501Z","releaseDate":"2015-02-23T17:30:32.501Z","categories":["54eb63b959b1172100334faf","54eb63b959b1172100334fb0","54eb63b959b1172100334fb1","54eb63b959b1172100334fb2","54ed8dd4ab373e2300f50eae","54ed99b2ab373e2300f50ede","55153a6de68daa2f00cff838","551546edbc466623002afe72","5515472ac28d6125001b8884","55154749c28d6125001b8885","555d9b4106dfec0d00d38ea7","5613e06e433e5735007c7708","5624bbb785a31117001c5403","56669e857cc81e0d00253f8e","568b8d837a42220d00498311","56a632277ef6620d00e2f18a","56d8147c3eb4dd0b00201aac","57a9ce2fac6db30e000d7efd","57a9cf4e944ea60e00dc3f74","58172386715dce0f00da4aa0","582dc59ee1b8692300c0dd03","589b19b4fec2730f0082e040","58b04a023529383900a759b5","58b92d1598157a0f004869bf","592e7685c58275000f20174f","59392839e376d4002f8a0474","59393064e376d4002f8a05a1","5947ae0d4005e2000f3a4fec","594a74df1d1de5001ab3517a","5954bc387a147f001b918915","59b8eeeb707542001076d3b6"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1"},"category":{"_id":"57a9cf4e944ea60e00dc3f74","project":"54eb50e5615ffc1900305a16","__v":0,"version":"54eb63b859b1172100334fae","sync":{"url":"","isSync":false},"reference":true,"createdAt":"2016-08-09T12:40:46.182Z","from_sync":false,"order":9,"slug":"email-messages","title":"Email messages"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-02-28T06:20:59.408Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"code":"GET /email/1/logs HTTP/1.1\nHost: api.infobip.com\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\nAccept: application/json","language":"http","name":"JSON"}]},"method":"get","results":{"codes":[{"language":"json","status":200,"name":"","code":"{\n  \"results\": [\n    {\n      \"messageId\": \"64c98929-f160-4e2c-b156-ca88cc733547\",\n      \"to\": \"recipient:::at:::infobip.com\",\n      \"from\": \"sender@infobip.com\",\n      \"text\": \"Test text\",\n      \"sentAt\": \"2016-09-01T10:29:00.440+0000\",\n      \"doneAt\": \"2016-09-01T10:29:01.130+0000\",\n      \"price\": {\n        \"pricePerMessage\": 0.0005,\n        \"currency\": \"EUR\"\n      },\n      \"status\": {\n        \"groupId\": 3,\n        \"groupName\": \"DELIVERED\",\n        \"id\": 5,\n        \"name\": \"DELIVERED_TO_HANDSET\",\n        \"description\": \"Message delivered to handset\"\n      },\n      \"channel\": \"EMAIL\"\n    }\n  ]\n}"}]},"settings":"","auth":"required","params":[{"_id":"57c7e6ec59cd4b0e00b88894","ref":"","in":"query","required":false,"desc":"Sender ID that can be alphanumeric or numeric.","default":"","type":"string","name":"from"},{"_id":"57c7e6ec59cd4b0e00b88893","ref":"","in":"query","required":false,"desc":"The message destination address.","default":"","type":"string","name":"to"},{"_id":"58bd1071b4e9640f00e4bc4a","ref":"","in":"query","required":false,"desc":"The ID uniquely identifies a group of Email requests. This filter will enable you to query delivery reports for all the messages with the same bulk id using just one request.","default":"","type":"string","name":"bulkId"},{"_id":"57c7e6ec59cd4b0e00b88891","ref":"","in":"query","required":false,"desc":"The ID that uniquely identifies the message sent.","default":"","type":"string","name":"messageId"},{"_id":"57c7e6ec59cd4b0e00b88890","ref":"","in":"query","required":false,"desc":"Sent e-mail [status group](http://dev.infobip.com/v1/docs/response-codes#section-statuses-groups). Indicates whether the message is successfully sent, not sent, delivered, not delivered, waiting for delivery or any other possible status.","default":"","type":"string","name":"generalStatus"},{"_id":"57c7e6ec59cd4b0e00b8888f","ref":"","in":"query","required":false,"desc":"Lower limit on date and time of sending SMS.","default":"","type":"datetime","name":"sentSince"},{"_id":"57c7e6ec59cd4b0e00b8888e","ref":"","in":"query","required":false,"desc":"Upper limit on date and time of sending SMS.","default":"","type":"datetime","name":"sentUntil"},{"_id":"57c7e6ec59cd4b0e00b8888d","ref":"","in":"query","required":false,"desc":"Maximal number of messages in returned logs. Default value is 50.","default":"","type":"int","name":"limit"}],"url":"/email/:version/logs"},"isReference":true,"order":4,"body":"None of the query parameters is mandatory for this request. For filtering results any combination of parameters can be used. Some examples are shown below.\n[block:callout]\n{\n  \"type\": \"warning\",\n  \"title\": \"Important\",\n  \"body\": \"**E-mail logs are available for the last 48 hours!**\"\n}\n[/block]\n# Response format\n\nIf successful, response header HTTP status code will be `200 OK` and the message logs will be returned.\n\nIf you try to send message without authorization, you will get a response with HTTP status code `401 Unauthorized`.\n\nIf you are using this method too many times in a short period, you will get status code `429 Too Many Requests`. This prevents misusing logs in cases where reports would be more appropriate. For more information about when to use logs, please see the [documentation](https://dev.infobip.com/docs/logs-vs-delivery-reports).\n\n## SMSLogsResponse\n\n|Parameter|Type|Description|\n|-|-|-|\n|*results*|[SentEmailLog[]](#section-sentsmslog)|Collection of logs.|\n\n### SentEmailLog\n\n|Parameter|Type|Description|\n|-|-|-|\n|*messageId*|String|The ID that uniquely identifies the message sent.|\n|*to*|String|The message destination address.|\n|*from*|String|Sender e-mail address.|\n|*text*|String|Text of the message that was sent.|\n|*sentAt*|Date|Tells when the e-mail was sent. Has the following format: `yyyy-MM-dd'T'HH:mm:ss.SSSZ`.|\n|*doneAt*|Date|Tells when the e-mail was finished processing by Infobip (i.e. delivered to destination)|\n|*messageCount*|int|How many parts the message was split into. Always will be 1 for e-mail.|\n|*price*|[Price](#section-price)|Sent e-mail price.|\n|*status*|[Status](#section-status)|Indicates whether the message is successfully sent, not sent, delivered, not delivered, waiting for delivery or any other possible status.|\n|*error*|[Error](#section-error)|Indicates whether the error occurred during the query execution.|\n\n#### Price\n\n|Parameter|Type|Description|\n|-|-|-|\n|*pricePerMessage*|BigDecimal|Price per one e-mail.|\n|*currency*|String|The currency in which the price is expressed.|\n\n#### Status\n\n|Parameter|Type|Description|\n|-|-|-|\n|*groupId*|int|Status group ID|\n|*groupName*|String|Status [group name](/docs/response-codes).|\n|*id*|int|Status ID|\n|*name*|String|Status [name](/docs/response-codes).|\n|*description*|String|Human readable description of the status.|\n|*action*|String|Action that should be taken to eliminate the error.|\n\n#### Error\n\n|Parameter|Type|Description|\n|-|-|-|\n|*groupId*|int|Error group ID|\n|*groupName*|String|Error [group name](/docs/response-codes#error-object-example)|\n|*id*|int|Error ID|\n|*name*|String|Error [name](/docs/response-codes#error-object-example)|\n|*description*|String|Human readable description of the error.|\n|*permanent*|boolean|Tells if the error is permanent|\n[block:api-header]\n{\n  \"type\": \"get\",\n  \"title\": \"Get logs with multiple messageId filter\"\n}\n[/block]\nYou may retrieve message logs by supplying comma-split message IDs to the endpoint.\n\nRequest:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"GET /email/1/logs?messageId=64c98929-f160-4e2c-b156-ca88cc733547,60d586a1-6448-4c5f-860d-be3ddbea16da HTTP/1.1\\nHost: api.infobip.com\\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\\nAccept: application/json\",\n      \"language\": \"http\",\n      \"name\": \"JSON\"\n    },\n    {\n      \"code\": \"GET /email/1/logs?messageId=64c98929-f160-4e2c-b156-ca88cc733547,60d586a1-6448-4c5f-860d-be3ddbea16da HTTP/1.1\\nHost: api.infobip.com\\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\\nAccept: application/xml\",\n      \"language\": \"http\",\n      \"name\": \"XML\"\n    },\n    {\n      \"code\": \"curl -X GET \\n-H 'Accept: application/json' \\n-H 'Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=='\\nhttps://api.infobip.com/email/1/logs?messageId=64c98929-f160-4e2c-b156-ca88cc733547,60d586a1-6448-4c5f-860d-be3ddbea16da\",\n      \"language\": \"curl\",\n      \"name\": \"cURL\"\n    },\n    {\n      \"code\": \"<?php\\n\\n$request = new HttpRequest();\\n$request->setUrl('https://api.infobip.com/email/1/logs?messageId=64c98929-f160-4e2c-b156-ca88cc733547,60d586a1-6448-4c5f-860d-be3ddbea16da');\\n$request->setMethod(HTTP_METH_GET);\\n\\n$request->setHeaders(array(\\n  'accept' => 'application/json',\\n  'authorization' => 'Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=='\\n));\\n\\ntry {\\n  $response = $request->send();\\n\\n  echo $response->getBody();\\n} catch (HttpException $ex) {\\n  echo $ex;\\n}\\n?>\",\n      \"language\": \"php\"\n    },\n    {\n      \"code\": \"require 'uri'\\nrequire 'net/http'\\n\\nurl = URI(\\\"https://api.infobip.com/email/1/logs?messageId=64c98929-f160-4e2c-b156-ca88cc733547,60d586a1-6448-4c5f-860d-be3ddbea16da\\\")\\n\\nhttp = Net::HTTP.new(url.host, url.port)\\nhttp.use_ssl = true\\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\\n\\nrequest = Net::HTTP::Get.new(url)\\nrequest[\\\"authorization\\\"] = 'Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=='\\nrequest[\\\"accept\\\"] = 'application/json'\\n\\nresponse = http.request(request)\\nputs response.read_body\\n\",\n      \"language\": \"ruby\"\n    },\n    {\n      \"code\": \"import http.client\\n\\nconn = http.client.HTTPSConnection(\\\"api.infobip.com\\\")\\n\\nheaders = {\\n    'authorization': \\\"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\\\",\\n    'accept': \\\"application/json\\\"\\n    }\\n\\nconn.request(\\\"GET\\\", \\\"/email/1/logs?messageId=64c98929-f160-4e2c-b156-ca88cc733547,60d586a1-6448-4c5f-860d-be3ddbea16da\\\", headers=headers)\\n\\nres = conn.getresponse()\\ndata = res.read()\\n\\nprint(data.decode(\\\"utf-8\\\"))\\n\",\n      \"language\": \"python\"\n    },\n    {\n      \"code\": \"HttpResponse<String> response = Unirest.get(\\\"https://api.infobip.com/email/1/logs?messageId=64c98929-f160-4e2c-b156-ca88cc733547,60d586a1-6448-4c5f-860d-be3ddbea16da\\\")\\n  .header(\\\"authorization\\\", \\\"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\\\")\\n  .header(\\\"accept\\\", \\\"application/json\\\")\\n  .asString();\",\n      \"language\": \"java\"\n    },\n    {\n      \"code\": \"var client = new RestClient(\\\"https://api.infobip.com/email/1/logs?messageId=64c98929-f160-4e2c-b156-ca88cc733547,60d586a1-6448-4c5f-860d-be3ddbea16da\\\");\\n\\nvar request = new RestRequest(Method.GET);\\nrequest.AddHeader(\\\"accept\\\", \\\"application/json\\\");\\nrequest.AddHeader(\\\"authorization\\\", \\\"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\\\");\\n\\nIRestResponse response = client.Execute(request);\",\n      \"language\": \"csharp\"\n    },\n    {\n      \"code\": \"var data = null;\\n\\nvar xhr = new XMLHttpRequest();\\nxhr.withCredentials = true;\\n\\nxhr.addEventListener(\\\"readystatechange\\\", function () {\\n  if (this.readyState === this.DONE) {\\n    console.log(this.responseText);\\n  }\\n});\\n\\nxhr.open(\\\"GET\\\", \\\"https://api.infobip.com/email/1/logs?messageId=64c98929-f160-4e2c-b156-ca88cc733547,60d586a1-6448-4c5f-860d-be3ddbea16da\\\");\\nxhr.setRequestHeader(\\\"authorization\\\", \\\"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\\\");\\nxhr.setRequestHeader(\\\"accept\\\", \\\"application/json\\\");\\n\\nxhr.send(data);\\n\",\n      \"language\": \"javascript\"\n    }\n  ]\n}\n[/block]\nResponse:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"results\\\": [\\n    {\\n      \\\"messageId\\\": \\\"64c98929-f160-4e2c-b156-ca88cc733547\\\",\\n      \\\"to\\\": \\\"recipient@infobip.com\\\",\\n      \\\"from\\\": \\\"sender@infobip.com\\\",\\n      \\\"text\\\": \\\"Test text\\\",\\n      \\\"sentAt\\\": \\\"2016-09-01T10:29:00.440+0000\\\",\\n      \\\"doneAt\\\": \\\"2016-09-01T10:29:01.130+0000\\\",\\n      \\\"price\\\": {\\n        \\\"pricePerMessage\\\": 0.0005,\\n        \\\"currency\\\": \\\"EUR\\\"\\n      },\\n      \\\"status\\\": {\\n        \\\"groupId\\\": 3,\\n        \\\"groupName\\\": \\\"DELIVERED\\\",\\n        \\\"id\\\": 5,\\n        \\\"name\\\": \\\"DELIVERED_TO_HANDSET\\\",\\n        \\\"description\\\": \\\"Message delivered to handset\\\"\\n      },\\n      \\\"channel\\\": \\\"EMAIL\\\"\\n    },\\n    {\\n      \\\"messageId\\\": \\\"60d586a1-6448-4c5f-860d-be3ddbea16da\\\",\\n      \\\"to\\\": \\\"recipient@infobip.com\\\",\\n      \\\"from\\\": \\\"sender@infobip.com\\\",\\n      \\\"text\\\": \\\"Test text\\\",\\n      \\\"sentAt\\\": \\\"2016-09-01T10:29:00.317+0000\\\",\\n      \\\"doneAt\\\": \\\"2016-09-01T10:29:00.807+0000\\\",\\n      \\\"price\\\": {\\n        \\\"pricePerMessage\\\": 0.0005,\\n        \\\"currency\\\": \\\"EUR\\\"\\n      },\\n      \\\"status\\\": {\\n        \\\"groupId\\\": 3,\\n        \\\"groupName\\\": \\\"DELIVERED\\\",\\n        \\\"id\\\": 5,\\n        \\\"name\\\": \\\"DELIVERED_TO_HANDSET\\\",\\n        \\\"description\\\": \\\"Message delivered to handset\\\"\\n      },\\n      \\\"channel\\\": \\\"EMAIL\\\"\\n    }\\n  ]\\n}\",\n      \"language\": \"json\"\n    },\n    {\n      \"code\": \"<?xml version='1.0' encoding='UTF-8'?>\\n<LogsResponse>\\n    <results>\\n        <result>\\n            <messageId>64c98929-f160-4e2c-b156-ca88cc733547</messageId>\\n            <to>recipient@infobip.com</to>\\n            <from>sender@infobip.com</from>\\n            <text>Test text</text>\\n            <sentAt>2016-09-01T10:29:00.440+0000</sentAt>\\n            <doneAt>2016-09-01T10:29:01.130+0000</doneAt>\\n            <price>\\n                <pricePerMessage>0.0005000000</pricePerMessage>\\n                <currency>EUR</currency>\\n            </price>\\n            <status>\\n                <groupId>3</groupId>\\n                <groupName>DELIVERED</groupName>\\n                <id>5</id>\\n                <name>DELIVERED_TO_HANDSET</name>\\n                <description>Message delivered to handset</description>\\n            </status>\\n            <channel>EMAIL</channel>\\n        </result>\\n      \\t<result>\\n            <messageId>60d586a1-6448-4c5f-860d-be3ddbea16da</messageId>\\n            <to>recipient@infobip.com</to>\\n            <from>sender@infobip.com</from>\\n            <text>Test text</text>\\n            <sentAt>2016-09-01T10:29:00.317+0000</sentAt>\\n            <doneAt>2016-09-01T10:29:00.807+0000</doneAt>\\n            <price>\\n                <pricePerMessage>0.0005000000</pricePerMessage>\\n                <currency>EUR</currency>\\n            </price>\\n            <status>\\n                <groupId>3</groupId>\\n                <groupName>DELIVERED</groupName>\\n                <id>5</id>\\n                <name>DELIVERED_TO_HANDSET</name>\\n                <description>Message delivered to handset</description>\\n            </status>\\n            <channel>EMAIL</channel>\\n        </result>\\n    </results>\\n</LogsResponse>\",\n      \"language\": \"xml\"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"get\",\n  \"title\": \"Get logs with from, to and limit filters\"\n}\n[/block]\n`from`, `to` and `limit` accept a single parameter which will be used to filter response message logs.\n\n**Request**\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"GET /email/1/logs?from=sender@infobip.com&to=recipient@infobip.com&limit=1\\nHost: api.infobip.com\\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\\nAccept: application/json\",\n      \"language\": \"http\",\n      \"name\": \"JSON\"\n    },\n    {\n      \"code\": \"GET /email/1/logs?from=sender@infobip.com&to=recipient@infobip.com&limit=1\\nHost: api.infobip.com\\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\\nAccept: application/xml\",\n      \"language\": \"http\",\n      \"name\": \"XML\"\n    },\n    {\n      \"code\": \"curl -X GET \\n-H 'Accept: application/json' \\n-H 'Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=='\\nhttps://api.infobip.com/email/1/logs?from=sender@infobip.com&to=recipient@infobip.com&limit=1\",\n      \"language\": \"curl\",\n      \"name\": \"cURL\"\n    },\n    {\n      \"code\": \"<?php\\n\\n$request = new HttpRequest();\\n$request->setUrl('https://api.infobip.com/email/1/logs?from=sender@infobip.com&to=recipient@infobip.com&limit=1');\\n$request->setMethod(HTTP_METH_GET);\\n\\n$request->setHeaders(array(\\n  'accept' => 'application/json',\\n  'authorization' => 'Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=='\\n));\\n\\ntry {\\n  $response = $request->send();\\n\\n  echo $response->getBody();\\n} catch (HttpException $ex) {\\n  echo $ex;\\n}\\n?>\",\n      \"language\": \"php\"\n    },\n    {\n      \"code\": \"require 'uri'\\nrequire 'net/http'\\n\\nurl = URI(\\\"https://api.infobip.com/email/1/logs?from=sender@infobip.com&to=recipient@infobip.com&limit=1\\\")\\n\\nhttp = Net::HTTP.new(url.host, url.port)\\nhttp.use_ssl = true\\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\\n\\nrequest = Net::HTTP::Get.new(url)\\nrequest[\\\"authorization\\\"] = 'Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=='\\nrequest[\\\"accept\\\"] = 'application/json'\\n\\nresponse = http.request(request)\\nputs response.read_body\\n\",\n      \"language\": \"ruby\"\n    },\n    {\n      \"code\": \"import http.client\\n\\nconn = http.client.HTTPSConnection(\\\"api.infobip.com\\\")\\n\\nheaders = {\\n    'authorization': \\\"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\\\",\\n    'accept': \\\"application/json\\\"\\n    }\\n\\nconn.request(\\\"GET\\\", \\\"/email/1/logs?from=sender@infobip.com&to=recipient@infobip.com&limit=1\\\", headers=headers)\\n\\nres = conn.getresponse()\\ndata = res.read()\\n\\nprint(data.decode(\\\"utf-8\\\"))\\n\",\n      \"language\": \"python\"\n    },\n    {\n      \"code\": \"HttpResponse<String> response = Unirest.get(\\\"https://api.infobip.com/email/1/logs?from=sender@infobip.com&to=recipient@infobip.com&limit=1\\\")\\n  .header(\\\"authorization\\\", \\\"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\\\")\\n  .header(\\\"accept\\\", \\\"application/json\\\")\\n  .asString();\",\n      \"language\": \"java\"\n    },\n    {\n      \"code\": \"var client = new RestClient(\\\"https://api.infobip.com/email/1/logs?from=sender@infobip.com&to=recipient@infobip.com&limit=1\\\");\\n\\nvar request = new RestRequest(Method.GET);\\nrequest.AddHeader(\\\"accept\\\", \\\"application/json\\\");\\nrequest.AddHeader(\\\"authorization\\\", \\\"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\\\");\\n\\nIRestResponse response = client.Execute(request);\",\n      \"language\": \"csharp\"\n    },\n    {\n      \"code\": \"var data = null;\\n\\nvar xhr = new XMLHttpRequest();\\nxhr.withCredentials = true;\\n\\nxhr.addEventListener(\\\"readystatechange\\\", function () {\\n  if (this.readyState === this.DONE) {\\n    console.log(this.responseText);\\n  }\\n});\\n\\nxhr.open(\\\"GET\\\", \\\"https://api.infobip.com/email/1/logs?from=sender@infobip.com&to=recipient@infobip.com&limit=1\\\");\\nxhr.setRequestHeader(\\\"authorization\\\", \\\"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\\\");\\nxhr.setRequestHeader(\\\"accept\\\", \\\"application/json\\\");\\n\\nxhr.send(data);\\n\",\n      \"language\": \"javascript\"\n    }\n  ]\n}\n[/block]\n**Response**\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"results\\\": [\\n    {\\n      \\\"messageId\\\": \\\"54ddb941-2566-46e0-802a-22bea5cf94bc\\\",\\n      \\\"to\\\": \\\"recipient@infobip.com\\\",\\n      \\\"from\\\": \\\"sender@infobip.com\\\",\\n      \\\"text\\\": \\\"Test text\\\",\\n      \\\"sentAt\\\": \\\"2016-09-01T11:14:44.453+0000\\\",\\n      \\\"doneAt\\\": \\\"2016-09-01T11:14:45.050+0000\\\",\\n      \\\"price\\\": {\\n        \\\"pricePerMessage\\\": 0.0005,\\n        \\\"currency\\\": \\\"EUR\\\"\\n      },\\n      \\\"status\\\": {\\n        \\\"groupId\\\": 3,\\n        \\\"groupName\\\": \\\"DELIVERED\\\",\\n        \\\"id\\\": 5,\\n        \\\"name\\\": \\\"DELIVERED_TO_HANDSET\\\",\\n        \\\"description\\\": \\\"Message delivered to handset\\\"\\n      },\\n      \\\"channel\\\": \\\"EMAIL\\\"\\n    }\\n  ]\\n}\",\n      \"language\": \"json\"\n    },\n    {\n      \"code\": \"<?xml version='1.0' encoding='UTF-8'?>\\n<LogsResponse>\\n    <results>\\n        <result>\\n            <messageId>54ddb941-2566-46e0-802a-22bea5cf94bc</messageId>\\n            <to>recipient@infobip.com</to>\\n            <from>sender@infobip.com</from>\\n            <text>Test text</text>\\n            <sentAt>2016-09-01T11:14:44.453+0000</sentAt>\\n            <doneAt>2016-09-01T11:14:45.050+0000</doneAt>\\n            <price>\\n                <pricePerMessage>0.0005000000</pricePerMessage>\\n                <currency>EUR</currency>\\n            </price>\\n            <status>\\n                <groupId>3</groupId>\\n                <groupName>DELIVERED</groupName>\\n                <id>5</id>\\n                <name>DELIVERED_TO_HANDSET</name>\\n                <description>Message delivered to handset</description>\\n            </status>\\n            <channel>EMAIL</channel>\\n        </result>\\n    </results>\\n</LogsResponse>\",\n      \"language\": \"xml\"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"get\",\n  \"title\": \"Get logs with date range and general status filters\"\n}\n[/block]\n`sentSince` and `generalStatus` accept a single parameter which will be used to filter response message logs.\n\nRequest:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"GET /email/1/logs?sentSince=2016-08-22T17:42:05.390%2b01:00&generalStatus=DELIVERED HTTP/1.1\\nHost: api.infobip.com\\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\\nAccept: application/json\",\n      \"language\": \"http\",\n      \"name\": \"JSON\"\n    },\n    {\n      \"code\": \"GET /email/1/logs?sentSince=2016-08-22T17:42:05.390%2b01:00&generalStatus=DELIVERED HTTP/1.1\\nHost: api.infobip.com\\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\\nAccept: application/xml\",\n      \"language\": \"http\",\n      \"name\": \"XML\"\n    },\n    {\n      \"code\": \"curl -X GET \\n-H 'Accept: application/json' \\n-H 'Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=='\\nhttps://api.infobip.com/email/1/logs?sentSince=2016-08-22T17:42:05.390%2b01:00&generalStatus=DELIVERED\",\n      \"language\": \"curl\",\n      \"name\": \"cURL\"\n    },\n    {\n      \"code\": \"<?php\\n\\n$request = new HttpRequest();\\n$request->setUrl('https://api.infobip.com/email/1/logs?sentSince=2016-08-22T17:42:05.390%2b01:00&generalStatus=DELIVERED');\\n$request->setMethod(HTTP_METH_GET);\\n\\n$request->setHeaders(array(\\n  'accept' => 'application/json',\\n  'authorization' => 'Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=='\\n));\\n\\ntry {\\n  $response = $request->send();\\n\\n  echo $response->getBody();\\n} catch (HttpException $ex) {\\n  echo $ex;\\n}\\n?>\",\n      \"language\": \"php\"\n    },\n    {\n      \"code\": \"require 'uri'\\nrequire 'net/http'\\n\\nurl = URI(\\\"https://api.infobip.com/email/1/logs?sentSince=2016-08-22T17:42:05.390%2b01:00&generalStatus=DELIVERED\\\")\\n\\nhttp = Net::HTTP.new(url.host, url.port)\\nhttp.use_ssl = true\\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\\n\\nrequest = Net::HTTP::Get.new(url)\\nrequest[\\\"authorization\\\"] = 'Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=='\\nrequest[\\\"accept\\\"] = 'application/json'\\n\\nresponse = http.request(request)\\nputs response.read_body\\n\",\n      \"language\": \"ruby\"\n    },\n    {\n      \"code\": \"import http.client\\n\\nconn = http.client.HTTPSConnection(\\\"api.infobip.com\\\")\\n\\nheaders = {\\n    'authorization': \\\"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\\\",\\n    'accept': \\\"application/json\\\"\\n    }\\n\\nconn.request(\\\"GET\\\", \\\"/email/1/logs?sentSince=2016-08-22T17:42:05.390%2b01:00&generalStatus=DELIVERED\\\", headers=headers)\\n\\nres = conn.getresponse()\\ndata = res.read()\\n\\nprint(data.decode(\\\"utf-8\\\"))\\n\",\n      \"language\": \"python\"\n    },\n    {\n      \"code\": \"HttpResponse<String> response = Unirest.get(\\\"https://api.infobip.com/email/1/logs?sentSince=2016-08-22T17:42:05.390%2b01:00&generalStatus=DELIVERED\\\")\\n  .header(\\\"authorization\\\", \\\"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\\\")\\n  .header(\\\"accept\\\", \\\"application/json\\\")\\n  .asString();\",\n      \"language\": \"java\"\n    },\n    {\n      \"code\": \"var client = new RestClient(\\\"https://api.infobip.com/email/1/logs?sentSince=2016-08-22T17:42:05.390%2b01:00&generalStatus=DELIVERED\\\");\\n\\nvar request = new RestRequest(Method.GET);\\nrequest.AddHeader(\\\"accept\\\", \\\"application/json\\\");\\nrequest.AddHeader(\\\"authorization\\\", \\\"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\\\");\\n\\nIRestResponse response = client.Execute(request);\",\n      \"language\": \"csharp\"\n    },\n    {\n      \"code\": \"var data = null;\\n\\nvar xhr = new XMLHttpRequest();\\nxhr.withCredentials = true;\\n\\nxhr.addEventListener(\\\"readystatechange\\\", function () {\\n  if (this.readyState === this.DONE) {\\n    console.log(this.responseText);\\n  }\\n});\\n\\nxhr.open(\\\"GET\\\", \\\"https://api.infobip.com/email/1/logs?sentSince=2016-08-22T17:42:05.390%2b01:00&generalStatus=DELIVERED\\\");\\nxhr.setRequestHeader(\\\"authorization\\\", \\\"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\\\");\\nxhr.setRequestHeader(\\\"accept\\\", \\\"application/json\\\");\\n\\nxhr.send(data);\\n\",\n      \"language\": \"javascript\"\n    }\n  ]\n}\n[/block]\nResponse:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"results\\\": [\\n    {\\n      \\\"messageId\\\": \\\"54ddb941-2566-46e0-802a-22bea5cf94bc\\\",\\n      \\\"to\\\": \\\"recipient@infobip.com\\\",\\n      \\\"from\\\": \\\"sender@infobip.com\\\",\\n      \\\"text\\\": \\\"Test text\\\",\\n      \\\"sentAt\\\": \\\"2016-09-01T11:14:44.453+0000\\\",\\n      \\\"doneAt\\\": \\\"2016-09-01T11:14:45.050+0000\\\",\\n      \\\"price\\\": {\\n        \\\"pricePerMessage\\\": 0.0005,\\n        \\\"currency\\\": \\\"EUR\\\"\\n      },\\n      \\\"status\\\": {\\n        \\\"groupId\\\": 3,\\n        \\\"groupName\\\": \\\"DELIVERED\\\",\\n        \\\"id\\\": 5,\\n        \\\"name\\\": \\\"DELIVERED_TO_HANDSET\\\",\\n        \\\"description\\\": \\\"Message delivered to handset\\\"\\n      },\\n      \\\"channel\\\": \\\"EMAIL\\\"\\n    }\\n  ]\\n}\",\n      \"language\": \"json\"\n    },\n    {\n      \"code\": \"<?xml version='1.0' encoding='UTF-8'?>\\n<LogsResponse>\\n    <results>\\n        <result>\\n            <messageId>54ddb941-2566-46e0-802a-22bea5cf94bc</messageId>\\n            <to>recipient@infobip.com</to>\\n            <from>sender@infobip.com</from>\\n            <text>Test text</text>\\n            <sentAt>2016-09-01T11:14:44.453+0000</sentAt>\\n            <doneAt>2016-09-01T11:14:45.050+0000</doneAt>\\n            <price>\\n                <pricePerMessage>0.0005000000</pricePerMessage>\\n                <currency>EUR</currency>\\n            </price>\\n            <status>\\n                <groupId>3</groupId>\\n                <groupName>DELIVERED</groupName>\\n                <id>5</id>\\n                <name>DELIVERED_TO_HANDSET</name>\\n                <description>Message delivered to handset</description>\\n            </status>\\n            <channel>EMAIL</channel>\\n        </result>\\n    </results>\\n</LogsResponse>\",\n      \"language\": \"xml\"\n    }\n  ]\n}\n[/block]\n#Get logs by Bulk ID\n\n**Request:**\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"GET /email/1/logs?bulkId=lrzkq6gatdkxouhrkgni HTTP/1.1\\nHost: api.infobip.com\\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\\nAccept: application/json\",\n      \"language\": \"http\",\n      \"name\": \"JSON\"\n    },\n    {\n      \"code\": \"GET /email/1/logs?bulkId=lrzkq6gatdkxouhrkgni HTTP/1.1\\nHost: api.infobip.com\\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\\nAccept: application/xml\",\n      \"language\": \"http\",\n      \"name\": null\n    },\n    {\n      \"code\": \"curl -X GET \\\\\\n-H 'Accept: application/json' \\\\\\n-H \\\"Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\\\" \\\\\\nhttps://api.infobip.com/email/1/logs?bulkId=lrzkq6gatdkxouhrkgni\",\n      \"language\": \"curl\"\n    },\n    {\n      \"code\": \"<?php\\n\\n$request = new HttpRequest();\\n$request->setUrl('https://api.infobip.com/email/1/logs');\\n$request->setMethod(HTTP_METH_GET);\\n\\n$request->setQueryData(array(\\n  'bulkId' => 'lrzkq6gatdkxouhrkgni'\\n));\\n\\n$request->setHeaders(array(\\n  'accept' => 'application/json',\\n  'authorization' => 'Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=='\\n));\\n\\ntry {\\n  $response = $request->send();\\n\\n  echo $response->getBody();\\n} catch (HttpException $ex) {\\n  echo $ex;\\n}\",\n      \"language\": \"php\"\n    },\n    {\n      \"code\": \"require 'uri'\\nrequire 'net/http'\\n\\nurl = URI(\\\"https://api.infobip.com/email/1/logs?bulkId=lrzkq6gatdkxouhrkgni\\\")\\n\\nhttp = Net::HTTP.new(url.host, url.port)\\nhttp.use_ssl = true\\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\\n\\nrequest = Net::HTTP::Get.new(url)\\nrequest[\\\"authorization\\\"] = 'Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=='\\nrequest[\\\"accept\\\"] = 'application/json'\\n\\nresponse = http.request(request)\\nputs response.read_body\",\n      \"language\": \"ruby\"\n    },\n    {\n      \"code\": \"import http.client\\n\\nconn = http.client.HTTPSConnection(\\\"api.infobip.com\\\")\\n\\nheaders = {\\n    'authorization': \\\"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\\\",\\n    'accept': \\\"application/json\\\"\\n    }\\n\\nconn.request(\\\"GET\\\", \\\"/email/1/logs?bulkId=lrzkq6gatdkxouhrkgni\\\", headers=headers)\\n\\nres = conn.getresponse()\\ndata = res.read()\\n\\nprint(data.decode(\\\"utf-8\\\"))\",\n      \"language\": \"python\"\n    },\n    {\n      \"code\": \"HttpResponse<String> response = Unirest.get(\\\"https://api.infobip.com/email/1/logs?bulkId=lrzkq6gatdkxouhrkgni\\\")\\n  .header(\\\"authorization\\\", \\\"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\\\")\\n  .header(\\\"accept\\\", \\\"application/json\\\")\\n  .asString();\",\n      \"language\": \"java\"\n    },\n    {\n      \"code\": \"var client = new RestClient(\\\"https://api.infobip.com/email/1/logs?bulkId=lrzkq6gatdkxouhrkgni\\\");\\n\\nvar request = new RestRequest(Method.GET);\\nrequest.AddHeader(\\\"accept\\\", \\\"application/json\\\");\\nrequest.AddHeader(\\\"authorization\\\", \\\"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\\\");\\n\\nIRestResponse response = client.Execute(request);\",\n      \"language\": \"csharp\",\n      \"name\": \"C#\"\n    },\n    {\n      \"code\": \"var data = null;\\n\\nvar xhr = new XMLHttpRequest();\\nxhr.withCredentials = true;\\n\\nxhr.addEventListener(\\\"readystatechange\\\", function () {\\n  if (this.readyState === this.DONE) {\\n    console.log(this.responseText);\\n  }\\n});\\n\\nxhr.open(\\\"GET\\\", \\\"https://api.infobip.com/email/1/logs?bulkId=lrzkq6gatdkxouhrkgni\\\");\\nxhr.setRequestHeader(\\\"authorization\\\", \\\"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\\\");\\nxhr.setRequestHeader(\\\"accept\\\", \\\"application/json\\\");\\n\\nxhr.send(data);\",\n      \"language\": \"javascript\"\n    }\n  ]\n}\n[/block]\n**Response:**\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"results\\\": [\\n    {\\n      \\\"bulkId\\\": \\\"lrzkq6gatdkxouhrkgni\\\",\\n      \\\"messageId\\\": \\\"64c98929-f160-4e2c-b156-ca88cc733547\\\",\\n      \\\"to\\\": \\\"recipient@infobip.com\\\",\\n      \\\"from\\\": \\\"sender@infobip.com\\\",\\n      \\\"text\\\": \\\"Test text\\\",\\n      \\\"sentAt\\\": \\\"2016-09-01T10:29:00.440+0000\\\",\\n      \\\"doneAt\\\": \\\"2016-09-01T10:29:01.130+0000\\\",\\n      \\\"price\\\": {\\n        \\\"pricePerMessage\\\": 0.0005,\\n        \\\"currency\\\": \\\"EUR\\\"\\n      },\\n      \\\"status\\\": {\\n        \\\"groupId\\\": 3,\\n        \\\"groupName\\\": \\\"DELIVERED\\\",\\n        \\\"id\\\": 5,\\n        \\\"name\\\": \\\"DELIVERED_TO_HANDSET\\\",\\n        \\\"description\\\": \\\"Message delivered to handset\\\"\\n      },\\n      \\\"channel\\\": \\\"EMAIL\\\"\\n    },\\n    {\\n      \\\"bulkId\\\": \\\"lrzkq6gatdkxouhrkgni\\\",\\n      \\\"messageId\\\": \\\"60d586a1-6448-4c5f-860d-be3ddbea16da\\\",\\n      \\\"to\\\": \\\"recipient@infobip.com\\\",\\n      \\\"from\\\": \\\"sender@infobip.com\\\",\\n      \\\"text\\\": \\\"Test text\\\",\\n      \\\"sentAt\\\": \\\"2016-09-01T10:29:00.317+0000\\\",\\n      \\\"doneAt\\\": \\\"2016-09-01T10:29:00.807+0000\\\",\\n      \\\"price\\\": {\\n        \\\"pricePerMessage\\\": 0.0005,\\n        \\\"currency\\\": \\\"EUR\\\"\\n      },\\n      \\\"status\\\": {\\n        \\\"groupId\\\": 3,\\n        \\\"groupName\\\": \\\"DELIVERED\\\",\\n        \\\"id\\\": 5,\\n        \\\"name\\\": \\\"DELIVERED_TO_HANDSET\\\",\\n        \\\"description\\\": \\\"Message delivered to handset\\\"\\n      },\\n      \\\"channel\\\": \\\"EMAIL\\\"\\n    }\\n  ]\\n}\",\n      \"language\": \"json\",\n      \"name\": null\n    },\n    {\n      \"code\": \"<?xml version='1.0' encoding='UTF-8'?>\\n<LogsResponse>\\n    <results>\\n        <result>\\n            <bulkId>lrzkq6gatdkxouhrkgni</bulkId>\\n            <messageId>64c98929-f160-4e2c-b156-ca88cc733547</messageId>\\n            <to>recipient@infobip.com</to>\\n            <from>sender@infobip.com</from>\\n            <text>Test text</text>\\n            <sentAt>2016-09-01T10:29:00.440+0000</sentAt>\\n            <doneAt>2016-09-01T10:29:01.130+0000</doneAt>\\n            <price>\\n                <pricePerMessage>0.0005000000</pricePerMessage>\\n                <currency>EUR</currency>\\n            </price>\\n            <status>\\n                <groupId>3</groupId>\\n                <groupName>DELIVERED</groupName>\\n                <id>5</id>\\n                <name>DELIVERED_TO_HANDSET</name>\\n                <description>Message delivered to handset</description>\\n            </status>\\n            <channel>EMAIL</channel>\\n        </result>\\n      \\t<result>\\n            <bulkId>lrzkq6gatdkxouhrkgni</bulkId>\\n            <messageId>60d586a1-6448-4c5f-860d-be3ddbea16da</messageId>\\n            <to>recipient@infobip.com</to>\\n            <from>sender@infobip.com</from>\\n            <text>Test text</text>\\n            <sentAt>2016-09-01T10:29:00.317+0000</sentAt>\\n            <doneAt>2016-09-01T10:29:00.807+0000</doneAt>\\n            <price>\\n                <pricePerMessage>0.0005000000</pricePerMessage>\\n                <currency>EUR</currency>\\n            </price>\\n            <status>\\n                <groupId>3</groupId>\\n                <groupName>DELIVERED</groupName>\\n                <id>5</id>\\n                <name>DELIVERED_TO_HANDSET</name>\\n                <description>Message delivered to handset</description>\\n            </status>\\n            <channel>EMAIL</channel>\\n        </result>\\n    </results>\\n</LogsResponse>\",\n      \"language\": \"xml\"\n    }\n  ]\n}\n[/block]","excerpt":"This method allows you to get logs for sent e-mail.","slug":"email-messages-logs","type":"endpoint","title":"Email messages logs"}

getEmail messages logs

This method allows you to get logs for sent e-mail.

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Query Params

from:
string
Sender ID that can be alphanumeric or numeric.
to:
string
The message destination address.
bulkId:
string
The ID uniquely identifies a group of Email requests. This filter will enable you to query delivery reports for all the messages with the same bulk id using just one request.
messageId:
string
The ID that uniquely identifies the message sent.
generalStatus:
string
Sent e-mail [status group](http://dev.infobip.com/v1/docs/response-codes#section-statuses-groups). Indicates whether the message is successfully sent, not sent, delivered, not delivered, waiting for delivery or any other possible status.
sentSince:
datetime
Lower limit on date and time of sending SMS.
sentUntil:
datetime
Upper limit on date and time of sending SMS.
limit:
integer
Maximal number of messages in returned logs. Default value is 50.

Examples


Result Format


Documentation

None of the query parameters is mandatory for this request. For filtering results any combination of parameters can be used. Some examples are shown below. [block:callout] { "type": "warning", "title": "Important", "body": "**E-mail logs are available for the last 48 hours!**" } [/block] # Response format If successful, response header HTTP status code will be `200 OK` and the message logs will be returned. If you try to send message without authorization, you will get a response with HTTP status code `401 Unauthorized`. If you are using this method too many times in a short period, you will get status code `429 Too Many Requests`. This prevents misusing logs in cases where reports would be more appropriate. For more information about when to use logs, please see the [documentation](https://dev.infobip.com/docs/logs-vs-delivery-reports). ## SMSLogsResponse |Parameter|Type|Description| |-|-|-| |*results*|[SentEmailLog[]](#section-sentsmslog)|Collection of logs.| ### SentEmailLog |Parameter|Type|Description| |-|-|-| |*messageId*|String|The ID that uniquely identifies the message sent.| |*to*|String|The message destination address.| |*from*|String|Sender e-mail address.| |*text*|String|Text of the message that was sent.| |*sentAt*|Date|Tells when the e-mail was sent. Has the following format: `yyyy-MM-dd'T'HH:mm:ss.SSSZ`.| |*doneAt*|Date|Tells when the e-mail was finished processing by Infobip (i.e. delivered to destination)| |*messageCount*|int|How many parts the message was split into. Always will be 1 for e-mail.| |*price*|[Price](#section-price)|Sent e-mail price.| |*status*|[Status](#section-status)|Indicates whether the message is successfully sent, not sent, delivered, not delivered, waiting for delivery or any other possible status.| |*error*|[Error](#section-error)|Indicates whether the error occurred during the query execution.| #### Price |Parameter|Type|Description| |-|-|-| |*pricePerMessage*|BigDecimal|Price per one e-mail.| |*currency*|String|The currency in which the price is expressed.| #### Status |Parameter|Type|Description| |-|-|-| |*groupId*|int|Status group ID| |*groupName*|String|Status [group name](/docs/response-codes).| |*id*|int|Status ID| |*name*|String|Status [name](/docs/response-codes).| |*description*|String|Human readable description of the status.| |*action*|String|Action that should be taken to eliminate the error.| #### Error |Parameter|Type|Description| |-|-|-| |*groupId*|int|Error group ID| |*groupName*|String|Error [group name](/docs/response-codes#error-object-example)| |*id*|int|Error ID| |*name*|String|Error [name](/docs/response-codes#error-object-example)| |*description*|String|Human readable description of the error.| |*permanent*|boolean|Tells if the error is permanent| [block:api-header] { "type": "get", "title": "Get logs with multiple messageId filter" } [/block] You may retrieve message logs by supplying comma-split message IDs to the endpoint. Request: [block:code] { "codes": [ { "code": "GET /email/1/logs?messageId=64c98929-f160-4e2c-b156-ca88cc733547,60d586a1-6448-4c5f-860d-be3ddbea16da HTTP/1.1\nHost: api.infobip.com\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\nAccept: application/json", "language": "http", "name": "JSON" }, { "code": "GET /email/1/logs?messageId=64c98929-f160-4e2c-b156-ca88cc733547,60d586a1-6448-4c5f-860d-be3ddbea16da HTTP/1.1\nHost: api.infobip.com\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\nAccept: application/xml", "language": "http", "name": "XML" }, { "code": "curl -X GET \n-H 'Accept: application/json' \n-H 'Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=='\nhttps://api.infobip.com/email/1/logs?messageId=64c98929-f160-4e2c-b156-ca88cc733547,60d586a1-6448-4c5f-860d-be3ddbea16da", "language": "curl", "name": "cURL" }, { "code": "<?php\n\n$request = new HttpRequest();\n$request->setUrl('https://api.infobip.com/email/1/logs?messageId=64c98929-f160-4e2c-b156-ca88cc733547,60d586a1-6448-4c5f-860d-be3ddbea16da');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders(array(\n 'accept' => 'application/json',\n 'authorization' => 'Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=='\n));\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}\n?>", "language": "php" }, { "code": "require 'uri'\nrequire 'net/http'\n\nurl = URI(\"https://api.infobip.com/email/1/logs?messageId=64c98929-f160-4e2c-b156-ca88cc733547,60d586a1-6448-4c5f-860d-be3ddbea16da\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"authorization\"] = 'Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=='\nrequest[\"accept\"] = 'application/json'\n\nresponse = http.request(request)\nputs response.read_body\n", "language": "ruby" }, { "code": "import http.client\n\nconn = http.client.HTTPSConnection(\"api.infobip.com\")\n\nheaders = {\n 'authorization': \"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\",\n 'accept': \"application/json\"\n }\n\nconn.request(\"GET\", \"/email/1/logs?messageId=64c98929-f160-4e2c-b156-ca88cc733547,60d586a1-6448-4c5f-860d-be3ddbea16da\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))\n", "language": "python" }, { "code": "HttpResponse<String> response = Unirest.get(\"https://api.infobip.com/email/1/logs?messageId=64c98929-f160-4e2c-b156-ca88cc733547,60d586a1-6448-4c5f-860d-be3ddbea16da\")\n .header(\"authorization\", \"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\")\n .header(\"accept\", \"application/json\")\n .asString();", "language": "java" }, { "code": "var client = new RestClient(\"https://api.infobip.com/email/1/logs?messageId=64c98929-f160-4e2c-b156-ca88cc733547,60d586a1-6448-4c5f-860d-be3ddbea16da\");\n\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"accept\", \"application/json\");\nrequest.AddHeader(\"authorization\", \"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\");\n\nIRestResponse response = client.Execute(request);", "language": "csharp" }, { "code": "var data = null;\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n if (this.readyState === this.DONE) {\n console.log(this.responseText);\n }\n});\n\nxhr.open(\"GET\", \"https://api.infobip.com/email/1/logs?messageId=64c98929-f160-4e2c-b156-ca88cc733547,60d586a1-6448-4c5f-860d-be3ddbea16da\");\nxhr.setRequestHeader(\"authorization\", \"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\");\nxhr.setRequestHeader(\"accept\", \"application/json\");\n\nxhr.send(data);\n", "language": "javascript" } ] } [/block] Response: [block:code] { "codes": [ { "code": "{\n \"results\": [\n {\n \"messageId\": \"64c98929-f160-4e2c-b156-ca88cc733547\",\n \"to\": \"recipient@infobip.com\",\n \"from\": \"sender@infobip.com\",\n \"text\": \"Test text\",\n \"sentAt\": \"2016-09-01T10:29:00.440+0000\",\n \"doneAt\": \"2016-09-01T10:29:01.130+0000\",\n \"price\": {\n \"pricePerMessage\": 0.0005,\n \"currency\": \"EUR\"\n },\n \"status\": {\n \"groupId\": 3,\n \"groupName\": \"DELIVERED\",\n \"id\": 5,\n \"name\": \"DELIVERED_TO_HANDSET\",\n \"description\": \"Message delivered to handset\"\n },\n \"channel\": \"EMAIL\"\n },\n {\n \"messageId\": \"60d586a1-6448-4c5f-860d-be3ddbea16da\",\n \"to\": \"recipient@infobip.com\",\n \"from\": \"sender@infobip.com\",\n \"text\": \"Test text\",\n \"sentAt\": \"2016-09-01T10:29:00.317+0000\",\n \"doneAt\": \"2016-09-01T10:29:00.807+0000\",\n \"price\": {\n \"pricePerMessage\": 0.0005,\n \"currency\": \"EUR\"\n },\n \"status\": {\n \"groupId\": 3,\n \"groupName\": \"DELIVERED\",\n \"id\": 5,\n \"name\": \"DELIVERED_TO_HANDSET\",\n \"description\": \"Message delivered to handset\"\n },\n \"channel\": \"EMAIL\"\n }\n ]\n}", "language": "json" }, { "code": "<?xml version='1.0' encoding='UTF-8'?>\n<LogsResponse>\n <results>\n <result>\n <messageId>64c98929-f160-4e2c-b156-ca88cc733547</messageId>\n <to>recipient@infobip.com</to>\n <from>sender@infobip.com</from>\n <text>Test text</text>\n <sentAt>2016-09-01T10:29:00.440+0000</sentAt>\n <doneAt>2016-09-01T10:29:01.130+0000</doneAt>\n <price>\n <pricePerMessage>0.0005000000</pricePerMessage>\n <currency>EUR</currency>\n </price>\n <status>\n <groupId>3</groupId>\n <groupName>DELIVERED</groupName>\n <id>5</id>\n <name>DELIVERED_TO_HANDSET</name>\n <description>Message delivered to handset</description>\n </status>\n <channel>EMAIL</channel>\n </result>\n \t<result>\n <messageId>60d586a1-6448-4c5f-860d-be3ddbea16da</messageId>\n <to>recipient@infobip.com</to>\n <from>sender@infobip.com</from>\n <text>Test text</text>\n <sentAt>2016-09-01T10:29:00.317+0000</sentAt>\n <doneAt>2016-09-01T10:29:00.807+0000</doneAt>\n <price>\n <pricePerMessage>0.0005000000</pricePerMessage>\n <currency>EUR</currency>\n </price>\n <status>\n <groupId>3</groupId>\n <groupName>DELIVERED</groupName>\n <id>5</id>\n <name>DELIVERED_TO_HANDSET</name>\n <description>Message delivered to handset</description>\n </status>\n <channel>EMAIL</channel>\n </result>\n </results>\n</LogsResponse>", "language": "xml" } ] } [/block] [block:api-header] { "type": "get", "title": "Get logs with from, to and limit filters" } [/block] `from`, `to` and `limit` accept a single parameter which will be used to filter response message logs. **Request** [block:code] { "codes": [ { "code": "GET /email/1/logs?from=sender@infobip.com&to=recipient@infobip.com&limit=1\nHost: api.infobip.com\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\nAccept: application/json", "language": "http", "name": "JSON" }, { "code": "GET /email/1/logs?from=sender@infobip.com&to=recipient@infobip.com&limit=1\nHost: api.infobip.com\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\nAccept: application/xml", "language": "http", "name": "XML" }, { "code": "curl -X GET \n-H 'Accept: application/json' \n-H 'Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=='\nhttps://api.infobip.com/email/1/logs?from=sender@infobip.com&to=recipient@infobip.com&limit=1", "language": "curl", "name": "cURL" }, { "code": "<?php\n\n$request = new HttpRequest();\n$request->setUrl('https://api.infobip.com/email/1/logs?from=sender@infobip.com&to=recipient@infobip.com&limit=1');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders(array(\n 'accept' => 'application/json',\n 'authorization' => 'Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=='\n));\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}\n?>", "language": "php" }, { "code": "require 'uri'\nrequire 'net/http'\n\nurl = URI(\"https://api.infobip.com/email/1/logs?from=sender@infobip.com&to=recipient@infobip.com&limit=1\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"authorization\"] = 'Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=='\nrequest[\"accept\"] = 'application/json'\n\nresponse = http.request(request)\nputs response.read_body\n", "language": "ruby" }, { "code": "import http.client\n\nconn = http.client.HTTPSConnection(\"api.infobip.com\")\n\nheaders = {\n 'authorization': \"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\",\n 'accept': \"application/json\"\n }\n\nconn.request(\"GET\", \"/email/1/logs?from=sender@infobip.com&to=recipient@infobip.com&limit=1\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))\n", "language": "python" }, { "code": "HttpResponse<String> response = Unirest.get(\"https://api.infobip.com/email/1/logs?from=sender@infobip.com&to=recipient@infobip.com&limit=1\")\n .header(\"authorization\", \"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\")\n .header(\"accept\", \"application/json\")\n .asString();", "language": "java" }, { "code": "var client = new RestClient(\"https://api.infobip.com/email/1/logs?from=sender@infobip.com&to=recipient@infobip.com&limit=1\");\n\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"accept\", \"application/json\");\nrequest.AddHeader(\"authorization\", \"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\");\n\nIRestResponse response = client.Execute(request);", "language": "csharp" }, { "code": "var data = null;\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n if (this.readyState === this.DONE) {\n console.log(this.responseText);\n }\n});\n\nxhr.open(\"GET\", \"https://api.infobip.com/email/1/logs?from=sender@infobip.com&to=recipient@infobip.com&limit=1\");\nxhr.setRequestHeader(\"authorization\", \"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\");\nxhr.setRequestHeader(\"accept\", \"application/json\");\n\nxhr.send(data);\n", "language": "javascript" } ] } [/block] **Response** [block:code] { "codes": [ { "code": "{\n \"results\": [\n {\n \"messageId\": \"54ddb941-2566-46e0-802a-22bea5cf94bc\",\n \"to\": \"recipient@infobip.com\",\n \"from\": \"sender@infobip.com\",\n \"text\": \"Test text\",\n \"sentAt\": \"2016-09-01T11:14:44.453+0000\",\n \"doneAt\": \"2016-09-01T11:14:45.050+0000\",\n \"price\": {\n \"pricePerMessage\": 0.0005,\n \"currency\": \"EUR\"\n },\n \"status\": {\n \"groupId\": 3,\n \"groupName\": \"DELIVERED\",\n \"id\": 5,\n \"name\": \"DELIVERED_TO_HANDSET\",\n \"description\": \"Message delivered to handset\"\n },\n \"channel\": \"EMAIL\"\n }\n ]\n}", "language": "json" }, { "code": "<?xml version='1.0' encoding='UTF-8'?>\n<LogsResponse>\n <results>\n <result>\n <messageId>54ddb941-2566-46e0-802a-22bea5cf94bc</messageId>\n <to>recipient@infobip.com</to>\n <from>sender@infobip.com</from>\n <text>Test text</text>\n <sentAt>2016-09-01T11:14:44.453+0000</sentAt>\n <doneAt>2016-09-01T11:14:45.050+0000</doneAt>\n <price>\n <pricePerMessage>0.0005000000</pricePerMessage>\n <currency>EUR</currency>\n </price>\n <status>\n <groupId>3</groupId>\n <groupName>DELIVERED</groupName>\n <id>5</id>\n <name>DELIVERED_TO_HANDSET</name>\n <description>Message delivered to handset</description>\n </status>\n <channel>EMAIL</channel>\n </result>\n </results>\n</LogsResponse>", "language": "xml" } ] } [/block] [block:api-header] { "type": "get", "title": "Get logs with date range and general status filters" } [/block] `sentSince` and `generalStatus` accept a single parameter which will be used to filter response message logs. Request: [block:code] { "codes": [ { "code": "GET /email/1/logs?sentSince=2016-08-22T17:42:05.390%2b01:00&generalStatus=DELIVERED HTTP/1.1\nHost: api.infobip.com\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\nAccept: application/json", "language": "http", "name": "JSON" }, { "code": "GET /email/1/logs?sentSince=2016-08-22T17:42:05.390%2b01:00&generalStatus=DELIVERED HTTP/1.1\nHost: api.infobip.com\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\nAccept: application/xml", "language": "http", "name": "XML" }, { "code": "curl -X GET \n-H 'Accept: application/json' \n-H 'Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=='\nhttps://api.infobip.com/email/1/logs?sentSince=2016-08-22T17:42:05.390%2b01:00&generalStatus=DELIVERED", "language": "curl", "name": "cURL" }, { "code": "<?php\n\n$request = new HttpRequest();\n$request->setUrl('https://api.infobip.com/email/1/logs?sentSince=2016-08-22T17:42:05.390%2b01:00&generalStatus=DELIVERED');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders(array(\n 'accept' => 'application/json',\n 'authorization' => 'Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=='\n));\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}\n?>", "language": "php" }, { "code": "require 'uri'\nrequire 'net/http'\n\nurl = URI(\"https://api.infobip.com/email/1/logs?sentSince=2016-08-22T17:42:05.390%2b01:00&generalStatus=DELIVERED\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"authorization\"] = 'Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=='\nrequest[\"accept\"] = 'application/json'\n\nresponse = http.request(request)\nputs response.read_body\n", "language": "ruby" }, { "code": "import http.client\n\nconn = http.client.HTTPSConnection(\"api.infobip.com\")\n\nheaders = {\n 'authorization': \"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\",\n 'accept': \"application/json\"\n }\n\nconn.request(\"GET\", \"/email/1/logs?sentSince=2016-08-22T17:42:05.390%2b01:00&generalStatus=DELIVERED\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))\n", "language": "python" }, { "code": "HttpResponse<String> response = Unirest.get(\"https://api.infobip.com/email/1/logs?sentSince=2016-08-22T17:42:05.390%2b01:00&generalStatus=DELIVERED\")\n .header(\"authorization\", \"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\")\n .header(\"accept\", \"application/json\")\n .asString();", "language": "java" }, { "code": "var client = new RestClient(\"https://api.infobip.com/email/1/logs?sentSince=2016-08-22T17:42:05.390%2b01:00&generalStatus=DELIVERED\");\n\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"accept\", \"application/json\");\nrequest.AddHeader(\"authorization\", \"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\");\n\nIRestResponse response = client.Execute(request);", "language": "csharp" }, { "code": "var data = null;\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n if (this.readyState === this.DONE) {\n console.log(this.responseText);\n }\n});\n\nxhr.open(\"GET\", \"https://api.infobip.com/email/1/logs?sentSince=2016-08-22T17:42:05.390%2b01:00&generalStatus=DELIVERED\");\nxhr.setRequestHeader(\"authorization\", \"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\");\nxhr.setRequestHeader(\"accept\", \"application/json\");\n\nxhr.send(data);\n", "language": "javascript" } ] } [/block] Response: [block:code] { "codes": [ { "code": "{\n \"results\": [\n {\n \"messageId\": \"54ddb941-2566-46e0-802a-22bea5cf94bc\",\n \"to\": \"recipient@infobip.com\",\n \"from\": \"sender@infobip.com\",\n \"text\": \"Test text\",\n \"sentAt\": \"2016-09-01T11:14:44.453+0000\",\n \"doneAt\": \"2016-09-01T11:14:45.050+0000\",\n \"price\": {\n \"pricePerMessage\": 0.0005,\n \"currency\": \"EUR\"\n },\n \"status\": {\n \"groupId\": 3,\n \"groupName\": \"DELIVERED\",\n \"id\": 5,\n \"name\": \"DELIVERED_TO_HANDSET\",\n \"description\": \"Message delivered to handset\"\n },\n \"channel\": \"EMAIL\"\n }\n ]\n}", "language": "json" }, { "code": "<?xml version='1.0' encoding='UTF-8'?>\n<LogsResponse>\n <results>\n <result>\n <messageId>54ddb941-2566-46e0-802a-22bea5cf94bc</messageId>\n <to>recipient@infobip.com</to>\n <from>sender@infobip.com</from>\n <text>Test text</text>\n <sentAt>2016-09-01T11:14:44.453+0000</sentAt>\n <doneAt>2016-09-01T11:14:45.050+0000</doneAt>\n <price>\n <pricePerMessage>0.0005000000</pricePerMessage>\n <currency>EUR</currency>\n </price>\n <status>\n <groupId>3</groupId>\n <groupName>DELIVERED</groupName>\n <id>5</id>\n <name>DELIVERED_TO_HANDSET</name>\n <description>Message delivered to handset</description>\n </status>\n <channel>EMAIL</channel>\n </result>\n </results>\n</LogsResponse>", "language": "xml" } ] } [/block] #Get logs by Bulk ID **Request:** [block:code] { "codes": [ { "code": "GET /email/1/logs?bulkId=lrzkq6gatdkxouhrkgni HTTP/1.1\nHost: api.infobip.com\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\nAccept: application/json", "language": "http", "name": "JSON" }, { "code": "GET /email/1/logs?bulkId=lrzkq6gatdkxouhrkgni HTTP/1.1\nHost: api.infobip.com\nAuthorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\nAccept: application/xml", "language": "http", "name": null }, { "code": "curl -X GET \\\n-H 'Accept: application/json' \\\n-H \"Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\" \\\nhttps://api.infobip.com/email/1/logs?bulkId=lrzkq6gatdkxouhrkgni", "language": "curl" }, { "code": "<?php\n\n$request = new HttpRequest();\n$request->setUrl('https://api.infobip.com/email/1/logs');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setQueryData(array(\n 'bulkId' => 'lrzkq6gatdkxouhrkgni'\n));\n\n$request->setHeaders(array(\n 'accept' => 'application/json',\n 'authorization' => 'Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=='\n));\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}", "language": "php" }, { "code": "require 'uri'\nrequire 'net/http'\n\nurl = URI(\"https://api.infobip.com/email/1/logs?bulkId=lrzkq6gatdkxouhrkgni\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"authorization\"] = 'Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=='\nrequest[\"accept\"] = 'application/json'\n\nresponse = http.request(request)\nputs response.read_body", "language": "ruby" }, { "code": "import http.client\n\nconn = http.client.HTTPSConnection(\"api.infobip.com\")\n\nheaders = {\n 'authorization': \"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\",\n 'accept': \"application/json\"\n }\n\nconn.request(\"GET\", \"/email/1/logs?bulkId=lrzkq6gatdkxouhrkgni\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))", "language": "python" }, { "code": "HttpResponse<String> response = Unirest.get(\"https://api.infobip.com/email/1/logs?bulkId=lrzkq6gatdkxouhrkgni\")\n .header(\"authorization\", \"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\")\n .header(\"accept\", \"application/json\")\n .asString();", "language": "java" }, { "code": "var client = new RestClient(\"https://api.infobip.com/email/1/logs?bulkId=lrzkq6gatdkxouhrkgni\");\n\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"accept\", \"application/json\");\nrequest.AddHeader(\"authorization\", \"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\");\n\nIRestResponse response = client.Execute(request);", "language": "csharp", "name": "C#" }, { "code": "var data = null;\n\nvar xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n if (this.readyState === this.DONE) {\n console.log(this.responseText);\n }\n});\n\nxhr.open(\"GET\", \"https://api.infobip.com/email/1/logs?bulkId=lrzkq6gatdkxouhrkgni\");\nxhr.setRequestHeader(\"authorization\", \"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==\");\nxhr.setRequestHeader(\"accept\", \"application/json\");\n\nxhr.send(data);", "language": "javascript" } ] } [/block] **Response:** [block:code] { "codes": [ { "code": "{\n \"results\": [\n {\n \"bulkId\": \"lrzkq6gatdkxouhrkgni\",\n \"messageId\": \"64c98929-f160-4e2c-b156-ca88cc733547\",\n \"to\": \"recipient@infobip.com\",\n \"from\": \"sender@infobip.com\",\n \"text\": \"Test text\",\n \"sentAt\": \"2016-09-01T10:29:00.440+0000\",\n \"doneAt\": \"2016-09-01T10:29:01.130+0000\",\n \"price\": {\n \"pricePerMessage\": 0.0005,\n \"currency\": \"EUR\"\n },\n \"status\": {\n \"groupId\": 3,\n \"groupName\": \"DELIVERED\",\n \"id\": 5,\n \"name\": \"DELIVERED_TO_HANDSET\",\n \"description\": \"Message delivered to handset\"\n },\n \"channel\": \"EMAIL\"\n },\n {\n \"bulkId\": \"lrzkq6gatdkxouhrkgni\",\n \"messageId\": \"60d586a1-6448-4c5f-860d-be3ddbea16da\",\n \"to\": \"recipient@infobip.com\",\n \"from\": \"sender@infobip.com\",\n \"text\": \"Test text\",\n \"sentAt\": \"2016-09-01T10:29:00.317+0000\",\n \"doneAt\": \"2016-09-01T10:29:00.807+0000\",\n \"price\": {\n \"pricePerMessage\": 0.0005,\n \"currency\": \"EUR\"\n },\n \"status\": {\n \"groupId\": 3,\n \"groupName\": \"DELIVERED\",\n \"id\": 5,\n \"name\": \"DELIVERED_TO_HANDSET\",\n \"description\": \"Message delivered to handset\"\n },\n \"channel\": \"EMAIL\"\n }\n ]\n}", "language": "json", "name": null }, { "code": "<?xml version='1.0' encoding='UTF-8'?>\n<LogsResponse>\n <results>\n <result>\n <bulkId>lrzkq6gatdkxouhrkgni</bulkId>\n <messageId>64c98929-f160-4e2c-b156-ca88cc733547</messageId>\n <to>recipient@infobip.com</to>\n <from>sender@infobip.com</from>\n <text>Test text</text>\n <sentAt>2016-09-01T10:29:00.440+0000</sentAt>\n <doneAt>2016-09-01T10:29:01.130+0000</doneAt>\n <price>\n <pricePerMessage>0.0005000000</pricePerMessage>\n <currency>EUR</currency>\n </price>\n <status>\n <groupId>3</groupId>\n <groupName>DELIVERED</groupName>\n <id>5</id>\n <name>DELIVERED_TO_HANDSET</name>\n <description>Message delivered to handset</description>\n </status>\n <channel>EMAIL</channel>\n </result>\n \t<result>\n <bulkId>lrzkq6gatdkxouhrkgni</bulkId>\n <messageId>60d586a1-6448-4c5f-860d-be3ddbea16da</messageId>\n <to>recipient@infobip.com</to>\n <from>sender@infobip.com</from>\n <text>Test text</text>\n <sentAt>2016-09-01T10:29:00.317+0000</sentAt>\n <doneAt>2016-09-01T10:29:00.807+0000</doneAt>\n <price>\n <pricePerMessage>0.0005000000</pricePerMessage>\n <currency>EUR</currency>\n </price>\n <status>\n <groupId>3</groupId>\n <groupName>DELIVERED</groupName>\n <id>5</id>\n <name>DELIVERED_TO_HANDSET</name>\n <description>Message delivered to handset</description>\n </status>\n <channel>EMAIL</channel>\n </result>\n </results>\n</LogsResponse>", "language": "xml" } ] } [/block]

User Information

Try It Out

get
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}