Create a release

Registers a new release. A release registered at build time shows up in Better Stack immediately, before its first error arrives.

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

Headers

Authorization
required string
Content-Type
required string

Body parameters

version
required string
applications
array
environment
string
team_id
string
201

Response body

{
  "version": "v1.2.3",
  "applications": [
    123
  ],
  "environment": "production",
  "releases": [
    {
      "id": 456,
      "application_id": 123
    }
  ]
}
401

Response body

{
  "errors": "Invalid authentication"
}
422

Response body

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

Response body

{
  "errors": "Sorry, some values are incorrect",
  "invalid_values": {
    "applications": "Unknown applications: 999"
  }
}

Example cURL

Example
curl --request POST \
  --url https://errors.betterstack.com/api/v1/releases \
  --header "Authorization: Bearer $TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{
    "version": "v1.2.3",
    "applications": [123],
    "environment": "production"
  }'