Ledgo CRM Contacts API

People. A contact can have several phone numbers and email addresses.

GitHub OpenAPI

Operations 4

GET /contacts List contacts #
POST /contacts Create a contact #
GET /contacts/{id} One contact #
PATCH /contacts/{id} Update a contact #

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-contacts-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-contacts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ledgo Contacts 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: Contacts
  description: People. A contact can have several phone numbers and email addresses.
paths:
  /contacts:
    get:
      operationId: getContacts
      summary: List contacts
      tags:
      - Contacts
      parameters:
      - name: q
        in: query
        required: false
        description: Search name, email, phone or company
        schema:
          type: string
      - name: owner
        in: query
        required: false
        description: all (default) or mine
        schema:
          type: string
      - name: page
        in: query
        required: false
        description: Page number, 25 per page
        schema:
          type: string
        example: '1'
      responses:
        '200':
          description: rows, 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: postContacts
      summary: Create a contact
      tags:
      - Contacts
      parameters: []
      responses:
        '200':
          description: '{ id }. Answers 409 with possible duplicates when a contact with the same phone or email exists and allowDuplicate is not set.'
          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:
                firstName:
                  type: string
                  maxLength: 80
                lastName:
                  type: string
                  maxLength: 80
                jobTitle:
                  type: string
                  maxLength: 120
                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:
                  description: 'Responsible person: a member''s userId (GET /members). Defaults to the key''s owner.'
                  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'
                lifecycleStage:
                  type: string
                  enum:
                  - lead
                  - prospect
                  - customer
                  - former_customer
                  - partner
                  - other
                source:
                  description: Defaults to "API"
                  type: string
                  maxLength: 80
                tags:
                  maxItems: 20
                  type: array
                  items:
                    type: string
                    maxLength: 40
                emails:
                  maxItems: 5
                  type: array
                  items:
                    type: string
                    maxLength: 200
                phones:
                  description: Any format. A number without a + code is read in the workspace's country.
                  maxItems: 5
                  type: array
                  items:
                    type: string
                    maxLength: 40
                marketingConsent:
                  type: string
                  enum:
                  - unknown
                  - granted
                  - denied
                doNotContact:
                  type: boolean
                allowDuplicate:
                  description: Create even when a contact with the same phone or email already exists.
                  type: boolean
              description: Give at least a name, an email or a phone number.
            example:
              firstName: Sara
              lastName: Malik
              phones:
              - +971 50 123 4567
              emails:
              - sara@example.com
              tags:
              - restaurant
  /contacts/{id}:
    get:
      operationId: getContactsById
      summary: One contact
      tags:
      - Contacts
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: The contact with its emails and phone numbers, company and owner names.
          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: patchContactsById
      summary: Update a contact
      description: Only the fields sent change. Sending emails or phones replaces the whole list.
      tags:
      - Contacts
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: The updated 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: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              type: object
              properties:
                firstName:
                  type: string
                  maxLength: 80
                lastName:
                  type: string
                  maxLength: 80
                jobTitle:
                  type: string
                  maxLength: 120
                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:
                  description: 'Responsible person: a member''s userId (GET /members). Defaults to the key''s owner.'
                  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'
                lifecycleStage:
                  type: string
                  enum:
                  - lead
                  - prospect
                  - customer
                  - former_customer
                  - partner
                  - other
                source:
                  description: Defaults to "API"
                  type: string
                  maxLength: 80
                tags:
                  maxItems: 20
                  type: array
                  items:
                    type: string
                    maxLength: 40
                emails:
                  maxItems: 5
                  type: array
                  items:
                    type: string
                    maxLength: 200
                phones:
                  description: Any format. A number without a + code is read in the workspace's country.
                  maxItems: 5
                  type: array
                  items:
                    type: string
                    maxLength: 40
                marketingConsent:
                  type: string
                  enum:
                  - unknown
                  - granted
                  - denied
                doNotContact:
                  type: boolean
                allowDuplicate:
                  description: Create even when a contact with the same phone or email already exists.
                  type: boolean
              description: Give at least a name, an email or a phone number.
            example:
              jobTitle: Operations Manager
              tags:
              - restaurant
              - vip
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.