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
id
The Slack workspace id.
string
name
string
domain
The workspace’s Slack domain, the {domain} in {domain}.slack.com.
null | string
isEnterpriseInstall
True when Round Robin is installed org-wide on an Enterprise Grid org rather than into this one workspace.
boolean
enterpriseId
The Enterprise Grid org id, when the workspace belongs to one.
null | string
plan
What the workspace’s plan allows.
object
code
The plan’s code, as billing knows it.
null | string
paid
boolean
maxRotations
The most rotations the workspace may have enabled, or -1 for unlimited.
integer | string format: int64
maxUsers
The most distinct people the workspace may have across its enabled rotations, or -1 for unlimited.
integer | string format: int64
Examplegenerated
{ "id": "example", "name": "example", "domain": "example", "isEnterpriseInstall": true, "enterpriseId": "example", "plan": { "code": "example", "paid": true, "maxRotations": 1, "maxUsers": 1 }}Unauthorized
Media typeapplication/json
object
type
null | string
title
null | string
status
null | integer | string format: int32
detail
null | string
instance
null | string
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Forbidden
Media typeapplication/json
object
type
null | string
title
null | string
status
null | integer | string format: int32
detail
null | string
instance
null | string
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}