Public WebsiteSubmit to a Form Action URL

Submit to a Form Action URL

The form action URL behind every HTML form in Settings → Forms, and behind the subscribe blocks in posts and landing pages. The full URL is https://app.nashra.ai/api/subscribe/{identifier} — note there's no /v1. Send a regular form post (application/x-www-form-urlencoded) or JSON.

Accepts email (Email and EMAIL work too), first_name, last_name, phone, phone_country, and any custom field by its data_name. Leave out any field named website: it's a spam trap, and a submission that fills it gets a normal-looking success with nothing saved — unless your list has a custom field named website.

With the form's response type set to Redirect, a browser form post is sent to the form's Thank-you URL (or back to the page on an error). With JSON, or when you post a JSON body, you get the JSON below. Rate limited to 10 requests per minute per IP, and 10 attempts per 10 minutes for the same email address.

curl -X POST "https://app.nashra.ai/api/subscribe/example_string" \
  -H "Content-Type: application/json" \
  -d '{
  "email": "user@example.com",
  "first_name": "John Doe",
  "last_name": "John Doe",
  "phone": "+1-555-0123",
  "phone_country": "+1-555-0123"
}'
{
  "data": {
    "already_subscribed": true
  },
  "message": "Please check your email to confirm your subscription",
  "meta": {}
}
POST
/subscribe/{identifier}
POST
Base URLstring

Target server for requests. Edit to use your own host.

path
identifierstring
Required

The form's identifier — the last segment of its action URL

Content-Typestring
Required

The media type of the request body

Options: application/json, application/x-www-form-urlencoded
emailstring
Required
Format: email
phonestring
Max length: 32
phone_countrystring
Min length: 2 • Max length: 2
Request Preview
Response

Response will appear here after sending the request

Path Parameters

identifierstring
Required

The form's identifier — the last segment of its action URL

Responses