Skip to main content
GET
/
integrations
/
logs
Retrieve all integration exception logs
curl --request GET \
  --url https://panel.sendcloud.sc/api/v2/integrations/logs \
  --header 'Authorization: Basic <encoded-value>'
{
  "next": "https://example.com",
  "previous": "https://example.com",
  "results": [
    {
      "id": 123,
      "base_url": "https://example.com",
      "full_url": "https://example.com/order-note.json",
      "method": "POST",
      "response_code": 495,
      "response": {
        "headers": {
          "Cache-Control": "max-age=3600",
          "Content-Type": "text/html; charset=utf-8",
          "Connection": "keep-alive"
        },
        "body": "<!doctype html>\n<html>\n <head>\n <title>SSL Certificate Error</title>\n </head>\n </html>\n"
      },
      "request": {
        "headers": {
          "Cache-Control": "max-age=3600",
          "Content-Type": "text/html; charset=utf-8",
          "Connection": "keep-alive"
        },
        "payload": {
          "order_note": {
            "note": "Success"
          }
        }
      },
      "created_at": "2023-03-01T02:02:00+01:00",
      "exception_type": "requests.exceptions.SSLError",
      "exception": "An SSL error occurred",
      "protected": false
    },
    {
      "id": 124,
      "integration_id": 123,
      "user_id": 123,
      "base_url": "https://example.com",
      "full_url": "https://example.com/order-note.json",
      "method": "POST",
      "response_code": 404,
      "response": {},
      "request": {
        "headers": {
          "Cache-Control": "max-age=3600",
          "Content-Type": "text/html; charset=utf-8",
          "Connection": "keep-alive"
        },
        "payload": {}
      },
      "created_at": "2023-03-01T02:02:00+01:00",
      "exception": "PageNotFound",
      "protected": false
    }
  ]
}
Integration exception logs might be generated, for example:
  • if some resource cannot be found
  • if API credentials are no longer valid
Each log record may contain information about the request and response, the status code and code exception, and can be used as a reference to identify issues between Sendcloud and a webshop.

Authorizations

Authorization
string
header
required

Basic Authentication using API key and secrets is currently the main authentication mechanism.

Response

200 - application/json

OK

next
string<uri>

Cursor based pagination url to go forward. By following this URL you can get a next batch of logs

previous
string<uri>

Cursor based pagination url to go backwards. By following this URL you can get a previous batch of logs

results
Integration Log Object · object[]