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

# List the records received by an integration connection



## OpenAPI

````yaml get /v1/integration-connections/{id}/records
openapi: 3.1.0
info:
  title: Flextell API
  version: 0.0.1
  description: >-
    Flextell REST API referansı. Kimlik doğrulama, scope ve istek kuralları için
    API sekmesindeki rehberlere bakın.
servers:
  - url: https://app.flextell.ai/api
    description: Üretim
security:
  - oauth2: []
  - bearer: []
paths:
  /v1/integration-connections/{id}/records:
    get:
      tags:
        - InboundRecord
      summary: List the records received by an integration connection
      operationId: integration-connections.records.index
      parameters:
        - name: id
          in: path
          required: true
          description: The integration connection identifier
          schema:
            type: integer
        - name: status
          in: query
          description: Filter by status (pending, processed, failed, skipped).
          schema:
            anyOf:
              - $ref: '#/components/schemas/InboundRecordStatus'
              - type: 'null'
        - name: subject_id
          in: query
          description: >-
            Only the records written to this Flextell record (e.g. a lead id),
            to show where a record came from.
          schema:
            type:
              - integer
              - 'null'
            minimum: 1
        - name: created_at_from
          in: query
          description: Filter records received on or after this date.
          schema:
            type:
              - string
              - 'null'
            format: date-time
        - name: created_at_to
          in: query
          description: Filter records received on or before this date.
          schema:
            type:
              - string
              - 'null'
            format: date-time
        - name: per_page
          in: query
          description: The number of items per page.
          schema:
            type:
              - integer
              - 'null'
            minimum: 1
            maximum: 100
        - name: page
          in: query
          description: The page number.
          schema:
            type:
              - integer
              - 'null'
            minimum: 1
        - name: X-Tenant
          in: header
          required: true
          description: >-
            Tenant identifier. Send the Tenant ID in the `X-Tenant` header to
            scope API requests to a specific tenant.
          schema:
            type: number
      responses:
        '200':
          description: Paginated set of `InboundRecordResource`
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/InboundRecordResource'
                  links:
                    type: object
                    properties:
                      first:
                        type:
                          - string
                          - 'null'
                      last:
                        type:
                          - string
                          - 'null'
                      prev:
                        type:
                          - string
                          - 'null'
                      next:
                        type:
                          - string
                          - 'null'
                    required:
                      - first
                      - last
                      - prev
                      - next
                  meta:
                    type: object
                    properties:
                      current_page:
                        type: integer
                        minimum: 1
                      from:
                        type:
                          - integer
                          - 'null'
                        minimum: 1
                      last_page:
                        type: integer
                        minimum: 1
                      links:
                        type: array
                        description: Generated paginator links.
                        items:
                          type: object
                          properties:
                            url:
                              type:
                                - string
                                - 'null'
                            label:
                              type: string
                            active:
                              type: boolean
                          required:
                            - url
                            - label
                            - active
                      path:
                        type:
                          - string
                          - 'null'
                        description: Base path for paginator generated URLs.
                      per_page:
                        type: integer
                        description: Number of items shown per page.
                        minimum: 0
                      to:
                        type:
                          - integer
                          - 'null'
                        description: Number of the last item in the slice.
                        minimum: 1
                      total:
                        type: integer
                        description: Total number of items being paginated.
                        minimum: 0
                    required:
                      - current_page
                      - from
                      - last_page
                      - links
                      - path
                      - per_page
                      - to
                      - total
                required:
                  - data
                  - links
                  - meta
        '401':
          $ref: '#/components/responses/AuthenticationException'
        '403':
          $ref: '#/components/responses/AuthorizationException'
        '404':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  error_code:
                    type: string
                    const: RESOURCE_NOT_FOUND
                  message:
                    type: string
                  errors:
                    type: 'null'
                  data:
                    type: 'null'
                required:
                  - success
                  - error_code
                  - message
                  - errors
                  - data
        '422':
          $ref: '#/components/responses/ValidationException'
components:
  schemas:
    InboundRecordStatus:
      type: string
      enum:
        - pending
        - processed
        - failed
        - skipped
      title: InboundRecordStatus
    InboundRecordResource:
      type: object
      properties:
        id:
          type: integer
        status:
          type: string
          description: '`pending`, `processed`, `failed` or `skipped`.'
        outcome:
          type:
            - string
            - 'null'
          description: >-
            What processing did: `created`, `updated` or `merged` (matched an
            existing record by its contact details).
        external_id:
          type:
            - string
            - 'null'
        payload:
          type: object
          description: The record exactly as the provider sent it.
          additionalProperties: {}
        error_message:
          type:
            - string
            - 'null'
          description: Why the record failed or was skipped, localized.
        subject:
          type:
            - object
            - 'null'
          description: The Flextell record it was written to.
          properties:
            type:
              type: string
            id:
              type: integer
            label:
              type:
                - string
                - 'null'
          required:
            - type
            - id
            - label
        received_at:
          type:
            - string
            - 'null'
          format: date-time
        processed_at:
          type:
            - string
            - 'null'
          format: date-time
      required:
        - id
        - status
        - outcome
        - external_id
        - payload
        - error_message
        - subject
        - received_at
        - processed_at
      title: InboundRecordResource
  responses:
    AuthenticationException:
      description: Unauthenticated
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
    AuthorizationException:
      description: Authorization error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
    ValidationException:
      description: Validation error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Errors overview.
              errors:
                type: object
                description: A detailed description of each field that failed validation.
                additionalProperties:
                  type: array
                  items:
                    type: string
            required:
              - message
              - errors
  securitySchemes:
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://dev.flextell.ai/oauth/authorize
          tokenUrl: https://dev.flextell.ai/oauth/token
          scopes:
            '*': all
    bearer:
      type: http
      scheme: bearer

````

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