Get API error

GET

/errors/:id

Paramètres de requête

id
requis
The error log id

Exemples


GET /errors/123 HTTP/1.1
Host: api.smsup.ch
Accept: application/json
Authorization: Bearer your.token
      
    

Format de la réponse


{
  "status": 1,
  "message": "OK",
  "data": {
      "log_id": "123",
      "date": "2022-01-01 10:00:00",
      "method": "POST",
      "url": "api.smsfactor.com/send",
      "error_code": "-3",
      "ip": "127.0.0.1",
      "headers": "Content-Type: application/xml"\nHost: api.smsfactor.com",
      "query_param": "",
      "body":"{\"message\":{\"text\":\"Hello, how are you ?\",\"sender\":\"Me\"},\"recipients\":{\"gsm\":\"33611111111\"}}"
  }
}
          
        

<?xml version="1.0" encoding="UTF-8"?>
<response>
    <status>1</status>
    <message>OK</message>
    <data>
        <log_id>123</log_id>
        <date>2022-01-01 10:00:00</date>
        <method>POST</method>
        <url>api.smsfactor.com/send</url>
        <error_code>-3</error_code>
        <ip>127.0.0.1</ip>
        <headers>Content-Type: application/xml"\nHost: api.smsfactor.com</headers>
        <query_param></query_param>
        <body>{\"message\":{\"text\":\"Hello, how are you ?\",\"sender\":\"Me\"},\"recipients\":{\"gsm\":\"33611111111\"}}</body>
    </data>
</response>