Documentation

API URL


POST /api/v1/lookup

Headers
Code
Content-Type: application/json
Body Parameters


Example Request

Code
GET https://datpaq.com/api/v1/mx-lookup?api_key=your-api-key&domains=gmail.com&resolveIps=false

Successful Response

Status
HTML
200 OK
Body
Code
{
  "success": true,
  "count": 1,
  "data": [
    {
      "domain": "gmail.com",
      "mxRecords": [
        {
          "priority": 5,
          "exchange": "gmail-smtp-in.l.google.com"
        }
      ]
    }
  ],
  "processingTime": "4ms",
  "correlationId": "1780005628531-vunylzqs6"
}

Error Response

Example
Code
400 ValidationError - Missing or invalid domains input: domains must be string or array and must satisfy format rules
400 BatchLimitExceeded - More than 50 domains requested: Input batch exceeds supported max size
400 ValidationError - Invalid domain format: One or more domain values fail validation
404 NotFound - Unknown route accessed: Endpoint is not implemented by service
500 InternalServerError - Unhandled lookup processing failure: Unexpected runtime failure during lookup

Last Updated:  May 4, 2026