- Design
- Runner
- Customer Auth
- Utility
- Warehouse
- Store
- Document
Create Runner
Developing
preprod
https://preprod.api.crego.io
preprod
https://preprod.api.crego.io
POST
/v1/rego/runners/
Last modified:2025-04-04 06:23:15
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
flow_id
string
required
ref_id
string
optional
ref_prefix
string
required
Example
{
"flow_id": "ee4f2a73-4dc4-4a14-9d0e-8fce0d25dbbe",
"ref_id": ""
}
Request 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/' \
--header 'Content-Type: application/json' \
--data-raw '{
"flow_id": "ee4f2a73-4dc4-4a14-9d0e-8fce0d25dbbe",
"ref_id": ""
}'
Responses
🟢201Created
application/json
Body
id
string <uuid>
Unique Identifier
Example:
123e4567-e89b-12d3-a456-426614174000
ref_id
string
Reference Identifier
>= 5 characters<= 50 characters
Examples:
ref12345xyz789
Match pattern:
^[a-zA-Z0-9_-]+$
flow_id
string <uuid>
Flow Identifier
Example:
123e4567-e89b-12d3-a456-426614174000
design_id
string <uuid>
Design Identifier
Example:
123e4567-e89b-12d3-a456-426614174000
visited_nodes
object
Associated Users
Additional properties
array[object (VisitedNode) {5}]
optional
created_at
string <date-time>
Creation Timestamp
Example:
2023-01-01T00:00:00Z
updated_at
string <date-time> | null
Last Updated Timestamp
Example:
2023-01-01T01:00:00Z
user
object
required
Example
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"ref_id": "ref12345",
"flow_id": "123e4567-e89b-12d3-a456-426614174000",
"design_id": "123e4567-e89b-12d3-a456-426614174000",
"visited_nodes": {
"property1": [
{
"name": "string",
"action": "string",
"user_id": "string",
"timestamp": "string",
"data": {}
}
],
"property2": [
{
"name": "string",
"action": "string",
"user_id": "string",
"timestamp": "string",
"data": {}
}
]
},
"created_at": "2023-01-01T00:00:00Z",
"updated_at": "2023-01-01T01:00:00Z",
"user": {}
}