Command Palette

Search for a command to run...

Lead Magnets API

Create, retrieve, update, and delete PDF lead magnets via the API.

Overview

The Lead Magnets API allows you to manage your PDF lead magnets programmatically.

Endpoints

MethodEndpointDescription
GET/api/v1/lead-magnetsList all lead magnets
POST/api/v1/lead-magnetsCreate a lead magnet
GET/api/v1/lead-magnets/:idGet a specific lead magnet
PATCH/api/v1/lead-magnets/:idUpdate a lead magnet
DELETE/api/v1/lead-magnets/:idDelete a lead magnet
POST/api/v1/lead-magnets/:id/bulk-linksCreate bulk access links

List Lead Magnets

Retrieve all lead magnets for your account.

GET/api/v1/lead-magnets

Query Parameters

ParameterTypeDescription
pageintegerPage number (default: 1)
per_pageintegerItems per page (default: 20, max: 100)
is_activestringFilter by active status: true, false, or all (default: all)

Response

json

Example

cURL CommandN8N Ready

Create Lead Magnet

Create a new PDF lead magnet. Requires write scope.

POST/api/v1/lead-magnets

Request Body

FieldTypeRequiredDescription
titlestringYesLead magnet title (max 255 chars)
descriptionstringNoDescription
file_pathstringNoPath to uploaded PDF file
is_activebooleanNoActive status (default: true)

Example

cURL CommandN8N Ready

Response

json

Get Lead Magnet

Retrieve a specific lead magnet by ID.

GET/api/v1/lead-magnets/{id}

Response

json

Update Lead Magnet

Update an existing lead magnet. Requires write scope.

PATCH/api/v1/lead-magnets/{id}

Request Body

All fields are optional:

FieldTypeDescription
titlestringLead magnet title
descriptionstringDescription
file_pathstringPath to uploaded PDF file
is_activebooleanActive status

Example

cURL CommandN8N Ready

Delete Lead Magnet

Delete a lead magnet and all associated access links. Requires write scope.

DELETE/api/v1/lead-magnets/{id}

This action is permanent. All access links for this lead magnet will stop working.

Example

cURL CommandN8N Ready

Response

json

Lead Magnet Object

FieldTypeDescription
idstringUnique identifier (UUID)
titlestringLead magnet title
descriptionstringDescription
typestringAlways pdf
file_pathstringPath to uploaded PDF file
is_activebooleanWhether lead magnet is active
created_atstringCreation timestamp
updated_atstringLast update timestamp