Documentation

API URL


POST /api/v1/dictionary

Headers
Code
Content-Type: application/json
Body Parameters


Example Request

Code
GET https://datpaq.com/api/v1/dictionary/batch?api_key=your-api-key&words=hello,bank,phonetic

Successful Response

Status
HTML
200 OK
Body
Code
{
  "word": "example",
  "phonetic": "IH0 G Z AE1 M P AH0 L",
  "meanings": [
    {
      "partOfSpeech": "noun",
      "definition": "A representative form or pattern",
      "example": "Set a good example for the children"
    }
  ]
}

Error Response

Example
Code
400 ValidationError - Missing or invalid word for define route: Request rejected because word input is empty or malformed
400 ValidationError - Non-array word field for batch route: Request rejected because batch payload requires array under word
400 ValidationError - Missing or invalid q for suggest route: Request rejected because suggestion query is empty
401 AuthenticationError - Gateway authentication failure: Request rejected due to missing or invalid API credentials
500 InternalError - Unhandled runtime error: Request failed during internal processing and error middleware returned fallback response

Last Updated:  May 4, 2026