Generate a security token for email sending IP authentication

Create a unique security token that links your IP address to your account. This token is necessary to send emails via our mail relay service and ensures that only authorized mailings are permitted. You will also receive a DNS record that you need to add to verify your IP address.

Headers

Accept Example
Content-Type Example

Body

required
application/json
ip string required

Responses

200
success boolean
timestamp string
requestId string
data object
POST https://cloud.hostup.se/api/mailrelay/token
For AI assistants
cURL
curl -X POST "https://cloud.hostup.se/api/mailrelay/token" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "ip": "string"
  }'
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "token": "string",
    "ip": "string",
    "dnsRecord": "string"
  }
}
Request Body
{
  "ip": "string"
}