API Documentation

v1

Integrate DevTools generators and utilities directly into your applications. All endpoints require an API key from your dashboard.

Get API Key

Generate a key from your dashboard after subscribing to an API plan

Authenticate

Pass your key via Authorization: Bearer header on every request

Start Building

All endpoints return JSON with rate limit headers included

Base URL

url
https://tools.shafyha.com/api/tools

Authentication

bash
# Option 1: Authorization header (recommended)
curl "https://tools.shafyha.com/api/tools/uuid" -H "Authorization: Bearer YOUR_API_KEY"

# Option 2: Query parameter
curl "https://tools.shafyha.com/api/tools/uuid?api_key=YOUR_API_KEY"

Rate Limits

PlanRequests/dayPriceBest for
API Basic2,000/day$2/moHobby projects, prototypes
API Pro15,000/day$5/moProduction apps
Starter2,000/day$3/moIncludes other features
Pro15,000/day$8/moAll features included
Business100,000/day$20/moHigh volume usage

Rate limit resets at 00:00 UTC daily. Limit headers are included in every response: X-RateLimit-Limit and X-RateLimit-Remaining.

Error Responses

401UnauthorizedMissing or invalid API key
403ForbiddenNo active subscription for this API product
400Bad RequestMissing required parameter or invalid value
409ConflictCustom slug already taken (URL shortener)
429Too Many RequestsDaily rate limit exceeded. Resets at UTC midnight
500Server ErrorSomething went wrong on our end
json
{ "success": false, "error": "Error message here", "details": null }

Endpoints

Generate cryptographically random passwords.

Parameters

NameTypeDefaultDescription
lengthnumber16Password length (4-128)
countnumber1Number of passwords (1-50)
uppercasebooleantrueInclude uppercase letters
lowercasebooleantrueInclude lowercase letters
numbersbooleantrueInclude numbers
symbolsbooleanfalseInclude symbols (!@#$...)

Example Request

bash
curl "https://tools.shafyha.com/api/tools/password?length=20&symbols=true&count=3" \
    -H "Authorization: Bearer YOUR_API_KEY"

Example Response

json
{
      "success": true,
      "data": {
        "passwords": ["K#9mP!vQ2xR@nL5wY", "J$8kN@uW3yT!mF6zA", "M%7jH#sV4zP@lE9xB"]
      },
      "meta": { "rate_limit_day": 2000, "requests_today": 1, "remaining_today": 1999 }
    }

Ready to integrate?

Get your API key from the dashboard. API Basic starts at just $2/month for 2,000 requests/day.