Skip to main content
Test run analysis report

1. Create a test run

curl -X POST "https://spacex.atlas.arenaphysica.com/api/v1/test-runs" \
  -H "Authorization: Bearer $ATLAS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Motor Controller Acceptance Test",
    "system_id": "<system_id>"
  }'
Save the uuid from the response:
export RUN_ID="<uuid from response>"

2. Register test data

Attach data files to the test run. Each file must already be in S3. Provide the S3 URL, file name, and size in bytes.
curl -X POST "https://spacex.atlas.arenaphysica.com/api/v1/test-runs/$RUN_ID/data" \
  -H "Authorization: Bearer $ATLAS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "file_name": "test_log.csv",
    "s3_url": "s3://your-bucket/test-data/test_log.csv",
    "file_size": 204800
  }'
You can register multiple data files in separate requests.

3. Generate an analysis report

Once data is registered, trigger Atlas to analyze it:
curl -X POST "https://spacex.atlas.arenaphysica.com/api/v1/test-runs/$RUN_ID/reports" \
  -H "Authorization: Bearer $ATLAS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"title": "Acceptance Test Analysis"}'
Save the uuid from the response:
export REPORT_ID="<uuid from response>"

4. Fetch the report

curl "https://spacex.atlas.arenaphysica.com/api/v1/test-runs/$RUN_ID/reports/$REPORT_ID" \
  -H "Authorization: Bearer $ATLAS_TOKEN"
Report generation runs asynchronously. Poll the endpoint until the report content is populated.