GET
/
apps
/
{app_id}
/
workflows
/
{workflow_id}
/
tests
/
expectations
curl --request GET \
  --url https://api.withcortex.ai/apps/{app_id}/workflows/{workflow_id}/tests/expectations
[
  {
    "id": "<string>",
    "name": "<string>",
    "script": "<string>",
    "created_at": "2023-12-25",
    "updated_at": "2023-12-25"
  }
]

Path Parameters

app_id
string
required

The ID of the app

workflow_id
string
required

The ID of the workflow

Query Parameters

page
number

Page number

take
number

Number of items to take

Response

200 - application/json
id
string
required

Unique identifier for the expectation

name
string
required

Name of the expectation (max 256 characters)

Required string length: 1 - 256
script
string
required

JavaScript code that results in a boolean value determining if the expectation passed or failed

Maximum length: 10240
created_at
string | null
required

Creation date of the expectation

updated_at
string | null
required

Last update date of the expectation