Get scenario list API
Get every scenario in your Drivetrain workspace and the versions it exists in, using a GET request.
Use this API to list every scenario and find the names you pass to scenarios in Get metrics bulk data API.
Method
GET
URL
https://{your_subdomain}.drivetrain.ai/drive/api/v1/public/scenarios
Headers
apikey (required). See Authentication and API keys.
Role
The key's user must have the Admin role.
This endpoint takes no parameters.
Example request
curl 'https://{your_subdomain}.drivetrain.ai/drive/api/v1/public/scenarios' \
--header 'apikey: {your_apikey}'Example response
{
"data": [
{ "name": "Base_Case", "displayName": "Base Case", "versions": ["Budget_2026", "Current"] },
{ "name": "Downside", "displayName": "Downside", "versions": ["Current"] },
{ "name": "Upside", "displayName": "Upside", "versions": ["Current"] }
]
}Response fields
Each scenario appears once, even when it exists in several versions. Scenarios are sorted by name, and only scenarios the key's user can access are returned.
name
string
Scenario backend name, for example Base_Case.
displayName
string
Name shown in the Drivetrain UI.
versions
array of strings
Names of the versions the scenario exists in, sorted alphabetically. Current is your live model. Other names match Get version list API.
Errors
401 Unauthorized
Missing or invalid apikey, or API access isn't part of your subscription.
403 Forbidden
The key's user doesn't have the Admin role.
A workspace with no scenarios returns 200 OK with "data": [].
Last updated
Was this helpful?