Revyl Code Execution Scripts API

The Code Execution Scripts API from Revyl — 3 operation(s) for code execution scripts.

Operations 6

GET /api/v1/tests/scripts List Scripts #
POST /api/v1/tests/scripts Create Script #
DELETE /api/v1/tests/scripts/{script_id} Delete Script #
GET /api/v1/tests/scripts/{script_id} Get Script #
PUT /api/v1/tests/scripts/{script_id} Update Script #
GET /api/v1/tests/scripts/{script_id}/tests Get Script Usage #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/revyl:revyl-code-execution-scripts-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

revyl-code-execution-scripts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: Revyl API
  title: Revyl Code Execution Scripts API
  version: 1.0.0
servers:
- description: Production
  url: https://backend.revyl.ai
tags:
- name: Code Execution Scripts
paths:
  /api/v1/tests/scripts:
    get:
      description: List all scripts accessible to the user (own scripts + org scripts).
      operationId: list_scripts_api_v1_tests_scripts_get
      parameters:
      - description: Maximum number of scripts to return
        in: query
        name: limit
        required: false
        schema:
          default: 100
          description: Maximum number of scripts to return
          maximum: 1000
          minimum: 1
          title: Limit
          type: integer
      - description: Number of scripts to skip
        in: query
        name: offset
        required: false
        schema:
          default: 0
          description: Number of scripts to skip
          minimum: 0
          title: Offset
          type: integer
      - description: Filter by runtime (python, javascript, typescript, bash)
        in: query
        name: runtime
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Filter by runtime (python, javascript, typescript, bash)
          title: Runtime
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CodeExecutionScriptListResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
      - HTTPBearer: []
      summary: List Scripts
      tags:
      - Code Execution Scripts
    post:
      description: Create a new script.
      operationId: create_script_api_v1_tests_scripts_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CodeExecutionScriptCreate'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CodeExecutionScript'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
      - HTTPBearer: []
      summary: Create Script
      tags:
      - Code Execution Scripts
  /api/v1/tests/scripts/{script_id}:
    delete:
      description: 'Delete a script.

        User must own the script or be in the same org.'
      operationId: delete_script_api_v1_tests_scripts__script_id__delete
      parameters:
      - in: path
        name: script_id
        required: true
        schema:
          format: uuid
          title: Script Id
          type: string
      responses:
        '204':
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
      - HTTPBearer: []
      summary: Delete Script
      tags:
      - Code Execution Scripts
    get:
      description: 'Get a specific script by ID.

        User must own the script or be in the same org.'
      operationId: get_script_api_v1_tests_scripts__script_id__get
      parameters:
      - in: path
        name: script_id
        required: true
        schema:
          format: uuid
          title: Script Id
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CodeExecutionScript'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
      - HTTPBearer: []
      summary: Get Script
      tags:
      - Code Execution Scripts
    put:
      description: 'Update an existing script.

        User must own the script or be in the same org.'
      operationId: update_script_api_v1_tests_scripts__script_id__put
      parameters:
      - in: path
        name: script_id
        required: true
        schema:
          format: uuid
          title: Script Id
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CodeExecutionScriptUpdate'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CodeExecutionScript'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
      - HTTPBearer: []
      summary: Update Script
      tags:
      - Code Execution Scripts
  /api/v1/tests/scripts/{script_id}/tests:
    get:
      description: 'Get all usage of a specific script: tests that use it directly as a step,

        and modules that use it as a step and are themselves imported by at least

        one test.'
      operationId: get_script_usage_api_v1_tests_scripts__script_id__tests_get
      parameters:
      - in: path
        name: script_id
        required: true
        schema:
          format: uuid
          title: Script Id
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScriptUsageResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
      - HTTPBearer: []
      summary: Get Script Usage
      tags:
      - Code Execution Scripts
components:
  schemas:
    ScriptUsageModuleItem:
      description: 'A module that uses a specific script as a step, and is itself used by

        at least one test'
      properties:
        id:
          format: uuid
          title: Id
          type: string
        name:
          title: Name
          type: string
      required:
      - id
      - name
      title: ScriptUsageModuleItem
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    CodeExecutionScriptListResponse:
      description: Response model for listing scripts.
      properties:
        count:
          description: Total count of scripts
          title: Count
          type: integer
        scripts:
          description: List of scripts
          items:
            $ref: '#/components/schemas/CodeExecutionScript'
          title: Scripts
          type: array
      required:
      - scripts
      - count
      title: CodeExecutionScriptListResponse
      type: object
    ScriptUsageResponse:
      description: Response model for script usage lookup
      properties:
        modules:
          items:
            $ref: '#/components/schemas/ScriptUsageModuleItem'
          title: Modules
          type: array
        tests:
          items:
            $ref: '#/components/schemas/ScriptUsageTestItem'
          title: Tests
          type: array
        total:
          title: Total
          type: integer
      required:
      - tests
      - modules
      - total
      title: ScriptUsageResponse
      type: object
    CodeExecutionScript:
      description: Full script model with database fields.
      properties:
        code:
          description: Script code content
          title: Code
          type: string
        created_at:
          description: Creation timestamp
          format: date-time
          title: Created At
          type: string
        description:
          anyOf:
          - type: string
          - type: 'null'
          description: Script description
          title: Description
        id:
          description: Script ID
          format: uuid
          title: Id
          type: string
        name:
          description: Script name
          title: Name
          type: string
        org_id:
          anyOf:
          - format: uuid
            type: string
          - type: 'null'
          description: Organization ID
          title: Org Id
        runtime:
          description: Runtime language
          enum:
          - python
          - javascript
          - typescript
          - bash
          title: Runtime
          type: string
        updated_at:
          description: Last update timestamp
          format: date-time
          title: Updated At
          type: string
        user_id:
          description: User ID who owns the script
          format: uuid
          title: User Id
          type: string
      required:
      - name
      - code
      - runtime
      - id
      - user_id
      - created_at
      - updated_at
      title: CodeExecutionScript
      type: object
    CodeExecutionScriptCreate:
      description: Model for creating a new script.
      properties:
        code:
          description: Script code content
          title: Code
          type: string
        description:
          anyOf:
          - type: string
          - type: 'null'
          description: Script description
          title: Description
        name:
          description: Script name
          title: Name
          type: string
        runtime:
          description: Runtime language
          enum:
          - python
          - javascript
          - typescript
          - bash
          title: Runtime
          type: string
      required:
      - name
      - code
      - runtime
      title: CodeExecutionScriptCreate
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
      - loc
      - msg
      - type
      title: ValidationError
      type: object
    CodeExecutionScriptUpdate:
      description: Model for updating an existing script.
      properties:
        code:
          anyOf:
          - type: string
          - type: 'null'
          description: Script code content
          title: Code
        description:
          anyOf:
          - type: string
          - type: 'null'
          description: Script description
          title: Description
        name:
          anyOf:
          - type: string
          - type: 'null'
          description: Script name
          title: Name
        runtime:
          anyOf:
          - enum:
            - python
            - javascript
            - typescript
            - bash
            type: string
          - type: 'null'
          description: Runtime language
          title: Runtime
      title: CodeExecutionScriptUpdate
      type: object
    ScriptUsageTestItem:
      description: A test that uses a specific script directly as a step
      properties:
        id:
          format: uuid
          title: Id
          type: string
        name:
          title: Name
          type: string
      required:
      - id
      - name
      title: ScriptUsageTestItem
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http