Mecanik API Documentation

Authentication

All endpoints require a Bearer token in the Authorization header. Your account UUID is part of the URL path.

Base URL: https://api.mecanik.dev/v1/client/{uuid}/tools

curl -X POST https://api.mecanik.dev/v1/client/YOUR_UUID/tools/security-headers \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com"}'

Getting Started

1

Create a free account at members.mecanik.dev. You receive 100 free credits, no card required.

2

In the members portal, copy your Account UUID from the Dashboard and create a Bearer token on the Security page.

3

Call any endpoint at https://api.mecanik.dev/v1/client/{uuid}/tools/{endpoint}. Credits are deducted per call.

curl -X POST https://api.mecanik.dev/v1/client/YOUR_UUID/tools/security-headers \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com"}'
// SDK:  npm i @mecanik-dev/api
import { MecanikClient } from '@mecanik-dev/api';

const mecanik = new MecanikClient({ accountId: 'YOUR_UUID', token: 'YOUR_TOKEN' });
const result = await mecanik.tools.securityHeaders({ url: 'https://example.com' });
console.log(result.grade, result.score);

// Or with plain fetch:
const res = await fetch('https://api.mecanik.dev/v1/client/YOUR_UUID/tools/security-headers', {
  method: 'POST',
  headers: { 'Authorization': 'Bearer YOUR_TOKEN', 'Content-Type': 'application/json' },
  body: JSON.stringify({ url: 'https://example.com' })
});
const data = await res.json();
# SDK:  pip install mecanik-api
from mecanik_api import MecanikClient

mecanik = MecanikClient(account_id="YOUR_UUID", token="YOUR_TOKEN")
result = mecanik.tools.security_headers(url="https://example.com")
print(result["grade"], result["score"])

# Or with requests:
import requests
res = requests.post(
    "https://api.mecanik.dev/v1/client/YOUR_UUID/tools/security-headers",
    headers={"Authorization": "Bearer YOUR_TOKEN"},
    json={"url": "https://example.com"},
)
data = res.json()
AI-Powered Tools 5-12 credits per call
POST /tools/ai-code-review AI Code Review
10 credits
POST /tools/ai-content-summarize AI Content Summarizer
10 credits
POST /tools/ai-seo-generate AI SEO Tag Generator
10 credits
POST /tools/ai-translate AI Translator
10 credits
POST /tools/ai-extract AI Structured Data Extraction
8 credits
POST /tools/ai-moderation AI Content Moderation
5 credits
POST /tools/ai-alt-text AI Alt-Text Generator
6 credits
POST /tools/ai-chat AI Chat / Completion
10 credits
POST /tools/ai-image-generate AI Image Generator
12 credits
Security & Website Analysis 5 credits per call
POST /tools/security-headers Security Headers Scanner
5 credits
POST /tools/tls-check SSL/TLS Checker
5 credits
POST /tools/tech-detect Technology Detector
5 credits
POST /tools/seo-analyze SEO Analyzer
5 credits
POST /tools/dns-lookup DNS Lookup
5 credits
POST /tools/openapi-validate OpenAPI / Swagger Validator
5 credits
POST /tools/subdomain-finder Subdomain Finder
5 credits
POST /tools/exposed-files Exposed Files Scanner
5 credits
Email Tools 2-15 credits per call
POST /tools/email-deliverability Email Deliverability
5 credits
POST /tools/email-validator Email Validator
2 credits
POST /tools/email-validator-bulk Email Validator (Bulk)
15 credits
POST /tools/email-spam-check Email Spam Checker
3 credits
POST /tools/email-header-analyzer Email Header Analyzer
3 credits
POST /tools/email-blacklist-check Blacklist (DNSBL) Check
4 credits
Premium Reports 2-20 credits per call
POST /tools/website-audit Website Audit (Bundled Report)
20 credits
POST /tools/performance-audit Performance Audit
10 credits
POST /tools/carbon-footprint Carbon Footprint Estimator
2 credits
Developer Utilities 1 credit per call
POST /tools/qr-generate QR Code Generator
1 credit
GET /tools/placeholder-image Placeholder Image
1 credit
POST /tools/hash-generate Hash Generator
1 credit
POST /tools/jwt-decode JWT Decoder
1 credit
POST /tools/password-strength Password Strength Analyzer
1 credit
POST /tools/cron-explain Cron Expression Explainer
1 credit
POST /tools/token-counter LLM Token Counter & Cost Calculator
1 credit
POST /tools/json-to-code JSON to Schema & Code Generator
1 credit
Error Codes
400
Invalid request body, URL, domain, or parameters.
402
Insufficient credits. Purchase more at members.mecanik.dev/credits.
403
API access suspended due to abuse, or invalid/expired Bearer token.
413
Request body too large (max 64 KB).
415
Content-Type must be application/json for POST endpoints.
429
Rate limit exceeded. Response includes a Retry-After header.
502
Failed to reach the target URL (timeout, DNS failure, connection refused).

Rate Limits

Limits are per user per 1-minute sliding window:

Security
10 requests/min per endpoint
Email
10 requests/min (single) · 5 requests/min (bulk)
Utility
30 requests/min per endpoint
Global
60 requests/min across all endpoints per user
Per IP
120 requests/min across all endpoints