Keap Lead Source Categories API

Keap Lead Source Categories API — 5 operations across 2 paths on the Keap REST v2 contract, read from Keap's own published OpenAPI 3.1 document.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 5

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /rest/v2/leadSourceCategories List lead source categories · List Lead Source Categories #
Ask an LLM
“What lead source categories exist for tracking where leads come from?”
“Can I filter lead source categories by name?”
Tell an agent
List lead source categories matching {filter}.
Show lead source categories ordered by {order_by}.
POST /rest/v2/leadSourceCategories Create a lead source category · Create a Lead Source Category #
Ask an LLM
“How do I add a new category for where leads come from?”
“Can I give a new lead source category a description?”
Tell an agent
Create a lead source category named {name}.
Add a lead source category {name} described as {description}.
GET /rest/v2/leadSourceCategories/{lead_source_category_id} Retrieve a lead source category · Retrieve a Lead Source Category #
Ask an LLM
“What name and description does a particular lead source category have?”
“Can I look up one lead source category by ID?”
Tell an agent
Get lead source category {lead_source_category_id}.
Show the details of lead source category {lead_source_category_id}.
DELETE /rest/v2/leadSourceCategories/{lead_source_category_id} Delete a lead source category · Delete a Lead Source Category #
Ask an LLM
“How do I remove a lead source category I no longer use?”
“Can I delete a lead source category by its ID?”
Tell an agent destructive · confirm first
Delete lead source category {lead_source_category_id}.
Remove the lead source category {lead_source_category_id}.
PATCH /rest/v2/leadSourceCategories/{lead_source_category_id} Update a lead source category · Update a Lead Source Category #
Ask an LLM
“Can I rename an existing lead source category?”
“Is it possible to change only a lead source category's description?”
Tell an agent
Rename lead source category {lead_source_category_id} to {name}.
Set the description of lead source category {lead_source_category_id} to {description}.

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/keap:keap-lead-source-categories-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

keap-lead-source-categories-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Keap Lead Source Categories API
  description: Keap Public API Documentation
  termsOfService: https://www.thryv.com/terms-of-use
  contact:
    name: Keap
    url: https://developer.keap.com/get-support
    email: api.keap@thryv.com
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
  version: v2
servers:
- url: https://api.infusionsoft.com/crm
security:
- oauth2: []
tags:
- name: Lead Source Categories
paths:
  /rest/v2/leadSourceCategories:
    get:
      tags:
      - Lead Source Categories
      summary: List Lead Source Categories
      description: Retrieves a list of Lead Source Categories
      operationId: listLeadSourceCategories
      parameters:
      - name: filter
        in: query
        description: 'Filter to apply, allowed fields are:


          - (String) `name` - Wildcard matching allowed

          - (String) `description` - Wildcard matching allowed


          You will need to apply the `==` operator to check the equality of one of the filters with your searched

          word, in the encoded form `%3D%3D`.


          For fields which allow wildcard matching, you may use the * wildcard character (or its encoded form %2A)

          for prefix matching on text fields. Example of a valid pattern of wildcard usage:

          - `field==foo*` finds anything in `field` that begins with `foo`


          For the filters listed above, here are some examples:


          - `filter=name%3D%3Dexample`

          - `filter=name%3D%3Dexam*` (starts with "exam")

          - `filter=description%3D%3Dexample`

          - `filter=description%3D%3Dexam*` (starts with "exam")

          - `filter=name%3D%3Dexam*%3Bdescription%3D%3Dsales` (multiple filters combined)'
        required: false
        schema:
          type: string
      - name: page_token
        in: query
        description: Page token
        required: false
        schema:
          type: string
      - name: order_by
        in: query
        description: 'Attribute and direction to order items.

          One of the following fields:

          - `name`


          One of the following directions:

          - `asc`

          - `desc`'
        required: false
        schema:
          type: string
      - name: page_size
        in: query
        description: Total number of items to return per page
        required: false
        schema:
          type: integer
          format: int32
          maximum: 1000
          minimum: 0
        example: 0
      responses:
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '501':
          description: Method Not Implemented
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '405':
          description: Method Not Allowed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListLeadSourceCategoriesResponse'
    post:
      tags:
      - Lead Source Categories
      summary: Create a Lead Source Category
      description: Creates a new Lead Source Category.
      operationId: createLeadSourceCategory
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateUpdateLeadSourceCategoryRequest'
        required: true
      responses:
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '501':
          description: Method Not Implemented
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '405':
          description: Method Not Allowed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LeadSourceCategory'
  /rest/v2/leadSourceCategories/{lead_source_category_id}:
    get:
      tags:
      - Lead Source Categories
      summary: Retrieve a Lead Source Category
      description: Retrieves a single Lead Source Category for a given ID
      operationId: getLeadSourceCategory
      parameters:
      - name: lead_source_category_id
        in: path
        description: The ID of a lead source category
        required: true
        schema:
          type: string
      responses:
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '501':
          description: Method Not Implemented
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '405':
          description: Method Not Allowed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LeadSourceCategory'
    delete:
      tags:
      - Lead Source Categories
      summary: Delete a Lead Source Category
      description: Deletes the specified Lead Source Category
      operationId: deleteLeadSourceCategory
      parameters:
      - name: lead_source_category_id
        in: path
        description: The ID of a lead source category
        required: true
        schema:
          type: string
      responses:
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '501':
          description: Method Not Implemented
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '405':
          description: Method Not Allowed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '204':
          description: No Content
    patch:
      tags:
      - Lead Source Categories
      summary: Update a Lead Source Category
      description: Updates a Lead Source Category
      operationId: updateLeadSourceCategory
      parameters:
      - name: lead_source_category_id
        in: path
        description: The ID of a lead source category
        required: true
        schema:
          type: string
      - name: update_mask
        in: query
        description: An optional list of properties to be updated. If set, only the provided properties will be updated and others will be skipped.
        required: false
        schema:
          type: array
          items:
            type: string
            enum:
            - name
            - description
          uniqueItems: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateUpdateLeadSourceCategoryRequest'
        required: true
      responses:
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '501':
          description: Method Not Implemented
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '405':
          description: Method Not Allowed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LeadSourceCategory'
components:
  schemas:
    LeadSourceCategory:
      type: object
      properties:
        id:
          type: string
          description: The unique identifier for the category
          example: 123
        name:
          type: string
          description: The name of the category
          example: Paid Advertising
        description:
          type: string
          description: The description of the category
          example: All paid marketing channels
        create_time:
          type: string
          format: date-time
          description: The date the category was created
          example: '2024-01-10T08:00:00Z'
        update_time:
          type: string
          format: date-time
          description: The date the category was last updated
          example: '2024-03-15T10:30:00Z'
    Error:
      type: object
      properties:
        code:
          type: integer
          format: int32
        message:
          type: string
        status:
          type: string
        details:
          type: array
          items:
            $ref: '#/components/schemas/ErrorDetails'
    ListLeadSourceCategoriesResponse:
      type: object
      properties:
        lead_source_categories:
          type: array
          description: The lead source categories in the current page
          items:
            $ref: '#/components/schemas/LeadSourceCategory'
        next_page_token:
          type: string
    CreateUpdateLeadSourceCategoryRequest:
      type: object
      properties:
        name:
          type: string
          description: The name of the category, must be unique
          example: Paid Advertising
        description:
          type: string
          description: The description of the category
          example: All paid marketing channels
    ErrorDetails:
      type: object
      properties:
        domain:
          type: string
        resource:
          type: string
  securitySchemes:
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://accounts.infusionsoft.com/app/oauth/authorize
          tokenUrl: https://api.infusionsoft.com/token
          scopes: {}