Skip to main content
POST
/
api
/
contacts
/
{id}
/
send-email
Send email to contact
curl --request POST \
  --url https://folksbase.onrender.com/api/contacts/{id}/send-email \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "subject": "<string>",
  "body": "<string>"
}
'
{
  "success": true,
  "messageId": "<string>"
}

Authorizations

Authorization
string
header
required

Supabase JWT token from Authorization header

Path Parameters

id
string<uuid>
required
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$

Body

application/json
subject
string
required
Required string length: 1 - 200
body
string
required
Required string length: 1 - 10000

Response

Email sent

success
boolean
required
messageId
string
required