logo
EndpointsRequest API key creation email
Endpoints

Request API key creation email

Accepts email and days in JSON body (recommended) or query string.

curl -X POST "https://mail.haltman.io/api/credentials/create?email=user@example.com&days=42" \
  -H "Content-Type: application/json" \
  -d '{
  "email": "user@example.com",
  "days": 42
}'
{
  "ok": true,
  "action": "api_credentials_create",
  "email": "user@example.com",
  "days": 42,
  "confirmation": {
    "sent": true,
    "ttl_minutes": 42,
    "reason": "cooldown",
    "status": "PENDING",
    "expires_at": "2024-12-25T10:00:00Z",
    "last_sent_at": "2024-12-25T10:00:00Z",
    "next_allowed_send_at": "2024-12-25T10:00:00Z",
    "send_count": 10,
    "remaining_attempts": 42
  }
}
POST
/api/credentials/create
POST
Content-Typestring
Required

The media type of the request body

Options: application/json
Request Preview
Response

Response will appear here after sending the request

Query Parameters

Responses

okboolean
actionstring
Allowed values:api_credentials_create
emailstring
daysinteger
confirmationobject
Was this page helpful?
Built with Documentation.AI

Last updated 1 week ago