POST
crypto
hmac_sign
1 creditGenerate a hex-encoded HMAC signature for a message using a shared secret.
Endpoint
POST /api/v1/tools/crypto/hmac_sign
Body Parameters
secret
string
required
message
string
required
algorithm
string
optional
default: "sha256"
Options:
sha1
sha256
sha512
Example
input
Request
{
"secret": "secret",
"message": "message",
"algorithm": "sha256"
}
output
Response
{
"algorithm": "sha256",
"signature": "8b5f48702995c1598c573db1e21866a9b825d4a794d169d7060a03605796360b"
}
Response Format
HTTP/1.1 200 OK
SUCCESS
{
"success": true,
"data": {
"algorithm": "sha256",
"signature": "8b5f48702995c1598c573db1e21866a9b825d4a794d169d7060a03605796360b"
},
"meta": {
"tool": "hmac_sign",
"credits_consumed": 1
}
}
HTTP/1.1 422 Unprocessable Entity
ERROR
{
"success": false,
"data": null,
"error": {
"code": "validation_error",
"message": "The given data was invalid."
}
}
Sign in to try this tool directly from the docs.
Code Examples
Request Example
lightbulb
Developer Tip
Credits are deducted before execution. If the upstream tool fails, credits are automatically refunded to your account.