Skip to main content
POST
/
newsletters
/
subscribe
curl --request POST \
  --url https://api.neuraldraft.io/v1/newsletters/subscribe \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "jane@example.com"
}
'
{
  "data": {
    "id": 42,
    "email": "jane@example.com",
    "app_lead": false,
    "status": "subscribed",
    "subscribed_at": "2023-11-07T05:31:56Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.neuraldraft.io/llms.txt

Use this file to discover all available pages before exploring further.

Headers

X-NeuralDraft-Project-Key
string

Project API key (alternative to query param).

Query Parameters

project_id
integer

Project ID for unauthenticated browser embeds.

Body

application/json
email
string<email>
required
Maximum string length: 255
app_lead
boolean
default:false

Marks the lead as coming from a "want the app" landing surface vs. a regular newsletter signup.

Response

Email already subscribed (idempotent).

data
object