Get dimension list API
Get every dimension in your Drivetrain workspace, with its type and number of values, using a GET request.
Use this API to list every dimension in your workspace and find the names you pass to Get dimension values API and to dimensions in Get metrics bulk data API.
Method
GET
URL
https://{your_subdomain}.drivetrain.ai/drive/api/v1/public/dimensions
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/dimensions' \
--header 'apikey: {your_apikey}'Example response
{
"data": [
{ "name": "emp_id", "displayName": "Employee ID", "type": "STRING", "valueCount": 1284 },
{ "name": "hire_date", "displayName": "Hire Date", "type": "DATE", "valueCount": 1825 },
{ "name": "product", "displayName": "Product", "type": "STRING", "valueCount": 42 }
]
}Response fields
Dimensions are sorted by name. Dimensions come from your live model.
name
string
Backend name of the dimension. Use it exactly as returned in other endpoints.
displayName
string
Name shown in the Drivetrain UI.
type
string
Data type of the dimension's values, for example STRING, DATE, INT64, NUMERIC, FLOAT64 or BOOL. STRING when no type is set.
valueCount
number
Number of values the dimension currently has.
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 dimensions returns 200 OK with "data": [].
Last updated
Was this helpful?