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

# Create an on-chain integration



## OpenAPI

````yaml post /v1/onchain-integrations
openapi: 3.1.0
info:
  title: ReconLayer API
  version: 0.1.0
  summary: API-first reconciliation platform with dashboard-optional integration.
  description: >
    ReconLayer is designed to work headlessly.


    The dashboard is one consumer of this API, not the platform boundary.


    Organization resolution currently uses the `x-organization-id` header for
    development.

    In production, the intended model is:


    - dashboard requests authenticate through Clerk and the backend resolves the
    organization from the session

    - headless clients authenticate with API keys mapped to an organization

    - each API key can carry scopes for read/write/export/admin permissions


    Client write endpoints also use request-level idempotency.

    The client must generate an `Idempotency-Key` before the first attempt and

    reuse the same key on every retry of that same request.


    The route structure mirrors the domain:


    - `payment-intents` for expected payments

    - `reconciliation-cases` for reconciliation truth and workflow

    - `webhooks` for provider callbacks

    - `outbound-webhook-*` for client callback subscriptions and delivery
    tracking
servers:
  - url: https://api.reconlayer.com
security: []
tags:
  - name: dashboard
  - name: health
  - name: imports
  - name: outbound-webhooks
  - name: payment-intents
  - name: reconciliation-cases
  - name: integrations
  - name: settings
  - name: webhooks
paths:
  /v1/onchain-integrations:
    post:
      tags:
        - integrations
      summary: Create an on-chain integration
      parameters:
        - schema:
            type: string
            minLength: 1
          in: header
          name: authorization
          required: false
        - schema:
            type: string
            minLength: 1
          in: header
          name: x-organization-id
          required: false
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                provider:
                  type: string
                  minLength: 1
                networkFamily:
                  default: evm
                  type: string
                  minLength: 1
                networkId:
                  type: string
                  minLength: 1
                apiKey:
                  type: string
                  minLength: 1
                integrationKey:
                  type: string
                  minLength: 1
                  pattern: ^[a-z0-9:_-]+$
                pollingEnabled:
                  default: true
                  type: boolean
                pushEnabled:
                  default: false
                  type: boolean
                watchedAddresses:
                  default: []
                  type: array
                  items:
                    type: string
                    minLength: 1
                startBlock:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
              required:
                - name
                - provider
                - networkFamily
                - networkId
                - apiKey
                - pollingEnabled
                - pushEnabled
                - watchedAddresses
              additionalProperties: false
      responses:
        '201':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/def-84'
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/def-98'
components:
  schemas:
    def-84:
      allOf:
        - $ref: '#/components/schemas/def-83'
        - type: object
          required:
            - watchedAddresses
            - startBlock
          properties:
            watchedAddresses:
              type: array
              items:
                type: string
            startBlock:
              type:
                - integer
                - 'null'
      title: OnchainIntegrationDetail
    def-98:
      type: object
      required:
        - error
      properties:
        error:
          type: string
        message:
          type: string
        issues:
          type: array
          items:
            type: object
            additionalProperties: true
        details:
          type: object
          additionalProperties: true
        upstreamStatus:
          type: integer
      additionalProperties: true
      title: ApiErrorResponse
    def-83:
      type: object
      required:
        - id
        - organizationId
        - provider
        - networkFamily
        - networkId
        - name
        - integrationKey
        - status
        - hasApiKey
        - pollingEnabled
        - pushEnabled
        - watchedAddressCount
        - lastTransferSyncedAt
        - createdAt
        - updatedAt
      properties:
        id:
          type: string
        organizationId:
          type: string
        provider:
          type: string
        networkFamily:
          type: string
        networkId:
          type: string
        name:
          type: string
        integrationKey:
          type: string
        status:
          $ref: '#/components/schemas/def-72'
        hasApiKey:
          type: boolean
          enum:
            - true
        pollingEnabled:
          type: boolean
        pushEnabled:
          type: boolean
        watchedAddressCount:
          type: integer
        lastTransferSyncedAt:
          type:
            - 'null'
            - string
          format: date-time
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      title: OnchainIntegrationSnapshot
    def-72:
      type: string
      enum:
        - disabled
        - active
        - deleted
      title: IntegrationStatus

````