Documentation

API URL


POST /api/v1/thesaurus/lookup/:word

Headers
Code
Content-Type: application/json
Body Parameters


Example Request

Code
GET https://datpaq.com/api/v1/thesaurus/lookup/happy?api_key=your-api-key

Successful Response

Status
HTML
200 OK
Body
Code
{
  "word": "happy",
  "data": {
    "synonyms": [
      "joyful"
    ],
    "antonyms": [
      "sad"
    ],
    "related": [
      "happiness"
    ]
  },
  "counts": {
    "synonyms": 8,
    "antonyms": 6,
    "related": 5
  },
  "correlationId": "1780090219071-1qgmzsmz3",
  "timestamp": "2026-05-29T21:30:19.072Z"
}

Error Response

Example
Code
400 WORD_REQUIRED - Missing or empty path word: Word parameter validation failed
400 QUERY_REQUIRED - Missing or empty q parameter: Search query validation failed
400 WORDS_ARRAY_REQUIRED - Missing empty or invalid words array: Batch input validation failed
400 BATCH_SIZE_LIMIT - Batch words count greater than 100: Batch size validation failed
404 WORD_NOT_FOUND - Word not present in in-memory dataset: Lookup item not found
404 NotFound - Unknown route path: Service-level route handler returned not found
429 RateLimitExceeded - Request count exceeded limiter threshold: Too many requests in limiter window
500 INTERNAL_ERROR - Unexpected runtime exception in route handlers: Internal server error

Last Updated:  May 4, 2026