Skip to main content

Base URLs

Revyl provides a unified REST API:
ServiceBase URLPurpose
Backend APIhttps://backend.revyl.aiTests, builds, workflows, execution, device management
All API endpoints are available through the Backend API at backend.revyl.ai.

Authentication

All API requests require a Bearer token in the Authorization header:
curl -H "Authorization: Bearer YOUR_API_KEY" \
  https://backend.revyl.ai/api/v1/builds/vars
See Authentication for details on creating and managing API keys.

Quick Reference

For end-to-end request examples, see API Quickstart.

Test Execution (Backend API)

MethodEndpointDescription
POST/api/v1/execution/api/execute_test_id_asyncExecute a test
GET/api/v1/tests/get_test_execution_task?task_id={task_id}Get test execution status
POST/api/v1/execution/tests/status/cancel/{task_id}Cancel running test

Workflow Execution (Backend API)

MethodEndpointDescription
POST/api/v1/execution/api/execute_workflow_id_asyncExecute a workflow

Workflow Status (Backend API)

MethodEndpointDescription
GET/api/v1/workflows/status/status/{task_id}Get workflow execution status
GET/api/v1/workflows/history/{workflow_id}Get workflow execution history

Builds (Backend API)

MethodEndpointDescription
GET/api/v1/builds/varsList build variables
POST/api/v1/builds/varsCreate build variable
GET/api/v1/builds/vars/{id}Get build variable
PATCH/api/v1/builds/vars/{id}Update build variable
DELETE/api/v1/builds/vars/{id}Delete build variable
POST/api/v1/builds/vars/{id}/versions/stream-uploadStream upload build
POST/api/v1/builds/vars/{id}/versions/from-urlCreate from remote URL
GET/api/v1/builds/vars/{id}/versionsList build versions
GET/api/v1/builds/versions/{version_id}Get build version
PATCH/api/v1/builds/versions/{version_id}Update build version
DELETE/api/v1/builds/versions/{version_id}Delete build version

YAML Operations (Backend API)

MethodEndpointDescription
POST/api/v1/yaml/from-yamlCreate test from YAML
POST/api/v1/yaml/from-blocksCreate test from blocks
POST/api/v1/yaml/validate-yamlValidate YAML
POST/api/v1/yaml/conversion/blocks-to-yamlConvert blocks to YAML
POST/api/v1/yaml/conversion/yaml-to-blocksConvert YAML to blocks

Monitoring (Backend API)

MethodEndpointDescription
GET/api/v1/monitor/stream/unifiedStream real-time updates (SSE)

Response Format

Success Response

{
  "task_id": "550e8400-e29b-41d4-a716-446655440000",
  "status": "queued",
  "message": "Operation successful"
}

Error Response

{
  "detail": "Error message describing what went wrong"
}

Status Codes

CodeDescription
200Success
400Bad request (invalid parameters)
401Unauthorized (invalid API key)
403Forbidden (insufficient permissions)
404Resource not found
409Conflict (duplicate resource)
422Unprocessable entity (validation failed)
500Server error
502Bad gateway (upstream service error)
503Service unavailable

OpenAPI Specifications

Full OpenAPI specifications are available at:
  • Backend API: https://backend.revyl.ai/openapi.json
These specifications power the interactive playground in this documentation.