curl --request GET \
--url 'https://api.usedatabrain.com/api/v2/data-app' \
--header 'Authorization: Bearer service_token_xyz...'
{
"data": [
{
"name": "Customer Portal Analytics",
"type": "embedded",
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-20T14:45:00Z",
"embedCount": 3,
"embeds": [
{
"name": "Sales Dashboard Embed",
"embedId": "sales-dashboard-123",
"createdAt": "2024-01-15T11:00:00Z",
"updatedAt": "2024-01-18T09:30:00Z"
},
{
"name": "Revenue Metrics Embed",
"embedId": "revenue-metrics-456",
"createdAt": "2024-01-16T14:15:00Z",
"updatedAt": "2024-01-19T16:00:00Z"
},
{
"name": "Customer Overview",
"embedId": "customer-overview-789",
"createdAt": "2024-01-17T08:45:00Z",
"updatedAt": "2024-01-20T11:20:00Z"
}
]
},
{
"name": "Partner Dashboard",
"type": "embedded",
"createdAt": "2024-01-10T09:00:00Z",
"updatedAt": "2024-01-15T12:30:00Z",
"embedCount": 1,
"embeds": [
{
"name": "Partner Analytics",
"embedId": "partner-analytics-001",
"createdAt": "2024-01-10T10:00:00Z",
"updatedAt": "2024-01-15T12:30:00Z"
}
]
}
]
}
curl --request GET \
--url 'https://api.usedatabrain.com/api/v2/data-app' \
--header 'Authorization: Bearer service_token_xyz...'
{
"data": [
{
"name": "Customer Portal Analytics",
"type": "embedded",
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-20T14:45:00Z",
"embedCount": 3,
"embeds": [
{
"name": "Sales Dashboard Embed",
"embedId": "sales-dashboard-123",
"createdAt": "2024-01-15T11:00:00Z",
"updatedAt": "2024-01-18T09:30:00Z"
},
{
"name": "Revenue Metrics Embed",
"embedId": "revenue-metrics-456",
"createdAt": "2024-01-16T14:15:00Z",
"updatedAt": "2024-01-19T16:00:00Z"
},
{
"name": "Customer Overview",
"embedId": "customer-overview-789",
"createdAt": "2024-01-17T08:45:00Z",
"updatedAt": "2024-01-20T11:20:00Z"
}
]
},
{
"name": "Partner Dashboard",
"type": "embedded",
"createdAt": "2024-01-10T09:00:00Z",
"updatedAt": "2024-01-15T12:30:00Z",
"embedCount": 1,
"embeds": [
{
"name": "Partner Analytics",
"embedId": "partner-analytics-001",
"createdAt": "2024-01-10T10:00:00Z",
"updatedAt": "2024-01-15T12:30:00Z"
}
]
}
]
}
Retrieve a list of all Data Apps in your organization with their embed configurations.
curl --request GET \
--url 'https://api.usedatabrain.com/api/v2/data-app' \
--header 'Authorization: Bearer service_token_xyz...'
{
"data": [
{
"name": "Customer Portal Analytics",
"type": "embedded",
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-20T14:45:00Z",
"embedCount": 3,
"embeds": [
{
"name": "Sales Dashboard Embed",
"embedId": "sales-dashboard-123",
"createdAt": "2024-01-15T11:00:00Z",
"updatedAt": "2024-01-18T09:30:00Z"
},
{
"name": "Revenue Metrics Embed",
"embedId": "revenue-metrics-456",
"createdAt": "2024-01-16T14:15:00Z",
"updatedAt": "2024-01-19T16:00:00Z"
},
{
"name": "Customer Overview",
"embedId": "customer-overview-789",
"createdAt": "2024-01-17T08:45:00Z",
"updatedAt": "2024-01-20T11:20:00Z"
}
]
},
{
"name": "Partner Dashboard",
"type": "embedded",
"createdAt": "2024-01-10T09:00:00Z",
"updatedAt": "2024-01-15T12:30:00Z",
"embedCount": 1,
"embeds": [
{
"name": "Partner Analytics",
"embedId": "partner-analytics-001",
"createdAt": "2024-01-10T10:00:00Z",
"updatedAt": "2024-01-15T12:30:00Z"
}
]
}
]
}
curl --request GET \
--url 'https://api.usedatabrain.com/api/v2/data-app' \
--header 'Authorization: Bearer service_token_xyz...'
{
"data": [
{
"name": "Customer Portal Analytics",
"type": "embedded",
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-20T14:45:00Z",
"embedCount": 3,
"embeds": [
{
"name": "Sales Dashboard Embed",
"embedId": "sales-dashboard-123",
"createdAt": "2024-01-15T11:00:00Z",
"updatedAt": "2024-01-18T09:30:00Z"
},
{
"name": "Revenue Metrics Embed",
"embedId": "revenue-metrics-456",
"createdAt": "2024-01-16T14:15:00Z",
"updatedAt": "2024-01-19T16:00:00Z"
},
{
"name": "Customer Overview",
"embedId": "customer-overview-789",
"createdAt": "2024-01-17T08:45:00Z",
"updatedAt": "2024-01-20T11:20:00Z"
}
]
},
{
"name": "Partner Dashboard",
"type": "embedded",
"createdAt": "2024-01-10T09:00:00Z",
"updatedAt": "2024-01-15T12:30:00Z",
"embedCount": 1,
"embeds": [
{
"name": "Partner Analytics",
"embedId": "partner-analytics-001",
"createdAt": "2024-01-10T10:00:00Z",
"updatedAt": "2024-01-15T12:30:00Z"
}
]
}
]
}
GET https://api.usedatabrain.com/api/v2/data-app
GET https://api.usedatabrain.com/api/v2/dataApp
Authorization: Bearer service_token_xyz...
"true" to enable pagination with a limit of 10 per page.Note: Query parameters are passed as strings. Use "true" or "false"."true". Must be a numeric string (e.g., "1", "2")."embedded".Show embed properties
| Status Code | Description |
|---|---|
200 | OK - Data Apps retrieved successfully |
400 | Bad Request - Invalid request parameters |
500 | Internal Server Error - Server error occurred |
| Error Code | HTTP Status | Description |
|---|---|---|
AUTHENTICATION_ERROR | 400 | Invalid or missing service token |
INTERNAL_SERVER_ERROR | 500 | Server error |
Get your service token
List all Data Apps
curl --request GET \
--url 'https://api.usedatabrain.com/api/v2/data-app' \
--header 'Authorization: Bearer service_token_xyz...'
Use pagination for large lists
curl --request GET \
--url 'https://api.usedatabrain.com/api/v2/data-app?isPagination=true&pageNumber=1' \
--header 'Authorization: Bearer service_token_xyz...'
Process the results
const dataApps = await listDataApps();
dataApps.data.forEach(app => {
console.log(`Data App: ${app.name}`);
console.log(` Type: ${app.type}`);
console.log(` Embeds: ${app.embedCount}`);
console.log(` Created: ${app.createdAt}`);
app.embeds.forEach(embed => {
console.log(` - ${embed.name} (${embed.embedId})`);
});
});