Get the workspace
GET
/v1/team
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Get, RequestUri = new Uri("https://api.roundrobinbot.eu/v1/team"), Headers = { { "Authorization", "Bearer <token>" }, },};using (var response = await client.SendAsync(request)){ response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body);}package main
import ( "fmt" "net/http" "io")
func main() {
url := "https://api.roundrobinbot.eu/v1/team"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
}OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder() .url("https://api.roundrobinbot.eu/v1/team") .get() .addHeader("Authorization", "Bearer <token>") .build();
Response response = client.newCall(request).execute();import axios from 'axios';
const options = { method: 'GET', url: 'https://api.roundrobinbot.eu/v1/team', headers: {Authorization: 'Bearer <token>'}};
try { const { data } = await axios.request(options); console.log(data);} catch (error) { console.error(error);}const url = 'https://api.roundrobinbot.eu/v1/team';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.roundrobinbot.eu/v1/team \ --header 'Authorization: Bearer <token>'The Slack workspace this key belongs to, and what its plan allows. Read the plan’s ceilings before a provisioning script hits them, rather than finding out from a refusal halfway through.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
Media typeapplication/json
The workspace the calling key belongs to.
object
domain
The workspace’s Slack domain, the {domain} in {domain}.slack.com.
null | string
enterpriseId
The Enterprise Grid org id, when the workspace belongs to one.
null | string
id
The Slack workspace id.
string
isEnterpriseInstall
True when Round Robin is installed org-wide on an Enterprise Grid org rather than into this one workspace.
boolean
name
string
plan
What the workspace’s plan allows.
object
code
The plan’s code, as billing knows it.
null | string
maxRotations
The most rotations the workspace may have enabled, or -1 for unlimited.
integer format: int64
maxUsers
The most distinct people the workspace may have across its enabled rotations, or -1 for unlimited.
integer format: int64
paid
boolean
Examplegenerated
{ "domain": "example", "enterpriseId": "example", "id": "example", "isEnterpriseInstall": true, "name": "example", "plan": { "code": "example", "maxRotations": 1, "maxUsers": 1, "paid": true }}Unauthorized
Media typeapplication/json
object
detail
null | string
instance
null | string
status
null | integer format: int32
title
null | string
type
null | string
Examplegenerated
{ "detail": "example", "instance": "example", "status": 1, "title": "example", "type": "example"}Forbidden
Media typeapplication/json
object
detail
null | string
instance
null | string
status
null | integer format: int32
title
null | string
type
null | string
Examplegenerated
{ "detail": "example", "instance": "example", "status": 1, "title": "example", "type": "example"}