Signup Forms
Create and manage public signup forms for contact lists
6 endpoints
Endpoints
Method Path Description
GET /v1/signup-formsGET /v1/signup-forms
POST /v1/signup-formsPOST /v1/signup-forms
GET /v1/signup-forms/{id}GET /v1/signup-forms/{id}
PUT /v1/signup-forms/{id}PUT /v1/signup-forms/{id}
DELETE /v1/signup-forms/{id}DELETE /v1/signup-forms/{id}
POST /v1/signup-forms/{id}/togglePOST /v1/signup-forms/{id}/toggle
GET /v1/signup-forms
Responses
Status Description
200 List of signup forms
401 Unauthorized
Example
cURL
TypeScript
Python
Rust
Go
curl -X GET https://api.euromail.dev/v1/signup-forms \
-H "Authorization: Bearer em_live_..."
import { EuroMail } from "@euromail/sdk" ;
const euromail = new EuroMail ({ apiKey: "em_live_..." });
const result = await euromail. listSignupForms ();
from euromail import EuroMail
client = EuroMail( api_key = "em_live_..." )
result = client.list_signup_forms()
use euromail :: EuroMail ;
let client = EuroMail :: new ( "em_live_..." );
let result = client . list_signup_forms () .await? ;
client := euromail. NewClient ( "em_live_..." )
result, err := client. ListSignupForms (ctx)
POST /v1/signup-forms
POST /v1/signup-forms
Request Body
Field Type Required Description
custom_fieldsanyNo Custom fields rendered on the form.
descriptionstring | nullNo Optional description shown below the title.
from_addressstring | nullNo Sender of the confirmation emails, a bare address or one with a display name (e.g. Acme News <[email protected] >). The name follows the rules of from on a send. The address must be on one of the account's domains, verified for sending. Stored and returned as "Name" <address>. Defaults to noreply@.
list_idstringYes Contact list ID to attach this form to.
messagesanyNo Customizable UI messages for localization.
redirect_urlstring | nullNo URL to redirect to after subscription (overrides success_message).
success_messagestring | nullNo Message displayed after successful subscription.
themeanyNo Theme customization: bg_color, text_color, button_color, button_text_color, border_color, accent_color, border_radius, font_family, embed, hide_branding.
titlestringYes Form title displayed to subscribers.
Responses
Status Description
201 Signup form created
401 Unauthorized
404 Contact list not found
409 A signup form already exists for this list
422 Validation error
Example
cURL
TypeScript
Python
Rust
Go
curl -X POST https://api.euromail.dev/v1/signup-forms \
-H "Authorization: Bearer em_live_..." \
-H "Content-Type: application/json" \
-d '{
"list_id": "3f8b1c52-7a4e-4d0b-9c61-2e5d8a7f4b10",
"title": "..."
}'
import { EuroMail } from "@euromail/sdk" ;
const euromail = new EuroMail ({ apiKey: "em_live_..." });
const result = await euromail. createSignupForm ({
list_id: "3f8b1c52-7a4e-4d0b-9c61-2e5d8a7f4b10" ,
title: "..."
});
from euromail import EuroMail
client = EuroMail( api_key = "em_live_..." )
result = client.create_signup_form(
list_id = "3f8b1c52-7a4e-4d0b-9c61-2e5d8a7f4b10" ,
title = "..." ,
)
use euromail :: { EuroMail , CreateSignupFormParams };
let client = EuroMail :: new ( "em_live_..." );
let result = client . create_signup_form ( & CreateSignupFormParams {
list_id : "3f8b1c52-7a4e-4d0b-9c61-2e5d8a7f4b10" . into (),
title : "..." . into (),
.. Default :: default ()
}) .await? ;
client := euromail. NewClient ( "em_live_..." )
result, err := client. CreateSignupForm (ctx, euromail . CreateSignupFormParams {
ListID: "3f8b1c52-7a4e-4d0b-9c61-2e5d8a7f4b10" ,
Title: "..." ,
})
GET /v1/signup-forms/{id}
Parameters
Name In Type Required Description
idpath stringYes Signup form ID
Responses
Status Description
200 Signup form details
401 Unauthorized
404 Signup form not found
Example
cURL
TypeScript
Python
Rust
Go
curl -X GET https://api.euromail.dev/v1/signup-forms/{id} \
-H "Authorization: Bearer em_live_..."
import { EuroMail } from "@euromail/sdk" ;
const euromail = new EuroMail ({ apiKey: "em_live_..." });
const result = await euromail. getSignupForm ( "id_..." );
from euromail import EuroMail
client = EuroMail( api_key = "em_live_..." )
result = client.get_signup_form( "id_..." )
use euromail :: EuroMail ;
let client = EuroMail :: new ( "em_live_..." );
let result = client . get_signup_form ( "id_..." ) .await? ;
client := euromail. NewClient ( "em_live_..." )
result, err := client. GetSignupForm (ctx, "id_..." )
PUT /v1/signup-forms/{id}
Parameters
Name In Type Required Description
idpath stringYes Signup form ID
Request Body
Field Type Required Description
custom_fieldsanyNo Custom fields rendered on the form.
descriptionstring | nullNo Optional description shown below the title.
from_addressstring | nullNo Sender of the confirmation emails, with or without a display name; the same rules as on create. Empty or absent clears it, back to noreply@.
messagesanyNo Customizable UI messages for localization.
redirect_urlstring | nullNo URL to redirect to after subscription (overrides success_message).
success_messagestring | nullNo Message displayed after successful subscription.
themeanyNo Theme customization: bg_color, text_color, button_color, button_text_color, border_color, accent_color, border_radius, font_family, embed, hide_branding.
titlestringYes Form title displayed to subscribers.
Responses
Status Description
200 Signup form updated
401 Unauthorized
404 Signup form not found
422 Validation error
Example
cURL
TypeScript
Python
Rust
Go
curl -X PUT https://api.euromail.dev/v1/signup-forms/{id} \
-H "Authorization: Bearer em_live_..." \
-H "Content-Type: application/json" \
-d '{
"title": "..."
}'
import { EuroMail } from "@euromail/sdk" ;
const euromail = new EuroMail ({ apiKey: "em_live_..." });
const result = await euromail. updateSignupForm ({
title: "..."
});
from euromail import EuroMail
client = EuroMail( api_key = "em_live_..." )
result = client.update_signup_form(
title = "..." ,
)
use euromail :: { EuroMail , UpdateSignupFormParams };
let client = EuroMail :: new ( "em_live_..." );
let result = client . update_signup_form ( & UpdateSignupFormParams {
title : "..." . into (),
.. Default :: default ()
}) .await? ;
client := euromail. NewClient ( "em_live_..." )
result, err := client. UpdateSignupForm (ctx, euromail . UpdateSignupFormParams {
Title: "..." ,
})
DELETE /v1/signup-forms/{id}
Parameters
Name In Type Required Description
idpath stringYes Signup form ID
Responses
Status Description
204 Signup form deleted
401 Unauthorized
404 Signup form not found
Example
cURL
TypeScript
Python
Rust
Go
curl -X DELETE https://api.euromail.dev/v1/signup-forms/{id} \
-H "Authorization: Bearer em_live_..."
import { EuroMail } from "@euromail/sdk" ;
const euromail = new EuroMail ({ apiKey: "em_live_..." });
const result = await euromail. deleteSignupForm ( "id_..." );
from euromail import EuroMail
client = EuroMail( api_key = "em_live_..." )
result = client.delete_signup_form( "id_..." )
use euromail :: EuroMail ;
let client = EuroMail :: new ( "em_live_..." );
let result = client . delete_signup_form ( "id_..." ) .await? ;
client := euromail. NewClient ( "em_live_..." )
result, err := client. DeleteSignupForm (ctx, "id_..." )
POST /v1/signup-forms/{id}/toggle
POST /v1/signup-forms/{id}/toggle
Parameters
Name In Type Required Description
idpath stringYes Signup form ID
Responses
Status Description
200 Signup form toggled
401 Unauthorized
404 Signup form not found
Example
cURL
TypeScript
Python
Rust
Go
curl -X POST https://api.euromail.dev/v1/signup-forms/{id}/toggle \
-H "Authorization: Bearer em_live_..."
import { EuroMail } from "@euromail/sdk" ;
const euromail = new EuroMail ({ apiKey: "em_live_..." });
const result = await euromail. getSignupFormDetail ( "id_..." );
from euromail import EuroMail
client = EuroMail( api_key = "em_live_..." )
result = client.get_signup_form_detail( "id_..." )
use euromail :: EuroMail ;
let client = EuroMail :: new ( "em_live_..." );
let result = client . get_signup_form_detail ( "id_..." ) .await? ;
client := euromail. NewClient ( "em_live_..." )
result, err := client. GetSignupFormDetail (ctx, "id_..." )