Lead submission
Push leads from your CRM or website into a Partner API source, with your own field names.
Submit a lead or create one?
From another system, with its own field names: submit to a Partner API source. Its mapping and routing decide the campaign; you get a receipt.
Directly into a campaign you choose, with LMS field names: create the lead.
POSTCreate a lead
Find the source IDs a key may submit to in sourceIds of Describe the current credential; set a source up under Lead intake → Sources in LMS.
Submit a lead
POST/v1/integrations/sources/{sourceId}/leads
Sends one lead to a Partner API source. LMS applies the source's published field mapping and routing, de-duplicates against existing leads and returns a receipt. Needs the intake.submit scope with this source selected on the key.
Send an Idempotency-Key. Retrying with the same key and body returns the original receipt; the same key with a different body returns 409 IDEMPOTENCY_CONFLICT. Records that cannot be mapped or routed yet are held (NEEDS_MAPPING, NEEDS_ROUTING, leadId: null) and replayed by an operator once the source is fixed. The saved receipt does not change after that replay; follow the lead through lead.created or the change feed.
Use this to push leads from another system with its own field names. To create a lead directly in a campaign you choose, with LMS field names, use Create a lead.
Path parameters
sourceIdPartner API source ID: one of the
sourceIdsthat Describe the current credential returns. Sources are set up in LMS under Lead intake → Sources.
Headers
Idempotency-KeyMakes the request safe to retry: the same key with the same body returns the original result; with a different body,
409.
Request body (application/json)
externalRecordIdYour system's ID for this record. Repeat submissions are matched on it.
fieldsSource fields, keyed by the field names you configured in the source's mapping. Values may be any JSON.
Responses
The submission's receipt (the original one on a retry). Look it up later with Get a submission receipt.
idReceipt ID. Look the receipt up again with it.
leadIdThe created or matched lead, if any.
sourceRecordIdThe stored source record.
statusCurrent status of the partner intake receipt.
reasonCodeMachine-readable detail, for example
LEAD_CREATED,REPEAT_ENQUIRYorMAPPING_VERSION_NOT_FOUND.
Errors
IDEMPOTENCY_KEY_REQUIREDTheIdempotency-Keyheader is missing.VALIDATION_ERRORA parameter, header or body field is invalid; compare the request with the fields above (Validation errors).PARTNER_SCOPE_FORBIDDENThe key lacks theintake.submitscope.SOURCE_NOT_FOUNDThe source does not exist or the key cannot see it.IDEMPOTENCY_CONFLICTTheIdempotency-Keywas already used with a different body.SOURCE_INACTIVEThe source is paused; resume it, then resend with the same key.
Get a submission receipt
GET/v1/integrations/sources/{sourceId}/receipts/{receiptId}
Returns the saved outcome of an earlier submission to this source. Receipts record the result at submission time; later routing or replay happens in the LMS intake workspace. Needs the intake.submit scope with this source selected.
Path parameters
sourceIdPartner API source ID.
receiptIdReceipt ID returned by the submission.
Responses
The receipt.
idReceipt ID. Look the receipt up again with it.
leadIdThe created or matched lead, if any.
sourceRecordIdThe stored source record.
statusCurrent status of the partner intake receipt.
reasonCodeMachine-readable detail, for example
LEAD_CREATED,REPEAT_ENQUIRYorMAPPING_VERSION_NOT_FOUND.
Errors
PARTNER_SCOPE_FORBIDDENThe key lacks theintake.submitscope.SOURCE_NOT_FOUNDThe source does not exist or the key cannot see it.RECEIPT_NOT_FOUNDThe receipt does not exist or the key cannot see it.