Create an application

Creates a new error tracking application.

POST https://errors.betterstack.com/api/v1/applications

Headers

Authorization
required string
Content-Type
required string

Body parameters

name
required string
platform
required string
data_region
string
errors_retention
integer
application_group_id
string
201

Response body

{
  "data": {
    "id": "1234",
    "type": "application",
    "attributes": {
      "application_group_id": null,
      "team_id": 123456,
      "team_name": "example-team",
      "name": "new-web-app",
      "table_name": "new_web_app",
      "token": "abc123def456ghi789",
      "ingesting_paused": false,
      "ingesting_host": "s1234.us-east-9.betterstackdata.com",
      "created_at": "2025-01-15T10:30:00.000Z",
      "updated_at": "2025-01-15T10:30:00.000Z",
      "errors_retention": 90,
      "data_region": "us-east-9",
      "custom_bucket": null
    }
  }
}
401

Response body

{
  "errors": "Invalid authentication"
}
400

Response body

{
  "errors": "Sorry, you are missing some required attributes",
  "required_attributes": [
    "name",
    "platform"
  ]
}
422

Response body

{
  "errors": [
    "platform must be suffixed with \"_errors\" for Errors applications"
  ],
  "invalid_attributes": [
    "platform"
  ]
}

Example cURL

Example
curl --request POST \
  --url https://errors.betterstack.com/api/v1/applications \
  --header "Authorization: Bearer $TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{
    "name": "new-web-app",
    "platform": "ruby_errors",
    "errors_retention": 90,
    "data_region": "us-east-9"
  }'