Documentation

API URL


POST /api/v1/encoding-convert

Headers
Code
Content-Type: application/json
Body Parameters


Example Request

Code
POST https://datpaq.com/api/v1/encoding-convert?api_key=your-api-key | Body: {"operation":"encode","encoding":"base64url","input":"Hello, world!"}

Successful Response

Status
HTML
200 OK
Body
Code
{
  "success": true,
  "operation": "encode",
  "result": "SGVsbG8sIHdvcmxkIQ",
  "correlationId": "req_abc123",
  "metadata": {},
  "updatedAt": "2026-09-13T12:00:00.000Z",
  "processingTime": "2ms"
}

Error Response

Example
Code
HTTP 400 ValidationError: Invalid operation encoding algorithm form or input — Request rejected before conversion; HTTP 400 InvalidJson: Malformed JSON request body — Request rejected by JSON parser; HTTP 401 AuthenticationError: Gateway authentication failure — Request rejected by gateway; HTTP 404 NotFound: Unknown path — Request path unavailable; HTTP 413 PayloadTooLarge: Input exceeds 1000000 characters — Request rejected before processing; HTTP 429 RateLimitError: More than 120 requests in 15 minutes — Request rejected by rate limiter; HTTP 500 InternalError: Unexpected runtime failure — Request could not complete

Last Updated:  May 4, 2026