Endpoint Migration Notice: We’re transitioning to kebab-case endpoints. The new endpoint is
/api/v2/data-app/datamarts
. The old endpoint /api/v2/dataApp/datamarts
will be deprecated soon. Please update your integrations to use the new endpoint format.This endpoint returns all datamarts you have access to within the authenticated data app. The response includes metadata and access permissions for each datamart.
Endpoint Formats
- New Endpoint (Recommended)
- Legacy Endpoint (Deprecated Soon)
Authentication
All API requests must include your API key in the Authorization header. Get your API token when creating a data app - see our data app creation guide for details. Finding your API token: For detailed instructions, see the API Token guide.Headers
Bearer token for API authentication. Use your API key from the data app.
Query Parameters
Enable pagination for the results. Pass
"true"
to enable pagination with a limit of 10 per page.Note: Query parameters are passed as strings. Use "true"
or "false"
(not boolean values).Page number to retrieve (1-based). Only used when isPagination is
"true"
. Must be a numeric string (e.g., "1"
, "2"
, "3"
).Response
Array of datamart objects with their configuration details.
The name of the datamart.
Organization settings for the datamart.
The tenancy level (e.g., “TABLE”, “ROW”).
Schema name for the organization table.
Table name for the organization.
Type of the client column.
Column name for client identification.
Primary key column name.
Integration details for the datamart.
Name of the datasource integration.
Array of tables included in the datamart.
Schema name of the table.
Name of the table.
Error field, null when successful.
Examples
Error Codes
Missing or invalid data app - Check your API key and data app configuration
Unexpected failure - Internal server error occurred
HTTP Status Code Summary
Status Code | Description |
---|---|
200 | OK - Request successful |
400 | Bad Request - Invalid request parameters or missing API key |
401 | Unauthorized - Invalid or expired API token |
500 | Internal Server Error - Unexpected server error |
Possible Errors
Code | Message | HTTP Status |
---|---|---|
INVALID_DATA_APP_API_KEY | Missing or invalid data app | 400 |
INTERNAL_SERVER_ERROR | Unexpected failure | 500 |
Usage Examples
Basic Usage
With Pagination
Processing Results
Best Practices
Use Pagination
Use pagination for data apps with many datamarts
Cache Results
Cache datamart lists to reduce API calls
Error Handling
Always handle API errors gracefully
Monitor Usage
Monitor API usage and response times
Quick Start Guide
1
Get your API token
For detailed instructions, see the API Token guide.
2
List all datamarts
Make a simple request to see all your datamarts:Note: You can add query parameters for pagination if needed.
3
Use pagination for large lists
If you have many datamarts, enable pagination using query parameters:
4
Process the results
Use the datamart information for embed configurations: