Create test
<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>
Adds a test to the app. A test is a goal written in plain language that the testing agent tries to accomplish in a real browser when you run it.
Set role to run the test as a user with that role. Leave it out and Base44 picks a role named in the test's name or goal, such as "as an admin", or runs as a regular user when neither names one.
An app can have up to 250 tests. Creating a test is free. Running it costs credits.
This is limited to 300 requests per minute per caller for each app. Some workspaces have a different limit.
<Note>This endpoint accepts a personal API key belonging to a user with editor access to the app. Read-only keys and workspace API keys are refused.</Note>
Path parameters
ID of the app.
ID of the app.
Request body
Example request
{
"name": "Create a project",
"goal": "Sign up, create a project called Launch, and check that it appears on the dashboard.",
"role": "admin"
}Response
The created test.
Example response
{
"id": "68a1c2e4f0b3d9001a7e5c21",
"app_id": "6820f3a4e7b91d003c45a1f2",
"name": "Create a project",
"goal": "Sign up, create a project called Launch, and check that it appears on the dashboard.",
"role": "admin",
"source": "manual",
"revision": 1,
"created_date": "2026-09-28T10:15:00+00:00",
"updated_date": "2026-09-28T10:15:00+00:00"
}Changes
Changed in 1 of the 22 revisions of this API.1
- ○
endpoint added
endpoint-added
- ○
Of the 22 revisions, 1 has no diff computed.