curl --request POST \
--url https://api.usedatabrain.com/api/v2/data-app \
--header 'Authorization: Bearer service_token_xyz...' \
--header 'Content-Type: application/json' \
--data '{
"name": "Customer Portal Analytics"
}'
{
"name": "Customer Portal Analytics"
}
curl --request POST \
--url https://api.usedatabrain.com/api/v2/data-app \
--header 'Authorization: Bearer service_token_xyz...' \
--header 'Content-Type: application/json' \
--data '{
"name": "Customer Portal Analytics"
}'
{
"name": "Customer Portal Analytics"
}
Create a new Data App to organize and manage your embedded analytics.
curl --request POST \
--url https://api.usedatabrain.com/api/v2/data-app \
--header 'Authorization: Bearer service_token_xyz...' \
--header 'Content-Type: application/json' \
--data '{
"name": "Customer Portal Analytics"
}'
{
"name": "Customer Portal Analytics"
}
curl --request POST \
--url https://api.usedatabrain.com/api/v2/data-app \
--header 'Authorization: Bearer service_token_xyz...' \
--header 'Content-Type: application/json' \
--data '{
"name": "Customer Portal Analytics"
}'
{
"name": "Customer Portal Analytics"
}
POST https://api.usedatabrain.com/api/v2/data-app
POST https://api.usedatabrain.com/api/v2/dataApp
Authorization: Bearer service_token_xyz...
application/json for all requests.Content-Type: application/json
Show Naming guidelines
| Status Code | Description |
|---|---|
200 | OK - Data App created successfully |
400 | Bad Request - Invalid request parameters |
500 | Internal Server Error - Server error occurred |
| Error Code | HTTP Status | Description |
|---|---|---|
INVALID_REQUEST_BODY | 400 | Missing or invalid name parameter |
DATA_APP_ALREADY_EXISTS | 400 | Data App with same name already exists |
AUTHENTICATION_ERROR | 400 | Invalid or missing service token |
INTERNAL_SERVER_ERROR | 500 | Server error |
Get your service token
Create the Data App
curl --request POST \
--url https://api.usedatabrain.com/api/v2/data-app \
--header 'Authorization: Bearer service_token_xyz...' \
--header 'Content-Type: application/json' \
--data '{"name": "My Analytics App"}'
Create an API token for the Data App