ScanopyScanopy
Bindings

Create a new binding

Creates a binding that associates a service with a port or interface.

Binding Types

  • Interface binding: Service is present at an interface (IP address) without a specific port. Used for non-port-bound services like gateways.
  • Port binding (specific interface): Service listens on a specific port on a specific interface.
  • Port binding (all interfaces): Service listens on a specific port on all interfaces (interface_id: null).

Validation and Deduplication Rules

  • Conflict detection: Interface bindings conflict with port bindings on the same interface. A port binding on all interfaces conflicts with any interface binding for the same service.
  • All-interfaces precedence: When creating a port binding with interface_id: null, any existing specific-interface bindings for the same port are automatically removed, as they are superseded by the all-interfaces binding.
POST
/api/v1/bindings
Authorization<token>

User API key (Bearer scp_u_...). Create in Platform > API Keys.

In: header

Request Body

application/json

interface_id*string
Formatuuid
network_id*string
Formatuuid
service_id*string
Formatuuid
type*string
Value in"Interface"

Response Body

application/json

application/json

application/json

curl -X POST "https://loading/api/v1/bindings" \  -H "Content-Type: application/json" \  -d '{    "created_at": "2026-01-06T00:51:30.792440Z",    "id": "a01f2621-7c51-47b0-bfe0-377ba2d525f6",    "interface_id": "550e8400-e29b-41d4-a716-446655440005",    "network_id": "550e8400-e29b-41d4-a716-446655440002",    "port_id": "550e8400-e29b-41d4-a716-446655440006",    "service_id": "550e8400-e29b-41d4-a716-446655440007",    "type": "Port",    "updated_at": "2026-01-06T00:51:30.792440Z"  }'
{
  "meta": {
    "api_version": 0,
    "server_version": "0.12.10"
  },
  "success": true,
  "data": {
    "created_at": "2026-01-06T00:51:30.801440Z",
    "id": "aeaedce7-b953-4d37-a812-1fd2b3c2b6b3",
    "interface_id": "550e8400-e29b-41d4-a716-446655440005",
    "network_id": "550e8400-e29b-41d4-a716-446655440002",
    "port_id": "550e8400-e29b-41d4-a716-446655440006",
    "service_id": "550e8400-e29b-41d4-a716-446655440007",
    "type": "Port",
    "updated_at": "2026-01-06T00:51:30.801440Z"
  },
  "error": "string"
}
{
  "success": true,
  "error": "string"
}
{
  "success": true,
  "error": "string"
}