Get a single warehouse source group

Returns a specific Warehouse source group by its ID.

GET https://warehouse.betterstack.com/api/v1/source-groups/{id}

URL parameters

id
required string

Headers

Authorization
required string
200

Response body

{
  "data": {
    "id": "1234",
    "type": "warehouse_source_group",
    "attributes": {
      "name": "Analytics",
      "created_at": "2025-11-13T10:00:00Z",
      "updated_at": "2025-11-25T20:44:50Z",
      "sort_index": null,
      "team_name": "example-team"
    }
  }
}
401

Response body

{
  "errors": "Invalid Team API token. How to find your Team API token: https://betterstack.com/docs/logs/api/getting-started/#obtaining-a-logtail-api-token"
}
404

Response body

{
  "errors": "Resource with the provided ID was not found"
}

Example cURL

Example
curl --request GET \
  --url https://warehouse.betterstack.com/api/v1/source-groups/1234 \
  --header "Authorization: Bearer $TOKEN"