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.

ScopePermitsLimit
listings:readRead business profiles by slug / by id30 req/min
owner:readReverse-lookup businesses by phone (owner attribution)10 req/min
verify:initiateStart a verification flow on a listing10 req/min
verify:send-otpTrigger OTP delivery (SMS / voice / email)5 req/min
verify:confirmConfirm an OTP code10 req/min
listing-events:writeEmit analytics + staleness events on a listing30 req/min
business:owner-updateUpdate owner-controlled fields on a business10 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).

MethodPathScopeSummary
GET/api/business/by-slug/{slug}listings:readGet a business by URL slug.
GET/api/business/by-phone?phone={e164}owner:readReverse-lookup businesses by phone number.
PATCH/api/business/{id}/owner-updatebusiness:owner-updateOwner-side partial update of a business.
POST/api/business/{id}/flag-stalelisting-events:writeFlag listing data as stale (bad_phone / closed_business / wrong_address).
POST/api/listing-eventslisting-events:writeEmit 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"
}
CodeStatusMeaning
BEARER_MISSING401No Authorization header present.
BEARER_BAD_FORMAT401Token does not start with the pmk_ prefix.
BEARER_INVALID401Token is not in api_tokens.
BEARER_EXPIRED401Token has an expires_at in the past.
BEARER_REVOKED401Token has been revoked.
SCOPE_MISSING403Token is valid but lacks the required scope.
FORBIDDEN403Request blocked by automated-scraping classification (UA matches a known scraper framework).
AUTH_UNAVAILABLE500Server cannot verify the token (HMAC secret missing).
RATE_LIMITED429Per-scope, per-token request budget exceeded. See X-RateLimit-Reset.
INVALID_INPUT400Body or parameters failed validation. See `details` when present.
INVALID_JSON400Request body could not be parsed as JSON.
NOT_FOUND404Addressed resource (business, slug) does not exist.
CONFLICT409Operation would violate a uniqueness constraint.
METHOD_NOT_ALLOWED405Endpoint does not accept this HTTP method.
INTERNAL500Unexpected server error. Safe to retry with backoff.
UPSTREAM_UNAVAILABLE502Dependency (carrier, geocoder, auth oracle) is unreachable.

Roadmap

Contact

Token requests, integration questions, bug reports: [email protected].