Nutshell Sources API

Lead sources — how leads arrive at your website and learn about your business. 4 operation(s) across 3 path(s).

Operations 4

DELETE /sources/{id} Delete a Source #
POST /sources/{id}/undelete Undelete a Source #
GET /sources Get a list of sources #
POST /sources Create a new source #

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/nutshell-sources-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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

nutshell-sources-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Nutshell Sources API
  description: The most powerful API in the world
  version: 2.0.0
  contact:
    name: Nutshell Developers
    url: https://developers.nutshell.com
servers:
- url: https://app.nutshell.com/rest
  description: Nutshell REST API
tags:
- name: Sources
paths:
  /sources/{id}:
    delete:
      tags:
      - Sources
      summary: Delete a Source
      description: Delete a source by ID. Deleted sources are removed from the sources tab, and can be restored from the trash within 30 days of deletion via the undelete endpoint.
      operationId: 4d0d83bd963cdf17734d5dacc8fe4235
      parameters:
      - name: id
        in: path
        description: Ids are of the form 'n-sources', where n is an integer.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                description: Returns the deleted source
                properties:
                  sources:
                    type: array
                    items:
                      $ref: '#/components/schemas/Source'
                type: object
      security:
      - basicAuth: []
  /sources/{id}/undelete:
    post:
      tags:
      - Sources
      summary: Undelete a Source
      description: Undelete a source by id.
      operationId: 80894cc152322d74d5a4115aca5297f9
      parameters:
      - name: id
        in: path
        description: Ids are of the form 'n-sources', where n is an integer.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                description: Returns the undeleted source
                properties:
                  sources:
                    type: array
                    items:
                      $ref: '#/components/schemas/Source'
                type: object
      security:
      - basicAuth: []
  /sources:
    get:
      tags:
      - Sources
      summary: Get a list of sources
      description: Returns a list of all possible sources for leads in your Nutshell instance.
      operationId: 2d07cb07b45de2ae13701b873b26cf9e
      parameters:
      - name: q
        in: query
        description: Query for sources that match a specific string
        required: false
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  sources:
                    type: array
                    items:
                      $ref: '#/components/schemas/Source'
                type: object
      security:
      - basicAuth: []
    post:
      tags:
      - Sources
      summary: Create a new source
      description: Create a new source for leads in your Nutshell instance. Sources are used to track how leads arrive at your website and learn about your business.
      operationId: cd431c40f2b57127c71b15044d270a13
      requestBody:
        required: true
        content:
          application/json:
            schema:
              properties:
                sources:
                  type: array
                  items:
                    properties:
                      name:
                        description: The name of the source
                        type: string
                      channel:
                        description: The channel of the source. 0 = no channel, 1 = organic search, 2 = paid search, 3 = organic social, 4 = paid social, 5 = email, 6 = referrer, 7 = traditional, 8 = direct to website
                        type: integer
                        enum:
                        - 0
                        - 1
                        - 2
                        - 3
                        - 4
                        - 5
                        - 6
                        - 7
                        - 8
                    type: object
              type: object
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                properties:
                  sources:
                    type: array
                    items:
                      $ref: '#/components/schemas/Source'
                type: object
      security:
      - basicAuth: []
components:
  schemas:
    Source:
      properties:
        id:
          description: The API ID of this entity, formatted {integer}-{entityType}
          type: string
          example: 3-contacts
        name:
          example: Google
        href:
          type: string
        modifiedTime:
          description: Unix Timestamp
          type: integer
          format: int64
          example: 1704774720
        channel:
          description: Channels group sources into broader groups.
          properties:
            value:
              type: integer
              example: 1
            display:
              type: string
              example: Organic search
          type: object
        deletedTime:
          description: Unix Timestamp
          type: integer
          format: int64
          example: 1704774720
      type: object
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic