Decryption Endpoint

GET /crypto/dec

API Endpoint for decrypting data

Permissions Required: Cryptography::Decrypt

Query parameters

  • data string

    The data to decrypt

Responses

  • 200 plain/text

    The Decrypted Data

  • 400 application/json

    Error with Decryption (Client Caused)

    Hide response attributes Show response attributes object

    The error data that is returned when an error occurs

    All Error Codes are located in /functions/errorResponse.js GitHub

    • code integer Required

      The error code

      Minimum value is 0, maximum value is 30.

    • message string Required

      The error message

  • 401 application/json

    Invalid/Missing API Token

    Hide response attributes Show response attributes object

    The error data that is returned when an error occurs

    All Error Codes are located in /functions/errorResponse.js GitHub

    • code integer Required

      The error code

      Minimum value is 0, maximum value is 30.

    • message string Required

      The error message

  • 403 application/json

    Missing Permissions

    Hide response attributes Show response attributes object

    The error data that is returned when an error occurs

    All Error Codes are located in /functions/errorResponse.js GitHub

    • code integer Required

      The error code

      Minimum value is 0, maximum value is 30.

    • message string Required

      The error message

  • 500 application/json

    Error with Decryption (Server Caused)

    Hide response attributes Show response attributes object

    The error data that is returned when an error occurs

    All Error Codes are located in /functions/errorResponse.js GitHub

    • code integer Required

      The error code

      Minimum value is 0, maximum value is 30.

    • message string Required

      The error message

GET /crypto/dec
curl \
 -X GET https://thefemdevs.com/api/crypto/dec
Response examples (200)
testing
Response examples (400)
{
  "code": 6,
  "message": "Missing Query Parameter(s)"
}
{
  "code": 7,
  "message": "Invalid Query Parameter(s)"
}
Response examples (401)
{
  "code": 3,
  "message": "No API key provided"
}
{
  "code": 4,
  "message": "Invalid API key provided"
}
Response examples (403)
{
  "code": 1,
  "message": "You are not authorized to access this resource"
}
{
  "code": 2,
  "message": "You are blacklisted from accessing this resource"
}
Response examples (500)
{
  "code": 13,
  "message": "Unable to decrypt data"
}