Getting Started
Create your first API in under 5 minutes.
Authentication
Secure your APIs with API keys.
Best Practices
Write better prompts, build better APIs.
Quickstart Guide
Get your first API running in under 5 minutes.
Create an account
Sign up for free at servep2e.com/signup. No credit card required for the free tier.
Describe your API
In the dashboard, click "Create New API" and describe what you want in plain English:
Create an API that takes a URL and returns whether it's
currently accessible (returns 200) or down, along with the
response time in milliseconds.Get your API key
Navigate to Settings → API Keys and create a new key. Copy it somewhere safe—you'll only see it once.
Call your API
Make a request to your new endpoint:
curl -X POST https://api.servep2e.com/v1/your-endpoint \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com"}'{
"url": "https://example.com",
"status": "up",
"status_code": 200,
"response_time_ms": 145
}Pro tip
Be specific in your prompts. Instead of "make an email validator", say "Create an API that validates an email address, checking format, domain existence, and whether it's a disposable email."
API Reference
All ServeP2E endpoints follow a consistent request/response format.
Base URL
https://api.servep2e.com/v1Authentication
All requests require an API key in the Authorization header:
Authorization: Bearer YOUR_API_KEYRequest Format
Send JSON payloads with the Content-Type header:
POST /v1/your-endpoint HTTP/1.1
Host: api.servep2e.com
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
{
"your_input": "value"
}Error Codes
| Code | Meaning | What to do |
|---|---|---|
| 400 | Bad Request | Check your request payload format |
| 401 | Unauthorized | Check your API key |
| 403 | Forbidden | API key lacks required permissions |
| 404 | Not Found | Endpoint doesn't exist |
| 429 | Too Many Requests | You've hit the rate limit. Wait and retry. |
| 500 | Server Error | Something went wrong. Contact support. |
Rate Limits
Rate limits depend on your plan:
| Plan | Monthly Calls | Rate Limit |
|---|---|---|
| Free | 1,000 | 10 requests/minute |
| Starter | 50,000 | 100 requests/minute |
| Pro | 500,000 | 1,000 requests/minute |
Keep your API keys secure
Never expose API keys in client-side code or public repositories. Use environment variables and server-side requests.