---
title: "Create lead source"
method: POST
path: "/admin/lead_sources"
tags: ["Lead sources"]
---

# Create lead source

`POST /admin/lead_sources`

## Request

- Base URL: `https://api.pipelinecrm.com/api/v3`
- URL: `https://api.pipelinecrm.com/api/v3/admin/lead_sources`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer and API key in header `app-key`
  - API key in query parameter `api_key` and API key in query parameter `app_key`

## Request body

- object
  - `lead_source` LeadSourceWritable
    - `created_at` string: Timestamp when the record was created (time zone in user's time zone).
    - `updated_at` string: Timestamp when the record was last touched (time zone in user's time zone).
    - `name` string: The label/name of the lead source
    - `cost_per_lead_in_cents` integer, nullable: The price per lead in cents
    - `flat_fee_in_cents` integer, nullable: The flat fee for the leads, in cents

## Response `200`

Successful Response

- LeadSourceAll
  - `id` integer: Unique identifier
  - `created_at` string: Timestamp when the record was created (time zone in user's time zone).
  - `updated_at` string: Timestamp when the record was last touched (time zone in user's time zone).
  - `name` string: The label/name of the lead source
  - `cost_per_lead_in_cents` integer, nullable: The price per lead in cents
  - `flat_fee_in_cents` integer, nullable: The flat fee for the leads, in cents

## Other responses

- `403`: The credentials are valid but this user may not perform the action (permissions, a read-only token, or API access switched off).

---

[API](https://skmtc.dev/pipelinecrm/apis/pipeline-crm-api.md) · [All operations](https://skmtc.dev/pipelinecrm/apis/pipeline-crm-api/llms.txt) · [OpenAPI document](https://skmtc.dev/pipelinecrm/apis/pipeline-crm-api/revisions/53ebfcc83597?raw)
