Skip to main content
POST
Create an organization lead intake source

Authorizations

Authorization
string
header
required

Authorization header using the Bearer scheme. Accepted values are Leadping user JWT access tokens and WorkOS organization API keys beginning with sk_.

Body

The source data to create.

Defines the fields clients can send when working with lead source.

allowedStates
string[]
required

State or region allowlist used to accept leads from this source.

allowedProducts
string[]
required

Product allowlist used to accept or route leads from this source.

defaultTagIds
string[]
required

Tag IDs automatically assigned to leads created by this source.

defaultTagNames
string[]
required

Tag names automatically assigned to leads created by this source.

name
null | string

Human-readable source name.

description
null | string

Human-readable description that explains this lead source request to API users.

requiresTrustedForm
boolean

Indicates whether leads from this source must include a TrustedForm certificate for consent proof.

Response

Source was successfully created.

Returns a newly issued source credential exactly once.

source
object

Source metadata safe for later retrieval.

secret
string

Newly issued source credential. Leadping does not retain this plaintext value.