GET /groups/{id}

Retrieve details of a specific group.

This request retrieves the details of a group using its ID.

curl -XGET \
--header "Content-Type: application/json" \
--header "Authorization: Bearer your_api_token_here" \
https://api.invisiblecollector.com/groups/{id}
require "net/https"
require "uri"

uri = URI.parse("https://api.invisiblecollector.com/groups/#{id}")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true

request = Net::HTTP::Get.new(uri.request_uri)
request['Content-Type'] = 'application/json'
request['Authorization'] = 'Bearer your_api_token_here'

response = http.request(request)
import com.ic.invisiblecollector.IcApiFacade;
import com.ic.invisiblecollector.model.Group;

IcApiFacade apiFacade = new IcApiFacade("your_api_token_here");
Group group = apiFacade.getGroup("your_group_id");
using InvisibleCollectorLib;

var ic = new InvisibleCollector("your_api_token_here");
Group group = await ic.GetGroupAsync("your_group_id");
iC, err := ic.NewInvisibleCollector("your_api_token_here", ic.InvisibleCollectorUri)

var channel = make(chan ic.Group)
go iC.GetGroup(channel, "your_group_id")
group := <-channel

fmt.Println(group)

This request does not require a request body.

Endpoint

GET https://api.invisiblecollector.com/groups/{id}

Path parameters

Attribute Type Mandatory Description
id string yes The ID of the group to be retrieved.

Response body

If successful, this request will return a JSON object representing the group:

{
  "id": "1234567890",
  "name": "Group Name"
}

Errors

This endpoint may return the following errors

HTTP Code Description
401 Unauthorized - Invalid credentials were supplied.