Skip to main content
POST
/
test
/
{test_id}
/
run
Run test
curl --request POST \
  --url https://autonoma.app/api/test/{test_id}/run \
  --header 'Content-Type: application/json' \
  --header 'autonoma-client-id: <api-key>' \
  --header 'autonoma-client-secret: <api-key>' \
  --data '{
  "application_version_id": "cm7dbowr80042waka7thyjhkq",
  "source": "api",
  "runtime_metadata": {
    "NAME": "CompanyName",
    "ENVIRONMENT": "staging",
    "API_KEY": "test-key-123"
  }
}'
{
  "message": "Test created successfully",
  "url": "https://autonoma.app/run/pby4qnbppbvimimuls4v5ajq",
  "run_id": "pby4qnbppbvimimuls4v5ajq"
}

Authorizations

autonoma-client-id
string
header
required

Client ID for authentication

autonoma-client-secret
string
header
required

Client secret for authentication

Path Parameters

test_id
string
required

ID of the test to run

Example:

"g41k688vndxzt7kh4kq5m12s"

Body

application/json

Request body (optional)

application_version_id
string

Optional application version ID to use for the test run

Example:

"cm7dbowr80042waka7thyjhkq"

source
string
default:api

Source of the test run request

Example:

"api"

runtime_metadata
object

Variables to override when test is running, if variable does not match any of your saved variables it will ignore it

Example:
{
"NAME": "CompanyName",
"ENVIRONMENT": "staging",
"API_KEY": "test-key-123"
}

Response

Run creation result

message
string
Example:

"Test created successfully"

url
string
Example:

"https://autonoma.app/run/pby4qnbppbvimimuls4v5ajq"

run_id
string
Example:

"pby4qnbppbvimimuls4v5ajq"

I