Submit a contact-us message (public; rate-limited).
POST
/v1/contact
const url = 'https://api.share2.us/v1/contact';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"turnstile_token":"example","name":"example","email":"hello@example.com","message":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.share2.us/v1/contact \ --header 'Content-Type: application/json' \ --data '{ "turnstile_token": "example", "name": "example", "email": "hello@example.com", "message": "example" }'Public endpoint backing the marketing “Contact us” form. Stores the message and notifies administrators by email. Rate-limited per IP.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
turnstile_token
Cloudflare Turnstile token. Required when the deployment is configured with a Turnstile secret; omit otherwise.
string
name
required
string
email
required
string format: email
message
required
string
Examplegenerated
{ "turnstile_token": "example", "name": "example", "email": "hello@example.com", "message": "example"}Responses
Section titled “Responses”Contact request accepted.
default
Section titled “default”Standard error envelope.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
request_id
required
string
Example
{ "error": { "code": "quota_exceeded" }}