---
title: "Create a new source"
method: POST
path: "/sources"
tags: ["Sources"]
---

# Create a new source

`POST /sources`

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.

## Request body

- object
  - `sources` object[]
    - `name` string — The name of the source
    - `channel` 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 — 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

## Response `201`

Created

- object
  - `sources` Source[]
    - `id` string — The API ID of this entity, formatted {integer}-{entityType}
    - `name` string
    - `href` string
    - `modifiedTime` integer — Unix Timestamp
    - `channel` object — Channels group sources into broader groups.
      - `value` integer
      - `display` string
    - `deletedTime` integer — Unix Timestamp

---

[API](https://skmtc.dev/nutshell/apis/nutshell-api.md) · [All operations](https://skmtc.dev/nutshell/apis/nutshell-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nutshell/nutshell-api/revisions/14f59cf6a09a/schema)
