Skip to content

FalconProxy API reference

A REST API for the proxies, devices, end-users, usage and webhooks of your FalconProxy account. JSON in and out, and one scoped key for each integration.

RESTJSONOpenAPI 3.131 endpoints

Base URL
https://falconproxy.com/api/v1
Authentication
Bearer API key with scopes
Format
JSON over HTTPS
OpenAPI file
https://falconproxy.com/api/v1/openapi.json

1. Quick start

  1. 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.

  2. Call the API

    Send the key as a Bearer token. This call lists your proxies:

    curl
    curl "https://falconproxy.com/api/v1/proxies" \
      -H "Authorization: Bearer $FALCONPROXY_API_KEY"
  3. Read the answer

    A list answers with its items and a pagination object. 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:

http
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

3. Requests and responses

  • Every call is HTTPS, and every answer is JSON. Send Content-Type: application/json with a request body.
  • Identifiers are UUIDs. Timestamps are ISO 8601 strings.
  • A list takes limit (1 to 200, default 50) and offset (default 0). It answers with its items and a pagination object holding limit, offset and total. 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.

json
{
  "error": {
    "code": "insufficient_scope",
    "message": "This API token is missing a required scope: proxies:write.",
    "details": { "required_scopes": ["proxies:write"] }
  }
}
API errors, their codes and what they mean
StatusCodeWhat it means
400validation_errorThe body, the query string or a value in the path did not pass validation. details lists each problem with its path, code and message.
401missing_tokenNo key was sent. Send it as Authorization: Bearer <key>. The answer carries a WWW-Authenticate: Bearer header.
401invalid_tokenThe 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.
402subscription_inactiveThe subscription is not active. Reading still works; a change needs an active subscription.
403insufficient_scopeThe key does not have a scope the call needs. details.required_scopes names it.
404not_foundThe thing does not exist, or this key cannot see it.
409conflictThe call cannot run in the current state. Some conflicts carry a more specific code, for example duplicate_external_id or assignment_conflict.
500internal_errorSomething failed on our side. Try again.
503service_unavailableA 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.

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.

FAQ

Questions, answered.

In the dashboard, open Settings, then API Keys, and choose New key. Name it, choose its scopes and copy it when it is shown. It is shown only once.

Send the key in an Authorization header as a Bearer token. The base address is https://falconproxy.com/api/v1, every call is HTTPS and every answer is JSON.

It lists and reads your proxies and phones, switches a proxy on or off, rotates a proxy’s IP, changes a phone’s network mode, manages end-users and the proxies assigned to them, reads usage and your subscription, and manages signed webhooks, as far as the key’s scopes allow.

The key does not have the scope the call needs. Each endpoint names its scope. Create a key that includes it.

Yes. The OpenAPI 3.1 file is at https://falconproxy.com/api/v1/openapi.json and needs no key. Import it into an API client or a code generator.

Ready to create your own proxies?

2-hour free trial, no card—pair your phone in minutes.

Already have an account? Sign in

FalconProxy