API URL
POST /api/v1/encoding-convert
Headers
Code
Content-Type: application/jsonBody Parameters
Param
Type
Description
operation
required
string
Encoding or inspection operation
input
required
string
Text encoded value JWT or data URI
encoding
optional
string
Encoding identifier
algorithm
optional
string
Hash algorithm
output
optional
string
Hash output format
form
optional
string
Unicode normalization form
mime_type
optional
string
Data URI MIME type
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 OKBody
Code
{
"success": true,
"operation": "encode",
"result": "SGVsbG8sIHdvcmxkIQ",
"correlationId": "req_abc123",
"metadata": {},
"updatedAt": "2026-09-13T12:00:00.000Z",
"processingTime": "2ms"
}Field
Type
success
boolean
service
string
operations
array
encodings
array
hashAlgorithms
array
hashOutputs
array
normalizationForms
array
maxInputLength
number
operation
string
result
string/array
result_header
object
result_payload
object
result_claims
object
result_verified
boolean
correlationId
string
metadata
object
metadata_correlationId
string
metadata_timestamp
string
metadata_api_token_name
string
metadata_rate_limit
object
updatedAt
string
processingTime
string
error
object
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 completeLast Updated: May 4, 2026