Authentication¶
Every request to the Partner API must carry your key in the X-API-Key header.
GET /api/v1/partner/societies HTTP/1.1
Host: api.findingnearby.com
X-API-Key: fnb_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
User login tokens (the Authorization: Bearer tokens used by the mobile app) are not accepted by this API.
Keys¶
- Keys start with
fnb_live_and are issued to one partner and one integration. - FindingNearBy stores only a one-way hash of your key. We cannot show it to you again. If you lose it, ask us to rotate it.
- A key can have an expiry date. Expired keys stop working automatically.
Keep keys on your server
Do not put a key in a mobile app, a browser script, a public repository or a support ticket. Anyone who has it can spend your quota. Call the API from your backend and expose only the results to your users. The API does not send CORS headers for custom headers, so browser calls are not supported by design.
Scopes¶
Each key is limited to the data it needs.
| Scope | Grants |
|---|---|
vendors:read |
/vendors and /vendors/{id} |
events:read |
/events |
societies:read |
/societies |
/usage works with any valid key. A call outside your scopes returns 403.
IP allowlist¶
For server-to-server integrations we recommend restricting a key to your egress IP addresses or CIDR ranges. Requests from any other address return 403. Tell us the addresses when you request a key, and again whenever they change.
Rotation and revocation¶
| Action | Effect |
|---|---|
| Rotate | A new key is issued. The old key stops working immediately, so deploy the new one first or schedule the swap with us. |
| Revoke | The key stops working immediately and cannot be re-enabled. |
Rotate at least once a year, and immediately if you suspect exposure. Email support@findingnearby.com to request either.
Errors¶
| Status | Meaning |
|---|---|
401 |
Header missing, malformed, unknown, expired or revoked. The response never says which, so a probe learns nothing. |
403 |
The key is valid but lacks the scope or the calling IP is not allowed. |
429 |
Rate limit or monthly quota reached. See Plans & Limits. |