API Reference v1
Get API Key Dashboard →

Authentication

The FluxCybers ExecFlow API uses Bearer token authentication. All API requests must include your API key in the Authorization header. Generate a key in Settings → API Keys.

# Include in every request Authorization: Bearer ef_read_a1b2c3d4e5f6...
🔑 API keys begin with ef_ followed by the scope (read, write, admin). The full key is only shown at creation — copy it immediately.

Key Scopes:

ScopePermissions
readGET requests only — retrieve data without modification
writeGET + POST/PUT/PATCH — create and modify resources
adminFull access including DELETE and admin-only operations

Rate Limits

Rate limits are applied per API key per minute. Exceeding the limit returns HTTP 429 with a Retry-After header.

PlanRate LimitBurst
Starter100 requests / minute120 req (10s window)
Pro500 requests / minute600 req (10s window)
EnterpriseCustom (contact us)Unlimited burst available

Rate limit headers are included on every response: X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset.

Errors & CORS

All error responses return JSON with a consistent format. HTTP status codes follow REST conventions.

// Error response format { "success": false, "message": "Descriptive error message", "code": "ERROR_CODE" // Optional machine-readable code }
HTTP StatusMeaning
200Success
400Bad request — missing or invalid parameters
401Unauthorized — invalid or missing API key
403Forbidden — API key lacks required scope
404Resource not found
429Rate limit exceeded
500Internal server error

CORS: The API allows requests from https://fluxcybers.polsia.app, https://fluxcybers.polsia.app, and https://fluxcybers.polsia.app. For server-to-server integrations, CORS does not apply.

Versioning

The current API version is v1. Versioning is handled via URL path prefix (/api/v1/...). The current routes work without the version prefix for backward compatibility. Breaking changes will be introduced in a new version with 6 months' notice.

The base URL for all API endpoints is: https://fluxcybers.polsia.app/api/

Servers

Manage and interact with connected servers. Requires read scope for GET endpoints, write for commands.

GET/api/servers

List all servers connected to your account with their current status and metadata.

# cURL curl https://fluxcybers.polsia.app/api/servers \ -H "Authorization: Bearer ef_read_..." # Response { "success": true, "servers": [{ "id": 1, "name": "prod-web-01", "ip": "192.168.1.1", "status": "online" }] }
POST/api/servers/{id}/execute

Execute a command on a server. Requires write scope. Commands are logged to the immutable audit trail.

ParameterDescription
commandrequiredstringThe shell command to execute
timeoutnumberMax execution time in seconds (default: 30, max: 300)

Playbooks

List and execute automation playbooks. Every execution is logged to the audit trail.

GET/api/playbooks

List all available playbooks with their step counts and last execution details.

POST/api/playbooks/{id}/run

Execute a playbook. Supports dry-run mode and target server specification.

ParameterDescription
server_idnumberTarget server ID (required if playbook is server-specific)
dry_runbooleanIf true, validate playbook without executing. Default: false
paramsobjectPlaybook-specific parameters (varies by playbook)

Audit Trail

Retrieve the immutable blockchain-backed audit log. Every significant action is permanently recorded here.

GET/api/audit-log

Retrieve paginated audit log entries. Entries are immutable once written.

Query ParameterDescription
limitnumberNumber of entries per page (default: 50, max: 200)
offsetnumberPagination offset (default: 0)
actionstringFilter by action type (e.g., command_executed, playbook_run)
server_idnumberFilter by server ID
fromstringISO 8601 start date
tostringISO 8601 end date

Agent Orchestration

Dispatch tasks to FluxCybers ExecFlow's AI agent hierarchy and check agent queue status.

POST/api/agents/task

Dispatch a task to an AI agent. Agents can execute commands, run playbooks, and take autonomous remediation actions.

ParameterDescription
taskrequiredstringNatural language task description for the agent
agent_typestringAgent type: security, remediation, analysis (default: auto-select)
prioritystringTask priority: low, normal, high, critical (default: normal)
server_idnumberScope the task to a specific server
GET/api/agents/status

Get current agent queue size, active tasks, and per-agent health status.

CompactEdge AI

5-layer AI media compaction and restoration. Reduce asset sizes by up to 99.8% with lossless reconstruction and cryptographic integrity proof.

POST/api/compact

Submit an asset for CompactEdge processing. Returns a compact_id for tracking and restoration.

ParameterDescription
asset_urlrequiredstringPublicly accessible URL of the asset to compact
quality_targetnumberTarget quality score 0–100 (default: 85). Higher = larger file, better quality
format_preferencestringOutput format preference: webp, avif, jpeg, png, auto (default: auto)
# Python example import requests resp = requests.post( 'https://fluxcybers.polsia.app/api/compact', headers={'Authorization': 'Bearer ef_write_...'}, json={ 'asset_url': 'https://example.com/video.mp4', 'quality_target': 90, 'format_preference': 'auto' } ) data = resp.json() compact_id = data['compact_id']
POST/api/rehydrate

Restore an original asset from its compacted version. Returns the original asset URL.

ParameterDescription
compact_idrequiredstringID returned when the asset was compacted
GET/api/integrity/{compact_id}

Retrieve the Quality Integrity Certificate for a compacted asset. Includes SSIM/VMAF scores and cryptographic hash.

GET/api/mobility-score/{asset_id}

Get the Edge Mobility Score for an asset — a composite metric combining size, quality, and CDN delivery performance.

Sentry V AI

Autonomous security monitoring with cryptographic audit trails. Detect → Respond → Prove.

GET/api/sentry/health/{site_id}

Retrieve current health score, threat level, and 24-hour prediction for a monitored site.

GET/api/sentry/incidents

List all Sentry V incidents with severity, timeline, and resolution status. Paginated.

Query ParameterDescription
statusstringFilter: open, resolved, all (default: all)
severitystringFilter: critical, high, medium, low
limitnumberResults per page (default: 50)
POST/api/sentry/shield-mode

Toggle Shield Mode for a monitored site. Shield Mode activates maximum defensive posture — all suspicious traffic blocked.

ParameterDescription
site_idrequirednumberTarget site ID
enabledrequiredbooleantrue to activate, false to deactivate

eShield

Endpoint protection and threat management. Quarantine compromised endpoints, manage threat feeds.

GET/api/eshield/threats

Retrieve the active threat feed — IPs, domains, and files currently flagged as malicious.

POST/api/eshield/quarantine

Immediately quarantine an IP address or endpoint. All traffic from the target is blocked and logged.

ParameterDescription
targetrequiredstringIP address or hostname to quarantine
reasonstringReason for quarantine (logged to audit trail)
duration_hoursnumberAuto-release after N hours (null = permanent until manual release)

VaultShield

Bot protection and anti-DDoS layer. Manage traffic filtering rules and review protection status.

GET/api/vaultshield/status

Get current VaultShield protection status, active rule count, and traffic statistics.

POST/api/vaultshield/rules

Add a custom blocking rule. Rules are evaluated in priority order.

ParameterDescription
typerequiredstringRule type: ip_block, user_agent_block, rate_limit, geo_block
valuerequiredstringValue to match (IP, user-agent string, country code, etc.)
actionstringAction: block, challenge, log (default: block)
prioritynumberRule priority (1 = highest, evaluated first)

Webhooks

Create and manage webhook endpoints to receive real-time event notifications. See the full Integrations guide for Zapier and Make setup.

GET/api/webhooks

List all configured webhook endpoints and their subscription events.

POST/api/webhooks

Register a new webhook endpoint. Returns a signing secret (shown once only).

ParameterDescription
urlrequiredstringHTTPS endpoint URL to POST events to
eventsrequiredarrayEvent types to subscribe to (see event reference)
descriptionstringHuman-readable description of this webhook
POST/api/webhooks/{id}/ping

Send a test event to verify the endpoint is reachable and the signing secret works.

🔐 Signature Verification: All events include an X-FluxCybers-Signature: sha256={hex} header. Verify using: HMAC-SHA256(signing_secret, JSON.stringify(payload))