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

# Lists this organization's provider lead sources: which ad account's lead form


> responses are written into which lead dataset, and how far each has synced. Filter by provider and account\_id.




## OpenAPI

````yaml /api/openapi.json get /v1/provider-lead-sources
openapi: 3.0.0
info:
  title: Erdo API
  description: >-
    Erdo's REST API: query and write datasets, run agents, manage threads,
    integrations, pages, evals, workstreams, experiments, and bounded outreach.
    Authenticate with a Bearer API key (erdo_api_...) or scoped token
    (erdo_token_...).
  version: '2026-10-23'
servers:
  - url: https://api.erdo.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/provider-lead-sources:
    get:
      summary: >
        Lists this organization's provider lead sources: which ad account's lead
        form
      description: >
        responses are written into which lead dataset, and how far each has
        synced. Filter by provider and account\_id.
      operationId: GET:mcp.ListProviderLeadSourcesAPI
      parameters:
        - allowEmptyValue: true
          description: |
            provider narrows to one ad platform.
          explode: true
          in: query
          name: provider
          required: false
          schema:
            type: string
          style: form
        - allowEmptyValue: true
          description: |
            account\_id narrows to one ad account.
          explode: true
          in: query
          name: account_id
          required: false
          schema:
            type: string
          style: form
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  provider_lead_sources:
                    items:
                      $ref: '#/components/schemas/eventpipeline.ProviderLeadSource'
                    type: array
                type: object
          description: Success response
        default:
          $ref: '#/components/responses/APIError'
components:
  schemas:
    eventpipeline.ProviderLeadSource:
      description: |
        written into one of this organization's lead datasets.
      properties:
        account_id:
          description: |
            owns are ever written.
          title: >
            account_id is the provider's ad account id. Only responses this
            account
          type: string
        connection_id:
          description: |
            responses are read through.
          title: >
            connection_id is the organization's connected integration account
            the
          type: string
        created_at:
          title: |
            created_at is when the declaration was first saved (RFC 3339).
          type: string
        dataset:
          title: |
            dataset is the slug of the lead dataset responses are written into.
          type: string
        enabled:
          title: |
            enabled is whether the platform is reading this source.
          type: boolean
        forms:
          items:
            type: string
          title: |
            forms are the lead form ids whose responses are written.
          type: array
        last_error:
          title: >
            last_error is why the last read did not finish, or empty when it
            did.
          type: string
        last_run_at:
          description: |
            empty when it never has.
          title: >
            last_run_at is when the platform last read this source (RFC 3339),
            or
          type: string
        provider:
          title: |
            provider is the ad platform: "linkedin_ads".
          type: string
        synced_through:
          description: |
            handled through (RFC 3339), or empty before the first complete sync.
          title: >
            synced_through is the submission time every earlier response has
            been
          type: string
        updated_at:
          title: |
            updated_at is when the declaration was last saved (RFC 3339).
          type: string
      title: >
        A declaration that an ad platform's lead form responses for one ad
        account are
      type: object
  responses:
    APIError:
      content:
        application/json:
          schema:
            externalDocs:
              url: https://pkg.go.dev/encore.dev/beta/errs#Error
            properties:
              code:
                description: Error code
                example: not_found
                externalDocs:
                  url: https://pkg.go.dev/encore.dev/beta/errs#ErrCode
                type: string
              details:
                description: Error details
                type: object
              message:
                description: Error message
                type: string
            title: APIError
            type: object
      description: Error response
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: An Erdo API key (erdo_api_...) or scoped token (erdo_token_...).

````

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