Skip to main content
Use these endpoints to make live changes to a protected service’s routing configuration. Every request is account-scoped and returns JSON. Changes are applied to the scrubbing network straight away, and each response includes a sync result. These endpoints require the protection:write scope. The supplied specification does not define the sync result’s structure. Requests require a valid bearer token and JSON bodies where applicable. See Overview for authentication and general conventions, and Errors for status and rate-limit details. This group shares the Protection and Services and invoices context.
These endpoints perform live mutations. Adding or removing prefixes and tunnels affects production routing immediately. Confirm the service and resource IDs before sending a deletion request.
The addresses 198.51.100.0/24, 192.0.2.10, and 192.0.2.11 are documentation examples. Replace them with your authorized prefix and reachable router endpoint. Replace every path placeholder with its actual resource ID before sending a request.

Base URL

Authentication

All requests must include the API key as a bearer token:
JSON request bodies must also set:

Push current configuration

Re-applies the current set of prefixes and tunnels for a service to the network.

Path parameters

Request

No request body.

Example


Add a prefix

Adds an authorized prefix to a protected service.

Path parameters

Body parameters

Example


Remove a prefix

Removes a prefix from a protected service. This change takes effect immediately.

Path parameters

Example


Create a tunnel

Creates a GRE tunnel to a router endpoint for a protected service.

Path parameters

Body parameters

Example

The semantics of an empty prefixIds array are unspecified. Do not assume it means all prefixes or no prefixes.

Update a tunnel

Updates an existing tunnel’s label, endpoint, or associated prefixes.

Path parameters

Body parameters

Example

The semantics of an empty prefixIds array are unspecified. Do not assume it means all prefixes or no prefixes.

Delete a tunnel

Removes a tunnel from a protected service. This change takes effect immediately.

Path parameters

Example


Rate limits

Each API key allows 120 requests per minute, including at most 30 write requests per minute. See Errors for rate-limit response details.