younifyd
Menu

List Integration Logs

List logs for integration

GET/integrations/{integration_uuid}/logs

Use it in a workflow

  1. Add a step and choose the Elastic Path connector.
  2. Pick the List Integration Logs action (under Integrations).
  3. Fill in the fields below, then reference the result from later steps as {{listIntegrationLogs.response.data}}.

Request

Path parameters

integration_uuidstringrequired

The unique identifier of the integration.

Response

Returns 200 with an object. Read it in later steps with {{listIntegrationLogs.response.data.<field>}}.

dataarray<object>
idstring

A unique identifier of an integration whose logs you want to view.

typestring

This represents the type of resource object being returned. Always `integration-log`.

One ofintegration-logDefault "integration-log"

succeededboolean

Whether the integration was successful.

attemptinteger

The number of attempts made to process the integration.

processing_timenumber (float)

The time taken to process the delivery attempt, in seconds, rounded to four decimal places.

bodystring

The response returned from the integration.

status_codeinteger

The status code returned from the integration.

error_detailstring

The reason why the integration failed.

relationshipsobject2 fields

Relationships are established between different integration entities. For example, a log and an integration job are related to an integration.

metaobject1 fields
linksobject

Links are used to allow you to move between pages.

firststring

Always the first page. This is not present on the first page.

nextstring

Next page link.

prevstring

This is not present on the first page.

json
{
  "data": [
    {
      "id": "ac8bb58e-2b9b-4ccf-9dd2-ecdf50417849",
      "type": "integration-log",
      "succeeded": true,
      "attempt": 1,
      "processing_time": 30.0006,
      "body": "Not Found",
      "status_code": 404,
      "error_detail": "Received a status code outside of 2xx range - treating webhook as a fail",
      "relationships": {
        "integration": {
          "data": {
            "id": "ff8634a8-a89e-4eac-baab-9b7b8c4f8720",
            "type": "integration"
          }
        },
        "job": {
          "data": {
            "id": "ff8634a8-a89e-4eac-baab-9b7b8c4f8720",
            "type": "integration-job"
          }
        }
      },
      "meta": {
        "timestamps": {
          "created_at": "2017-07-21T17:32:28Z"
        }
      }
    }
  ],
  "links": {
    "first": "/integrations/logs?page[offset]=0&page[limit]=10",
    "next": "/integrations/logs?page[offset]=10&page[limit]=10",
    "prev": "/integrations/logs?page[offset]=8&page[limit]=10"
  }
}

Need more? See the Elastic Path guide for connection setup and behaviour shared by every action.