1. Quick start
Create an API key
In the dashboard, open Settings, then API Keys, and choose New key. Give it only the scopes the integration needs. The key starts with
fpk_live_and is shown once, so copy it then. Creating keys is an owner and admin capability.Call the API
Send the key as a Bearer token. This call lists your proxies:
curlcurl "https://falconproxy.com/api/v1/proxies" \ -H "Authorization: Bearer $FALCONPROXY_API_KEY"Read the answer
A list answers with its items and a
paginationobject. List proxies shows every field of a proxy. To switch a proxy on or off, rotate its IP or assign it to an end-user, see the Proxies endpoints.
Prefer a walk-through? FalconProxy API quickstart: list, rotate and switch proxies goes from nothing to a working call, step by step.
2. Authentication
Every request carries an API key as a Bearer token in the Authorization header:
Authorization: Bearer fpk_live_...A key holds one or more scopes, and each endpoint names the scope it needs. A call without a valid key answers 401. A call with a valid key that lacks the scope answers 403.
Calls that change something (switching a proxy on, creating an end-user, registering a webhook) also need an active subscription. Reading keeps working when the subscription is inactive, and a change then answers 402.
Scopes
| Scope | Endpoints |
|---|---|
proxies:read | |
proxies:write | |
proxies:rotate | |
devices:read | |
devices:control | |
users:read | |
users:write | |
analytics:read | |
billing:read | |
webhooks:manage |
3. Requests and responses
- Every call is HTTPS, and every answer is JSON. Send
Content-Type: application/jsonwith a request body. - Identifiers are UUIDs. Timestamps are ISO 8601 strings.
- A list takes
limit(1 to 200, default 50) andoffset(default 0). It answers with its items and apaginationobject holdinglimit,offsetandtotal. A value outside the allowed range falls back to the default.
4. Errors
A call that fails answers with a status of 400 or more and a JSON body in one shape. Switch on code, which names the problem; message is for a person to read.
{
"error": {
"code": "insufficient_scope",
"message": "This API token is missing a required scope: proxies:write.",
"details": { "required_scopes": ["proxies:write"] }
}
}| Status | Code | What it means |
|---|---|---|
400 | validation_error | The body, the query string or a value in the path did not pass validation. details lists each problem with its path, code and message. |
401 | missing_token | No key was sent. Send it as Authorization: Bearer <key>. The answer carries a WWW-Authenticate: Bearer header. |
401 | invalid_token | The key is not valid, has expired or was revoked. A key also stops working when the person who created it is no longer an owner or admin. The answer carries a WWW-Authenticate: Bearer header. |
402 | subscription_inactive | The subscription is not active. Reading still works; a change needs an active subscription. |
403 | insufficient_scope | The key does not have a scope the call needs. details.required_scopes names it. |
404 | not_found | The thing does not exist, or this key cannot see it. |
409 | conflict | The call cannot run in the current state. Some conflicts carry a more specific code, for example duplicate_external_id or assignment_conflict. |
500 | internal_error | Something failed on our side. Try again. |
503 | service_unavailable | A service the call depends on is not available for the moment. Try again shortly. |
Rotating a proxy’s IP answers a 409 in a shorter shape, { "error", "status" }, where status says why the phone cannot rotate. It is described on the rotate endpoint.
5. Endpoints
31 endpoints in 6 groups. Each group has a page with every field, every answer and an example call for each endpoint.
Proxies
Inspect proxy endpoints, switch them on or off, rotate their IP and assign them to end-users.
Devices
Inspect registered Android devices.
- GET
/devicesList devices - GET
/devices/{id}Get a device - GET
/devices/{id}/network-modeRead device network mode and pending change - POST
/devices/{id}/network-modeSet device network mode - GET
/devices/{id}/network-mode/changes/{changeId}Poll a network mode change - POST
/devices/{id}/exit-relayStart or stop the exit relay - POST
/devices/{id}/vibrateVibrate a device
End-users
Manage end-users you assign proxies to.
- GET
/end-usersList end-users - POST
/end-usersCreate an end-user - GET
/end-users/{id}Get an end-user - PATCH
/end-users/{id}Update an end-user - DELETE
/end-users/{id}Delete an end-user - POST
/end-users/{id}/statusChange end-user status - POST
/end-users/{id}/archiveArchive an end-user - POST
/end-users/{id}/unarchiveUnarchive an end-user - POST
/end-users/{id}/proxiesBulk assign proxies to an end-user - POST
/end-users/{id}/rotate-credentialsRotate proxy credentials for an end-user
6. OpenAPI file
The same description is published as an OpenAPI 3.1 file at https://falconproxy.com/api/v1/openapi.json. It needs no key. Import it into an API client or a code generator. Every call in this reference also has a curl example you can copy and run with your own key.