Skip to content
POST AI agent ready /v1/hash/batch

Batch Hash API - Multiple Algorithms at Once

Send a string and receive its hash in every requested algorithm with one request. Saves multiple round trips when you need checksums in more than one format.

Parameters

stringrequired

The input string to hash.

array

Array of algorithms to compute. Defaults to all supported algorithms if omitted.

Code examples

curl -X POST https://api.botoi.com/v1/hash/batch \
  -H "Content-Type: application/json" \
  -d '{"text":"hello world","algorithms":["md5","sha256","sha512"]}'

When to use this API

Cross-platform checksum distribution

When publishing release artifacts, generate MD5, SHA-256, and SHA-512 checksums in one call and include all three in your release notes.

Migration from legacy algorithms

Generate both the old MD5 hash and the new SHA-256 hash simultaneously so you can update records while maintaining backward compatibility.

Frequently asked questions

What happens if I omit the algorithms array?
The API returns hashes for all supported algorithms: MD5, SHA-1, SHA-256, SHA-384, and SHA-512.
Is this faster than calling /v1/hash multiple times?
Yes. A single batch request eliminates network overhead from multiple round trips and processes all algorithms in parallel on the server.
Can I include unsupported algorithms?
The API ignores unsupported algorithm names and returns results only for recognized ones.
Does the order of the algorithms array matter?
No. The response object contains one key per algorithm regardless of the order you specified.

Get your API key

Free tier includes 5 requests per minute with no credit card required. Upgrade for higher limits.