Headers
Bearer $TOKEN
application/json
Body parameters
Required if using global API token to specify the team which should own the resource.
Application name. Must be unique within your team.
The platform type for the application. This helps configure appropriate SDKs and integrations.
The currently supported platforms are:
- aiohttp_errors
- android_errors
- angular_errors
- asgi_errors
- asp_dot_net_core_errors
- asp_dot_net_errors
- astro_errors
- aws_lambda_dot_net_errors
- aws_lambda_node_errors
- aws_lambda_python_errors
- azure_functions_node_errors
- bottle_errors
- bun_errors
- celery_errors
- chalice_errors
- cli_errors
- cloudflare_pages_errors
- connect_errors
- dart_errors
- deno_errors
- django_errors
- dot_net_errors
- dot_net_http_errors
- dot_net_maui_errors
- echo_errors
- electron_errors
- elixir_errors
- ember_errors
- express_errors
- falcon_errors
- fastapi_errors
- fasthttp_errors
- fastify_errors
- fiber_errors
- flask_errors
- flutter_errors
- gatsby_errors
- gin_errors
- go_errors
- godot_errors
- google_cloud_function_dot_net_errors
- google_cloud_function_node_errors
- google_cloud_function_python_errors
- hapi_errors
- ios_errors
- iris_errors
- java_errors
- javascript_errors
- koa_errors
- kotlin_errors
- laravel_errors
- log4j_errors
- logback_errors
- macos_errors
- minidump_errors
- native_errors
- negroni_errors
- nest_js_errors
- next_js_errors
- node_errors
- nuxt_errors
- php_errors
- powershell_errors
- pyramid_errors
- python_errors
- qt_errors
- quart_errors
- rack_middleware_errors
- rails_errors
- react_errors
- react_native_errors
- react_router_framework_errors
- remix_errors
- rq_errors
- ruby_errors
- rust_errors
- sanic_errors
- serverless_python_errors
- solid_errors
- solidstart_errors
- spring_boot_errors
- spring_errors
- starlette_errors
- svelte_errors
- sveltekit_errors
- symfony_errors
- tanstack_start_react_errors
- tornado_errors
- tryton_errors
- unity_errors
- unreal_engine_errors
- vue_errors
- windows_forms_errors
- wpf_errors
- wsgi_errors
Data region or cluster name where application data will be stored. If omitted, the default data region for your team will be used (e.g., us-east-9).
Error data retention period in days. Default retention is 90 days.
Web events data retention period in days. Read more about data retention.
Session replays data retention period in days.
ID of the application group this application belongs to.
Deprecated. ID of a Telemetry source in your team to connect the application to, so its logs and traces show next to its errors. The application is created in that source's data region, and a data_region in another region is refused. A source that cannot be connected, such as a demo source or one that receives neither logs nor traces, is skipped: the application is created without a connection, in the default data region for your team or the requested data_region, and correlate_with_source_id returns null. Change connections later in the application's Advanced settings → Connected sources.
The full name of a GitHub repository (e.g., owner/repo) to connect to the application. The repository must be connected to your team via the GitHub integration first.
The absolute path to the root of the stack trace on your server (e.g., /usr/src/app/). This is used to resolve source code paths for AI-assisted debugging.
The relative path from your project's root to the source code being deployed (e.g., apps/backend/). This is used to resolve source code paths for AI-assisted debugging.
The VRL code that groups incoming exceptions into errors. If omitted, the default grouping for the application's platform is used. Read more about exception grouping.
The VRL code applied to session replays during ingestion.
The VRL code applied to web events like page views and web vitals during ingestion. If omitted, the default web events transformation is used.
The VRL code applied to logs during ingestion. Read more about VRL transformations.
The VRL code applied to traces (spans) during ingestion.
The baseline multiplier of spike protection, from 0 to 100, or null to turn spike protection off. Lower values start sampling sooner. Higher values allow bigger bursts before sampling starts. We recommend 10 as the default multiplier. Spike protection is off by default.
AI prompt used to fix this application's errors. Send null to use the default prompt.
JavaScript tag settings.
Features the JavaScript tag collects.
Collect frontend errors. Defaults to true.
Record web vitals. Defaults to true.
Collect console.log calls. Defaults to true.
Record JavaScript heap memory, in Chrome only. Defaults to true.
Record website analytics. Defaults to true.
Capture the events of anonymous visitors automatically. Defaults to true.
Record session replays. Defaults to true.
Capture the events of identified users automatically. Defaults to true.
Collect the browser fingerprint. Defaults to true.
Sampling rates of the JavaScript tag.
Percentage of errors sent, 0 to 100. Defaults to 100.
Percentage of sessions recorded as session replays, 0 to 100. Defaults to 100.
Percentage of sessions that send web events, 0 to 100. Defaults to 100.
CSS selectors of elements left out of session replays and autocapture. Defaults to input, textarea, and select.
CSS selectors of elements whose text session replays mask. Defaults to an empty list.
Your other domains to share sessions with. Defaults to an empty list.
Continue sessions that arrive from your other domains. Defaults to true.
Also share sessions through forms that submit to your other domains. Defaults to false.
JavaScript code the tag runs when it loads. Send null to remove it.
Session timeout in minutes, 1 to 60. Defaults to 30.
Interval between event batches in seconds, at least 2. Defaults to 2.
Your own subdomain to serve the tag from, with a CNAME to proxy.betterstack.net. Send null to remove it.