入門
身份驗證
每個 /v1 請求都用 API 金鑰鑑權。API 從不接受控制檯會話——瀏覽器 cookie 無法驅動它。
Create a key
Create and manage API keys in the dashboard under Settings → Developers. The full key is shown only once, at creation — store it somewhere safe. Keys are prefixed with mapleads_.
Send the key
Pass it as a bearer token on every request:
Request header
Authorization: Bearer mapleads_xxxOr, equivalently, in an x-api-key header:
Alternative
x-api-key: mapleads_xxxScopes
A key can be restricted to a set of scopes; a scoped key may only perform those actions (omit scopes to leave it unrestricted). A request missing a required scope returns 403 insufficient_scope.
| Field | Type | Description |
|---|---|---|
| read | scope | Read scrape jobs and leads, and export results. |
| webhooks | scope | Manage webhook endpoints. |