apyhub
SECURITY & PRIVACY

Decrypt Text API

What it does

Fernet Decrypt takes a ciphertext token and the matching key, then returns the decrypted plaintext as a string.

Use it when you need to reverse Fernet-encrypted data inside a workflow, test harness, or internal admin tool. Send the ciphertext and key in the request body; the response includes plaintext when decryption succeeds.

Fernet Decrypt is a fit for security-sensitive systems that already store encrypted payloads and need a small, direct decryption step without building that logic into every service. It keeps the interface narrow: one request body, one plaintext output.

Because the endpoint only returns decrypted text, it works well for backend jobs, debugging encrypted messages, or verifying that a key matches a stored token before handing the result to another process.

POST
Fernet AES-256-CBC decrypt a ciphertext token with the matching key
http://localhost:8080/dosvak/decrypt
QUICKSTARTGUIDE

Quickstart

Decrypt a ciphertext by sending the ciphertext and key fields in a JSON body.

curl -X POST "http://localhost:8080/dosvak/decrypt" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
   "ciphertext": "gAAAAABqYhB56HPn26kQHX0JDQ-wBwkbIyooeT2mGQVPFUja07Xl8yZdjitK2_iakbUrop_fh0VWrhv-SHHq46AT7QdYo9vN-w==",
   "key": "9APS3iSbAdIlh0B-sMuKFTLP3Ht36Ja-MYST1-zb_ow="  
}'

What you'll get back

Returns a JSON object with a plaintext string field containing the decrypted text.

{
  "plaintext": "ApyHub"
}
TRY ITLIVE · 10 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
body*

About this endpoint

What it does

Decrypts a Fernet AES-256-CBC ciphertext token using the matching key and returns the resulting plaintext in the response body.

Request Body

ParameterTypeMandatoryDescription
keyStringYesThe decryption key used to match the ciphertext token.
ciphertextStringYesThe ciphertext token to decrypt.

Response

Returns a JSON object with a plaintext string field containing the decrypted text.

ParameterTypeMandatoryDescription
plaintextStringNoThe decrypted plaintext.

Body

Name
Type
Description
bodyREQUIRED
object
▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.