Public WebsiteSubmit Resource Form

Submit Resource Form

Subscribe through a Resource's form. Accepts the Resource's custom fields alongside email, name, and phone — see the fields array from the GET endpoint above for which it asks for and which are required. Rate limited to 10 requests per minute per IP, and 10 attempts per 10 minutes for the same email address.

Submissions that look like spam still get a success response: the most blatant are dropped silently, and likely spam is saved with a risk mark that Audience's spam cleanup takes into account.

curl -X POST "https://app.nashra.ai/api/v1/tenants/example_string/magic-links/spring-sale" \
  -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",
  "visitor_id": "123e4567-e89b-12d3-a456-426614174000",
  "website": "example_string"
}'
{
  "data": {
    "already_subscribed": true
  },
  "message": "Successfully subscribed",
  "meta": {}
}
POST
/tenants/{slug}/magic-links/{identifier}
POST
Base URLstring

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

path
slugstring
Required

Tenant's subdomain slug, or its verified custom domain

path
identifierstring
Required

The Resource's identifier

Content-Typestring
Required

The media type of the request body

Options: application/json
emailstring
Required
Format: email
phonestring

Optional WhatsApp number — a full international number, or a national number with phone_country

Max length: 32
phone_countrystring
Min length: 2 • Max length: 2
visitor_idstring
Format: uuid
websitestring

Spam trap — leave it out or empty. A value here gets a normal-looking success, but nothing is saved (unless your list has a custom field named website).

Request Preview
Response

Response will appear here after sending the request

Path Parameters

slugstring
Required

Tenant's subdomain slug, or its verified custom domain

identifierstring
Required

The Resource's identifier

Example:
spring-sale

Body

application/json
phonestring

Optional WhatsApp number — a full international number, or a national number with phone_country

websitestring

Spam trap — leave it out or empty. A value here gets a normal-looking success, but nothing is saved (unless your list has a custom field named website).

Responses