{ "openapi": "3.0.3", "info": { "title": "Antithesis API", "version": "1.0.0", "description": "The Antithesis API enables programmatic access to the Antithesis autonomous testing environments. List runs, inspect run details, and retrieve logs. We recommend using [Snouty CLI](https://github.com/antithesishq/snouty) as the client for this API.\n\n### Authentication\n\nPass the API key in the `Authorization` header as `Authorization: Bearer `. To obtain an API key, please email us at [support@antithesis.com](mailto:support@antithesis.com) or talk to your forward deployed engineer.\n\n### Versioning\n\nAll endpoints are versioned via a path prefix:\n\n- `/api/v0/...` **Preview.** APIs accessed from the `v0` route are in preview. They may change or be removed.\n- `/api/v1/...` **Stable.** The first version with a compatibility commitment.\n\nIn the future only breaking changes trigger a new major version (e.g., `v2`). When that happens the previous version (`v1`) remains available, and preview APIs restart under `v0`.", "contact": { "name": "Antithesis Team", "url": "https://www.antithesis.com", "email": "support@antithesis.com" } }, "servers": [ { "url": "https://{tenant}.antithesis.com", "description": "Production", "variables": { "tenant": { "description": "Your organization's tenant name.", "default": "demo" } } } ], "security": [ { "BearerAuth": [] } ], "tags": [ { "name": "Test runs", "description": "Operations on test runs." }, { "name": "Launch", "description": "Launch a test run or debugging session.\n\nAuthenticate with an API key in the `Authorization` header (see **Authentication** above). Basic auth (previously used by [webhooks](/docs/reference/webhook/overview/)) is also accepted for backwards compatibility but is now deprecated. Use API keys for all new integrations.\n\nTo use basic auth, pass your tenant's machine credentials (user and password):\n\n```bash\ncurl --fail -u 'USER:PASSWORD' -X POST https://.antithesis.com/api/v1/launch/{launcher_name}\n```" }, { "name": "Registry", "description": "Where to push container images." }, { "name": "Coverage", "description": "Information about test coverage in the run." }, { "name": "Usage", "description": "Information about usage" }, { "name": "Version", "description": "API and release version information." } ], "paths": { "/api/v0/runs": { "parameters": [], "get": { "operationId": "listRuns", "summary": "List runs", "description": "Returns a paginated list of runs of all types. Results are ordered by creation time, newest first.", "tags": ["Test runs"], "parameters": [ { "name": "limit", "in": "query", "description": "Maximum number of results to return. Must be between 1 and 100; values outside this range return 400 Bad Request.", "required": false, "schema": { "type": "integer", "default": 50, "minimum": 1, "maximum": 100 } }, { "name": "after", "in": "query", "description": "Cursor for pagination. Pass the `next_cursor` value (as well as any filter parameters) from a previous response to fetch the next page.", "required": false, "schema": { "type": "string" } }, { "name": "status", "in": "query", "description": "Filter test runs by status.", "required": false, "schema": { "$ref": "#/components/schemas/Run_Status" } }, { "name": "created_after", "in": "query", "description": "Only return test runs created after this timestamp (ISO 8601).", "required": false, "schema": { "type": "string", "format": "date-time" } }, { "name": "created_before", "in": "query", "description": "Only return test runs created before this timestamp (ISO 8601).", "required": false, "schema": { "type": "string", "format": "date-time" } }, { "name": "launcher", "in": "query", "description": "Filter by launcher: the programmatic name of the launcher that kicked off the test run. This is the same value as the `launcher` field on a run and the `{launcher_name}` accepted by `POST /api/v1/launch/{launcher_name}`. Display names are not matched.", "required": false, "schema": { "type": "string" } } ], "responses": { "200": { "description": "A paginated list of test runs.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Run_List_Response" }, "example": { "data": [ { "run_id": "9043254f65c9c65d63fe043a0abfc7fc-53-1", "status": "completed", "created_at": "2026-04-28T13:49:49Z", "launcher": "research_nightly", "launcher_display_name": "Research Nightly", "started_at": "2026-04-28T13:49:49Z", "completed_at": "2026-04-28T14:14:07Z", "creator": { "name": "abc.xyz", "type": "user" }, "parameters": { "antithesis.description": "Placeholder description", "antithesis.integrations.type": "none", "antithesis.is_ephemeral": "false" }, "links": { "triage_report": "https://antithesis-dev.antithesis.com/report/VQ81z_5My-BjOmj6uFNKqVPq/Pv_GDPOCDEer8yk3Tf90Twj-83iedGwTgf60FyOYtA8.html?auth=v2.public.eyJuYmYiOiIyMDI2LTA0LTI4VDEzOjE0OjA1LjY3NTMyMTY1N1oiLCJzY29wZSI6eyJSZXBvcnRTY29wZVYxIjp7ImFzc2V0IjoiUHZfR0RQT0NERWVyOHlrM1RmOTBUd2otODNpZWRHd1RnZjYwRnlPWXRBOC5odG1sIiwicmVwb3J0X2lkIjoiVlE4MXpfNU15LUJqT21qNnVGTktxVlBxIn19fTuj6S2XLg2SC-7dhP7H4CNTV5WZME2xiXlmReHLchLERjHxLXaOVxnkkv2Li5VF_4MLtIxunbBl_4gOwNJE3gY&debug=true" } }, { "run_id": "ced73597f5f6499a6041f4c7f2329cf1-53-1", "status": "completed", "created_at": "2026-04-28T13:49:49Z", "launcher": "thesis-nes", "launcher_display_name": "Thesis", "started_at": "2026-04-28T13:49:49Z", "completed_at": "2026-04-28T14:07:36Z", "creator": { "name": "abc.xyz", "type": "user" }, "parameters": { "antithesis.description": "Placeholder description", "antithesis.integrations.type": "none", "antithesis.is_ephemeral": "true" }, "links": { "triage_report": "https://antithesis-dev.antithesis.com/report/upBLS-4SrdaVqSi7tv5IbF38/Fqt1GZOTLPd978JxmCxAY-fXoUWvnqDjaTOmRM2g_g4.html?auth=v2.public.eyJzY29wZSI6eyJSZXBvcnRTY29wZVYxIjp7ImFzc2V0IjoiRnF0MUdaT1RMUGQ5NzhKeG1DeEFZLWZYb1VXdm5xRGphVE9tUk0yZ19nNC5odG1sIiwicmVwb3J0X2lkIjoidXBCTFMtNFNyZGFWcVNpN3R2NUliRjM4In19LCJuYmYiOiIyMDI2LTA0LTI4VDEzOjA3OjI1LjcwMDgzODkwM1oifVZW5_voXDGIhlndVP0FXfpDpBhUyYPbm99Zl7DlSzO38NSGXVU4_hKliNLgMGz1SXP9VW4NJLwDcEGetW224gY&debug=true" } } ], "next_cursor": "MjAyNi0wNC0yOFQxMzo0OTo0NVosMDM2MDc0MjdmMDg0NmE0OGE3ZjY2ZTQyYTUxOTY3ODktNTMtMQ==" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" }, "403": { "$ref": "#/components/responses/Forbidden" }, "404": { "$ref": "#/components/responses/NotFound" }, "405": { "$ref": "#/components/responses/MethodNotAllowed" }, "406": { "$ref": "#/components/responses/NotAcceptable" }, "429": { "$ref": "#/components/responses/TooManyRequests" }, "500": { "$ref": "#/components/responses/InternalError" } } } }, "/api/v0/runs/{run_id}": { "get": { "operationId": "getRun", "summary": "Get test run details", "description": "Returns the full details of a single test run, including results.", "tags": ["Test runs"], "parameters": [ { "name": "run_id", "in": "path", "description": "Unique identifier of the test run to retrieve.", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Full details of the requested test run.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Run_Detail" }, "example": { "run_id": "ff0192ee9607f8ffa39187731d359c43-54-0", "status": "completed", "created_at": "2026-05-14T03:01:27Z", "launcher": "basic_k8s_test", "started_at": "2026-05-14T03:01:27Z", "completed_at": "2026-05-14T03:29:04Z", "creator": { "name": "antithesis_pdev", "type": "antithesis_scheduler" }, "parameters": { "antithesis.config_image": "etcd-config-k8s:latest", "antithesis.description": "Nightly: Basic K8s test (etcd)", "antithesis.duration": "15", "antithesis.integrations.type": "none", "antithesis.is_ephemeral": "false", "antithesis.report.recipients": "foo.bar@antithesis.com" }, "links": { "triage_report": "https://antithesis-dev.antithesis.com/report/mj9kKGUQwD-NuB5MKdvoBbUs/hHB2tlELW0k2fysU3tEHMyluQqqzBhspg2JalbFl3tQ.html?auth=v2.public.eyJzY29wZSI6eyJSZXBvcnRTY29wZVYxIjp7ImFzc2V0IjoiaEhCMnRsRUxXMGsyZnlzVTN0RUhNeWx1UXFxekJoc3BnMkphbGJGbDN0US5odG1sIiwicmVwb3J0X2lkIjoibWo5a0tHVVF3RC1OdUI1TUtkdm9CYlVzIn19LCJuYmYiOiIyMDI2LTA1LTE0VDAyOjI5OjAyLjY1MTUxNzIyMloifetWU3K1qICy8CzM5VzyveqhPMgpKgej_FOogxKqyfG9r16HsGjbAEKoiXXIIl6pi6_hvgIduzAgroEoNigj3wo" }, "results": { "environment": { "antithesis_version": "v54-0", "images": [ { "name": "etcd-config-k8s", "image": "us-central1-docker.pkg.dev/molten-verve-216720/antithesis-pdev-repository/etcd-config-k8s@sha256:16f57a2ec79c0d61886c28774264ab1d027e51a9301e014941404a35dcf8c631", "tag": "latest", "created": "2026-05-13T18:42:07Z" }, { "name": "mirrored-coredns-coredns", "image": "docker.io/rancher/mirrored-coredns-coredns@sha256:4f7a57135719628cf2070c5e3cbde64b013e90d4c560c5ecbf14004181f91998", "created": "2024-07-08T00:00:00Z" }, { "name": "etcd", "image": "docker.io/bitnamilegacy/etcd@sha256:4abe38869d5919c9ec70b2008713c2eb90c1b26d9e6700e126875894681b5b99", "tag": "3.5", "created": "2024-10-01T12:15:33Z" }, { "name": "local-path-provisioner", "image": "docker.io/rancher/local-path-provisioner@sha256:5fb0394abf87407a27cc56db94334eb0c92d0b5de2636683a7ec51f38143dfc9", "created": "2024-03-19T09:01:44Z" }, { "name": "busybox", "image": "docker.io/library/busybox@sha256:e56bc0f7fc7d4452b17eb4ac0a9261ff4c9a469afa45d2b673e03650716d095d", "created": "2025-01-22T05:30:00Z" }, { "name": "mirrored-pause", "image": "docker.io/rancher/mirrored-pause@sha256:7c38f24774e3cbd906d2d33c38354ccf787635581c122965132c9bd309754d4a", "created": "2023-11-02T21:11:09Z" }, { "name": "etcd-client-k8s", "image": "us-central1-docker.pkg.dev/molten-verve-216720/antithesis-pdev-repository/etcd-client-k8s@sha256:112394d9bacd070df4a8d18db3b7575d6e314220ee2462a31dc24df2e98373cc", "tag": "latest", "created": "2026-05-13T18:42:07Z" } ] }, "fault_settings": { "fault_tolerance": "resilient", "custom_fault_settings": false } } } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" }, "403": { "$ref": "#/components/responses/Forbidden" }, "404": { "$ref": "#/components/responses/NotFound" }, "405": { "$ref": "#/components/responses/MethodNotAllowed" }, "406": { "$ref": "#/components/responses/NotAcceptable" }, "429": { "$ref": "#/components/responses/TooManyRequests" }, "500": { "$ref": "#/components/responses/InternalError" } } } }, "/api/v0/runs/{run_id}/stream": { "post": { "operationId": "streamRunStatus", "tags": [ "Test runs" ], "summary": "Stream updates for a run", "description": "Streams updates about a test run's properties while the run is in progress. By default, you get a notification when Antithesis first encounters a property, and when properties pass or fail. You can also opt in to notifications when Antithesis finds new examples for a property. When the run finishes, the stream sends `RUN_FINALIZED` and closes.\n\nThe stream only sends changes that happen after you connect. To get a complete, up-to-date view of a run's properties, open the stream first, then fetch the current properties from the [List test run properties](/docs/reference/rest_api/#op-listRunProperties) endpoint.\n\nRuns created before Antithesis 66 do not support streaming and return 409. Instead, call the [List test run properties](/docs/reference/rest_api/#op-listRunProperties) endpoint on completed runs.\n\nOutput is streamed as newline-delimited JSON (NDJSON), with one notification per line. Each notification has a `type`, and a `data` list of the properties associated with it.\n\nWhen Antithesis finds a property's first example or counterexample, it sends a `NEW_EXAMPLES_FOUND` notification. The property's `examples` or `counterexamples` list contains the new example. Later examples only increase `example_count` and `counterexample_count`.\n\nIf the stream closes without sending `RUN_FINALIZED`, or ends with an error, the run may still be in progress. Reconnecting doesn't resend notifications you missed, so reconnect and then reload the current properties.", "parameters": [ { "name": "run_id", "in": "path", "required": true, "description": "Unique identifier of the test run.", "schema": { "type": "string" } } ], "requestBody": { "required": false, "description": "Optional filters. An empty body is equivalent to {}. Unknown fields and unknown notification types are rejected with 400.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Run_Status_Stream_Request" }, "examples": { "default": { "summary": "Default discovery and terminal notifications", "value": {} }, "with_examples": { "summary": "Include sample notifications", "value": { "notification_type_filter": [ "NEW_PROPERTIES_ADDED", "PROPERTIES_PASSED", "PROPERTIES_FAILED", "NEW_EXAMPLES_FOUND" ] } }, "selected_properties": { "summary": "Watch selected properties", "value": { "property_filter": [ "27a7cb0b311c8481c4ce12f3347fadbf" ] } }, "finalization_only": { "summary": "Only wait for finalization", "value": { "notification_type_filter": [] } } } } } }, "responses": { "200": { "description": "An NDJSON stream. The schema and examples describe individual lines, not a JSON array containing the entire response.", "content": { "application/x-ndjson": { "schema": { "oneOf": [ { "$ref": "#/components/schemas/Run_Stream_Notification" }, { "$ref": "#/components/schemas/Stream_Error" } ] }, "examples": { "discovered": { "summary": "A newly discovered property", "value": { "type": "NEW_PROPERTIES_ADDED", "data": [ { "id": "27a7cb0b311c8481c4ce12f3347fadbf", "name": "Balance stays nonnegative", "description": null, "status": "Pending", "is_event": true, "is_group": false, "example_count": 0, "counterexample_count": 0, "examples": [], "counterexamples": [] } ] } }, "passed_with_example": { "summary": "Passing with a retained passing event", "value": { "type": "PROPERTIES_PASSED", "data": [ { "id": "27a7cb0b311c8481c4ce12f3347fadbf", "name": "Balance stays nonnegative", "status": "Passing", "examples": [ { "moment": { "input_hash": "-3625518438076122494", "vtime": "398.4898056755774" }, "message": "Balance stays nonnegative", "details": { "balance": 12 } } ], "counterexamples": [], "description": null, "is_event": true, "is_group": false, "example_count": 1, "counterexample_count": 0 } ] } }, "passed_with_both": { "summary": "Passing with both kinds of observations", "value": { "type": "PROPERTIES_PASSED", "data": [ { "id": "27a7cb0b311c8481c4ce12f3347fadbf", "name": "Balance stays nonnegative", "status": "Passing", "examples": [ { "moment": { "input_hash": "-3625518438076122494", "vtime": "398.4898056755774" }, "message": "Balance stays nonnegative", "details": { "balance": 12 } } ], "counterexamples": [ { "moment": { "input_hash": "-3625518438076122494", "vtime": "401.25" }, "message": "Balance stays nonnegative", "details": { "balance": -1 } } ], "description": null, "is_event": true, "is_group": false, "example_count": 1, "counterexample_count": 1 } ] } }, "passed_without_samples": { "summary": "Passing without retained event samples", "value": { "type": "PROPERTIES_PASSED", "data": [ { "id": "27a7cb0b311c8481c4ce12f3347fadbf", "name": "Balance stays nonnegative", "status": "Passing", "examples": [], "counterexamples": [], "description": null, "is_event": true, "is_group": false, "example_count": 0, "counterexample_count": 0 } ] } }, "failed_with_counterexample": { "summary": "Failing with a counterexample", "value": { "type": "PROPERTIES_FAILED", "data": [ { "id": "27a7cb0b311c8481c4ce12f3347fadbf", "name": "Balance stays nonnegative", "status": "Failing", "examples": [], "counterexamples": [ { "moment": { "input_hash": "-3625518438076122494", "vtime": "401.25" }, "message": "Balance stays nonnegative", "details": { "balance": -1 } } ], "description": null, "is_event": true, "is_group": false, "example_count": 0, "counterexample_count": 1 } ] } }, "failed_with_both": { "summary": "Failing with passing and failing observations", "value": { "type": "PROPERTIES_FAILED", "data": [ { "id": "27a7cb0b311c8481c4ce12f3347fadbf", "name": "Balance stays nonnegative", "status": "Failing", "examples": [ { "moment": { "input_hash": "-3625518438076122494", "vtime": "398.4898056755774" }, "message": "Balance stays nonnegative", "details": { "balance": 12 } } ], "counterexamples": [ { "moment": { "input_hash": "-3625518438076122494", "vtime": "401.25" }, "message": "Balance stays nonnegative", "details": { "balance": -1 } } ], "description": null, "is_event": true, "is_group": false, "example_count": 1, "counterexample_count": 1 } ] } }, "failed_without_samples": { "summary": "Failing without retained event samples", "value": { "type": "PROPERTIES_FAILED", "data": [ { "id": "27a7cb0b311c8481c4ce12f3347fadbf", "name": "Balance stays nonnegative", "status": "Failing", "examples": [], "counterexamples": [], "description": null, "is_event": true, "is_group": false, "example_count": 0, "counterexample_count": 0 } ] } }, "new_examples": { "summary": "Opt-in samples with cumulative counts", "value": { "type": "NEW_EXAMPLES_FOUND", "data": [ { "id": "27a7cb0b311c8481c4ce12f3347fadbf", "name": "Balance stays nonnegative", "example_count": 24, "counterexample_count": 2, "examples": [ { "moment": { "input_hash": "-3625518438076122494", "vtime": "398.4898056755774" }, "message": "Balance stays nonnegative", "details": { "balance": 12 } } ], "counterexamples": [ { "moment": { "input_hash": "-3625518438076122494", "vtime": "401.25" }, "message": "Balance stays nonnegative", "details": { "balance": -1 } } ], "description": null, "status": "Pending", "is_event": true, "is_group": false } ] } }, "finalized": { "summary": "Successful end of the stream", "value": { "type": "RUN_FINALIZED", "data": [] } }, "error": { "summary": "Stream closed before finalization", "value": { "error": "This endpoint is temporarily unavailable. Please retry with backoff." } } } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "404": { "$ref": "#/components/responses/NotFound" }, "409": { "description": "The run was created before Antithesis 66 and does not support streaming. List its saved results with the [List test run properties](/docs/reference/rest_api/#op-listRunProperties) endpoint.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error_Response" }, "example": { "message": "Conflict: Streaming is not available for this run. Streaming requires a run created with Antithesis version 66 or later. You can still view this run's saved property results." } } } }, "429": { "$ref": "#/components/responses/TooManyRequests" }, "500": { "$ref": "#/components/responses/InternalError" }, "503": { "$ref": "#/components/responses/ServiceUnavailable" } } } }, "/api/v0/runs/{run_id}/logs": { "get": { "operationId": "getRunLogs", "summary": "Get logs for a specific moment", "description": "Streams the logs for a moment in the test run as newline-delimited JSON (NDJSON) in chronological order. Each line is a self-contained JSON object. The response is streamed and the connection remains open until all matching log lines have been sent.", "tags": ["Test runs"], "parameters": [ { "name": "run_id", "in": "path", "description": "Unique identifier of the test run to retrieve logs for.", "required": true, "schema": { "type": "string" } }, { "name": "input_hash", "in": "query", "description": "The input hash value identifying the moment.", "required": true, "schema": { "type": "string" } }, { "name": "vtime", "in": "query", "description": "The virtual time value identifying the moment.", "required": true, "schema": { "type": "string", "example": "8.692346630850807" } }, { "name": "begin_vtime", "in": "query", "description": "Start streaming logs from this virtual time instead of from the beginning of the test run.", "required": false, "schema": { "type": "string", "example": "8.692346630850807" } }, { "name": "begin_input_hash", "in": "query", "description": "The input hash of the moment to start streaming logs from. Must be provided together with `begin_vtime` to fully identify the begin moment.", "required": false, "schema": { "type": "string", "example": "-3625518438076122494" } } ], "responses": { "200": { "description": "A stream of log lines in NDJSON format. Each line is a JSON object.", "content": { "application/x-ndjson": { "schema": { "oneOf": [ { "$ref": "#/components/schemas/Event" }, { "$ref": "#/components/schemas/Stream_Error" } ] }, "examples": { "raft_vote_log": { "summary": "A raft pre-vote request log line", "value": { "moment": { "input_hash": "-3625518438076122494", "vtime": "398.4898056755774" }, "output_text": "{\"level\":\"info\",\"ts\":\"2026-03-26T01:42:55.628233Z\",\"logger\":\"raft\",\"caller\":\"v3@v3.6.0/raft.go:1064\",\"msg\":\"2c6c7b8d0d0933f7 [logterm: 78, index: 436] sent MsgPreVote request to dcb68c82481661be at term 79\"}", "source": { "container": "etcd0", "name": "etcd0", "stream": "error" } } }, "slow_request_log": { "summary": "A slow request warning log line", "value": { "output_text": "{\"level\":\"warn\",\"ts\":\"2026-03-26T01:41:30.289731Z\",\"caller\":\"txn/util.go:93\",\"msg\":\"apply request took too long\",\"took\":\"200.69629ms\",\"expected-duration\":\"100ms\",\"prefix\":\"read-only range \",\"request\":\"key:\\\"key\\\" \",\"response\":\"\",\"error\":\"context deadline exceeded\"}", "source": { "container": "etcd1", "name": "etcd1", "stream": "error" }, "moment": { "input_hash": "-8212366801093655922", "vtime": "313.15126806590706" } } }, "watch_channel_log": { "summary": "A watch channel closed log line", "value": { "output_text": "{\"level\":\"info\",\"ts\":1774489067.310644,\"caller\":\"client/watch.go:101\",\"msg\":\"Watch channel closed\"}", "source": { "container": "client", "name": "antithesis/pods/client/commands/robustness/singleton_driver_traffic.err", "pid": 45, "stream": "error" }, "moment": { "input_hash": "-3704286174724581163", "vtime": "90.17225814750418" } } } } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" }, "403": { "$ref": "#/components/responses/Forbidden" }, "404": { "$ref": "#/components/responses/NotFound" }, "405": { "$ref": "#/components/responses/MethodNotAllowed" }, "406": { "$ref": "#/components/responses/NotAcceptable" }, "429": { "$ref": "#/components/responses/TooManyRequests" }, "500": { "$ref": "#/components/responses/InternalError" } } } }, "/api/v0/runs/{run_id}/build_logs": { "get": { "operationId": "getRunBuildLogs", "summary": "Stream build logs", "description": "Streams the build logs for a test run as newline-delimited JSON (NDJSON). Each line contains a timestamp, a stream indicator, and the log text. The response is streamed and the connection remains open until all matching log lines have been sent.\n\n**Known limitation:** Build logs are not available for test runs created before Antithesis version 54.5. Requests for such runs return `404 Not Found`.", "tags": ["Test runs"], "parameters": [ { "name": "run_id", "in": "path", "description": "Unique identifier of the test run to retrieve build logs for.", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "A stream of build log lines in NDJSON format.", "content": { "application/x-ndjson": { "schema": { "oneOf": [ { "$ref": "#/components/schemas/Build_Log_Line" }, { "$ref": "#/components/schemas/Stream_Error" } ] }, "example": { "timestamp": "2026-05-14T03:03:24.668Z", "text": "About to wait for the flock. If the script is hanging here, somebody else is doing a build.", "stream": "stdout" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" }, "403": { "$ref": "#/components/responses/Forbidden" }, "404": { "$ref": "#/components/responses/NotFound" }, "405": { "$ref": "#/components/responses/MethodNotAllowed" }, "406": { "$ref": "#/components/responses/NotAcceptable" }, "429": { "$ref": "#/components/responses/TooManyRequests" }, "500": { "$ref": "#/components/responses/InternalError" } } } }, "/api/v0/runs/{run_id}/properties": { "get": { "operationId": "listRunProperties", "summary": "List test run properties", "description": "Returns a paginated list of a test run's properties and their current status: Passing, Failing, or Pending (not yet resolved). Each property includes a sample of its examples and counterexamples. Use the `status` parameter to filter by status.\n\nTo get the next page, pass the `next_cursor` value from the previous response as `after`, and keep the same `status` filter. Results are read live, so properties can change while you page through them. If a cursor has expired, the endpoint returns `400 Bad Request`, and you need to start again from the first page. Query parameters that the endpoint doesn't recognize are ignored.\n\nCompleted runs return the results Antithesis stored when the run finished. For cancelled and incomplete runs, results are calculated when you request them, which can take a while for a large run.\n\nRuns created before Antithesis version 66 return their saved results in an older format. Their properties are only Passing or Failing, so filtering on Pending returns no properties, and the response doesn't include `total_count` or `response_count`.\n\nProperty results aren't available for test runs created before Antithesis version 54.5. Requests for these runs return `404 Not Found`.", "tags": [ "Test runs" ], "parameters": [ { "name": "run_id", "in": "path", "required": true, "description": "Unique identifier of the test run to retrieve properties for.", "schema": { "type": "string" } }, { "name": "limit", "in": "query", "description": "Maximum page size.", "schema": { "type": "integer", "default": 50, "minimum": 1, "maximum": 5000 } }, { "name": "after", "in": "query", "description": "Opaque next_cursor from a previous page.", "schema": { "type": "string" } }, { "name": "status", "in": "query", "description": "Filter by one or more statuses. Repeat the parameter, for example status=Passing&status=Pending. Matched case-insensitively. Omit for all statuses.", "style": "form", "explode": true, "schema": { "type": "array", "items": { "type": "string", "enum": [ "Passing", "Failing", "Pending" ] } } } ], "responses": { "200": { "description": "A page of property results.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Property_List_Response" }, "example": { "data": [ { "id": "27a7cb0b311c8481c4ce12f3347fadbf", "name": "Balance stays nonnegative", "description": null, "status": "Pending", "is_event": true, "is_group": false, "example_count": 0, "counterexample_count": 0, "examples": [], "counterexamples": [] } ], "total_count": 1, "response_count": 1, "next_cursor": null } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" }, "403": { "$ref": "#/components/responses/Forbidden" }, "404": { "$ref": "#/components/responses/NotFound" }, "405": { "$ref": "#/components/responses/MethodNotAllowed" }, "406": { "$ref": "#/components/responses/NotAcceptable" }, "429": { "$ref": "#/components/responses/TooManyRequests" }, "500": { "$ref": "#/components/responses/InternalError" } } } }, "/api/v0/runs/{run_id}/properties/{property_id}": { "get": { "operationId": "getRunProperty", "tags": [ "Test runs" ], "summary": "Get a test run property", "description": "Returns a single property from a test run, in the same form as the [List test run properties](/docs/reference/rest_api/#op-listRunProperties) endpoint. For a run in progress, the property can change between requests. For a completed run, the endpoint returns the property's final result.\n\nFor runs created before Antithesis version 66, the property comes from the run's saved results. The status can only be Passing or Failing (not Pending), and it doesn't include `category`, `team`, `event_set`, or `passing_predicate`.", "parameters": [ { "name": "run_id", "in": "path", "required": true, "description": "Unique identifier of the test run.", "schema": { "type": "string" } }, { "name": "property_id", "in": "path", "required": true, "description": "Opaque property identifier, as returned in id by /properties and the run stream.", "schema": { "type": "string" } } ], "responses": { "200": { "description": "The current property snapshot.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Property" }, "example": { "id": "27a7cb0b311c8481c4ce12f3347fadbf", "name": "Balance stays nonnegative", "description": null, "status": "Pending", "is_event": true, "is_group": false, "example_count": 0, "counterexample_count": 0, "examples": [], "counterexamples": [] } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" }, "403": { "$ref": "#/components/responses/Forbidden" }, "404": { "description": "The run or the property was not found.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error_Response" }, "example": { "message": "Property 27a7cb0b311c8481c4ce12f3347fadbf not found" } } } }, "429": { "$ref": "#/components/responses/TooManyRequests" }, "500": { "$ref": "#/components/responses/InternalError" } } } }, "/api/v0/runs/{run_id}/events": { "get": { "operationId": "searchRunEvents", "summary": "Search test run events", "description": "Searches events in a test run for the given query string. The search matches against output text, assertion messages, function names, and test composer commands. Results are streamed as newline-delimited JSON (NDJSON). Each line is a self-contained JSON object representing an event.", "tags": ["Test runs"], "parameters": [ { "name": "run_id", "in": "path", "description": "Unique identifier of the test run to search.", "required": true, "schema": { "type": "string" } }, { "name": "q", "in": "query", "description": "The search term. Matches events where this string is contained in the output text, assertion message, function name, or test command. When omitted, defaults to an empty string, which matches all events.", "required": false, "schema": { "type": "string", "default": "" } }, { "name": "limit", "in": "query", "description": "Maximum number of results to return. Must be between 1 and 1000. Defaults to 50.", "required": false, "schema": { "type": "integer", "default": 50, "minimum": 1, "maximum": 1000 } } ], "responses": { "200": { "description": "A stream of matching events in NDJSON format. Each line is a JSON object.", "content": { "application/x-ndjson": { "schema": { "oneOf": [ { "$ref": "#/components/schemas/Event" }, { "$ref": "#/components/schemas/Stream_Error" } ] }, "example": { "moment": { "input_hash": "-2978388909754056022", "vtime": "22.66615231265314" }, "IPT_bytes_out": 1073904, "source": { "command_id": "BSPID1ERCnmoGEnk6WjwIZ4o3TM", "name": "setup", "stream": "info" }, "output_text": "3:08:17AM: ^ Pending: ContainerCreating" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" }, "403": { "$ref": "#/components/responses/Forbidden" }, "404": { "$ref": "#/components/responses/NotFound" }, "405": { "$ref": "#/components/responses/MethodNotAllowed" }, "406": { "$ref": "#/components/responses/NotAcceptable" }, "429": { "$ref": "#/components/responses/TooManyRequests" }, "500": { "$ref": "#/components/responses/InternalError" } } } }, "/api/v0/runs/{run_id}/events/search": { "post": { "operationId": "search", "summary": "Search events with event sets", "description": "Runs a search query across a single test run's events and returns the matching events. The test run to search is identified by the `run_id` path parameter. To count matching events instead, use `/api/v0/runs/{run_id}/events/search/count`.\n\n### Search query\n\nThe `query` field is an event set. An event set is a pipeline of verbs separated by `.`, applied left to right to the underlying event stream. The [event set reference](/docs/reference/event-set-reference/) has the full grammar.\n\n### Property-shaped searches\n\nTo make the search-property shaped, you can use the property event_set as `query`, and send the predicate as `is_passing_predicate` (a JavaScript function on example to a boolean to indicate passing/failing) and `passing` (default `false`, the failing events).\n\n### Validating a query\n\nWhen `validate_only` is `true` the server checks only that `query` is syntactically valid and does not execute it; no events are returned. The server responds with `200 OK` and an empty body for a syntactically valid query, and for an invalid query, the server responds with `400 Bad Request`. `validate_only` takes precedence over `is_streaming`.\n\n### Streaming\n\nWhen `is_streaming` is `true` the connection remains open and the server continues to emit events as they are observed in live test runs. When `false` the server closes the connection once it has returned the current matching set.", "tags": ["Test runs"], "parameters": [ { "name": "run_id", "in": "path", "description": "Unique identifier of the test run to search.", "required": true, "schema": { "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Search_Request" }, "examples": { "get_events": { "summary": "Return error log lines from etcd0", "value": { "query": "matches({container: \"etcd0\", stream: \"error\"})", "is_streaming": false } }, "streaming_events": { "summary": "Stream slow-request warnings as they happen", "value": { "query": "contains({output_text: \"apply request took too long\"})", "is_streaming": true } }, "validate_only": { "summary": "Validate a query without running it", "value": { "query": "matches({container: \"etcd0\"})", "validate_only": true } }, "failing_events": { "summary": "Return the etcd0 log lines a property's predicate fails on", "value": { "query": "matches({container: \"etcd0\"})", "is_passing_predicate": "ev => !ev.output_text.includes(\"panic\")", "passing": false } } } } } }, "responses": { "200": { "description": "Matching events as NDJSON. When `validate_only` is `true` and the query is valid, the body is empty.", "content": { "application/x-ndjson": { "schema": { "$ref": "#/components/schemas/Event" }, "example": { "moment": { "input_hash": "-3625518438076122494", "vtime": "398.4898056755774" }, "output_text": "{\"level\":\"info\",\"msg\":\"sent MsgPreVote request\"}", "source": { "container": "etcd0", "name": "etcd0", "stream": "error" } } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" }, "403": { "$ref": "#/components/responses/Forbidden" }, "404": { "$ref": "#/components/responses/NotFound" }, "405": { "$ref": "#/components/responses/MethodNotAllowed" }, "406": { "$ref": "#/components/responses/NotAcceptable" }, "429": { "$ref": "#/components/responses/TooManyRequests" }, "500": { "$ref": "#/components/responses/InternalError" }, "503": { "$ref": "#/components/responses/ServiceUnavailable" } } } }, "/api/v0/runs/{run_id}/events/search/count": { "post": { "operationId": "searchCount", "summary": "Count events with event sets", "description": "Runs a search query across a single test run's events and returns the number of matching events. The test run to search is identified by the `run_id` path parameter.\n\n### Search query\n\nThe `query` field is an event set. An event set is a pipeline of verbs separated by `.`, applied left to right to the underlying event stream. The [event set reference](/docs/reference/event-set-reference/) has the full grammar.\n\n### Property-shaped searches\n\nTo make the search-property shaped, you can use the property event_set as `query`, and send the predicate as `is_passing_predicate` (a JavaScript function on example to a boolean to indicate passing/failing) and `passing` (default `false`, the failing events).\n\n### Validating a query\n\nWhen `validate_only` is `true` the server checks only that `query` is syntactically valid and does not execute it; no count is computed. The server responds with `200 OK` and an empty body for a syntactically valid query, and for an invalid query, the server responds with `400 Bad Request`.", "tags": ["Test runs"], "parameters": [ { "name": "run_id", "in": "path", "description": "Unique identifier of the test run whose matching events should be counted.", "required": true, "schema": { "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Search_Count_Request" }, "examples": { "count_events": { "summary": "Count raft-related log lines in a single run", "value": { "query": "contains({output_text: \"raft\"})" } }, "count_failing_events": { "summary": "Count the etcd0 log lines a property's predicate fails on", "value": { "query": "matches({container: \"etcd0\"})", "is_passing_predicate": "ev => !ev.output_text.includes(\"panic\")", "passing": false } }, "validate_only": { "summary": "Validate a query without running it", "value": { "query": "matches({container: \"etcd0\"})", "validate_only": true } } } } } }, "responses": { "200": { "description": "The number of matching events. When `validate_only` is `true` and the query is valid, the body is empty.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Search_Count_Response" }, "example": { "count": 318446 } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" }, "403": { "$ref": "#/components/responses/Forbidden" }, "404": { "$ref": "#/components/responses/NotFound" }, "405": { "$ref": "#/components/responses/MethodNotAllowed" }, "406": { "$ref": "#/components/responses/NotAcceptable" }, "429": { "$ref": "#/components/responses/TooManyRequests" }, "500": { "$ref": "#/components/responses/InternalError" }, "503": { "$ref": "#/components/responses/ServiceUnavailable" } } } }, "/api/v0/runs/{run_id}/command": { "post": { "operationId": "executeCommand", "summary": "Execute a command in a test run", "description": "Executes a bash command in a test run, starting at a given moment.\n\nThe moment can come from any test run, including one that has already completed. The command executes in the in-progress run given by `run_id`:\n\n- If the moment is from that run, the command runs on it directly.\n- If the moment is from a different run, pass that run's ID as `source_run_id` (or its debugging session ID as `source_session_id`). If you launched the in-progress run with [Launch a debugging session](/docs/reference/rest_api/#op-launchMvd), you can leave both out, and the server uses the run you launched it from. The server \"rewarms\" the moment from the source run, emitting `Rewarm_Progress` records ahead of the command output. The source run must be on the same [performance tier](/docs/product/launching_tests/#choose-a-performance-tier) as `run_id`.\n\nIf you don't have an in-progress run, start one with [Launch a debugging session](/docs/reference/rest_api/#op-launchMvd).\n\nSet `container` to the container you want the script to run in. To run it on the host machine instead, set `container` to `_ANTITHESIS_HOST`.\n\nIf you're using Kubernetes, set `container` to `_ANTITHESIS_HOST`, and manage the cluster with `kubectl` commands. For example, use `kubectl get pods -A` to list the pods, and `kubectl exec -n -c -- ` to run a command inside a pod.\n\nReturns the command's stdout and stderr. Set `include_system_logs` to `true` to also include every event observed during the command's execution. Set `include_filtered_logs` to `true` to also include logs that are filtered out of the run's logs by the Retroactive Logging feature.\n\nOutput is streamed as newline-delimited JSON (NDJSON). Command output uses the same `Event` shape returned by the [Get logs for a specific moment](/docs/reference/rest_api/#op-getRunLogs) endpoint.\n\nA successful stream ends with exactly one command result with a status of `exited` or `timed_out`. A stream that fails after the response begins ends with a `Stream_Error`.\n\nThe command times out after 600 seconds by default; set `timeout_seconds` to change this. Rewarming time doesn't count toward the timeout.", "tags": ["Test runs"], "parameters": [ { "name": "run_id", "in": "path", "description": "Unique identifier of the test run whose in-progress session should execute the command.", "required": true, "schema": { "type": "string", "example": "9325f006ffd3a399a8497bc888878b97-50-1" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Execute_Command_Request" }, "examples": { "docker_compose": { "summary": "Run a command in a Docker Compose service container", "value": { "moment": { "input_hash": "-3625518438076122494", "vtime": "398.4898056755774" }, "script": "cat /etc/hostname", "timeout_seconds": 30, "container": "my-service" } }, "host": { "summary": "Run a command on the host", "value": { "moment": { "input_hash": "-3625518438076122494", "vtime": "398.4898056755774" }, "script": "uname -a", "timeout_seconds": 30, "container": "_ANTITHESIS_HOST" } }, "kubernetes": { "summary": "Inspect pods in a Kubernetes run", "value": { "moment": { "input_hash": "-3625518438076122494", "vtime": "398.4898056755774" }, "script": "kubectl get pods -A && kubectl exec deploy/my-service -- cat /etc/hostname", "timeout_seconds": 30, "container": "_ANTITHESIS_HOST" } } } } } }, "responses": { "200": { "description": "An NDJSON stream containing zero or more command-output `Event` records followed by exactly one terminal `Command_Termination_Result`. If an error occurs after the response begins, the stream instead ends with a `Stream_Error`. Each line is a self-contained JSON object. When a cold moment has to be rewarmed first, the stream begins with `Rewarm_Progress` records. Clients should classify lines by `status`: `rewarming` is a progress record, `exited` or `timed_out` is the terminal result, and a line without `status` is an event.", "content": { "application/x-ndjson": { "schema": { "oneOf": [ { "$ref": "#/components/schemas/Event" }, { "$ref": "#/components/schemas/Command_Termination_Result" }, { "$ref": "#/components/schemas/Rewarm_Progress" }, { "$ref": "#/components/schemas/Stream_Error" } ] }, "examples": { "output": { "summary": "A line written to stdout", "value": { "moment": { "input_hash": "-3625518438076122494", "vtime": "398.491" }, "output_text": "Linux antithesis 6.12.0", "source": { "stream": "info" } } }, "exited": { "summary": "The command exited", "value": { "status": "exited", "exit_code": 0, "end_moment": { "input_hash": "-3625518438076122494", "vtime": "398.492" } } }, "timed_out": { "summary": "The command timed out", "value": { "status": "timed_out", "last_moment": { "input_hash": "-3625518438076122494", "vtime": "398.491" } } }, "rewarm_started": { "summary": "The requested moment was not warm; rewarming has begun", "value": { "status": "rewarming", "percent_complete": 0 } }, "rewarm_progress": { "summary": "Rewarming is partway through replaying inputs", "value": { "status": "rewarming", "percent_complete": 40 } }, "rewarm_complete": { "summary": "The moment is warm; the command is now executing", "value": { "status": "rewarming", "percent_complete": 100 } } } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" }, "403": { "$ref": "#/components/responses/Forbidden" }, "404": { "$ref": "#/components/responses/NotFound" }, "405": { "$ref": "#/components/responses/MethodNotAllowed" }, "406": { "$ref": "#/components/responses/NotAcceptable" }, "429": { "$ref": "#/components/responses/TooManyRequests" }, "500": { "$ref": "#/components/responses/InternalError" } } } }, "/api/v0/runs/{run_id}/cancel": { "post": { "operationId": "cancelRun", "summary": "Cancel a test run", "description": "Requests cancellation of the test run identified by `run_id`, including its descendant jobs. Cancellation is asynchronous, so a successful response confirms that cancellation was requested, but jobs may still be stopping. Once the jobs stop, the run is marked as cancelled and its finish timestamps are set. Runs that are already completed, cancelled, or incomplete return `409 Conflict` without changing their status or finish timestamps. No request body is required.", "tags": ["Test runs"], "parameters": [ { "name": "run_id", "in": "path", "description": "Unique identifier of the test run to cancel.", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Cancellation successfully requested.", "content": { "application/json": { "schema": { "type": "object" }, "example": {} } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" }, "403": { "$ref": "#/components/responses/Forbidden" }, "404": { "$ref": "#/components/responses/NotFound" }, "405": { "$ref": "#/components/responses/MethodNotAllowed" }, "406": { "$ref": "#/components/responses/NotAcceptable" }, "409": { "description": "The run has already finished and cannot be cancelled.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error_Response" }, "example": { "message": "Conflict: Run example-run-id has already finished and cannot be cancelled" } } } }, "429": { "$ref": "#/components/responses/TooManyRequests" }, "500": { "$ref": "#/components/responses/InternalError" }, "503": { "$ref": "#/components/responses/ServiceUnavailable" } } } }, "/api/v1/launch/{launcher_name}": { "post": { "operationId": "launchTest", "summary": "Launch a test", "description": "Kicks off a test using the specified launcher (e.g. `basic_test` or `basic_k8s_test`). Fetches the relevant container images specified in configuration files and in `antithesis.images`, builds the test environment, and runs the test for the duration set in `antithesis.duration`. Returns an HTTP status code indicating whether the test was successfully started (not the test result itself). New tests are rejected with a `402` while the tenant's usage for the current entitlement period, as reported by `/api/v0/usage/summary` over that period, is at or above the usage cap (see `/api/v0/usage/cap`). While no entitlement period is in force, the most recent period is treated as continuing. Tenants with no cap are not limited. Tests that are already running are not affected.", "tags": ["Launch"], "parameters": [ { "name": "launcher_name", "in": "path", "description": "Name of the launcher to use. Use `basic_test` for Docker Compose orchestration or `basic_k8s_test` for Kubernetes orchestration.", "required": true, "schema": { "type": "string", "example": "basic_test" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Launch_Request" } } } }, "responses": { "202": { "description": "Test successfully launched.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Launch_Response" }, "example": { "statusCode": 202, "runId": "0e62aa320a60967967096401ce826bd5-54-1" } } } }, "402": { "description": "Usage cap reached — the tenant's usage for the current entitlement period is at or above its usage cap, so no new tests can be launched until the next period begins or the cap is raised.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Launch_Error_Response" }, "example": { "statusCode": 402, "message": "usage for the current period (5000 hours) has reached the usage cap (5000 hours)" } } } }, "400": { "$ref": "#/components/responses/Legacy_BadRequest" }, "401": { "$ref": "#/components/responses/Legacy_Unauthorized" }, "403": { "$ref": "#/components/responses/Legacy_Forbidden" }, "404": { "$ref": "#/components/responses/Legacy_NotFound" }, "405": { "$ref": "#/components/responses/Legacy_MethodNotAllowed" }, "406": { "$ref": "#/components/responses/Legacy_NotAcceptable" }, "429": { "$ref": "#/components/responses/Legacy_TooManyRequests" }, "500": { "$ref": "#/components/responses/Legacy_InternalError" } } } }, "/api/version": { "get": { "tags": ["Version"], "operationId": "getVersion", "summary": "Get API and release version", "description": "Returns the latest supported API version and the current Antithesis release version for the tenant.", "responses": { "200": { "description": "Version information.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Version_Response" }, "example": { "latest_api_version": "v1", "release_version": "56.0" } } } }, "401": { "$ref": "#/components/responses/Unauthorized" }, "406": { "$ref": "#/components/responses/NotAcceptable" }, "429": { "$ref": "#/components/responses/TooManyRequests" }, "500": { "$ref": "#/components/responses/InternalError" } } } }, "/api/v1/launch/debugging": { "parameters": [], "post": { "operationId": "launchMvd", "summary": "Launch a debugging session", "description": "Kicks off a multiverse debugging session that'll be available for six hours. Returns an HTTP status code indicating whether the debugging session request was successfully accepted and the session is getting ready.\n\nThe target test run is identified by `antithesis.debugging.run_id`. For backwards compatibility, `antithesis.debugging.session_id` is also accepted — prefer `run_id` for new integrations.", "tags": ["Launch"], "parameters": [ ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Launch_MVD_Request" }, "examples": { "by_run_id": { "summary": "Identified by run ID (preferred)", "value": { "params": { "antithesis.debugging.run_id": "9043254f65c9c65d63fe043a0abfc7fc-56-1", "antithesis.debugging.input_hash": "-9067336385060865277", "antithesis.debugging.vtime": "45.334635781589895", "antithesis.report.recipients": "user1@example.com; user2@example.com" } } }, "by_session_id": { "summary": "Identified by session ID", "value": { "params": { "antithesis.debugging.session_id": "d5d1c9cf0e64b5dd69b00e97b07fe3f4-18-1", "antithesis.debugging.input_hash": "-9067336385060865277", "antithesis.debugging.vtime": "45.334635781589895", "antithesis.report.recipients": "user1@example.com; user2@example.com" } } } } } } }, "responses": { "202": { "description": "Debugging session launcher successfully started.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Launch_MVD_Response" }, "example": { "statusCode": 202, "runId": "633c43d99162a42d8c6b784751802f30-54-1" } } } }, "400": { "$ref": "#/components/responses/Legacy_BadRequest" }, "401": { "$ref": "#/components/responses/Legacy_Unauthorized" }, "403": { "$ref": "#/components/responses/Legacy_Forbidden" }, "404": { "$ref": "#/components/responses/Legacy_NotFound" }, "405": { "$ref": "#/components/responses/Legacy_MethodNotAllowed" }, "406": { "$ref": "#/components/responses/Legacy_NotAcceptable" }, "429": { "$ref": "#/components/responses/Legacy_TooManyRequests" }, "500": { "$ref": "#/components/responses/Legacy_InternalError" } } } }, "/api/v0/registry": { "get": { "tags": ["Registry"], "operationId": "getRegistry", "summary": "Get where to push container images", "description": "Returns the registry this tenant's container images are pushed to, and whose login to push with. `antithesis`: authenticate to `registry_url` with the same credential as this API. `docker`: use the login already configured in Docker for `registry_url`.", "responses": { "200": { "description": "Registry information.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Registry_Response" }, "example": { "auth": "antithesis", "registry_url": "registry.example.antithesis.com" } } } }, "401": { "$ref": "#/components/responses/Unauthorized" }, "404": { "$ref": "#/components/responses/NotFound" }, "406": { "$ref": "#/components/responses/NotAcceptable" }, "429": { "$ref": "#/components/responses/TooManyRequests" }, "500": { "$ref": "#/components/responses/InternalError" } } } }, "/api/v0/runs/{run_id}/modules": { "get": { "operationId": "listRunModules", "summary": "List modules loaded in a test run", "description": "Lists instrumented modules loaded during a test run and the programs that\nloaded them. Every module that loaded with coverage instrumentation is\nincluded, whether or not the build published a symbol catalog for it;\nhas_catalog tells them apart. A symbol catalog describes the files,\nfunctions, and instrumented code locations in a module's build.\n\nEach module appears once per run, identified by module_id. Treat this\nidentifier as an opaque string; name is a display label and need\nnot be unique. File, function, and location counts describe the catalog,\nregardless of which code has executed. A module without a catalog reports\na location count; but its file and function counts are\nnull. These endpoints do not report\ncoverage results.\n\nAn instance identifies a program that loaded a module in a named container.\nThe same (module_id, container_name, program_path) combination appears only\nonce per run, even across multiple processes, container restarts, or repeated\nloads. Instances group processes by program path; they do not enumerate\nindividual process lifetimes.\n\nprogram_path is the path to the process's executable. For interpreted\nprograms, this is the interpreter binary. Different scripts using the\nsame interpreter path in the same named container share an instance for\neach module they load in common.\nContainer names and program paths are served as recorded, without rewriting\nthem.\n\nModules and instances may take time to appear after loading. A module appears before\nany of its instances.\n\nEach list is ordered by when entries first become available through this\nAPI, which may differ from the order in which modules were loaded. Entries\nkeep their positions, and new entries are always added after existing\nones. Repeated loads do not move or duplicate entries.\n\nUse each list's cursor to fetch subsequent pages or poll for new entries.\nAn empty page does not mean the list is final. The module list and each module's\ninstance list have separate cursors; neither reports updates to entries\nalready listed.\n\nReturns one entry per module_id, ordered by first publication.\n\nOmit after to begin at the start of the collection. The returned cursor marks the position immediately after the last module in this page. Pass it unchanged as after to fetch modules from that position onward. An empty page still returns a cursor for polling. When has_more is false, clients may poll using that cursor to discover modules published later.\n\nLoading an existing module again does not create another module entry. New container/program combinations appear in that module's instances collection.\n\nA known run with no published modules returns an empty page.", "tags": [ "Coverage" ], "parameters": [ { "$ref": "#/components/parameters/Coverage_Run_Id" }, { "$ref": "#/components/parameters/Coverage_Limit" }, { "$ref": "#/components/parameters/Coverage_After" } ], "responses": { "200": { "description": "List modules loaded in a test run.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Coverage_Module_List_Response" }, "example": { "data": [ { "module_id": "9f4a1c0e7b2d8e3f5a6b4c2d1e0f9a8b7c6d5e4f", "name": "payment-service", "has_catalog": true, "language": "go", "instrumentor": "go", "num_files": 412, "num_functions": 9873, "num_locations": 120433 }, { "module_id": "4d1e0f9a8b7c6d5e4f9f4a1c0e7b2d8e3f5a6b4c", "name": "ledger-worker", "has_catalog": false, "num_locations": 48213 } ], "cursor": "opaque-module-cursor", "has_more": false } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" }, "403": { "$ref": "#/components/responses/Forbidden" }, "404": { "$ref": "#/components/responses/NotFound" }, "405": { "$ref": "#/components/responses/MethodNotAllowed" }, "406": { "$ref": "#/components/responses/NotAcceptable" }, "429": { "$ref": "#/components/responses/TooManyRequests" }, "500": { "$ref": "#/components/responses/InternalError" }, "503": { "$ref": "#/components/responses/ServiceUnavailable" } } } }, "/api/v0/runs/{run_id}/modules/{module_id}": { "get": { "operationId": "getRunModule", "summary": "Get one loaded module", "description": "Returns the same module representation used by the modules listing.\n\nUse /api/v0/runs/{run_id}/modules/{module_id}/instances to list the programs that loaded this module.\n\nReturns 404 if the run does not exist or the module has not been announced in this run.", "tags": [ "Coverage" ], "parameters": [ { "$ref": "#/components/parameters/Coverage_Run_Id" }, { "name": "module_id", "in": "path", "required": true, "description": "Opaque module identifier returned by the modules listing.", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Get one loaded module.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Coverage_Module" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" }, "403": { "$ref": "#/components/responses/Forbidden" }, "404": { "$ref": "#/components/responses/NotFound" }, "405": { "$ref": "#/components/responses/MethodNotAllowed" }, "406": { "$ref": "#/components/responses/NotAcceptable" }, "429": { "$ref": "#/components/responses/TooManyRequests" }, "500": { "$ref": "#/components/responses/InternalError" }, "503": { "$ref": "#/components/responses/ServiceUnavailable" } } } }, "/api/v0/runs/{run_id}/modules/{module_id}/instances": { "get": { "operationId": "listRunModuleInstances", "summary": "List programs that loaded a module in a test run", "description": "Returns instances of the specified module, ordered by first publication.\n\nWithin this module's instances, each (container_name, program_path) combination appears once. Multiple processes and container restarts with the same container name and program path do not create additional instances. Individual process lifetimes are not enumerated.\n\nOmit after to begin at the start of the collection. The returned cursor marks the next position to examine, not an instance ID. It can advance past instances of other modules, even when this page is empty. Pass it unchanged as after to resume without repeating instances from this page. When has_more is false, clients may poll using that cursor to discover instances announced later. Each module's instances have a separate cursor.\n\nA announced module with no associated instances returns an empty page. Returns 404 if the run does not exist or the module has not been announced in this run.", "tags": [ "Coverage" ], "parameters": [ { "$ref": "#/components/parameters/Coverage_Run_Id" }, { "name": "module_id", "in": "path", "required": true, "description": "Opaque module identifier returned by the modules listing.", "schema": { "type": "string" } }, { "$ref": "#/components/parameters/Coverage_Limit" }, { "$ref": "#/components/parameters/Coverage_After" } ], "responses": { "200": { "description": "A page of programs that loaded the specified module in the run.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Coverage_Module_Instance_List_Response" }, "example": { "data": [ { "instance_id": "opaque-instance-1", "container_name": "payment1", "program_path": "/opt/app/payment-service" }, { "instance_id": "opaque-instance-2", "container_name": "payment2", "program_path": "/opt/app/payment-service" } ], "cursor": "opaque-instance-cursor", "has_more": false } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" }, "403": { "$ref": "#/components/responses/Forbidden" }, "404": { "$ref": "#/components/responses/NotFound" }, "405": { "$ref": "#/components/responses/MethodNotAllowed" }, "406": { "$ref": "#/components/responses/NotAcceptable" }, "429": { "$ref": "#/components/responses/TooManyRequests" }, "500": { "$ref": "#/components/responses/InternalError" }, "503": { "$ref": "#/components/responses/ServiceUnavailable" } } } }, "/api/v0/runs/{run_id}/coverage/locations": { "get": { "operationId": "getCoverageLocations", "summary": "Stream coverage per location", "description": "Streams per-location coverage as newline-delimited JSON (NDJSON), one instrumented location per line, ordered by module, then address. Every other coverage view derives from this data. By default the server returns the locations as of the request and closes the connection. With `is_streaming=true` on a live test run, the connection stays open after them: the locations of each module the guest announces later follow with `first_reached` unset, and each location is sent again, with `first_reached` set, when it is first reached, until the run finishes. These follow-up lines arrive in the order they are observed, not by module and address. `is_streaming` has no effect on a finished run and is incompatible with `covered=false`.", "tags": [ "Coverage" ], "parameters": [ { "$ref": "#/components/parameters/Coverage_Run_Id" }, { "name": "module_id", "in": "query", "description": "Only stream locations from this module.", "required": false, "schema": { "type": "string" } }, { "name": "covered", "in": "query", "description": "Only stream locations that were reached (`true`) or never reached (`false`) during the run. When omitted, the response will include both covered locations (rows with a `first_reached` property) and uncovered locations (rows without a `first_reached` property). On streaming responses, a row may first report as uncovered and later report as covered.", "required": false, "schema": { "type": "boolean" } }, { "name": "is_streaming", "in": "query", "description": "When `true` on a live test run, keep the connection open and stream newly announced modules' locations and newly reached locations until the run finishes. When `false`, close the connection once the current locations have been returned. Has no effect on a finished run. Cannot be combined with `covered=false`.", "required": false, "schema": { "type": "boolean", "default": false } } ], "responses": { "200": { "description": "A stream of per-location coverage in NDJSON format. Each line is a JSON object.", "content": { "application/x-ndjson": { "schema": { "oneOf": [ { "$ref": "#/components/schemas/Location_Coverage" }, { "$ref": "#/components/schemas/Stream_Error" } ] }, "examples": { "covered_location": { "summary": "A location that was reached", "value": { "module_id": "c1d2e3f4a5b60718293a4b5c6d7e8f9012345678", "address": "4856880", "file": "src/raft/append.cc", "function": "raft::Log::append", "begin_line": 57, "begin_column": 9, "end_line": 57, "end_column": 9, "first_reached": { "run_seconds": 512.3, "moment": { "input_hash": "-3625518438076122494", "vtime": "398.4898056755774" } } } }, "uncovered_location": { "summary": "A location that was never reached", "value": { "module_id": "c1d2e3f4a5b60718293a4b5c6d7e8f9012345678", "address": "4856920", "file": "src/raft/append.cc", "function": "raft::Log::truncate", "begin_line": 92, "begin_column": 5, "end_line": 92, "end_column": 5 } } } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" }, "403": { "$ref": "#/components/responses/Forbidden" }, "404": { "$ref": "#/components/responses/NotFound" }, "405": { "$ref": "#/components/responses/MethodNotAllowed" }, "406": { "$ref": "#/components/responses/NotAcceptable" }, "429": { "$ref": "#/components/responses/TooManyRequests" }, "500": { "$ref": "#/components/responses/InternalError" }, "503": { "$ref": "#/components/responses/ServiceUnavailable" } } } }, "/api/v0/usage": { "get": { "operationId": "listUsage", "summary": "Lists all usage entries", "description": "Returns a paginated list of usage line items for runs whose billed end time falls in the half-open window `[start_time, end_time)`. If either time is not provided, the window is unbounded in that direction. Results are ordered by run start time, newest first.", "tags": ["Usage"], "parameters": [ { "name": "start_time", "in": "query", "description": "Only return runs that ended at or after this timestamp (ISO 8601). Must be before `end_time` when both are provided.", "required": false, "schema": { "type": "string", "format": "date-time" } }, { "name": "end_time", "in": "query", "description": "Only return runs that ended strictly before this timestamp (ISO 8601). Must be after `start_time` when both are given.", "required": false, "schema": { "type": "string", "format": "date-time" } }, { "name": "limit", "in": "query", "description": "Maximum number of results to return. Server-capped at 50000.", "required": false, "schema": { "type": "integer", "default": 50, "minimum": 1, "maximum": 50000 } }, { "name": "after", "in": "query", "description": "Cursor for pagination. Pass the `next_cursor` value (as well as any filter parameters) from a previous response to fetch the next page.", "required": false, "schema": { "type": "string" } } ], "responses": { "200": { "description": "A paginated list of usage line items", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Usage_List_Response" }, "example": { "data": [ { "run_id": "9043254f65c9c65d63fe043a0abfc7fc-53-1", "hours": 200, "start_time": "2026-04-28T13:49:49Z", "end_time": "2026-04-28T14:14:07Z" }, { "run_id": "ced73597f5f6499a6041f4c7f2329cf1-53-1", "hours": 350, "start_time": "2026-04-28T13:49:49Z", "end_time": "2026-04-28T14:07:36Z" }, { "run_id": "ff0192ee9607f8ffa39187731d359c43-54-0", "hours": 60, "start_time": "2026-04-28T14:00:00Z", "end_time": "2026-04-28T14:15:00Z" } ], "next_cursor": "MjAyNi0wNC0yOFQxMzo0OTo0NVosMDM2MDc0MjdmMDg0NmE0OGE3ZjY2ZTQyYTUxOTY3ODktNTMtMQ==" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" }, "403": { "$ref": "#/components/responses/Forbidden" }, "404": { "$ref": "#/components/responses/NotFound" }, "405": { "$ref": "#/components/responses/MethodNotAllowed" }, "406": { "$ref": "#/components/responses/NotAcceptable" }, "429": { "$ref": "#/components/responses/TooManyRequests" }, "500": { "$ref": "#/components/responses/InternalError" } } } }, "/api/v0/usage/summary": { "get": { "operationId": "getUsageSummary", "summary": "Gets a total of usage hours used", "description": "Gets the total number of runs and usage hours for runs whose billed end time falls in the half-open window `[start_time, end_time)`. If either time is omitted, the window is unbounded in that direction", "tags": ["Usage"], "parameters": [ { "name": "start_time", "in": "query", "description": "Only count runs that ended at or after this timestamp (ISO 8601). Must be before `end_time` when both are given.", "required": false, "schema": { "type": "string", "format": "date-time" } }, { "name": "end_time", "in": "query", "description": "Only count runs that ended strictly before this timestamp (ISO 8601). Must be after `start_time` when both are given.", "required": false, "schema": { "type": "string", "format": "date-time" } } ], "responses": { "200": { "description": "The total number of runs and usage hours for the requested `[start_time, end_time)` window", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Usage_Summary" }, "example": { "total_hours": 243.67, "run_count": 15 } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" }, "403": { "$ref": "#/components/responses/Forbidden" }, "404": { "$ref": "#/components/responses/NotFound" }, "405": { "$ref": "#/components/responses/MethodNotAllowed" }, "406": { "$ref": "#/components/responses/NotAcceptable" }, "429": { "$ref": "#/components/responses/TooManyRequests" }, "500": { "$ref": "#/components/responses/InternalError" } } } }, "/api/v0/usage/cap": { "get": { "operationId": "getUsageCap", "summary": "Gets the tenant's usage cap", "description": "Returns the usage cap set on the tenant: the maximum usage hours usable per entitlement period. Once the tenant's usage for the current entitlement period (as reported by `/api/v0/usage/summary` over that period) reaches the cap, new tests are rejected. The cap is never less than the current period's prepaid quantity; a cap that falls below it, for example after a new period begins or the contract is amended, is raised to the prepaid quantity. While no entitlement period is in force, the most recent period is treated as continuing, both for measuring usage and for the prepaid quantity. Tenants with no cap set receive a null `cap`.", "tags": [ "Usage" ], "responses": { "200": { "description": "The tenant's usage cap", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Usage_Cap" }, "example": { "cap": 5000, "max_cap": 22400 } } } }, "401": { "$ref": "#/components/responses/Unauthorized" }, "403": { "$ref": "#/components/responses/Forbidden" }, "405": { "$ref": "#/components/responses/MethodNotAllowed" }, "406": { "$ref": "#/components/responses/NotAcceptable" }, "429": { "$ref": "#/components/responses/TooManyRequests" }, "500": { "$ref": "#/components/responses/InternalError" } } } }, "/api/v0/usage/{run_id}": { "get": { "operationId": "getUsage", "summary": "Gets usage for a run", "description": "Returns the usage for a specific run id", "tags": ["Usage"], "parameters": [ { "name": "run_id", "in": "path", "description": "Unique identifier of the test run to retrieve usage for.", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "The usage hour info for the given run", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Usage_Entry" }, "example": { "run_id": "9043254f65c9c65d63fe043a0abfc7fc-53-1", "hours": 200, "start_time": "2026-04-28T13:49:49Z", "end_time": "2026-04-28T14:14:07Z" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" }, "403": { "$ref": "#/components/responses/Forbidden" }, "404": { "$ref": "#/components/responses/NotFound" }, "405": { "$ref": "#/components/responses/MethodNotAllowed" }, "406": { "$ref": "#/components/responses/NotAcceptable" }, "429": { "$ref": "#/components/responses/TooManyRequests" }, "500": { "$ref": "#/components/responses/InternalError" } } } } }, "components": { "parameters": { "Coverage_Run_Id": { "name": "run_id", "in": "path", "required": true, "description": "Unique identifier of the test run.", "schema": { "type": "string" } }, "Coverage_Limit": { "name": "limit", "in": "query", "required": false, "description": "Maximum number of entries to return. Values outside 1–1000 return 400 Bad Request. The limit may change between requests using a cursor.", "schema": { "type": "integer", "default": 50, "minimum": 1, "maximum": 1000 } }, "Coverage_After": { "name": "after", "in": "query", "required": false, "description": "Opaque cursor returned by a previous response. Resumes scanning at the position recorded by that cursor, without repeating entries from the previous page. The cursor is a continuation token, not the identifier of the last or next entry. Omit to begin at the start of the collection.\n\nCursors are scoped to the run and collection, including module_id for a module's instances. Use each cursor only with the same endpoint and path parameters. Invalid cursors or cursors used with a different scope return 400 Bad Request.\n\nCursors remain valid while the run's API data is retained. Treat cursor values as opaque; do not parse or construct them.", "schema": { "type": "string", "minLength": 1 } } }, "schemas": { "Coverage_Module": { "type": "object", "required": [ "module_id", "name", "has_catalog", "num_locations" ], "properties": { "module_id": { "type": "string", "description": "Opaque symbol catalog identifier. Unique within the run. Not necessarily a native build ID." }, "name": { "type": "string", "description": "Display label. Not necessarily unique." }, "has_catalog": { "type": "boolean", "description": "Whether a symbol catalog is available for this module. When false, the module ran coverage-instrumented code but nothing describes its files, functions, or locations: language, instrumentor, and the file and function counts are omitted, and no file, function, or location detail will be available for it. Usually the module's binary was not provided for symbolization when the environment was built." }, "language": { "type": "string", "description": "Language recorded in the catalog header. Omitted if unavailable. Values are not a closed enumeration." }, "instrumentor": { "type": "string", "description": "Instrumentor recorded in the catalog header. Omitted if unavailable. Values are not a closed enumeration." }, "num_files": { "type": "integer", "format": "int64", "minimum": 0, "description": "Number of distinct file entries in the published catalog. Omitted when has_catalog is false." }, "num_functions": { "type": "integer", "format": "int64", "minimum": 0, "description": "Number of function entries in the published catalog, grouped by file and qualified function name. Omitted when has_catalog is false." }, "num_locations": { "type": "integer", "format": "int64", "minimum": 0, "description": "Number of coverage locations in the published catalog or, when has_catalog is false, the number of instrumentation points the program reported when it loaded the module. This is not a count of source lines or hits." } }, "additionalProperties": true }, "Coverage_Module_Instance": { "type": "object", "required": [ "instance_id", "container_name", "program_path" ], "properties": { "instance_id": { "type": "string", "description": "Opaque, stable identifier for this instance within the run. Repeated observations of the same (module_id, container_name, program_path) retain the same identifier." }, "container_name": { "type": "string", "description": "Name of the container running the program. Part of the instance identity; container lifetime IDs are not used." }, "program_path": { "type": "string", "description": "Path to the process's executable, as recorded at runtime. For\ninterpreted programs, this is the interpreter binary. Compared\nexactly as recorded, without normalization or remapping.\n" } }, "additionalProperties": true, "description": "A program that loaded the module identified by module_id in the request path." }, "Coverage_Page": { "type": "object", "required": [ "cursor", "has_more" ], "properties": { "cursor": { "type": "string", "description": "Opaque continuation token marking the next position to examine. It is not an entry identifier. Pass it unchanged as after to resume without repeating entries from this page. For modules, it marks the position immediately after the last returned module. For module instances, it also accounts for positions skipped because they belong to other modules. Always present, including on empty pages; it may advance even when no instances are returned. At the current end of a list, retain this cursor and use it to poll for new entries.", "minLength": 1 }, "has_more": { "type": "boolean", "description": "Whether more matching entries were available beyond this page when the request was evaluated. False does not mean the collection is final. Clients may poll using the returned cursor." } }, "additionalProperties": true }, "Coverage_Module_List_Response": { "allOf": [ { "$ref": "#/components/schemas/Coverage_Page" }, { "type": "object", "required": [ "data" ], "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/Coverage_Module" } } } } ] }, "Coverage_Module_Instance_List_Response": { "allOf": [ { "$ref": "#/components/schemas/Coverage_Page" }, { "type": "object", "required": [ "data" ], "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/Coverage_Module_Instance" } } } } ] }, "Error_Response": { "type": "object", "description": "Standard error envelope returned by all error responses.", "required": ["message"], "properties": { "message": { "type": "string", "description": "A human-readable explanation of what went wrong.", "example": "limit must be between 1 and 100" } }, "additionalProperties": true }, "Stream_Error": { "type": "object", "description": "An error that may be emitted as an individual line in an NDJSON stream. This occurs when the server encounters an error after the server responds with a `200 OK` status and before the stream completes.", "required": ["error"], "properties": { "error": { "type": "string", "description": "The error message.", "example": "An unexpected error occurred. Please try again later." } }, "additionalProperties": true }, "Run_List_Response": { "type": "object", "description": "A page of test run summaries returned by the list endpoint. Use `next_cursor` to iterate through all available results.", "required": ["data"], "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/Run_Summary" } }, "next_cursor": { "type": "string", "nullable": true, "description": "Opaque pagination cursor. Pass as the `after` query parameter to fetch the next page. Null if no more pages." } } }, "Run_Summary": { "type": "object", "required": ["run_id", "status", "created_at", "launcher"], "properties": { "run_id": { "type": "string", "description": "Unique identifier for the test run.", "example": "9325f006ffd3a399a8497bc888878b97-50-1" }, "status": { "$ref": "#/components/schemas/Run_Status" }, "created_at": { "type": "string", "format": "date-time", "description": "Timestamp when the test run was created (ISO 8601)." }, "started_at": { "type": "string", "format": "date-time", "nullable": true, "description": "Timestamp when the test run started executing. Null if the run has not yet started." }, "completed_at": { "type": "string", "format": "date-time", "nullable": true, "description": "Timestamp when the test run finished. Null if the run is still in progress or has not started." }, "creator": { "type": "object", "nullable": true, "description": "Information about who or what created this test run. Null if the creator is unknown.", "allOf": [ { "$ref": "#/components/schemas/Creator_Info" } ] }, "launcher": { "type": "string", "description": "The programmatic name of the launcher that kicked off this test run. Pass it to `POST /api/v1/launch/{launcher_name}` to launch another run from the same launcher, or to the `launcher` filter when listing runs.", "example": "payments_nightly" }, "launcher_display_name": { "type": "string", "description": "The launcher's human-readable display name, when the launcher configures one and the run recorded it. Omitted otherwise; fall back to `launcher` for display.", "example": "Payments Nightly" }, "description": { "type": "string", "nullable": true, "description": "A human-readable description of the run. Null if no description was provided.", "example": "basic_test on main" }, "parameters": { "type": "object", "nullable": true, "description": "Test run parameters. Null if no parameters were specified.", "allOf": [ { "$ref": "#/components/schemas/Params" } ] }, "links": { "type": "object", "nullable": true, "description": "Relevant links for this test run. Null if no links are available yet.", "allOf": [ { "$ref": "#/components/schemas/Run_Links" } ] } } }, "Run_Detail": { "description": "Full details of a test run. Extends Run_Summary with run information, results, and environment metadata.", "allOf": [ { "$ref": "#/components/schemas/Run_Summary" }, { "type": "object", "properties": { "results": { "type": "object", "additionalProperties": true, "description": "Aggregate results for the test run. Structure varies by run type. May be absent or partial for runs that have not yet completed." }, "sub_status": { "type": "string", "enum": ["Ready"], "description": "Indicates whether the run is ready to use. For multiverse debugging sessions, this is `Ready` once the debugging session is ready. For all other runs, this is `Ready` while the run is in progress. Absent otherwise." }, "failure_moment": { "type": "object", "nullable": true, "description": "The moment at which the run became incomplete. Populated only when the run is incomplete. Pass this moment's `vtime` and `input_hash` to the logs endpoint to retrieve logs around the event that caused the run to become incomplete.", "allOf": [ { "$ref": "#/components/schemas/Moment" } ] }, "failure_reason": { "type": "string", "nullable": true, "description": "The reason the run became incomplete. Populated only when the run is incomplete." } } } ] }, "Launch_Response": { "type": "object", "description": "Response returned when a test is successfully launched.", "required": ["runId", "statusCode"], "properties": { "runId": { "type": "string", "nullable": true, "description": "Unique identifier for the launched run.", "example": "c8d2f4a6e0b3197d5f8a2c4e6b0d3f79-49-1" }, "statusCode": { "type": "integer", "description": "HTTP status code indicating whether the test was successfully started.", "example": 200 } }, "additionalProperties": true }, "Version_Response": { "type": "object", "description": "Version information returned by the version endpoint.", "required": ["latest_api_version", "release_version"], "properties": { "latest_api_version": { "type": "string", "description": "The API version exposed by this server.", "example": "v1" }, "release_version": { "type": "string", "description": "The underlying Antithesis release version.", "example": "56.0" } }, "additionalProperties": true }, "Launch_MVD_Response": { "type": "object", "description": "Response returned when a debugging session request is successfully accepted.", "required": ["statusCode"], "properties": { "runId": { "type": "string", "nullable": true, "description": "Unique identifier for the launched debugging session.", "example": "c8d2f4a6e0b3197d5f8a2c4e6b0d3f79-49-1" }, "statusCode": { "type": "integer", "description": "HTTP status code indicating whether the debugging session was accepted.", "example": 202 } }, "additionalProperties": true }, "Launch_Error_Response": { "type": "object", "description": "Error envelope returned by the launch endpoints (`/api/v1/launch/{launcher_name}` and `/api/v1/launch/debugging`). These endpoints are fronted by the test-launch webhook and report failures with a status code rather than the `Error_Response` `message` envelope used by the other endpoints. A null `runId` is included once a request reaches the test launcher. Some gateway-level rejections (for example authentication or rate limiting) may instead return an empty body.", "required": ["statusCode"], "properties": { "statusCode": { "type": "integer", "description": "HTTP status code of the error. Matches the HTTP status of the response.", "example": 404 }, "runId": { "type": "string", "nullable": true, "description": "Always `null` when present. Included once the request reaches the test launcher; omitted for requests rejected before then." } }, "additionalProperties": true }, "Launch_Request": { "type": "object", "description": "Request body for launching a test.", "required": ["params"], "properties": { "params": { "description": "Launch parameters. All parameters are optional. All vcs.* parameters are filled in by the [Antithesis GitHub Action](https://github.com/antithesishq/antithesis-trigger-action) if the test run is triggered by it; but you can set them by hand.", "allOf": [ { "$ref": "#/components/schemas/Params" } ] } }, "additionalProperties": true }, "Launch_MVD_Request": { "type": "object", "description": "Request body for launching a multiverse debugging session.", "required": ["params"], "properties": { "params": { "description": "Launch parameters. All parameters are optional.", "allOf": [ { "$ref": "#/components/schemas/MVD_Params" } ] } }, "additionalProperties": true }, "Registry_Response": { "type": "object", "description": "Where this tenant's container images are pushed, and whose login to push with.", "required": ["auth", "registry_url"], "properties": { "auth": { "type": "string", "enum": ["antithesis", "docker"], "description": "`antithesis`: authenticate to `registry_url` with the same credential as this API. `docker`: use the login already configured in Docker for `registry_url`.", "example": "antithesis" }, "registry_url": { "type": "string", "description": "The registry host and path to push to, without a scheme.", "example": "registry.example.antithesis.com" } }, "additionalProperties": true }, "Execute_Command_Request": { "type": "object", "description": "Request body for executing a command in a test run's in-progress session.", "required": ["moment", "script", "container"], "properties": { "moment": { "$ref": "#/components/schemas/Moment" }, "script": { "type": "string", "description": "Bash script to execute in the specified container or on the host.", "example": "uname -a" }, "container": { "type": "string", "description": "Name or ID of the container in which to execute the script. Use `_ANTITHESIS_HOST` to execute directly on the host.", "example": "my-service" }, "include_system_logs": { "type": "boolean", "default": false, "description": "When true, the streamed output includes every event observed during the command's execution, not just the command's own stdout and stderr. Defaults to false." }, "include_filtered_logs": { "type": "boolean", "default": false, "description": "When true, the streamed output also includes logs that are filtered out of the run's logs by the Retroactive Logging feature. Enabling this adds a short setup step before the command runs; that time does not count toward `timeout_seconds`. Defaults to false." }, "timeout_seconds": { "type": "integer", "format": "uint64", "minimum": 0, "default": 600, "description": "Maximum number of seconds to wait for the command to exit before emitting a `timed_out` result. Defaults to 600. Time spent rewarming the requested moment does not count toward this timeout. Rewarming has a separate one-hour limit; exceeding it returns an error and the command is not executed." }, "source_session_id": { "type": "string", "minLength": 1, "description": "Debugging session ID of the run the moment comes from, if it's different from `run_id`. The server rewarms the moment from this run. Specify either this or `source_run_id`, but not both. If neither is given, the server falls back to the source the run was launched with: for a run launched by the multiverse debugging webhook, `antithesis.debugging.session_id` if set, otherwise `antithesis.debugging.run_id`. If no source is available and the moment is cold, the request is rejected.", "example": "9c69eff4f842f988a0fea0acfc2d6195-61-2" }, "source_run_id": { "type": "string", "minLength": 1, "description": "ID of the run the moment comes from, if it's different from `run_id`. The server rewarms the moment from this run. Specify either this or `source_session_id`, but not both. If neither is given, the server falls back to the multiverse debugging launch parameters; see `source_session_id`.", "example": "9c69eff4f842f988a0fea0acfc2d6195-61-2" } }, "additionalProperties": true }, "Rewarm_Progress": { "description": "A progress record in an execute-command stream. Emitted only when the requested `moment` was not warm in the live run and had to be rewarmed from the source run. Every record has `status` `rewarming`. The first record has `percent_complete` 0; later records are monotonic but may skip values. The final record has `percent_complete` 100 and is emitted immediately before the command starts executing. No progress records are emitted once command output begins.", "type": "object", "required": ["percent_complete", "status"], "properties": { "percent_complete": { "type": "integer", "minimum": 0, "maximum": 100, "description": "Share of the inputs to the requested moment from the source run replayed so far, as a whole percentage.", "example": 40 }, "status": { "type": "string", "enum": ["rewarming"], "description": "Always `rewarming` on a progress record; this is what distinguishes it from a `Command_Termination_Result`. Additional values may be added in future." } }, "additionalProperties": true }, "Command_Termination_Result": { "description": "The terminal record in a successful execute-command stream. Exactly one result is emitted after all command-output events, and the stream closes after it.", "oneOf": [ { "type": "object", "required": ["status", "exit_code", "end_moment"], "properties": { "status": { "type": "string", "enum": ["exited"] }, "exit_code": { "type": "integer", "format": "int64", "nullable": true, "description": "The command's exit code, or null if no exit code was available." }, "end_moment": { "description": "The moment immediately after the command finished. Pass it as the `moment` of a subsequent request to chain commands.", "allOf": [ { "$ref": "#/components/schemas/Moment" } ] } }, "additionalProperties": true }, { "type": "object", "required": ["status"], "properties": { "status": { "type": "string", "enum": ["timed_out"] }, "last_moment": { "description": "The latest command-output moment observed before the timeout, if any. This is informational and does not imply that the command stopped executing.", "allOf": [ { "$ref": "#/components/schemas/Moment" } ] } }, "additionalProperties": true } ], "discriminator": { "propertyName": "status" } }, "Search_Request": { "type": "object", "description": "Request body for searching events with the event sets.", "required": ["query"], "properties": { "query": { "type": "string", "description": "An event set query. A pipeline of dot-separated verbs (`matches`, `contains`, `not_matches`, `excludes`, `map`, `filter`, `flatmap`, `fold`, `narrow`, `as_base_for`, `union`, `intersect`, `difference`, `distinct_by_moment`, `with_last`, `with_next`) applied to the underlying event stream. See the [event sets reference](/docs/reference/event-set-reference/) for the full grammar.", "example": "matches({container: \"etcd0\", stream: \"error\"}).filter(ev => ev.output_text.includes(\"raft\"))" }, "is_passing_predicate": { "type": "string", "description": "A JavaScript function from event to boolean, as a property's predicate: a truthy result means the event is passing example on the property as defined by `is_passing_predicate` and the `query` event set. A predicate that does not parse, is not a function, or throws is rejected with `400 Bad Request`.", "example": "ev => !ev.output_text.includes(\"panic\")" }, "passing": { "type": "boolean", "description": "Whether to return passing (true) or failing (false) examples according to `is_passing_predicate`. Defaults to `false`, the failing events. Requires `is_passing_predicate`.", "default": false }, "is_streaming": { "type": "boolean", "description": "When `true`, the connection stays open and the server keeps emitting newly observed events as they arrive. When `false`, the server closes the connection after returning the current matching set. Defaults to `false`.", "default": false }, "limit": { "type": "integer", "description": "Maximum number of events to return. Must be between 1 and 999. Defaults to 50. Once the requested number of events have been returned the server terminates the connection; this applies whether or not `is_streaming` is `true`.", "default": 50, "minimum": 1, "maximum": 999 }, "validate_only": { "type": "boolean", "description": "When `true`, the server only validates the syntax of `query` without executing it. The server responds with `200 OK` and an empty body for a syntactically valid query, and for an invalid query, the server responds with `400 Bad Request`. No events are returned and no count is computed. Defaults to `false`.", "default": false } }, "additionalProperties": true }, "Search_Count_Request": { "type": "object", "description": "Request body for counting events that match an event set query.", "required": ["query"], "properties": { "query": { "type": "string", "description": "An event set query. A pipeline of dot-separated verbs (`matches`, `contains`, `not_matches`, `excludes`, `map`, `filter`, `flatmap`, `fold`, `narrow`, `as_base_for`, `union`, `intersect`, `difference`, `distinct_by_moment`, `with_last`, `with_next`) applied to the underlying event stream. See the [event sets reference](/docs/reference/event-set-reference/) for the full grammar.", "example": "matches({container: \"etcd0\", stream: \"error\"}).filter(ev => ev.output_text.includes(\"raft\"))" }, "is_passing_predicate": { "type": "string", "description": "A JavaScript function from event to boolean, as a property's predicate: a truthy result means the event is passing example on the property as defined by `is_passing_predicate` and the `query` event set. A predicate that does not parse, is not a function, or throws is rejected with `400 Bad Request`.", "example": "ev => !ev.output_text.includes(\"panic\")" }, "passing": { "type": "boolean", "description": "Whether to return passing (true) or failing (false) examples according to `is_passing_predicate`. Defaults to `false`, the failing events. Requires `is_passing_predicate`.", "default": false }, "validate_only": { "type": "boolean", "description": "When `true`, the server only validates the syntax of `query` without executing it. The server responds with `200 OK` and an empty body for a syntactically valid query, and for an invalid query, the server responds with `400 Bad Request`. No count is computed. Defaults to `false`.", "default": false } }, "additionalProperties": true }, "Search_Count_Response": { "type": "object", "description": "Response returned by the event search count endpoint.", "required": ["count"], "properties": { "count": { "type": "integer", "format": "uint64", "minimum": 0, "description": "The total number of events matching the query." } }, "additionalProperties": true }, "Params": { "type": "object", "description": "Key-value pairs of run parameters. Used both when launching a test and when inspecting a run's configuration. All properties are optional.", "properties": { "antithesis.config_image": { "type": "string", "description": "The image version of your config image. This should be a single image version formatted in the same way as those in the `antithesis.images` parameter.", "example": "my-config:latest" }, "antithesis.description": { "type": "string", "description": "A description of the test run. Appears in report headers and any emails triggered by the run.", "example": "basic_test on main" }, "antithesis.duration": { "type": "string", "description": "Desired duration of the test run in minutes.", "example": "30" }, "antithesis.fault_exclusions": { "type": "string", "description": "A regular expression that identifies containers (or pods, on Kubernetes) that are excluded from fault injection. Defaults to no exclusions.\\\nThe expression is matched against the container name and uses the [Rust regex](https://docs.rs/regex/latest/regex/#syntax) syntax, which does not support lookaround or backreferences. The maximum length is 1024 characters.\\\nThread pausing faults are not affected, because they are not scoped to a container.", "example": "^(raft-client|raft-monitor)$" }, "antithesis.fault_tolerance": { "type": "string", "enum": ["none", "resilient", "high_availability", "legacy"], "description": "The level of faults that Antithesis injects:\\\n`none`: No faults.\\\n`resilient`: Faults that degrade the system without stopping any node or network link: baseline latency, `Slowed` or `Jammed` clogs, node pauses, CPU modulation, thread pausing, and clock skips.\\\n`high_availability`: Everything in `resilient`, plus partitions, `Stopped` clogs, and node termination.\\\n`legacy`: Enables all network faults and thread pausing. Not recommended except for backwards compatibility with a custom notebook.", "example": "resilient" }, "antithesis.filter_logs_matching": { "type": "string", "description": "An [RE2](https://github.com/google/re2/wiki/Syntax) pattern matching log lines to suppress while the test runs. Suppressed lines can be recovered in the [Multiverse Debugger](/docs/product/debugging/simple_mvd/). Matching is unanchored and case-sensitive, so any line containing a match is suppressed; prefix the pattern with `(?i)` for case-insensitive matching. Lookahead, lookbehind and backreferences are not supported. See [Retroactive logging](/docs/product/launching_tests/#retroactive-logging).", "example": "(?i)^\\s*(TRACE|DEBUG)\\b" }, "antithesis.filter_source_matching": { "type": "string", "description": "An [RE2](https://github.com/google/re2/wiki/Syntax) pattern matching the sources whose output should be suppressed while the test runs. Where `antithesis.filter_logs_matching` selects individual lines by their content, this suppresses a matching source's output in its entirety. A source is the emitter of a log line, usually the name of the process that wrote it; the `source` field on each log line shows the exact names available to match against. The pattern is applied to the source name rather than to the line, and carries the same RE2 restrictions as `antithesis.filter_logs_matching`. This parameter has no equivalent field in the test launcher dialogue. See [Retroactive logging](/docs/product/launching_tests/#retroactive-logging).", "example": "^metrics-agent$" }, "antithesis.images": { "type": "string", "description": "A semicolon-delimited list of container image versions needed in the testing environment. Each entry in the format `[REGISTRY/]NAME(:TAG|@DIGEST)`. In most cases, images are parsed from the orchestration configuration (e.g. `docker-compose.yaml` or `/manifests`) and do not need to be specified here. It is recommended to use a digest over a tag. Images specified by digest will be tagged as `latest` within the Antithesis environment. The default registry is `us-central1-docker.pkg.dev/molten-verve-216720/$TENANT_NAME-repository/`. When images mentioned in the config are also passed via this parameter, the value here overwrites the config. We recommend only using this parameter for images not already mentioned in the config files.", "example": "registry/container_1:tag1; registry/container_2:latest" }, "antithesis.is_ephemeral": { "type": "string", "nullable": true, "enum": ["true", "false"], "description": "A boolean (represented as `\"true\"` or `\"false\"`) that indicates whether or not the run's results should be reflected in future reports as a historic result. Set to `\"true\"` when kicking off one-off, exploratory runs. Defaults to `\"false\"`." }, "antithesis.performance_tier": { "type": "string", "enum": ["standard", "fast", "turbo"], "description": "The performance tier to use for the test run. Higher tiers explore system states faster through increased parallelism, consuming more core hours. Defaults to \"standard\".", "example": "standard" }, "antithesis.report.recipients": { "type": "string", "description": "A semicolon-delimited list of email addresses to receive the triage report link. If not specified, emails are sent to the default users configured for the endpoint.", "example": "user1@example.com; user2@example.com" }, "antithesis.source": { "type": "string", "description": "An identifier used to separate property history in reports. Each property's history is generated from all previous runs sharing the same source value. Useful for tracking test history per branch.", "example": "main" }, "attrs.": { "type": "string", "description": "Arbitrary key-value annotations for the run. Replace `` with any name you choose, and pass as many `attrs.*` parameters as you like. Used to filter test runs in the Runs view.", "example": "staging" }, "run.caller_name": { "type": "string", "description": "The name of the application or script that launched the run, such as `antithesis-trigger-action` or `explore_the_multiverse.sh`.", "example": "antithesis-trigger-action" }, "run.caller_type": { "type": "string", "enum": ["antithesis_ui", "antithesis_scheduler", "internal_scheduler", "antithesis_cli", "github_action", "snouty", "user", "unknown"], "description": "The type of application or script that launched the run.", "example": "github_action" }, "run.creator_name": { "type": "string", "description": "A unique identifier for the person who launched the run, directly or indirectly.", "example": "jane.doe" }, "run.cron_schedule": { "type": "string", "description": "For recurring runs, a valid cron expression for when the run is scheduled. Omit it, or pass an empty string, for a one-off run.", "example": "0 2 * * 1-5" }, "run.team": { "type": "string", "description": "The team responsible for the run. Lets you filter runs by team, separately from the user or repository, which may be shared across teams.", "example": "Payments Team" }, "vcs.pr_id": { "type": "string", "description": "For runs started from a GitHub pull request, the PR number.", "example": "482" }, "vcs.pr_link": { "type": "string", "description": "For runs started from a GitHub pull request, the link to the PR.", "example": "https://github.com/acme/payments-service/pull/482" }, "vcs.pr_owner": { "type": "string", "description": "For runs started from a GitHub pull request, the GitHub username of the PR's author.", "example": "janedoe" }, "vcs.pr_title": { "type": "string", "description": "For runs started from a GitHub pull request, the title of the PR.", "example": "Fix duplicate charge on retry" }, "vcs.repo_branch": { "type": "string", "description": "For runs started from a version control repository, the branch under test.", "example": "fix/duplicate-charge" }, "vcs.repo_name": { "type": "string", "description": "For runs started from a version control repository, the repository name.", "example": "payments-service" }, "vcs.repo_owner": { "type": "string", "description": "For runs started from a version control repository, the repository owner.", "example": "acme" }, "vcs.repo_type": { "type": "string", "description": "For runs started from a version control repository, the type of version control, such as `github`, `gitlab` or `mercurial`.", "example": "github" }, "vcs.system_name": { "type": "string", "description": "A readable name for the system under test that doesn't change between versions.", "example": "Ledger API" }, "vcs.version_id": { "type": "string", "description": "A unique identifier for this version of the system under test. For runs started from a version control repository, the hash of the commit under test.", "example": "a1b2c3d4e5f678901234567890abcdef12345678" }, "vcs.version_link": { "type": "string", "description": "For runs started from a web-hosted version control repository, a link to the commit under test.", "example": "https://github.com/acme/payments-service/commit/a1b2c3d4e5f678901234567890abcdef12345678" } }, "additionalProperties": { "type": "string", "description": "Tooling integration parameters (`antithesis.integrations..callback_url` and `antithesis.integrations..token`, where type is `github`, `discord`, or `slack`), and any custom parameters Antithesis has created for your tenant. Other unrecognized parameters are discarded." } }, "MVD_Params": { "description": "Key-value pairs of multiverse debugging session parameters. Used when launching a debugging session. The target test run must be identified by exactly one of `antithesis.debugging.run_id` (preferred) or `antithesis.debugging.session_id`.", "oneOf": [ { "title": "Identified by run ID", "type": "object", "required": [ "antithesis.debugging.input_hash", "antithesis.debugging.run_id", "antithesis.debugging.vtime" ], "properties": { "antithesis.debugging.run_id": { "type": "string", "description": "The run ID of the test run you want to start debugging.", "example": "9043254f65c9c65d63fe043a0abfc7fc-53-1" }, "antithesis.debugging.input_hash": { "type": "string", "description": "Obtain it from the [copy moment button](/docs/product/understanding_test_results/reports/properties/#copy-moment) in the triage report.", "example": "-9067336385060865277" }, "antithesis.debugging.vtime": { "type": "string", "description": "The virtual time at which you want to start debugging. Obtain it from the [copy moment button](/docs/product/understanding_test_results/reports/properties/#copy-moment) in the triage report.", "example": "45.334635781589895" }, "antithesis.event_description": { "type": "string", "description": "A description of the debugging event or session.", "example": "Investigate the failed assertion at this moment" }, "antithesis.report.recipients": { "type": "string", "description": "A semicolon-delimited list of email addresses that receive the link to the debugging session when ready. If not specified, emails are sent to the default users configured for the endpoint.", "example": "user1@example.com; user2@example.com" } } }, { "title": "Identified by session ID", "type": "object", "required": [ "antithesis.debugging.input_hash", "antithesis.debugging.session_id", "antithesis.debugging.vtime" ], "properties": { "antithesis.debugging.session_id": { "type": "string", "description": "Identifies the test run you want to start debugging. Prefer `antithesis.debugging.run_id` for new integrations.", "example": "d5d1c9cf0e64b5dd69b00e97b07fe3f4-18-1" }, "antithesis.debugging.input_hash": { "type": "string", "description": "Obtain it from the [copy moment button](/docs/product/understanding_test_results/reports/properties/#copy-moment) in the triage report.", "example": "-9067336385060865277" }, "antithesis.debugging.vtime": { "type": "string", "description": "The virtual time at which you want to start debugging. Obtain it from the [copy moment button](/docs/product/understanding_test_results/reports/properties/#copy-moment) in the triage report.", "example": "45.334635781589895" }, "antithesis.event_description": { "type": "string", "description": "A description of the debugging event or session.", "example": "Investigate the failed assertion at this moment" }, "antithesis.report.recipients": { "type": "string", "description": "A semicolon-delimited list of email addresses that receive the link to the debugging session when ready. If not specified, emails are sent to the default users configured for the endpoint.", "example": "user1@example.com; user2@example.com" } } } ] }, "Event": { "type": "object", "description": "A single event. Each event includes its moment information. Fields vary by event source.", "required": ["moment"], "properties": { "moment": { "$ref": "#/components/schemas/Moment" } }, "additionalProperties": true }, "Moment": { "type": "object", "description": "Identifies a specific moment in the run's execution timeline.", "required": ["input_hash", "vtime"], "properties": { "input_hash": { "type": "string", "description": "The input hash value identifying the moment.", "example": "-3625518438076122494" }, "vtime": { "type": "string", "description": "The virtual time value identifying the moment.", "example": "398.4898056755774" } }, "additionalProperties": true }, "Build_Log_Line": { "type": "object", "description": "A single build log line.", "required": ["timestamp", "text"], "properties": { "timestamp": { "type": "string", "format": "date-time", "description": "UTC timestamp of the log line (ISO 8601).", "example": "2025-03-20T02:01:12Z" }, "stream": { "type": "string", "enum": ["stdout", "stderr"], "description": "Whether this line is from standard output or standard error." }, "text": { "type": "string", "description": "The log line text.", "example": "Building image payments-service..." } }, "additionalProperties": true }, "Property_List_Response": { "type": "object", "description": "A page of property results returned by the properties endpoint. Use `next_cursor` to iterate through all available results.", "required": [ "data" ], "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/Property" } }, "total_count": { "type": "integer", "minimum": 0, "description": "Total properties matching the status filter at the time of the read. Omitted for runs created before Antithesis version 66." }, "response_count": { "type": "integer", "minimum": 0, "description": "Number of properties in this page. Omitted for runs created before Antithesis version 66." }, "next_cursor": { "type": "string", "nullable": true, "description": "Opaque pagination cursor. Pass as the `after` query parameter to fetch the next page. Null if no more pages." } } }, "Property_Base": { "type": "object", "description": "Shared fields for all property results. A property result from a test run. Properties with `is_group` set to true represent a group property that contain other individual properties; individual properties within that group reference it via the `group` field.", "required": ["name", "status", "is_event"], "properties": { "id": { "type": "string", "description": "An opaque, unique, stable identifier for the property within its run." }, "name": { "type": "string", "description": "Display name of the property; names need not be unique." }, "description": { "type": "string", "nullable": true, "description": "A human-readable description of the property." }, "category": { "type": "string", "description": "Property category, omitted when unavailable." }, "team": { "type": "string", "description": "Owning team, omitted when unavailable." }, "event_set": { "type": "string", "description": "Serialized event-set definition, omitted when unavailable. Included in property responses and stream notifications when available." }, "passing_predicate": { "type": "string", "description": "Serialized passing predicate, omitted when unavailable. Included in property responses and stream notifications when available." }, "status": { "$ref": "#/components/schemas/Property_Status" }, "is_event": { "type": "boolean", "description": "Whether this property is an event-based property. When true, examples and counterexamples are Event objects; when false, they may have any shape. If `is_event` is false, it's evaluated at the level of a whole test rather than a specific branch of execution, e.g., 'Recent version of software was provided' is evaluated at a whole test level and is independent of a branch of execution." }, "is_group": { "type": "boolean", "description": "When true, this property represents a group property that contains other properties. Individual properties belonging to this group will reference it by name via the `group` field." }, "group": { "type": "string", "description": "The name of the group this property belongs to. Present only for properties that are part of a group." }, "example_count": { "type": "integer", "format": "uint32", "nullable": true, "description": "Total number of examples observed." }, "counterexample_count": { "type": "integer", "format": "uint32", "nullable": true, "description": "Total number of counterexamples observed." } }, "additionalProperties": true }, "Event_Property": { "description": "A property where `is_event` is true. Examples and counterexamples are Event objects.", "allOf": [ { "$ref": "#/components/schemas/Property_Base" }, { "type": "object", "properties": { "is_event": { "description": "Always `true` for event properties. Discriminates this branch of the `oneOf`.", "enum": [true] }, "examples": { "type": "array", "description": "A sample of example events that satisfy the property. This is not an exhaustive list.", "items": { "$ref": "#/components/schemas/Event" } }, "counterexamples": { "type": "array", "description": "A sample of counterexample events that violate the property. This is not an exhaustive list.", "items": { "$ref": "#/components/schemas/Event" } } } } ] }, "Non_Event_Property": { "description": "A property where `is_event` is false. Examples and counterexamples are arbitrary JSON values whose shape varies by property.", "allOf": [ { "$ref": "#/components/schemas/Property_Base" }, { "type": "object", "properties": { "is_event": { "description": "Always `false` for non-event properties. Discriminates this branch of the `oneOf`.", "enum": [false] }, "examples": { "type": "array", "description": "A sample of example instances that satisfy the property. This is not an exhaustive list.", "items": {} }, "counterexamples": { "type": "array", "description": "A sample of counterexample instances that violate the property. This is not an exhaustive list.", "items": {} } } } ] }, "Property": { "description": "A property result from a test run. When `is_event` is true, examples and counterexamples are Event objects; otherwise, they may have any shape.", "oneOf": [ { "$ref": "#/components/schemas/Event_Property" }, { "$ref": "#/components/schemas/Non_Event_Property" } ] }, "Property_Status": { "type": "string", "enum": [ "Passing", "Failing", "Pending" ], "description": "Current property status. Pending means the property has not resolved. Runs created before Antithesis version 66 report only Passing or Failing." }, "Run_Status": { "type": "string", "enum": ["starting", "in_progress", "completed", "cancelled", "incomplete", "unknown"], "description": "Current lifecycle status of a test run. `starting`: the run is being set up. `in_progress`: the run is actively running. `completed`: the run finished successfully. `cancelled`: the run was cancelled before completion. `incomplete`: the run did not complete successfully. `unknown`: the status of the run is unknown." }, "First_Reached": { "type": "object", "description": "When the run first reached an item; for a function, when it reached any of the function's locations. Omitted if the run never reached it.", "required": [ "run_seconds", "moment" ], "properties": { "run_seconds": { "type": "number", "description": "Seconds after exploration began.", "example": 512.3 }, "moment": { "description": "The branch and step in which the run first observed the item.", "allOf": [ { "$ref": "#/components/schemas/Moment" } ] } }, "additionalProperties": true }, "Location_Coverage": { "type": "object", "description": "One instrumented location, with whether and when the run first reached it.", "required": [ "module_id", "address", "function" ], "properties": { "module_id": { "type": "string", "description": "Opaque ID of the module the location belongs to.", "example": "c1d2e3f4a5b60718293a4b5c6d7e8f9012345678" }, "address": { "type": "string", "description": "Address as a decimal string. Unique within the module; treat it as opaque. Included to distinguish between edges that have the same syntactic representation (such as an `if` statement's match and fall-though edges in a Python program)", "example": "4856880" }, "file": { "type": "string", "description": "Source file as recorded at build time. Omitted if the compiler recorded none.", "example": "src/raft/append.cc" }, "function": { "type": "string", "description": "Function containing this location, demangled where possible.", "example": "raft::Log::append" }, "class": { "type": "string", "description": "Class or type enclosing the location's function: the binary name in Java, the full type name in C#, the receiver's base type for a Go method, the enclosing class's qualified name in Python, and the nearest enclosing class in JavaScript. Omitted for functions outside any class, and for native and WebAssembly modules, whose catalogs record none." }, "begin_line": { "type": "integer", "description": "First line of the location. Omitted if not recorded.", "example": 57 }, "begin_column": { "type": "integer", "description": "First column of the location. Omitted if not recorded.", "example": 9 }, "end_line": { "type": "integer", "description": "Last line of the location. Omitted if not recorded.", "example": 57 }, "end_column": { "type": "integer", "description": "Last column of the location. Omitted if not recorded.", "example": 9 }, "first_reached": { "$ref": "#/components/schemas/First_Reached" } }, "additionalProperties": true }, "Creator_Info": { "type": "object", "description": "Information about who or what created this test run. Distinguishes between CI-triggered test runs, manual user-initiated test runs, and agent-driven test runs.", "properties": { "name": { "type": "string", "description": "The name of the creator.", "example": "demo" }, "type": { "type": "string", "description": "The type of creator (e.g. \"ci\", \"user\", \"agent\").", "example": "ci" } }, "additionalProperties": true }, "Run_Links": { "type": "object", "description": "Relevant links for this test run, providing direct access to the triage report.", "properties": { "triage_report": { "type": "string", "format": "uri", "description": "URL to the triage report for this test run." } }, "additionalProperties": true }, "Usage_List_Response": { "type": "object", "description": "A page of usage line items returned by the list endpoint. Use `next_cursor` to iterate through all available results.", "required": ["data"], "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/Usage_Entry" } }, "next_cursor": { "type": "string", "nullable": true, "description": "Opaque pagination cursor. Pass as the `after` query parameter to fetch the next page. Null if no more pages." } } }, "Usage_Entry": { "type": "object", "description": "A line item entry for the usage hours associated with a specific run.", "required": ["run_id", "hours", "start_time", "end_time"], "properties": { "run_id": { "type": "string", "description": "Unique identifier for the run of this usage entry.", "example": "9325f006ffd3a399a8497bc888878b97-50-1" }, "hours": { "type": "number", "description": "The number of usage hours associated with the run.", "example": 200.535 }, "start_time": { "type": "string", "format": "date-time", "description": "Timestamp when the run's billable usage began (ISO 8601).", "example": "2024-01-15T10:14:20Z" }, "end_time": { "type": "string", "format": "date-time", "description": "Timestamp when the run's billable usage ended (ISO 8601).", "example": "2024-01-15T12:34:56Z" } } }, "Usage_Cap": { "type": "object", "description": "The usage cap set on the tenant.", "required": [ "cap", "max_cap" ], "properties": { "cap": { "type": "number", "nullable": true, "description": "The maximum usage hours usable per entitlement period. At least the current period's prepaid quantity. Null if no cap is set.", "example": 5000 }, "max_cap": { "type": "number", "nullable": true, "description": "The highest cap the tenant may set on itself. Null when the tenant cannot set its own cap.", "example": 22400 } } }, "Usage_Summary": { "type": "object", "description": "A summary of the total number of billable runs and usage hours for the requested period.", "required": ["total_hours", "run_count"], "properties": { "total_hours": { "type": "number", "description": "The total number of usage hours for the requested period.", "example": 3200.62 }, "run_count": { "type": "integer", "description": "The total number of billable runs for the requested period." } } }, "Run_Stream_Notification": { "type": "object", "description": "Each notification has a `type`, and a `data` list of the properties associated with it. When Antithesis finds a property's first example or counterexample, it sends a `NEW_EXAMPLES_FOUND` notification. The property's `examples` or `counterexamples` list contains the new example. Later examples only increase `example_count` and `counterexample_count`. Other notifications may repeat examples you've already received. `RUN_FINALIZED` always has an empty `data` list, is sent whatever filters you set, and ends the stream.", "required": [ "type", "data" ], "properties": { "type": { "type": "string", "enum": [ "NEW_PROPERTIES_ADDED", "PROPERTIES_PASSED", "PROPERTIES_FAILED", "NEW_EXAMPLES_FOUND", "RUN_FINALIZED" ] }, "data": { "type": "array", "items": { "oneOf": [ { "$ref": "#/components/schemas/Event_Property" }, { "$ref": "#/components/schemas/Non_Event_Property" } ] }, "description": "Properties associated with this notification. Empty for RUN_FINALIZED." } } }, "Run_Status_Stream_Request": { "type": "object", "additionalProperties": false, "properties": { "notification_type_filter": { "type": "array", "nullable": true, "items": { "type": "string", "enum": [ "NEW_PROPERTIES_ADDED", "PROPERTIES_PASSED", "PROPERTIES_FAILED", "NEW_EXAMPLES_FOUND", "RUN_FINALIZED" ] }, "description": "Omit or use null for discovery and terminal property notifications. NEW_EXAMPLES_FOUND is opt-in and must be explicitly listed. An empty array suppresses all property notifications. RUN_FINALIZED is always delivered, irrespective of this filter." }, "property_filter": { "type": "array", "nullable": true, "items": { "type": "string" }, "description": "Only deliver entries for these property IDs. Omit or use null for all IDs; an empty array suppresses all property entries. RUN_FINALIZED is unaffected." } } } }, "responses": { "BadRequest": { "description": "Bad request — likely missing or invalid parameters.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error_Response" }, "example": { "message": "limit must be between 1 and 100" } } } }, "Unauthorized": { "description": "Unauthorized — invalid or missing authentication credentials.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error_Response" }, "example": { "message": "Invalid or expired bearer token." } } } }, "Forbidden": { "description": "Forbidden — the authenticated user does not have permission to access this resource.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error_Response" }, "example": { "message": "You do not have permission to access this resource." } } } }, "NotFound": { "description": "The requested resource was not found.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error_Response" }, "example": { "message": "Run not found: 9325f006ffd3a399a8497bc888878b97-48-1" } } } }, "MethodNotAllowed": { "description": "Method not allowed — the HTTP method is not supported for this endpoint.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error_Response" }, "example": { "message": "Resource not found" } } } }, "NotAcceptable": { "description": "Not acceptable — the requested content type in the Accept header is not supported by this endpoint.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error_Response" }, "example": { "message": "This endpoint does not support the requested Accept type." } } } }, "TooManyRequests": { "description": "Rate limit exceeded. The response includes a `Retry-After` header indicating the number of seconds to wait before retrying.\n\nWe recommend implementing a retry mechanism to handle rate limiting. Follow an exponential backoff schedule to reduce request volume when necessary, and add randomness (jitter) to the backoff schedule to avoid thundering-herd retries.", "headers": { "Retry-After": { "description": "The number of seconds to wait before retrying the request.", "schema": { "type": "integer", "minimum": 0, "example": 30 } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error_Response" }, "example": { "message": "Too many requests." } } } }, "ServiceUnavailable": { "description": "The API is temporarily unavailable. The response may include a `Retry-After` header indicating the number of seconds to wait before retrying. This is a transient condition; retry with exponential backoff.", "headers": { "Retry-After": { "description": "The number of seconds to wait before retrying the request.", "schema": { "type": "integer", "minimum": 0, "example": 30 } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error_Response" }, "example": { "message": "The events query backend is temporarily unavailable. The API is reachable but could not query stored events right now. Please retry with backoff." } } } }, "InternalError": { "description": "Unknown internal server error.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error_Response" }, "example": { "message": "An unexpected error occurred. Please try again later." } } } }, "Legacy_BadRequest": { "description": "Bad request — likely missing or invalid parameters.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Launch_Error_Response" }, "example": { "statusCode": 400 } } } }, "Legacy_Unauthorized": { "description": "Unauthorized — invalid or missing authentication credentials.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Launch_Error_Response" }, "example": { "statusCode": 401 } } } }, "Legacy_Forbidden": { "description": "Forbidden — the authenticated user does not have permission to access this resource.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Launch_Error_Response" }, "example": { "statusCode": 403 } } } }, "Legacy_NotFound": { "description": "The requested resource was not found — for example, the named launcher does not exist.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Launch_Error_Response" }, "example": { "statusCode": 404, "runId": null } } } }, "Legacy_MethodNotAllowed": { "description": "Method not allowed — the HTTP method is not supported for this endpoint.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Launch_Error_Response" }, "example": { "statusCode": 405 } } } }, "Legacy_NotAcceptable": { "description": "Not acceptable — the requested content type in the Accept header is not supported by this endpoint.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Launch_Error_Response" }, "example": { "statusCode": 406 } } } }, "Legacy_TooManyRequests": { "description": "Rate limit exceeded. The response includes a `Retry-After` header indicating the number of seconds to wait before retrying.\n\nWe recommend implementing a retry mechanism to handle rate limiting. Follow an exponential backoff schedule to reduce request volume when necessary, and add randomness (jitter) to the backoff schedule to avoid thundering-herd retries.", "headers": { "Retry-After": { "description": "The number of seconds to wait before retrying the request.", "schema": { "type": "integer", "minimum": 0, "example": 30 } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Launch_Error_Response" }, "example": { "statusCode": 429 } } } }, "Legacy_InternalError": { "description": "Unknown internal server error.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Launch_Error_Response" }, "example": { "statusCode": 500, "runId": null } } } } }, "securitySchemes": { "BearerAuth": { "type": "http", "scheme": "bearer", "description": "All endpoints require an API key. Pass it in the Authorization header as Authorization: Bearer . To obtain an API key, please contact support at support@antithesis.com or talk to our forward deployed engineers." } } } }