POST
/
apiKey
/
v2
/
test-targets
/
{testTargetId}
/
discoveries
Create a discovery
curl --request POST \
  --url https://app.octomind.dev/api/apiKey/v2/test-targets/{testTargetId}/discoveries \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "name": "Login Form Validation Test",
  "entryPointUrlPath": "/login",
  "prerequisiteName": "Cookie Banner Acceptance",
  "externalId": "ext-test-001",
  "tagNames": [
    "authentication",
    "forms",
    "validation"
  ],
  "prompt": "Test the login form with valid and invalid credentials",
  "folderName": "Authentication Tests",
  "type": "LOGIN"
}'
{
  "discoveryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "testCaseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

X-API-Key
string
header
required

Path Parameters

testTargetId
string<uuid>
required

The ID of the test target

Body

application/json
name
string
required

Name of the discovered test case

Example:

"Login Form Validation Test"

prompt
string
required

Prompt to generate the discovered test case

Example:

"Test the login form with valid and invalid credentials"

entryPointUrlPath
string

Entry point URL path of the discovered test case

Example:

"/login"

prerequisiteName
string

Prerequisite test case name

Example:

"Cookie Banner Acceptance"

externalId
string

External ID of the discovered test case

Example:

"ext-test-001"

tagNames
string[]

Tags to assign to the discovered test case

Example:
["authentication", "forms", "validation"]
folderName
string

Folder name of the discovered test case

Example:

"Authentication Tests"

type
enum<string>

Type of the discovered test case

Available options:
LOGIN,
COOKIE_BANNER
Example:

"LOGIN"

Response

Discovery created successfully

discoveryId
string<uuid>
required

The ID of the created discovery

testCaseId
string<uuid>
required

The ID of the associated test case