Public API · v1.0
pro.makeup developers
Bearer-token-scoped HTTP endpoints over the global directory of certified makeup professionals. 214K+ businesses across 100+ countries.
Quick start
Tokens are issued out-of-band. Email [email protected] with your use case and the scopes you need.
curl -sH "Authorization: Bearer pmk_<id>_<secret>" \
https://pro.makeup/api/business/by-slug/<single-segment-slug>
# The slug is the trailing path segment of the canonical URL
# https://pro.makeup/{category}/{country}/{city}/{slug} — for example,
# 'jane-doe--abc123', NOT the full 'country/city/slug' path.Authentication
Token format: pmk_<id>_<secret>. Sent as Authorization: Bearer pmk_…. On a missing or invalid bearer the response carries an RFC 6750-conformant WWW-Authenticate header with a resource_metadata parameter pointing at the RFC 9728 resource document.
Full auth flow + lifecycle in /.well-known/auth.md.
Scopes & rate limits
Every protected endpoint requires exactly one scope. Limits are per-scope and per-token, with sliding 60-second windows. Rate-limit state is exposed on every response via X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset. When exceeded, you also get Retry-After in seconds.
| Scope | Permits | Limit |
|---|---|---|
| listings:read | Read business profiles by slug / by id | 30 req/min |
| owner:read | Reverse-lookup businesses by phone (owner attribution) | 10 req/min |
| verify:initiate | Start a verification flow on a listing | 10 req/min |
| verify:send-otp | Trigger OTP delivery (SMS / voice / email) | 5 req/min |
| verify:confirm | Confirm an OTP code | 10 req/min |
| listing-events:write | Emit analytics + staleness events on a listing | 30 req/min |
| business:owner-update | Update owner-controlled fields on a business | 10 req/min |
Bot & crawler policy
Verified search and AI crawlers — Googlebot, Bingbot, Applebot, DuckDuckBot, GPTBot, ClaudeBot, anthropic-ai, PerplexityBot, OAI-SearchBot, Google-Extended, Meta-ExternalAgent, CCBot, and the other crawlers listed on the Cloudflare Verified Bots managed list — ride a wider per-IP budget (~10 req/sec/IP) and do not contend with the per-scope caps above. They are recognised either via Cloudflare's cf-verified-bot signal (reverse-DNS + IP-range verified) or a UA-allow fallback for bots Cloudflare doesn't yet verify.
Known scraping frameworks (Scrapy, ApifyClient, ScrapingBee, ScrapingAnt, HTTrack, Octoparse, WebHarvy, DataForSeoBot, MJ12bot, and similar) are blocked with 403 FORBIDDEN before any database work. Standard developer tools — curl, wget, Postman, python-requests, the Go HTTP client — are not blocked; testing your own integration works as expected.
If you operate a legitimate crawler not on the verified list, identify it with a descriptive UA and respect /robots.txt — then email [email protected] to request the wider budget.
Endpoints
Full request and response schemas in the OpenAPI 3.1 spec. Render with any OpenAPI viewer (Redoc, Swagger UI, Insomnia, Postman).
| Method | Path | Scope | Summary |
|---|---|---|---|
| GET | /api/business/by-slug/{slug} | listings:read | Get a business by URL slug. |
| GET | /api/business/by-phone?phone={e164} | owner:read | Reverse-lookup businesses by phone number. |
| PATCH | /api/business/{id}/owner-update | business:owner-update | Owner-side partial update of a business. |
| POST | /api/business/{id}/flag-stale | listing-events:write | Flag listing data as stale (bad_phone / closed_business / wrong_address). |
| POST | /api/listing-events | listing-events:write | Emit a single listing analytics event. |
Error shape
Every endpoint returns the same error shape. The string error field is the human summary; the code field is the stable machine-readable identifier you should switch on. When relevant, an additional details object carries structured context (e.g. the allowed enum values for a validation failure).
{
"error": "Rate limit exceeded for listings:read",
"code": "RATE_LIMITED"
}| Code | Status | Meaning |
|---|---|---|
| BEARER_MISSING | 401 | No Authorization header present. |
| BEARER_BAD_FORMAT | 401 | Token does not start with the pmk_ prefix. |
| BEARER_INVALID | 401 | Token is not in api_tokens. |
| BEARER_EXPIRED | 401 | Token has an expires_at in the past. |
| BEARER_REVOKED | 401 | Token has been revoked. |
| SCOPE_MISSING | 403 | Token is valid but lacks the required scope. |
| FORBIDDEN | 403 | Request blocked by automated-scraping classification (UA matches a known scraper framework). |
| AUTH_UNAVAILABLE | 500 | Server cannot verify the token (HMAC secret missing). |
| RATE_LIMITED | 429 | Per-scope, per-token request budget exceeded. See X-RateLimit-Reset. |
| INVALID_INPUT | 400 | Body or parameters failed validation. See `details` when present. |
| INVALID_JSON | 400 | Request body could not be parsed as JSON. |
| NOT_FOUND | 404 | Addressed resource (business, slug) does not exist. |
| CONFLICT | 409 | Operation would violate a uniqueness constraint. |
| METHOD_NOT_ALLOWED | 405 | Endpoint does not accept this HTTP method. |
| INTERNAL | 500 | Unexpected server error. Safe to retry with backoff. |
| UPSTREAM_UNAVAILABLE | 502 | Dependency (carrier, geocoder, auth oracle) is unreachable. |
Roadmap
- Self-serve token minting — OAuth 2.1 + PKCE issuer replacing the email-based request flow.
- MCP server at
/api/mcpexposing the read tools natively, plus a scopedemit_listing_eventwrite tool. See the design in llms-full.txt. - Webhooks for listing change events.
Contact
Token requests, integration questions, bug reports: [email protected].