POST
/
secret
curl -X POST 'https://api.resend.com/secret' \
     -H 'Authorization: Bearer re_xxxxxxxxx' \
     -H 'Content-Type: application/json' \
     -d $'{
  "tshirt_size": "XL",
  "name": "Steve Wozniak",
  "address1": "4300 El Camino Real",
  "address2": "Suite 100",
  "city": "Los Altos",
  "state": "CA",
  "country": "US",
  "zip": "94022"
}'
{
  "message": "Check your mailbox in a few days :)"
}
You’ll need an API key to run this - get one here.

Body Parameters

tshirt_size
string
required
Choose between XS, S, M, L, XL, 2XL, 3XL, 4XL, or 5XL
name
string
required
Full name
address1
string
required
Address line
address2
string
Additional address info (e.g., apartment number, suite, floor)
city
string
required
City name
state
string
required
State codes are based on the ISO 3166-2 standard and are two letters long
country
string
required
Country codes are based on the ISO 3166-1 alpha-2 standard and are two letters long
zip
string
required
ZIP code
cpf
string
In case of Brazil country this field becomes required. The CPF format is 000.000.000-00 (14 characters).
curl -X POST 'https://api.resend.com/secret' \
     -H 'Authorization: Bearer re_xxxxxxxxx' \
     -H 'Content-Type: application/json' \
     -d $'{
  "tshirt_size": "XL",
  "name": "Steve Wozniak",
  "address1": "4300 El Camino Real",
  "address2": "Suite 100",
  "city": "Los Altos",
  "state": "CA",
  "country": "US",
  "zip": "94022"
}'
{
  "message": "Check your mailbox in a few days :)"
}