Heffl Leads API

The Leads API from Heffl — 2 operation(s) for leads.

GitHub OpenAPI

Operations 5

POST /leads Create a new lead #
GET /leads List leads #
GET /leads/{id} Get a lead #
PATCH /leads/{id} Update a lead #
DELETE /leads/{id} Delete a lead #

Specifications

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/heffl-com:heffl-com-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

heffl-com-leads-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Heffl Public API (Legacy v1) Leads API
  version: 1.0.0
  description: Legacy Heffl REST API v1. Maintained for existing integrations. For new projects, use API v2 at https://docs.heffl.com/api-v2/introduction.
  contact:
    name: Heffl Support
    url: https://heffl.com/support
    email: support@heffl.com
servers:
- url: https://api.heffl.com/api/v1
  description: Production API Server
security:
- ApiKeyAuth: []
tags:
- name: Leads
paths:
  /leads:
    post:
      operationId: leads.create
      summary: Create a new lead
      description: Creates a new lead in your CRM. The lead will be assigned to the user associated with your API key.
      tags:
      - Leads
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: Lead's full name
                mobile:
                  type: string
                  description: Mobile phone number with country code
                secondaryMobile:
                  type: string
                  description: Secondary mobile phone number with country code
                email:
                  anyOf:
                  - type: string
                    format: email
                  - type: 'null'
                title:
                  type: string
                  description: Job title or position
                value:
                  type: number
                  description: Expected deal value or amount
                sourceId:
                  type: string
                  description: Lead source public ID
                stageId:
                  type: string
                  description: Lead stage public ID
                website:
                  anyOf:
                  - {}
                  - type: 'null'
                  description: Company website URL
              required:
              - name
              additionalProperties: {}
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: Lead public ID
                  number:
                    type: string
                    description: Auto-generated lead number
                  name:
                    type: string
                    description: Full name
                  title:
                    anyOf:
                    - type: string
                    - type: 'null'
                    description: Job title
                  email:
                    anyOf:
                    - type: string
                    - type: 'null'
                    description: Email address
                  mobile:
                    anyOf:
                    - type: string
                    - type: 'null'
                    description: Mobile phone number
                  secondaryMobile:
                    anyOf:
                    - type: string
                    - type: 'null'
                    description: Secondary mobile
                  website:
                    anyOf:
                    - type: string
                    - type: 'null'
                    description: Website URL
                  value:
                    anyOf:
                    - type: number
                    - type: 'null'
                    description: Expected value
                  archived:
                    type: boolean
                    description: Whether the lead is archived
                  sourceId:
                    anyOf:
                    - type: string
                    - type: 'null'
                    description: Lead source public ID
                  stageId:
                    anyOf:
                    - type: string
                    - type: 'null'
                    description: Lead stage public ID
                  createdAt:
                    type: string
                    format: date-time
                    x-native-type: date
                    description: When the lead was created
                  customFields:
                    anyOf:
                    - type: object
                      propertyNames:
                        type: string
                      additionalProperties: {}
                    - type: 'null'
                    description: Custom field values
                required:
                - id
                - number
                - name
                - archived
                - createdAt
    get:
      operationId: leads.list
      summary: List leads
      description: Returns a paginated list of leads. Supports search and filtering.
      tags:
      - Leads
      parameters:
      - name: cursor
        in: query
        schema:
          type: string
          description: Cursor for pagination. Pass the previous response nextCursor value to fetch the next page.
        allowEmptyValue: true
        allowReserved: true
      - name: limit
        in: query
        schema:
          type: number
          minimum: 1
          maximum: 100
          default: 20
          description: Number of items to return (max 100)
        allowEmptyValue: true
        allowReserved: true
      - name: search
        in: query
        schema:
          type: string
          default: ''
          description: Search by name, email, mobile, or website
        allowEmptyValue: true
        allowReserved: true
      - name: archived
        in: query
        schema:
          type: boolean
          description: Filter by archived status
        allowEmptyValue: true
        allowReserved: true
      - name: stageId
        in: query
        schema:
          type: string
          description: Filter by stage public ID
        allowEmptyValue: true
        allowReserved: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: Lead public ID
                        number:
                          type: string
                          description: Auto-generated lead number
                        name:
                          type: string
                          description: Full name
                        title:
                          anyOf:
                          - type: string
                          - type: 'null'
                          description: Job title
                        email:
                          anyOf:
                          - type: string
                          - type: 'null'
                          description: Email address
                        mobile:
                          anyOf:
                          - type: string
                          - type: 'null'
                          description: Mobile phone number
                        secondaryMobile:
                          anyOf:
                          - type: string
                          - type: 'null'
                          description: Secondary mobile
                        website:
                          anyOf:
                          - type: string
                          - type: 'null'
                          description: Website URL
                        value:
                          anyOf:
                          - type: number
                          - type: 'null'
                          description: Expected value
                        archived:
                          type: boolean
                          description: Whether the lead is archived
                        sourceId:
                          anyOf:
                          - type: string
                          - type: 'null'
                          description: Lead source public ID
                        stageId:
                          anyOf:
                          - type: string
                          - type: 'null'
                          description: Lead stage public ID
                        createdAt:
                          type: string
                          format: date-time
                          x-native-type: date
                          description: When the lead was created
                        customFields:
                          anyOf:
                          - type: object
                            propertyNames:
                              type: string
                            additionalProperties: {}
                          - type: 'null'
                          description: Custom field values
                      required:
                      - id
                      - number
                      - name
                      - archived
                      - createdAt
                  nextCursor:
                    anyOf:
                    - type: string
                    - type: 'null'
                    description: Cursor to fetch the next page. Null if there are no more results.
                  hasMore:
                    type: boolean
                    description: Whether additional results are available
                required:
                - items
                - hasMore
  /leads/{id}:
    get:
      operationId: leads.get
      summary: Get a lead
      description: Returns a single lead by its public ID.
      tags:
      - Leads
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          description: Lead public ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: Lead public ID
                  number:
                    type: string
                    description: Auto-generated lead number
                  name:
                    type: string
                    description: Full name
                  title:
                    anyOf:
                    - type: string
                    - type: 'null'
                    description: Job title
                  email:
                    anyOf:
                    - type: string
                    - type: 'null'
                    description: Email address
                  mobile:
                    anyOf:
                    - type: string
                    - type: 'null'
                    description: Mobile phone number
                  secondaryMobile:
                    anyOf:
                    - type: string
                    - type: 'null'
                    description: Secondary mobile
                  website:
                    anyOf:
                    - type: string
                    - type: 'null'
                    description: Website URL
                  value:
                    anyOf:
                    - type: number
                    - type: 'null'
                    description: Expected value
                  archived:
                    type: boolean
                    description: Whether the lead is archived
                  sourceId:
                    anyOf:
                    - type: string
                    - type: 'null'
                    description: Lead source public ID
                  stageId:
                    anyOf:
                    - type: string
                    - type: 'null'
                    description: Lead stage public ID
                  createdAt:
                    type: string
                    format: date-time
                    x-native-type: date
                    description: When the lead was created
                  customFields:
                    anyOf:
                    - type: object
                      propertyNames:
                        type: string
                      additionalProperties: {}
                    - type: 'null'
                    description: Custom field values
                required:
                - id
                - number
                - name
                - archived
                - createdAt
    patch:
      operationId: leads.update
      summary: Update a lead
      description: Updates an existing lead in your CRM. Only provided fields will be updated.
      tags:
      - Leads
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          description: Lead public ID
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: Lead's full name
                mobile:
                  type: string
                  description: Mobile phone number with country code
                secondaryMobile:
                  type: string
                  description: Secondary mobile phone number with country code
                email:
                  anyOf:
                  - type: string
                    format: email
                  - type: 'null'
                title:
                  type: string
                  description: Job title or position
                value:
                  type: number
                  description: Expected deal value or amount
                sourceId:
                  type: string
                  description: Lead source public ID
                stageId:
                  type: string
                  description: Lead stage public ID
                website:
                  anyOf:
                  - {}
                  - type: 'null'
                  description: Company website URL
              required: []
              additionalProperties: {}
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: Lead public ID
                  number:
                    type: string
                    description: Auto-generated lead number
                  name:
                    type: string
                    description: Full name
                  title:
                    anyOf:
                    - type: string
                    - type: 'null'
                    description: Job title
                  email:
                    anyOf:
                    - type: string
                    - type: 'null'
                    description: Email address
                  mobile:
                    anyOf:
                    - type: string
                    - type: 'null'
                    description: Mobile phone number
                  secondaryMobile:
                    anyOf:
                    - type: string
                    - type: 'null'
                    description: Secondary mobile
                  website:
                    anyOf:
                    - type: string
                    - type: 'null'
                    description: Website URL
                  value:
                    anyOf:
                    - type: number
                    - type: 'null'
                    description: Expected value
                  archived:
                    type: boolean
                    description: Whether the lead is archived
                  sourceId:
                    anyOf:
                    - type: string
                    - type: 'null'
                    description: Lead source public ID
                  stageId:
                    anyOf:
                    - type: string
                    - type: 'null'
                    description: Lead stage public ID
                  createdAt:
                    type: string
                    format: date-time
                    x-native-type: date
                    description: When the lead was created
                  customFields:
                    anyOf:
                    - type: object
                      propertyNames:
                        type: string
                      additionalProperties: {}
                    - type: 'null'
                    description: Custom field values
                required:
                - id
                - number
                - name
                - archived
                - createdAt
    delete:
      operationId: leads.delete
      summary: Delete a lead
      description: Permanently deletes a lead. This action cannot be undone.
      tags:
      - Leads
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          description: Lead public ID
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties: {}
              required: []
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                required:
                - success
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: API key for authentication. Get yours at app.heffl.com/settings/developers