Skip to main content
PUT
Declares a lead source: where leads Erdo did not capture itself come from,

Authorizations

Authorization
string
header
required

An Erdo API key (erdo_api_...) or scoped token (erdo_token_...).

Body

application/json
account_id
string
connection_id
string

(integration id) for the provider; Pipedream connector account ids are refused.

create_only
boolean

import source with this name exists, so adding a source never replaces one.

dataset
string
dry_run
boolean

write, saving nothing. For a sheet it reads the tab; for a webhook it maps sample.

enabled
boolean

Saving an existing sheet, webhook or import source without enabled keeps its current state, so rotating a paused webhook's secret leaves it paused.

forms
string[]

account_id.

if_updated_at
string

read. The save is refused (aborted) when the source was saved since, so two people editing one source cannot overwrite each other's change.

mapping
LeadSourceMapping is a declared source's column mapping. · object
name
string

digits and hyphens, unique in the organization. Saving the same name again replaces that source.

provider
string
rotate_secret
boolean

working at once.

sample
sample is a webhook body to preview the mapping against. · object
sheet_url
string

(including #gid=). The tab must be open to anyone with the link.

suggest_columns
LeadSourceSuggestColumn is a lead column a sheet's fields may be matched to. · object[]

wants the sheet's fields matched to (is_broker, budget, timeline, phone, name), each with what it records. The preview suggests a field only for one of these, and leaves every other field without a suggestion. Without it the lead dataset's own columns are used.

Response

Success response

account_id
string

owns are ever written.

connection_id
string

responses are read through.

created_at
string
dataset
string
enabled
boolean
forms
string[]
id
string
last_delivery_at
string

including one that matched an existing lead (RFC 3339).

last_error
string
last_run_at
string

empty when it never has.

mapping
LeadSourceMapping is a declared source's column mapping. · object
name
string

("brickell-meta-forms-spreadsheet"); empty for a LinkedIn declaration.

preview
LeadSourcePreview is a dry run's account of what a source would write. · object
provider
string

"webhook" or "import".

read_via
string

sheet's open link. It stops working if link sharing is turned off.

sheet_url
string
synced_through
string

handled through (RFC 3339), or empty before the first complete sync.

updated_at
string

microsecond). Send it back as if_updated_at to save only an unchanged source.

webhook_secret
string

returned once, when the source is created or the secret rotated, and is never stored.

webhook_url
string