Crego APIs
APIs DocHome Page
Web Apps
  • Jupiter
  • Venus
APIs DocHome Page
Web Apps
  • Jupiter
  • Venus
  1. Runner
  • Back to home
  • Flow
  • Design
    • Create Design
      POST
    • List Designs
      GET
    • Update Design
      PUT
    • Get Design
      GET
    • Mark as Current Design
      PUT
    • Duplicate Design
      POST
    • Get Expanded Design
      GET
    • Graph Validation
      GET
  • Runner
    • Create Runner
      POST
    • Execute Runner
      POST
    • Get Runner
      GET
    • List Runners
      GET
    • Runner Callback Handler
      POST
    • Runner activity
      GET
    • Runner Store
      GET
    • Update Runner design
      PUT
    • Update Store
      PUT
    • No Auth Runner Flow info
      GET
    • Parse Template
      POST
    • Get Current Nodes
      GET
    • Create and Execute Runner
      POST
  • Customer Auth
    • Refresh Token
      POST
    • Send OTP
      POST
    • Verify OTP
      POST
    • Auth Ping
      GET
    • Exchange Token
      POST
  • Utility
    • Get Schema
  • Warehouse
  • Store
    • Get Store
    • List Store
    • Create Store
  • Document
    • Create Document
    • Get Storage Document
    • Add files to document
    • Download files
  • CheckList
    • CheckList Template
      • Create Checklist Template
      • Get CheckList Template
      • List CheckList Template
      • Update CheckList Template
      • Delete CheckList Template
    • Workflow CheckList
      • Get checklist at runner stage
      • Update Check List Item
      • List Checklist
      • Get Checklist
  • Approvals
    • Approval List
    • Pending Approval
    • Create Approvals
    • Get Approval
    • Update Approvals
    • Current user approval list
    • Get approval request by resource
    • Approve approval
    • Reject Approval
  1. Runner

Execute Runner

Developing
preprod
https://preprod.api.crego.io
preprod
https://preprod.api.crego.io
POST
/v1/rego/runners/{id}/execute/
Last modified:2025-07-21 09:53:01

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params

Body Params application/json

Example
{
    "action": "auto",
    "data": {}
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://preprod.api.crego.io/v1/rego/runners/e35dc9e5-7212-44b5-883c-e110c1ffa589/execute/' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "action": "auto",
    "data": {}
}'

Responses

🟢200Success
application/json
Body

Example
{
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "company_id": "comp-12345",
    "element": {
        "name": "Node1",
        "type": "code_snippet",
        "config": {
            "code": "def greet(name):\n    return f\"Hello, {name}!\""
        },
        "permissions": [
            {
                "roles": [
                    "string"
                ],
                "actions": [
                    "string"
                ]
            }
        ],
        "edges": [
            {
                "action": "string",
                "type": "return",
                "target_node": "string",
                "config": {
                    "condition": "string"
                },
                "return": {
                    "data": {},
                    "transformer": "jmes"
                }
            }
        ]
    },
    "tags": [
        "string"
    ],
    "description": "string",
    "created_by": "string",
    "updated_by": "string",
    "created_at": "2024-11-27T00:00:00Z",
    "updated_at": "2024-11-27T01:00:00Z"
}
Modified at 2025-07-21 09:53:01
Previous
Create Runner
Next
Get Runner
Built with