Ledgo CRM Leads API

Enquiries, in a pipeline of stages. Stage rules (a required follow-up or amount) apply through the API as in the app.

GitHub OpenAPI

Operations 7

GET /leads List leads #
POST /leads Create a lead #
GET /leads/{id} One lead #
PATCH /leads/{id} Update a lead #
POST /leads/{id}/move Move a lead to a stage #
POST /leads/{id}/activities Log a note, call, meeting or visit #
GET /leads/{id}/timeline A lead's timeline #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/ledgo-io:ledgo-io-leads-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

ledgo-io-leads-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ledgo Leads API
  version: '1'
  description: 'Create and read contacts, companies, leads, deals, tasks, quotes, invoices and conversations in a Ledgo workspace. Authenticate with an API key from Settings → Integrations (Authorization: Bearer agk_…). The key acts with the permissions of the person who created it; every change shows in History as that key. Up to 120 requests a minute per workspace. Responses are { "data": … } or { "error": { "code", "message", "fields" } }.'
servers:
- url: https://ledgo.io/api/v1
tags:
- name: Leads
  description: Enquiries, in a pipeline of stages. Stage rules (a required follow-up or amount) apply through the API as in the app.
paths:
  /leads:
    get:
      operationId: getLeads
      summary: List leads
      tags:
      - Leads
      parameters:
      - name: status
        in: query
        required: false
        description: open (default), won, lost or all
        schema:
          type: string
      - name: q
        in: query
        required: false
        description: Search in title, contact, company and phone
        schema:
          type: string
      - name: owner
        in: query
        required: false
        description: all (default), mine or unassigned
        schema:
          type: string
      - name: stage
        in: query
        required: false
        description: A stage id
        schema:
          type: string
      - name: followUp
        in: query
        required: false
        description: any (default), overdue, today, none or stale
        schema:
          type: string
      - name: pipeline
        in: query
        required: false
        description: A pipeline id
        schema:
          type: string
      - name: person
        in: query
        required: false
        description: Only records whose responsible person is this user id
        schema:
          type: string
      - name: reached
        in: query
        required: false
        description: 'A stage id: records in that stage now or that passed through it'
        schema:
          type: string
      - name: source
        in: query
        required: false
        description: 'Leads only: the source, exactly as shown in Ledgo'
        schema:
          type: string
      - name: amountMin
        in: query
        required: false
        description: Lowest amount, in the workspace currency
        schema:
          type: string
      - name: amountMax
        in: query
        required: false
        description: Highest amount
        schema:
          type: string
      - name: created
        in: query
        required: false
        description: any (default), today, yesterday, week, month, last7, last30 or range
        schema:
          type: string
      - name: createdFrom
        in: query
        required: false
        description: 'With created=range: first day, YYYY-MM-DD in the workspace time zone'
        schema:
          type: string
      - name: createdTo
        in: query
        required: false
        description: 'With created=range: last day, YYYY-MM-DD'
        schema:
          type: string
      - name: cf_<key>
        in: query
        required: false
        description: 'A custom field (keys from GET /fields): the choice for select and multiselect, true or false for a checkbox, text it contains otherwise. Use cf_<key>_min and cf_<key>_max for number, money and date ranges'
        schema:
          type: string
      - name: page
        in: query
        required: false
        description: Page number, 50 per page
        schema:
          type: string
        example: '1'
      responses:
        '200':
          description: rows (with contact, company, owner, stage and follow-up), total, page and pageSize.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data: {}
                required:
                - data
        '401':
          description: No key, a wrong key or a revoked key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: The key's owner may not do this (their role or record scope).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such record, or the key's owner cannot see it.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: The change clashes with the record's state, for example a possible duplicate contact or a closed record.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: A field is missing or wrong; fields names each problem. Stage rules also answer here with details.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: More than 120 requests in a minute from one workspace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - apiKey: []
    post:
      operationId: postLeads
      summary: Create a lead
      tags:
      - Leads
      parameters: []
      responses:
        '200':
          description: '{ id, contactId }. A webhook lead.created fires if subscribed.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  data: {}
                required:
                - data
        '401':
          description: No key, a wrong key or a revoked key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: The key's owner may not do this (their role or record scope).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such record, or the key's owner cannot see it.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: The change clashes with the record's state, for example a possible duplicate contact or a closed record.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: A field is missing or wrong; fields names each problem. Stage rules also answer here with details.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: More than 120 requests in a minute from one workspace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - apiKey: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              type: object
              properties:
                contactId:
                  description: An existing contact…
                  anyOf:
                  - type: string
                    format: uuid
                    pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                  - type: 'null'
                contactName:
                  description: '…or describe the customer: Ledgo matches an existing contact by phone or email before creating one.'
                  type: string
                  maxLength: 160
                contactPhone:
                  type: string
                  maxLength: 40
                contactPhoneCountry:
                  description: Country the phone is read in when it has no + code; defaults to the workspace's country.
                  type: string
                  maxLength: 2
                contactEmail:
                  type: string
                  format: email
                  pattern: ^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
                companyId:
                  anyOf:
                  - type: string
                    format: uuid
                    pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                  - type: 'null'
                title:
                  description: Defaults to the contact's name and interest
                  type: string
                  maxLength: 200
                pipelineId:
                  description: Defaults to the default lead pipeline
                  anyOf:
                  - type: string
                    format: uuid
                    pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                  - type: 'null'
                stageId:
                  description: Defaults to the first stage
                  anyOf:
                  - type: string
                    format: uuid
                    pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                  - type: 'null'
                ownerId:
                  anyOf:
                  - type: string
                    format: uuid
                    pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                  - type: 'null'
                source:
                  description: Defaults to "API"
                  type: string
                  maxLength: 80
                sourceDetail:
                  description: Campaign, page or referrer
                  type: string
                  maxLength: 160
                customerType:
                  type: string
                  maxLength: 60
                location:
                  type: string
                  maxLength: 80
                interest:
                  description: What they are asking for
                  type: string
                  maxLength: 300
                value:
                  type: number
                  minimum: 0
                  description: Amount in the workspace currency
                nextFollowUpAt:
                  type: string
                  description: ISO 8601 date-time, for example 2026-11-03T09:00:00+04:00
                custom:
                  description: Custom field values by key (see GET /fields)
                  type: object
                  propertyNames:
                    type: string
                  additionalProperties: {}
              description: Identify the customer by contactId, or by a name, phone or email.
            example:
              contactName: Hassan Qureshi
              contactPhone: +971 50 000 1111
              interest: Hood and duct cleaning, two restaurants
              source: Website
              value: 4500
  /leads/{id}:
    get:
      operationId: getLeadsById
      summary: One lead
      tags:
      - Leads
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: The lead, its pipeline's stages, the contact's phones and emails, linked deals and other enquiries from the same contact.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data: {}
                required:
                - data
        '401':
          description: No key, a wrong key or a revoked key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: The key's owner may not do this (their role or record scope).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such record, or the key's owner cannot see it.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: The change clashes with the record's state, for example a possible duplicate contact or a closed record.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: A field is missing or wrong; fields names each problem. Stage rules also answer here with details.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: More than 120 requests in a minute from one workspace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - apiKey: []
    patch:
      operationId: patchLeadsById
      summary: Update a lead
      tags:
      - Leads
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: The updated lead.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data: {}
                required:
                - data
        '401':
          description: No key, a wrong key or a revoked key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: The key's owner may not do this (their role or record scope).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such record, or the key's owner cannot see it.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: The change clashes with the record's state, for example a possible duplicate contact or a closed record.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: A field is missing or wrong; fields names each problem. Stage rules also answer here with details.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: More than 120 requests in a minute from one workspace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - apiKey: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              type: object
              properties:
                title:
                  type: string
                  maxLength: 200
                companyId:
                  anyOf:
                  - type: string
                    format: uuid
                    pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                  - type: 'null'
                ownerId:
                  anyOf:
                  - type: string
                    format: uuid
                    pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                  - type: 'null'
                source:
                  anyOf:
                  - type: string
                    maxLength: 80
                  - type: 'null'
                sourceDetail:
                  anyOf:
                  - type: string
                    maxLength: 160
                  - type: 'null'
                customerType:
                  anyOf:
                  - type: string
                    maxLength: 60
                  - type: 'null'
                location:
                  anyOf:
                  - type: string
                    maxLength: 80
                  - type: 'null'
                interest:
                  anyOf:
                  - type: string
                    maxLength: 300
                  - type: 'null'
                value:
                  anyOf:
                  - type: number
                    minimum: 0
                    description: Amount in the workspace currency
                  - type: 'null'
              description: Only the fields sent change. Stage moves go through /move; custom fields through the web app for now.
            example:
              value: 5200
              interest: Hood and duct cleaning, three restaurants
  /leads/{id}/move:
    post:
      operationId: postLeadsByIdMove
      summary: Move a lead to a stage
      description: 'Stage rules apply: a stage that requires a follow-up or an amount answers 422 with details.needsFollowUp / details.needsAmount until they are given.'
      tags:
      - Leads
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: The lead after the move.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data: {}
                required:
                - data
        '401':
          description: No key, a wrong key or a revoked key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: The key's owner may not do this (their role or record scope).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such record, or the key's owner cannot see it.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: The change clashes with the record's state, for example a possible duplicate contact or a closed record.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: A field is missing or wrong; fields names each problem. Stage rules also answer here with details.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: More than 120 requests in a minute from one workspace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - apiKey: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              type: object
              properties:
                stageId:
                  type: string
                  format: uuid
                  pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                  description: A stage of the record's pipeline (GET /pipelines)
                nextFollowUpAt:
                  description: Needed by stages that require a follow-up
                  type: string
                value:
                  description: Needed by stages that require an amount, when the record has none yet
                  type: number
                  minimum: 1
                reason:
                  description: For a lost stage
                  type: string
                  maxLength: 200
              required:
              - stageId
            example:
              stageId: <stage id>
              nextFollowUpAt: '2026-11-03T09:00:00+04:00'
              value: 4500
  /leads/{id}/activities:
    post:
      operationId: postLeadsByIdActivities
      summary: Log a note, call, meeting or visit
      tags:
      - Leads
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: '{ id } of the activity.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  data: {}
                required:
                - data
        '401':
          description: No key, a wrong key or a revoked key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: The key's owner may not do this (their role or record scope).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such record, or the key's owner cannot see it.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: The change clashes with the record's state, for example a possible duplicate contact or a closed record.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: A field is missing or wrong; fields names each problem. Stage rules also answer here with details.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: More than 120 requests in a minute from one workspace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - apiKey: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              type: object
              properties:
                type:
                  default: note
                  type: string
                  enum:
                  - note
                  - call
                  - meeting
                  - visit
                body:
                  type: string
                  maxLength: 10000
                nextFollowUpAt:
                  description: Also plan (or clear, with null) the next follow-up
                  anyOf:
                  - type: string
                    description: ISO 8601 date-time, for example 2026-11-03T09:00:00+04:00
                  - type: 'null'
              required:
              - body
            example:
              type: call
              body: Spoke to Hassan; wants the quote by Thursday.
              nextFollowUpAt: '2026-10-30T10:00:00+04:00'
  /leads/{id}/timeline:
    get:
      operationId: getLeadsByIdTimeline
      summary: A lead's timeline
      tags:
      - Leads
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Notes, calls, messages, stage moves and system events, newest first.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data: {}
                required:
                - data
        '401':
          description: No key, a wrong key or a revoked key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: The key's owner may not do this (their role or record scope).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such record, or the key's owner cannot see it.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: The change clashes with the record's state, for example a possible duplicate contact or a closed record.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: A field is missing or wrong; fields names each problem. Stage rules also answer here with details.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: More than 120 requests in a minute from one workspace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - apiKey: []
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
              - unauthorized
              - forbidden
              - not_found
              - conflict
              - invalid
              - rate_limited
              - server_error
            message:
              type: string
            fields:
              type: object
              additionalProperties:
                type: string
            details:
              type: object
          required:
          - code
          - message
      required:
      - error
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: An API key (agk_…) created in Settings → Integrations → REST API.