logo
API CredentialsRequest API key creation confirmation

Request API key creation confirmation

Accepts JSON body or query string. When both are present, the body takes precedence.

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": "example_string",
    "status": "example_string",
    "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
query
emailstring
Format: email
query
daysinteger
Min: 1 • Max: 90
Content-Typestring
Required

The media type of the request body

Options: application/json
emailstring
Required
Format: email
daysinteger
Min: 1 • Max: 90
Request Preview
Response

Response will appear here after sending the request

Query Parameters

Body

application/json

Responses

okboolean
Required
actionstring
Required
Allowed values:api_credentials_create
emailstring
Required
daysinteger
confirmationobject
Required