Create a source group

Returns either a newly created source group, or validation errors.

POST https://telemetry.betterstack.com/api/v1/source-groups

Headers

Authorization
required string
Content_Type
string

Body parameters

team_name
string
name
string
sort_index
integer
201

Response body

{
  "data": {
    "id": "95251342",
    "type": "source_group",
    "attributes": {
      "name": "Backend sources",
      "sort_index": null,
      "created_at": "2025-06-30T17:43:12.192Z",
      "updated_at": "2020-06-30T17:43:12.192Z",
      "team_name": "Test team"
    }
  }
}

Example cURL

Example
curl --request POST \
  --url https://telemetry.betterstack.com/api/v1/source-groups \
  --header "Authorization: Bearer $TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{
    "name": "Backend sources"
}'