Manage reports with the Test Management API
Create, download, and delete Test Management reports with the REST API, scope them to runs, plans, or cases, and schedule email delivery.
The Reports API creates the same reports you create from the Reports tab of a project. You pick a report type, set the scope, and choose how often BrowserStack generates the report. You then download the generated file as CSV or PDF. Each report has an identifier in the form SC-1042. Report data is available as a file only. The API does not return report rows as JSON.
A report belongs to the project in the request URL. A request that names a report under a different project returns 404.
Note: Attribute filters, such as status or priority, are not available on the API yet. The API rejects a request with any key in
filterswith the codenot_supported.
Report types
Set report_type to one of the following values. The value is case-sensitive.
report_type value |
What the report covers | Download formats |
|---|---|---|
Test Run Summary |
Pass, fail, and progress totals for the test runs in scope. | |
Test Run Detailed Report |
One row per test case result in the test runs in scope. | CSV or PDF |
Test Plan Summary |
Progress of the test plans in scope. | |
Test Case Activity |
Test cases created and updated in the period. | CSV or PDF |
Requirement Traceability Report |
Requirements, their linked test cases, and the latest results. | CSV or PDF |
Exploratory Session Summary |
Exploratory testing sessions in scope. |
Report scope
The scope object states what a report covers. Set by to one value and add the fields that go with it. The report type decides which by values are valid. The following table lists each value.
scope.by value |
Other fields in scope
|
Report types that accept it |
|---|---|---|
creation_time |
period, or from and to
|
Test Run Summary, Test Run Detailed Report, Test Plan Summary, Test Case Activity, Exploratory Session Summary |
test_runs |
ids: test run identifiers, such as TR-42, up to 4000 |
Test Run Summary, Test Run Detailed Report, Requirement Traceability Report |
test_plans |
ids: test plan identifiers, such as TP-7 or STP-9, up to 300 |
Test Plan Summary |
sessions |
ids: numeric exploratory session IDs, such as 1024
|
Exploratory Session Summary |
project |
None | Requirement Traceability Report |
test_cases |
ids: test case identifiers, such as TC-88, up to 2000 |
Requirement Traceability Report |
A creation_time scope covers the items created in a window. Set period to last_one_day, last_one_week, last_one_month, or last_three_months. To use your own window, set from and to in YYYY-MM-DD format instead. The from date must not be later than to or in the future. Do not send period with from and to.
An item scope covers the items you list in ids. Send at least one identifier. BrowserStack looks up test run, test plan, and test case identifiers in the project in the request URL. If an identifier does not exist in that project, the request fails. The error names the array position of each unknown identifier. A sessions scope takes numeric session IDs, such as 1024, not prefixed identifiers. The API does not check that a session ID exists. A test_runs scope accepts up to 4000 identifiers. A test_plans scope accepts up to 300. A test_cases scope accepts up to 2000. A test case listed twice is stored once. A creation_time scope has no such limit.
A project scope covers every requirement in the project. Do not send ids with it.
A Requirement Traceability Report has no date window. To cover the runs of a past month, list the runs first and then scope the report to them:
- Call Get test runs list with
created_after,created_before, andinclude_closed=true. - Collect the
identifierof each run in the response. - Create the report with
"scope": { "by": "test_runs", "ids": [...] }.
Get reports list
Use this endpoint to find the identifier of a report. Search with q[query], which matches the title or the report type. You can also narrow the list by type or schedule. The list is paginated. For more information, refer to Pagination.
Request parameters
Request
curl -u "YOUR_USERNAME:YOUR_ACCESS_KEY" \
-G https://test-management.browserstack.com/api/v2/projects/PR-10/reports \
--data-urlencode 'q[query]=release' \
--data-urlencode 'report_type=Test Run Detailed Report' \
--data-urlencode 'page_size=30'
-
project_id* String
Identifier of the project.
-
q[query] String
Query parameter. Returns only reports whose title or report type contains this text.
-
report_type String
Query parameter. Returns only reports of this type. Use one of the
report_typevalues. -
is_scheduled Boolean
Query parameter.
truereturns only recurring reports. Any other value returns all reports. -
p Integer
Query parameter. Page number to return. Defaults to
1. -
page_size Integer
Query parameter. Number of reports per page. Use
30or300. Defaults to30.
Response attributes 200 OK json
Response
{
"success": true,
"reports": [
{
"id": "SC-1042",
"title": "Release 4.2 execution",
"description": "Failed and blocked cases for the release runs",
"report_type": "Test Run Detailed Report",
"project_id": "PR-10",
"project_ids": ["PR-10"],
"scope": { "by": "test_runs", "ids": ["TR-42", "TR-51"] },
"filters": {},
"frequency": "weekly",
"frequency_details": { "time": "05:00", "day": "monday" },
"next_run_at": "2026-11-09T05:00:00Z",
"is_scheduled": true,
"created_at": "2026-11-06T09:14:31Z",
"owner": { "email": "priya@example.com", "full_name": "Priya Nair" },
"mail_to": {
"users": [{ "email": "priya@example.com", "full_name": "Priya Nair" }],
"external_mails": ["auditor@partner.example"]
},
"latest_attachment": null
}
],
"info": {
"page": 1,
"page_size": 30,
"count": 1,
"prev": null,
"next": null
},
"scheduled_report_count": 1,
"total_report_count": 1
}
-
success Boolean
API call is executed successfully.
-
reports Array
βΆ SHOW VALUESThe reports on this page. Each item has the fields of a report object.
-
id String
Identifier of the report, such as
SC-1042. -
title String
Title of the report.
-
description String
Description of the report.
-
report_type String
Type of report.
-
project_id String
Identifier of the project in the request URL.
-
project_ids Array
Identifiers of all projects the report covers.
-
scope Object
βΆ SHOW VALUESWhat the report covers, in the same shape you sent it.
-
by String
How the report is scoped. One of
creation_time,test_runs,test_plans,sessions,project, ortest_cases. Each report type accepts a subset of these values. -
period String
With
creation_timeonly. One oflast_one_day,last_one_week,last_one_month, orlast_three_months. Do not send it withfromandto. -
from String
With
creation_timeonly. Start date inYYYY-MM-DDformat. Must not be later thantoor in the future. -
to String
With
creation_timeonly. End date inYYYY-MM-DDformat. -
ids Array
With
test_runs,test_plans,sessions, ortest_cases. Identifiers of the items to include. Forsessions, send numeric session IDs. The array must not be empty. Not allowed withcreation_timeorproject.
-
-
filters Object
Attribute filters. Always
{}on the current API. -
frequency String
How often BrowserStack generates the report. One of
once,daily,weekly, ormonthly. -
frequency_details Object
βΆ SHOW VALUESWhen a recurring report runs.
-
time String
Time of day to generate the report, in
HH:MM24-hour format, UTC. -
day String
For
weekly, the weekday in lowercase, such asmonday. Formonthly, the day of the month from1to28, as a string.
-
-
next_run_at String
Time of the next scheduled run, in UTC.
nullfor a one-time report. -
is_scheduled Boolean
truefor a recurring report. -
created_at String
Time the report was created on BrowserStack servers.
-
owner Object
βΆ SHOW VALUESUser who created the report.
-
email String
Email address of the owner.
-
full_name String
Full name of the owner.
-
-
mail_to Object
βΆ SHOW VALUESEmail recipients of the generated report. Both lists are empty for a one-time report.
-
users Array
βΆ SHOW VALUESRecipients who are users in your BrowserStack group.
-
email String
Email address of the recipient.
-
full_name String
Full name of the recipient.
-
-
external_mails Array
Email addresses outside your group.
-
-
latest_attachment Object
βΆ SHOW VALUESThe newest generated file in the project of the report. This file can belong to a different report.
nullwhen the project has no generated file.-
file_type String
MIME type of the file, such as
text/csv. -
generated_at String
Time the file was generated.
-
ready Boolean
Always
true.
-
-
-
info Object
βΆ SHOW VALUESPagination information.
-
page Integer
The current page being viewed displays a list of test cases.
-
page_size Integer
Number of test cases in the page.
-
count Integer
Total number of records across all pages.
-
prev Integer
Previous page number.
-
next Integer
Next page number.
-
-
scheduled_report_count Integer
Number of recurring reports that match the request filters.
-
total_report_count Integer
Total number of reports that match the request filters.
Create a report
A report needs a type, a scope, a recipient list, and a frequency. Set frequency to once for a single report. Set it to daily, weekly, or monthly for a recurring report. BrowserStack then generates the report on that schedule and emails it to the recipients in mail_to. BrowserStack stores recipients for recurring reports only. Send frequency_details with a recurring frequency. Without it, BrowserStack saves the report as a one-time report.
To cover more than one project, list every project in project_ids. The list replaces the project in the URL, so include that project and list it first. One report covers up to 60 projects. An Exploratory Session Summary or a Requirement Traceability Report covers one project only. A request that names another project for these report types returns 400. Cross-project reports must be enabled for your group, except for Test Case Activity reports. If they are not enabled, the request returns 403. Contact BrowserStack support to enable them.
Request parameters
Request
curl -u "YOUR_USERNAME:YOUR_ACCESS_KEY" \
-X POST https://test-management.browserstack.com/api/v2/projects/PR-10/reports \
-H "Content-Type: application/json" \
-d @report.json
-
project_id* String
Identifier of the project.
Request body
The following body creates a weekly Test Run Detailed Report for two test runs:
Request Body
{
"report_type": "Test Run Detailed Report",
"title": "Release 4.2 execution",
"description": "Failed and blocked cases for the release runs",
"scope": { "by": "test_runs", "ids": ["TR-42", "TR-51"] },
"mail_to": {
"users": ["priya@example.com"],
"external_mails": ["auditor@partner.example"]
},
"frequency": "weekly",
"frequency_details": { "time": "05:00", "day": "monday" }
}
-
report_type* String
Type of report. Use one of the values in the report types table. The value is case-sensitive.
-
scope* Object
βΆ SHOW VALUESWhat the report covers. Set
byand the fields that go with it. See the report scope section.-
by String
How the report is scoped. One of
creation_time,test_runs,test_plans,sessions,project, ortest_cases. Each report type accepts a subset of these values. -
period String
With
creation_timeonly. One oflast_one_day,last_one_week,last_one_month, orlast_three_months. Do not send it withfromandto. -
from String
With
creation_timeonly. Start date inYYYY-MM-DDformat. Must not be later thantoor in the future. -
to String
With
creation_timeonly. End date inYYYY-MM-DDformat. -
ids Array
With
test_runs,test_plans,sessions, ortest_cases. Identifiers of the items to include. Forsessions, send numeric session IDs. The array must not be empty. Not allowed withcreation_timeorproject.
-
-
title String
Title of the report. Up to 255 characters. Defaults to the report type and the creation date.
-
description String
Free-text description of the report.
-
filters Object
Reserved for attribute filters. Omit it or send
{}. Any key is rejected with the codenot_supported. - Show 4 more
-
project_ids Array
Identifiers of every project the report covers, such as
PR-10andPR-11. The list replaces the project in the URL, so include that project and list it first. Up to 60 projects in total. Not available for Exploratory Session Summary or Requirement Traceability Report. Cross-project reports must be enabled for your group, except for Test Case Activity reports. -
mail_to* Object
βΆ SHOW VALUESEmail recipients of the generated report. Send empty arrays to create a report with no recipients. BrowserStack stores recipients for recurring reports only.
-
users Array
Email addresses of users in your BrowserStack group.
-
external_mails Array
Email addresses outside your group. Up to 50 addresses.
-
-
frequency* String
How often BrowserStack generates the report. One of
once,daily,weekly, ormonthly. -
frequency_details Object
βΆ SHOW VALUESWhen a recurring report runs. Send it when
frequencyisdaily,weekly, ormonthly. Without it, BrowserStack saves the report as a one-time report.-
time String
Time of day to generate the report, in
HH:MM24-hour format, UTC. -
day String
For
weekly, the weekday in lowercase, such asmonday. Formonthly, the day of the month from1to28, as a string.
-
Note: The API no longer accepts the fields
report_timeframe,custom_date_range,report_filters,report_creation_mode, anddynamic_filtersfrom the earlier request format. It rejects a request that includes any of them with the coderemoved. For the replacement fields, refer to Migrate from the earlier request format.
The following bodies show the other scope options. Each body also needs mail_to and frequency.
A one-time Test Run Summary for the last month:
Request Body
{
"report_type": "Test Run Summary",
"scope": { "by": "creation_time", "period": "last_one_month" },
"mail_to": { "users": [], "external_mails": [] },
"frequency": "once"
}
A daily Test Case Activity report for a custom window:
Request Body
{
"report_type": "Test Case Activity",
"scope": { "by": "creation_time", "from": "2026-10-01", "to": "2026-10-31" },
"mail_to": { "users": ["priya@example.com"], "external_mails": [] },
"frequency": "daily",
"frequency_details": { "time": "05:00" }
}
A Requirement Traceability Report for every requirement in the project:
Request Body
{
"report_type": "Requirement Traceability Report",
"scope": { "by": "project" },
"mail_to": { "users": [], "external_mails": [] },
"frequency": "once"
}
A Requirement Traceability Report for the requirements linked to two test cases:
Request Body
{
"report_type": "Requirement Traceability Report",
"scope": { "by": "test_cases", "ids": ["TC-88", "TC-91"] },
"mail_to": { "users": [], "external_mails": [] },
"frequency": "once"
}
A Test Plan Summary for a test plan and one of its sub test plans:
Request Body
{
"report_type": "Test Plan Summary",
"scope": { "by": "test_plans", "ids": ["TP-7", "STP-9"] },
"mail_to": { "users": [], "external_mails": [] },
"frequency": "once"
}
Response attributes 201 Created json
The response returns the report with the scope you sent. The filters object is always {}.
Response
{
"success": true,
"data": {
"id": "SC-1042",
"title": "Release 4.2 execution",
"description": "Failed and blocked cases for the release runs",
"report_type": "Test Run Detailed Report",
"project_id": "PR-10",
"project_ids": ["PR-10"],
"scope": { "by": "test_runs", "ids": ["TR-42", "TR-51"] },
"filters": {},
"frequency": "weekly",
"frequency_details": { "time": "05:00", "day": "monday" },
"next_run_at": "2026-11-09T05:00:00Z",
"is_scheduled": true,
"created_at": "2026-11-06T09:14:31Z",
"owner": { "email": "priya@example.com", "full_name": "Priya Nair" },
"mail_to": {
"users": [{ "email": "priya@example.com", "full_name": "Priya Nair" }],
"external_mails": ["auditor@partner.example"]
},
"latest_attachment": null
}
}
-
success Boolean
API call is executed successfully.
-
data Object
βΆ SHOW VALUESThe report that was created.
-
id String
Identifier of the report, such as
SC-1042. -
title String
Title of the report.
-
description String
Description of the report.
-
report_type String
Type of report.
-
project_id String
Identifier of the project in the request URL.
-
project_ids Array
Identifiers of all projects the report covers.
-
scope Object
βΆ SHOW VALUESWhat the report covers, in the same shape you sent it.
-
by String
How the report is scoped. One of
creation_time,test_runs,test_plans,sessions,project, ortest_cases. Each report type accepts a subset of these values. -
period String
With
creation_timeonly. One oflast_one_day,last_one_week,last_one_month, orlast_three_months. Do not send it withfromandto. -
from String
With
creation_timeonly. Start date inYYYY-MM-DDformat. Must not be later thantoor in the future. -
to String
With
creation_timeonly. End date inYYYY-MM-DDformat. -
ids Array
With
test_runs,test_plans,sessions, ortest_cases. Identifiers of the items to include. Forsessions, send numeric session IDs. The array must not be empty. Not allowed withcreation_timeorproject.
-
-
filters Object
Attribute filters. Always
{}on the current API. -
frequency String
How often BrowserStack generates the report. One of
once,daily,weekly, ormonthly. -
frequency_details Object
βΆ SHOW VALUESWhen a recurring report runs.
-
time String
Time of day to generate the report, in
HH:MM24-hour format, UTC. -
day String
For
weekly, the weekday in lowercase, such asmonday. Formonthly, the day of the month from1to28, as a string.
-
-
next_run_at String
Time of the next scheduled run, in UTC.
nullfor a one-time report. -
is_scheduled Boolean
truefor a recurring report. -
created_at String
Time the report was created on BrowserStack servers.
-
owner Object
βΆ SHOW VALUESUser who created the report.
-
email String
Email address of the owner.
-
full_name String
Full name of the owner.
-
-
mail_to Object
βΆ SHOW VALUESEmail recipients of the generated report. Both lists are empty for a one-time report.
-
users Array
βΆ SHOW VALUESRecipients who are users in your BrowserStack group.
-
email String
Email address of the recipient.
-
full_name String
Full name of the recipient.
-
-
external_mails Array
Email addresses outside your group.
-
-
latest_attachment Object
βΆ SHOW VALUESThe newest generated file in the project of the report. This file can belong to a different report.
nullwhen the project has no generated file.-
file_type String
MIME type of the file, such as
text/csv. -
generated_at String
Time the file was generated.
-
ready Boolean
Always
true.
-
-
Get report details
The response holds the settings of one report, not its data. To get the data, refer to Download a report.
Request parameters
Request
curl -u "YOUR_USERNAME:YOUR_ACCESS_KEY" \
https://test-management.browserstack.com/api/v2/projects/PR-10/reports/SC-1042
-
project_id* String
Identifier of the project.
-
report_id* String
Identifier of the report, such as
SC-1042.
Response attributes 200 OK json
Response
{
"success": true,
"data": {
"id": "SC-1042",
"title": "Release 4.2 execution",
"description": "Failed and blocked cases for the release runs",
"report_type": "Test Run Detailed Report",
"project_id": "PR-10",
"project_ids": ["PR-10"],
"scope": { "by": "test_runs", "ids": ["TR-42", "TR-51"] },
"filters": {},
"frequency": "weekly",
"frequency_details": { "time": "05:00", "day": "monday" },
"next_run_at": "2026-11-09T05:00:00Z",
"is_scheduled": true,
"created_at": "2026-11-06T09:14:31Z",
"owner": { "email": "priya@example.com", "full_name": "Priya Nair" },
"mail_to": {
"users": [{ "email": "priya@example.com", "full_name": "Priya Nair" }],
"external_mails": ["auditor@partner.example"]
},
"latest_attachment": {
"file_type": "text/csv",
"generated_at": "2026-11-09T05:01:12Z",
"ready": true
}
}
}
-
success Boolean
API call is executed successfully.
-
data Object
βΆ SHOW VALUESThe report and its settings.
-
id String
Identifier of the report, such as
SC-1042. -
title String
Title of the report.
-
description String
Description of the report.
-
report_type String
Type of report.
-
project_id String
Identifier of the project in the request URL.
-
project_ids Array
Identifiers of all projects the report covers.
-
scope Object
βΆ SHOW VALUESWhat the report covers, in the same shape you sent it.
-
by String
How the report is scoped. One of
creation_time,test_runs,test_plans,sessions,project, ortest_cases. Each report type accepts a subset of these values. -
period String
With
creation_timeonly. One oflast_one_day,last_one_week,last_one_month, orlast_three_months. Do not send it withfromandto. -
from String
With
creation_timeonly. Start date inYYYY-MM-DDformat. Must not be later thantoor in the future. -
to String
With
creation_timeonly. End date inYYYY-MM-DDformat. -
ids Array
With
test_runs,test_plans,sessions, ortest_cases. Identifiers of the items to include. Forsessions, send numeric session IDs. The array must not be empty. Not allowed withcreation_timeorproject.
-
-
filters Object
Attribute filters. Always
{}on the current API. -
frequency String
How often BrowserStack generates the report. One of
once,daily,weekly, ormonthly. -
frequency_details Object
βΆ SHOW VALUESWhen a recurring report runs.
-
time String
Time of day to generate the report, in
HH:MM24-hour format, UTC. -
day String
For
weekly, the weekday in lowercase, such asmonday. Formonthly, the day of the month from1to28, as a string.
-
-
next_run_at String
Time of the next scheduled run, in UTC.
nullfor a one-time report. -
is_scheduled Boolean
truefor a recurring report. -
created_at String
Time the report was created on BrowserStack servers.
-
owner Object
βΆ SHOW VALUESUser who created the report.
-
email String
Email address of the owner.
-
full_name String
Full name of the owner.
-
-
mail_to Object
βΆ SHOW VALUESEmail recipients of the generated report. Both lists are empty for a one-time report.
-
users Array
βΆ SHOW VALUESRecipients who are users in your BrowserStack group.
-
email String
Email address of the recipient.
-
full_name String
Full name of the recipient.
-
-
external_mails Array
Email addresses outside your group.
-
-
latest_attachment Object
βΆ SHOW VALUESThe newest generated file in the project of the report. This file can belong to a different report.
nullwhen the project has no generated file.-
file_type String
MIME type of the file, such as
text/csv. -
generated_at String
Time the file was generated.
-
ready Boolean
Always
true.
-
-
A report created in the Test Management UI can use options the API does not offer. Examples are specific requirement IDs and advanced filters. For such a report, the API returns null in scope or filters.
Download a report
BrowserStack generates report files in the background. This endpoint starts a job and returns its job_id. To get the file, poll Get download status with that job_id until status is ready.
Test Run Summary, Test Plan Summary, and Exploratory Session Summary reports are available as PDF only. The other report types are available as CSV or PDF. Send pdf for the PDF-only report types. The API accepts csv for them, but the job stays in processing and never returns a file.
Request parameters
Request
curl -u "YOUR_USERNAME:YOUR_ACCESS_KEY" \
-X POST https://test-management.browserstack.com/api/v2/projects/PR-10/reports/SC-1042/download \
-H "Content-Type: application/json" \
-d '{ "file_type": "csv" }'
-
project_id* String
Identifier of the project.
-
report_id* String
Identifier of the report, such as
SC-1042.
Request body
Request Body
{
"file_type": "csv"
}
-
file_type* String
File format to generate.
csvorpdf. Test Run Summary, Test Plan Summary, and Exploratory Session Summary reports supportpdfonly. The API acceptscsvfor them, but the job never returns a file.
Response attributes 202 Accepted json
Response
{
"success": true,
"job_id": "3f9c2b7e-5d1a-4c8e-9b2f-7a6d4e1c0b55",
"status": "queued",
"status_url": "/api/v2/projects/PR-10/reports/SC-1042/download/3f9c2b7e-5d1a-4c8e-9b2f-7a6d4e1c0b55"
}
-
success Boolean
API call is executed successfully.
-
job_id String
Identifier of the download job. Use it to check the download status.
-
status String
State of the job.
queuedwhen the job is created. -
status_url String
Path of the download status endpoint for this job.
Get download status
Poll this endpoint every few seconds until status is ready. A report that spans many projects or runs takes longer to generate. Each job returns the file of its own report. You can run several downloads in one project at the same time.
While status is processing, file_url and generated_at are null. When status is ready, the response includes file_url. Send a GET request to that URL to download the file. The URL expires, so download the file soon after you receive it. An unknown job_id returns 404.
Request parameters
Request
curl -u "YOUR_USERNAME:YOUR_ACCESS_KEY" \
https://test-management.browserstack.com/api/v2/projects/PR-10/reports/SC-1042/download/3f9c2b7e-5d1a-4c8e-9b2f-7a6d4e1c0b55
-
project_id* String
Identifier of the project.
-
report_id* String
Identifier of the report, such as
SC-1042. -
job_id* String
Identifier of the download job returned by the download endpoint.
Response attributes 200 OK json
Response
{
"success": true,
"status": "ready",
"file_url": "https://files.browserstack.com/test-management/reports/SC-1042/report.csv?signature=...",
"file_type": "csv",
"generated_at": "2026-11-09T05:01:12Z",
"error": null
}
-
success Boolean
API call is executed successfully.
-
status String
State of the job.
processingwhile the file is being generated.readywhen the file is available. -
file_url String
URL of the generated file.
nulluntilstatusisready. The URL expires, so download the file soon after you receive it. -
file_type String
Format of the file,
csvorpdf. -
generated_at String
Time the file was generated.
nulluntilstatusisready. -
error String
Always
null.
Delete a report
Deleting a report removes it from the project. For a recurring report, the scheduled emails stop as well.
Warning: You cannot undo a report deletion.
If your group uses role-based access control, your role needs the permission to delete reports. Without it, the request returns 403.
Request parameters
Request
curl -u "YOUR_USERNAME:YOUR_ACCESS_KEY" \
-X DELETE https://test-management.browserstack.com/api/v2/projects/PR-10/reports/SC-1042
-
project_id* String
Identifier of the project.
-
report_id* String
Identifier of the report, such as
SC-1042.
Response attributes 204 No Content
The response has no body. A second delete of the same report, or a delete under a different project, returns 404.
Error responses
A request that fails validation returns 400. The unpaired code is the exception and returns 422. The body lists every failed field that the API found. The API checks that identifiers exist only after the other checks pass. A not_found, ambiguous, or unpaired error can therefore appear after you fix the earlier errors.
Response
{
"success": false,
"errors": [
{
"field": "scope.by",
"code": "invalid_for_report_type",
"message": "scope.by must be one of test_runs, test_cases, project for Requirement Traceability Report"
},
{
"field": "frequency",
"code": "invalid",
"message": "frequency must be one of once, daily, weekly, monthly"
}
]
}
Each item in errors has the following fields:
-
field String
The request field that failed, such as
scope.byorscope.ids[1]. -
code String
Machine-readable reason. See the error codes table.
-
message String
Human-readable explanation, including the accepted values where they apply.
The following table lists the values of code:
code value |
Meaning | Example field
|
|---|---|---|
required |
A required field is missing. | scope |
removed |
The field belongs to the earlier request format. Use scope and filters instead. |
report_timeframe |
invalid |
The value is not accepted. The message states the accepted values. |
scope.period, scope.from, report_type, frequency
|
not_found |
An identifier in scope.ids does not exist in the project in the request URL. The field names the array position. |
scope.ids[1] |
invalid_for_report_type |
The scope.by value is not valid for this report type. The message lists the valid values. |
scope.by |
not_supported |
The key is not available on the API. |
scope.by, filters.status
|
unknown_key |
The field is not allowed with this scope.by value. |
scope.ids |
conflict |
Two fields that cannot be sent together are both present. | scope.period |
too_many_test_cases |
scope.ids holds more than 2000 test case identifiers. |
scope.ids |
too_many_runs |
scope.ids holds more than 4000 test run identifiers. |
scope.ids |
too_many_test_plans |
scope.ids holds more than 300 test plan identifiers. |
scope.ids |
ambiguous |
An identifier in a test_cases scope matches more than one test case. The field names the array position. |
scope.ids[1] |
unpaired |
A test run in a test_runs scope is not ready for reporting yet. The request returns 422. The field names the array position. |
scope.ids[1] |
Some failures return a message string instead of the errors list. Examples are an invalid file_type on a download request and a request that exceeds the project limit.
Response
{
"success": false,
"message": "Invalid file_type. Allowed: pdf, csv"
}
If BrowserStack cannot look up the identifiers in scope, the request returns 502 with a message string. No report is created, so you can retry the request.
For the HTTP status codes this API can return, refer to Response status codes.
Migrate from the earlier request format
Earlier versions of the create endpoint used report_timeframe and report_filters. The API rejects both fields with the code removed. It rejects custom_date_range, report_creation_mode, and dynamic_filters the same way. Responses no longer include any of these fields. The following table maps each earlier field to its replacement:
| Earlier request format | Current request format |
|---|---|
"report_timeframe": "last_one_month" |
"scope": { "by": "creation_time", "period": "last_one_month" } |
"report_timeframe": "custom" with "custom_date_range": "2026-08-01 2026-08-31"
|
"scope": { "by": "creation_time", "from": "2026-08-01", "to": "2026-08-31" } |
"report_timeframe": "specific_test_runs" with "report_filters": { "test_runs": [...] }
|
"scope": { "by": "test_runs", "ids": [...] } |
"report_timeframe": "specific_test_plans" with "report_filters": { "test_plans": [...] }
|
"scope": { "by": "test_plans", "ids": [...] } |
"report_timeframe": "specific_sessions" with "report_filters": { "session_ids": [...] }
|
"scope": { "by": "sessions", "ids": [...] } |
"report_filters": {} |
Omit filters, or send "filters": {}
|
"report_creation_mode": "custom_report" |
Omit the field |
User activity report
Use this endpoint to fetch user activity data filtered by date, user, or project. This helps you monitor who performed which actions and when, supporting audit and reporting needs.
The list is paginated. For more information, refer to Pagination.
Request parameters
Request
curl -u "<creds>" \
https://test-management.browserstack.com/api/v2/users/reports/activity
-
No parameter required.
Response attributes 200 application/json
Response
{
"success":true,
"report":{
"users":[
{
"email":"user1@email.com",
"name":"user1",
"product_role":"Product User",
"last_tm_activity":"2025-09-03T04:58:55Z",
"last_updated_at":"2025-04-23T06:53:06.486Z"
},
{
"email":"user2@email.com",
"name":"user2",
"product_role":"Product User",
"last_tm_activity":"2025-09-03T04:58:20Z",
"last_updated_at":"2025-07-22T12:31:35.592Z"
}
],
"info":{
"info":{
"page":1,
"next":2,
"prev":null,
"count":1598,
"page_size":30
}
}
}
}
-
email String
The userβs unique email address, primarily used for account login and notifications.
-
name String
The full display name associated with the user account.
-
product_role String
Specifies the product role assigned to the user. This role determines the userβs permissions and access level within the application (for example, Product User, Product Admin, Tester, Viewer).
-
last_tm_activity String
Timestamp indicating the date and time of the userβs last recorded activity in the test management system.
-
last_updated_at String
Timestamp indicating the date and time of the last update of the userβs information in the test management system.
-
info String
βΆ SHOW VALUESAdditional pagination information.
-
page Integer
The current page being viewed displays a list of test cases.
-
page_size Integer
Number of test cases in the page.
-
count Integer
Total number of records across all pages.
-
prev Integer
Previous page number.
-
next Integer
Next page number.
-
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.