> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# List connections

> Connections with last sync, entity state and any running sync.

Key scope: read (or execute). Module: connectors. Answers the list object (object, data, has_more, next_cursor); the same rows stay under `connections`, deprecated.



## OpenAPI

````yaml /openapi.json get /v1/connections
openapi: 3.1.0
info:
  title: InsightChain API
  version: 2.0.0
  description: 'The InsightChain API. Send your key as `Authorization: Bearer <key>`.'
  contact:
    name: InsightChain
    url: https://insightchain.ai/docs
  license:
    name: Proprietary
    url: https://insightchain.ai/terms
servers:
  - url: https://api.insightchain.ai
security: []
tags:
  - name: Data ingestion
  - name: Tariff check
  - name: Landed cost
  - name: Import taxes
  - name: Customs documents
  - name: Denied party screening
  - name: Location risk
  - name: Tariff impact and trade data
  - name: Recommendations
  - name: Orders and approval
  - name: Explanations
  - name: Alerts
  - name: Inventory
  - name: Forecast check
  - name: Disruptions
  - name: Product compliance
  - name: Product recalls
  - name: Product passports
  - name: Webhooks
  - name: Connections
  - name: Sync runs
  - name: API keys
  - name: Usage
  - name: Request log
  - name: Agent (MCP) server
paths:
  /v1/connections:
    get:
      tags:
        - Connections
      summary: List connections
      description: >-
        Connections with last sync, entity state and any running sync.


        Key scope: read (or execute). Module: connectors. Answers the list
        object (object, data, has_more, next_cursor); the same rows stay under
        `connections`, deprecated.
      operationId: listConnections
      parameters:
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 50
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            maximum: 100000
            default: 0
          deprecated: true
        - name: cursor
          in: query
          required: false
          schema:
            type: string
            maxLength: 200
          description: >-
            next_cursor of the previous page. Opaque; valid only with the same
            filters
      responses:
        '200':
          description: OK
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-RateLimit-Limit-Day:
              $ref: '#/components/headers/X-RateLimit-Limit-Day'
            X-RateLimit-Remaining-Day:
              $ref: '#/components/headers/X-RateLimit-Remaining-Day'
            X-Request-ID:
              $ref: '#/components/headers/X-Request-ID'
            X-Client-Request-ID:
              $ref: '#/components/headers/X-Client-Request-ID'
            X-InsightChain-Sandbox:
              $ref: '#/components/headers/X-InsightChain-Sandbox'
          content:
            application/json:
              schema:
                type: object
                properties:
                  object:
                    const: list
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/ErpConnection'
                  has_more:
                    type: boolean
                    description: Whether a further page exists
                  next_cursor:
                    type:
                      - string
                      - 'null'
                    description: Send as `cursor` for the next page; null on the last page
                  connections:
                    type: array
                    items:
                      $ref: '#/components/schemas/ErpConnection'
                    deprecated: true
                    description: 'Deprecated: the same rows as `data`'
                  next_offset:
                    type:
                      - integer
                      - 'null'
                    deprecated: true
                    description: 'Deprecated: page with next_cursor'
                  request_id:
                    type: string
                    description: >-
                      Quote this when asking about the request; also the
                      X-Request-ID header
                required:
                  - object
                  - data
                  - has_more
                  - next_cursor
                  - connections
                  - next_offset
                  - request_id
              example:
                request_id: 8e9a87ab-8d08-4fcc-81e4-39b105b9200b
                connections:
                  - id: 94af960b-f577-4735-9922-8f956bf82e3f
                    name: erp-main
                    system_type: sensing
                    ingest_mode: push
                    status: active
                    pull_enabled: false
                    schedule_minutes: 1440
                    last_sync_at: null
                    last_sync_status: null
                    last_sync_message: null
                    last_ingest_at: '2026-11-21T09:32:41.268+00:00'
                    last_ingest_status: success
                    created_at: '2026-11-21T09:18:06.801587+00:00'
                    updated_at: '2026-11-21T09:32:41.268393+00:00'
                    writeback_enabled: false
                    entities: []
                    latest_sync_run:
                      id: 9a729324-3da8-471c-ad3c-beaa96bb65f2
                      status: success
                      started_at: '2026-11-21T09:32:41.262272+00:00'
                      finished_at: '2026-11-21T09:32:41.266+00:00'
                      error_count: 0
                    active_run: null
                has_more: false
                next_offset: null
                object: list
                data:
                  - id: 94af960b-f577-4735-9922-8f956bf82e3f
                    name: erp-main
                    system_type: sensing
                    ingest_mode: push
                    status: active
                    pull_enabled: false
                    schedule_minutes: 1440
                    last_sync_at: null
                    last_sync_status: null
                    last_sync_message: null
                    last_ingest_at: '2026-11-21T09:32:41.268+00:00'
                    last_ingest_status: success
                    created_at: '2026-11-21T09:18:06.801587+00:00'
                    updated_at: '2026-11-21T09:32:41.268393+00:00'
                    writeback_enabled: false
                    entities: []
                    latest_sync_run:
                      id: 9a729324-3da8-471c-ad3c-beaa96bb65f2
                      status: success
                      started_at: '2026-11-21T09:32:41.262272+00:00'
                      finished_at: '2026-11-21T09:32:41.266+00:00'
                      error_count: 0
                    active_run: null
                next_cursor: null
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '405':
          $ref: '#/components/responses/MethodNotAllowed'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalError'
        '502':
          $ref: '#/components/responses/UpstreamError'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
      security:
        - apiKey: []
components:
  headers:
    RateLimit-Limit:
      schema:
        type: integer
      description: Requests allowed per minute. On every answer to an accepted API key
    RateLimit-Remaining:
      schema:
        type: integer
      description: Requests left in the current minute window
    RateLimit-Reset:
      schema:
        type: integer
      description: Seconds until the minute window resets
    X-RateLimit-Limit-Day:
      schema:
        type: integer
      description: The key's daily quota
    X-RateLimit-Remaining-Day:
      schema:
        type: integer
      description: Requests left today (resets 00:00 UTC)
    X-Request-ID:
      schema:
        type: string
      description: Quote this when asking about a request
    X-Client-Request-ID:
      schema:
        type: string
      description: Your own X-Request-ID request header, echoed. Absent when you sent none
    X-InsightChain-Sandbox:
      schema:
        type: string
        enum:
          - 'true'
      description: >-
        Present, and true, on every answer to a test key: the data is the
        sandbox's
    Allow:
      schema:
        type: string
      description: The methods the path takes
    Retry-After:
      schema:
        type: integer
      description: Seconds to wait before trying again
  schemas:
    ErpConnection:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        system_type:
          type: string
          description: The kind of source system, a lowercase identifier
        ingest_mode:
          type: string
          description: 'push: records are sent to us; pull: we read them on a schedule'
        status:
          type: string
          enum:
            - active
            - disconnected
        pull_enabled:
          type: boolean
          description: >-
            Whether the scheduled pull is set up; only such a connection can be
            synced
        schedule_minutes:
          type: integer
          description: Minutes between scheduled pulls
        last_sync_at:
          type:
            - string
            - 'null'
          format: date-time
          description: The last pull
        last_sync_status:
          type:
            - string
            - 'null'
          description: 'How the last pull ended: success, partial, failed or error'
        last_sync_message:
          type:
            - string
            - 'null'
        last_ingest_at:
          type:
            - string
            - 'null'
          format: date-time
          description: The last time records arrived, pushed or pulled
        last_ingest_status:
          type:
            - string
            - 'null'
          description: success, partial or failed
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        writeback_enabled:
          type: boolean
          description: The connection's own switch for writing orders back to the ERP
        entities:
          type: array
          items:
            type: object
            properties:
              entity:
                type: string
                description: suppliers, items, purchase_orders, ...
              synced_through:
                type:
                  - string
                  - 'null'
                format: date-time
                description: >-
                  Changes up to this time are synced; null on a first sync or
                  for an entity that is read in full every time
              resume_pending:
                type: boolean
                description: A pull was left part-way and the next sync resumes it
              last_run:
                oneOf:
                  - $ref: '#/components/schemas/IngestEntityCounts'
                  - type: 'null'
                description: >-
                  Counts from the connection's latest sync run; null when that
                  run did not touch the entity
            required:
              - entity
              - synced_through
              - resume_pending
              - last_run
          description: >-
            The entities the connection pulls, in sync order; empty for a
            push-only connection
        latest_sync_run:
          type:
            - object
            - 'null'
          properties:
            id:
              type: string
              format: uuid
            status:
              type: string
              enum:
                - running
                - success
                - partial
                - failed
            started_at:
              type: string
              format: date-time
            finished_at:
              type:
                - string
                - 'null'
              format: date-time
            error_count:
              type: integer
          required:
            - id
            - status
            - started_at
            - finished_at
            - error_count
          description: >-
            The newest run that brought records in, pushed or pulled; null
            before the first
        active_run:
          type:
            - object
            - 'null'
          properties:
            run_id:
              type: string
              format: uuid
              description: >-
                The id of the running sync. It is not the id of a row of GET
                /v1/sync_runs: those rows list the records a sync brought in
            status:
              type: string
              enum:
                - running
                - continued
            locked_until:
              type: string
              format: date-time
              description: When the lock lapses if the run stops moving
          required:
            - run_id
            - status
            - locked_until
          description: The sync running now; while it is set, starting another answers 409
      required:
        - id
        - name
        - system_type
        - ingest_mode
        - status
        - pull_enabled
        - schedule_minutes
        - last_sync_at
        - last_sync_status
        - last_sync_message
        - last_ingest_at
        - last_ingest_status
        - created_at
        - updated_at
        - writeback_enabled
        - entities
        - latest_sync_run
        - active_run
    IngestEntityCounts:
      type: object
      properties:
        received:
          type: integer
          description: Records of the entity that arrived
        upserted:
          type: integer
          description: Records stored (created or updated)
        failed:
          type: integer
          description: Records refused or not stored
      required:
        - received
        - upserted
        - failed
    Error:
      type: object
      description: The body of every non-2xx answer
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - invalid_request_error
                - authentication_error
                - permission_error
                - rate_limit_error
                - api_error
            code:
              type: string
              description: >-
                Stable machine-readable code, e.g. parameter_invalid,
                scope_missing, rate_limit_exceeded. Every code is listed at
                /docs/errors
            message:
              type: string
              description: For people; what `error` used to be as a plain string
            param:
              type:
                - string
                - 'null'
              description: The parameter the error is about, when there is one
            doc_url:
              type: string
              description: Where the code is documented
          required:
            - type
            - code
            - message
            - param
            - doc_url
        request_id:
          type: string
        details:
          type: array
          items: {}
          description: >-
            On a 400 for input with several problems: one entry per problem, a
            sentence or an object with `field` and `message`
        limit:
          type: integer
          description: 'On a 429: the limit that was reached'
        code:
          type: string
          deprecated: true
          description: 'Deprecated: use error.code'
        field:
          type: string
          deprecated: true
          description: 'Deprecated: use error.param'
      required:
        - error
        - request_id
      additionalProperties: true
  responses:
    BadRequest:
      description: >-
        Invalid input: an unknown or invalid parameter (error.param names it) or
        a body the route does not accept
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimit-Limit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimit-Remaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimit-Reset'
        X-RateLimit-Limit-Day:
          $ref: '#/components/headers/X-RateLimit-Limit-Day'
        X-RateLimit-Remaining-Day:
          $ref: '#/components/headers/X-RateLimit-Remaining-Day'
        X-Client-Request-ID:
          $ref: '#/components/headers/X-Client-Request-ID'
        X-InsightChain-Sandbox:
          $ref: '#/components/headers/X-InsightChain-Sandbox'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing or invalid API key
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
        X-Client-Request-ID:
          $ref: '#/components/headers/X-Client-Request-ID'
        X-InsightChain-Sandbox:
          $ref: '#/components/headers/X-InsightChain-Sandbox'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: >-
        The key lacks the scope, or the organization lacks the module or is
        suspended
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimit-Limit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimit-Remaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimit-Reset'
        X-RateLimit-Limit-Day:
          $ref: '#/components/headers/X-RateLimit-Limit-Day'
        X-RateLimit-Remaining-Day:
          $ref: '#/components/headers/X-RateLimit-Remaining-Day'
        X-Client-Request-ID:
          $ref: '#/components/headers/X-Client-Request-ID'
        X-InsightChain-Sandbox:
          $ref: '#/components/headers/X-InsightChain-Sandbox'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    MethodNotAllowed:
      description: The route does not take this method; Allow lists the ones it takes
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimit-Limit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimit-Remaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimit-Reset'
        X-RateLimit-Limit-Day:
          $ref: '#/components/headers/X-RateLimit-Limit-Day'
        X-RateLimit-Remaining-Day:
          $ref: '#/components/headers/X-RateLimit-Remaining-Day'
        X-Client-Request-ID:
          $ref: '#/components/headers/X-Client-Request-ID'
        X-InsightChain-Sandbox:
          $ref: '#/components/headers/X-InsightChain-Sandbox'
        Allow:
          $ref: '#/components/headers/Allow'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    TooManyRequests:
      description: Per-minute or daily key limit; Retry-After is the real reset
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimit-Limit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimit-Remaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimit-Reset'
        X-RateLimit-Limit-Day:
          $ref: '#/components/headers/X-RateLimit-Limit-Day'
        X-RateLimit-Remaining-Day:
          $ref: '#/components/headers/X-RateLimit-Remaining-Day'
        X-Client-Request-ID:
          $ref: '#/components/headers/X-Client-Request-ID'
        X-InsightChain-Sandbox:
          $ref: '#/components/headers/X-InsightChain-Sandbox'
        Retry-After:
          $ref: '#/components/headers/Retry-After'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    InternalError:
      description: Internal error; quote request_id
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimit-Limit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimit-Remaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimit-Reset'
        X-RateLimit-Limit-Day:
          $ref: '#/components/headers/X-RateLimit-Limit-Day'
        X-RateLimit-Remaining-Day:
          $ref: '#/components/headers/X-RateLimit-Remaining-Day'
        X-Client-Request-ID:
          $ref: '#/components/headers/X-Client-Request-ID'
        X-InsightChain-Sandbox:
          $ref: '#/components/headers/X-InsightChain-Sandbox'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    UpstreamError:
      description: >-
        The API could not be reached, or a service this route depends on failed.
        Try again shortly
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimit-Limit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimit-Remaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimit-Reset'
        X-RateLimit-Limit-Day:
          $ref: '#/components/headers/X-RateLimit-Limit-Day'
        X-RateLimit-Remaining-Day:
          $ref: '#/components/headers/X-RateLimit-Remaining-Day'
        X-Client-Request-ID:
          $ref: '#/components/headers/X-Client-Request-ID'
        X-InsightChain-Sandbox:
          $ref: '#/components/headers/X-InsightChain-Sandbox'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    ServiceUnavailable:
      description: The API, or this route, is not available right now
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimit-Limit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimit-Remaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimit-Reset'
        X-RateLimit-Limit-Day:
          $ref: '#/components/headers/X-RateLimit-Limit-Day'
        X-RateLimit-Remaining-Day:
          $ref: '#/components/headers/X-RateLimit-Remaining-Day'
        X-Client-Request-ID:
          $ref: '#/components/headers/X-Client-Request-ID'
        X-InsightChain-Sandbox:
          $ref: '#/components/headers/X-InsightChain-Sandbox'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: >-
        An InsightChain API key: ic_live_... for your organization, ic_test_...
        for its sandbox

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.