> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.coperniq.io/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.coperniq.io/_mcp/server.

# List Integration Logs

GET https://api.coperniq.io/v1/integration-logs

Retrieve a paginated list of the company's Integration History Log: one entry per sync attempt, with its status, the record it ran for, what triggered it and, for failed invoice and payment syncs, the error message. Raw sync payloads are never returned.

Supports:
- Pagination (`page_size`, `page`)
- Date filtering (`created_after`, `created_before`)
- Filtering by `integration_id` and `status`
- Sorting by creation time (`order_by`, default: desc)

**Note:** A sync stays `IN_PROGRESS` while it is being retried and becomes `FAILED` only after the last retry, so `status=FAILED` is safe to alert on.

**Note:** Invoice failures are always labeled `INVOICE_CREATED` in `trigger.event`, even when the sync was triggered by an invoice update.

Logs are always limited to your company. An `integration_id` that doesn't exist, or belongs to another company, returns an empty list.


Reference: https://docs.coperniq.io/api-reference/integrations/list-integration-logs

## Authentication

- `x-api-key` header (required) — API Key authentication via header

## Request

### Query parameters

- `page_size` (integer, optional, default: 20) — Number of items per page (max 100)
- `page` (integer, optional, default: 1) — Page number (1-based)
- `integration_id` (integer, optional) — Only return logs for this integration (an `id` from `GET /integrations`)
- `status` (enum, optional) — Only return logs with this status
  - Allowed values: `SUCCESS`, `FAILED`, `IN_PROGRESS`
- `created_after` (string, optional) — Only return logs created at or after this timestamp (ISO 8601 date-time with offset)
- `created_before` (string, optional) — Only return logs created at or before this timestamp (ISO 8601 date-time with offset)
- `order_by` (enum, optional, default: desc) — Sort direction on `createdAt`. Ties are broken by log id so pages never overlap.
  - Allowed values: `asc`, `desc`

## Response

### 200

List of integration logs

- `list of IntegrationLog`

## Errors

### 400 Bad Request Error

Invalid request

- `message` (string, optional)
- `code` (enum, optional)
  - Allowed values: `GRAPHQL_ERROR`
- `field` (string, optional) — Field that caused the validation error (if applicable)

### 401 Unauthorized Error

Authentication failed

- `message` (string, optional)
- `code` (enum, optional)
  - Allowed values: `GRAPHQL_ERROR`

### 500 Internal Server Error

Internal server error

- `message` (string, optional)
- `code` (enum, optional)
  - Allowed values: `GRAPHQL_ERROR`

### 502 Bad Gateway Error

Bad Gateway — downstream GraphQL service returned errors

- `message` (string, required) — Summary of the downstream service failure
- `code` (enum, required)
  - Allowed values: `GRAPHQL_ERROR`

## Types

### IntegrationLog

One sync attempt in the Integration History Log. Raw payloads are never returned.

- `id` (integer, required)
- `integrationId` (integer, required) — The integration the sync ran for (an `id` from `GET /integrations`)
- `integrationType` (string, required, nullable) — The integration's type, as on `GET /integrations` (e.g. `QUICKBOOKS`). New types are added over time.
- `status` (enum, required) — A sync stays `IN_PROGRESS` while it is being retried and becomes `FAILED` only after the last retry, so `FAILED` is safe to alert on.
  - Allowed values: `SUCCESS`, `FAILED`, `IN_PROGRESS`
- `createdAt` (string, required)
- `record` (IntegrationLogRecord, required, nullable) — The record the sync ran for; null when the log has no record
- `errorMessage` (string, required, nullable) — Why the sync failed, up to 500 characters. Set only on `FAILED` logs; null for other statuses and for failures that recorded no reason.
- `trigger` (IntegrationLogTrigger, required, nullable) — What triggered the sync; null when it is not recorded

### IntegrationLogRecord

The record the sync ran for; null when the log has no record

- `id` (integer, optional)
- `title` (string, optional, nullable)
- `type` (string, optional, nullable) — `Project`, `Account` or `Opportunity`

### IntegrationLogTrigger

What triggered the sync; null when it is not recorded

- `event` (string, required) — What triggered the sync, e.g. `INVOICE_CREATED` or `PAYMENT_RECORD_CREATED`; for proposal tools, the proposal event. Invoice failures are always labeled `INVOICE_CREATED`, even when the sync was triggered by an invoice update.
- `entity` (string, required, nullable) — The kind of record that triggered the sync, e.g. `INVOICE` or `PAYMENT_RECORD`. Null for proposal tools.
- `id` (integer, required, nullable) — The id of the record that triggered the sync (for example the invoice or payment id). Null for proposal tools.

## Examples

**Response**

```json
[
  {
    "id": 90412,
    "integrationId": 31,
    "integrationType": "QUICKBOOKS",
    "status": "FAILED",
    "createdAt": "2026-11-02T17:04:11.000Z",
    "record": {
      "id": 10452,
      "title": "Smith Residence",
      "type": "Project"
    },
    "errorMessage": "Account period closed",
    "trigger": {
      "event": "INVOICE_CREATED",
      "entity": "INVOICE",
      "id": 5821
    }
  }
]
```

**SDK Code**

```python
import requests

url = "https://api.coperniq.io/v1/integration-logs"

querystring = {"integration_id":"31","status":"FAILED","created_after":"2026-11-01T00:00:00Z"}

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript
const url = 'https://api.coperniq.io/v1/integration-logs?integration_id=31&status=FAILED&created_after=2026-11-01T00%3A00%3A00Z';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.coperniq.io/v1/integration-logs?integration_id=31&status=FAILED&created_after=2026-11-01T00%3A00%3A00Z"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.coperniq.io/v1/integration-logs?integration_id=31&status=FAILED&created_after=2026-11-01T00%3A00%3A00Z")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.coperniq.io/v1/integration-logs?integration_id=31&status=FAILED&created_after=2026-11-01T00%3A00%3A00Z")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.coperniq.io/v1/integration-logs?integration_id=31&status=FAILED&created_after=2026-11-01T00%3A00%3A00Z', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.coperniq.io/v1/integration-logs?integration_id=31&status=FAILED&created_after=2026-11-01T00%3A00%3A00Z");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.coperniq.io/v1/integration-logs?integration_id=31&status=FAILED&created_after=2026-11-01T00%3A00%3A00Z")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```