Skip to main content
GET
/
v1
/
teams
/
{teamId}
/
configurations
Get team configurations
curl --request GET \
  --url https://platform.thena.ai/v1/teams/{teamId}/configurations \
  --header 'x-api-key: <api-key>'
import requests

url = "https://platform.thena.ai/v1/teams/{teamId}/configurations"

headers = {"x-api-key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};

fetch('https://platform.thena.ai/v1/teams/{teamId}/configurations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://platform.thena.ai/v1/teams/{teamId}/configurations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://platform.thena.ai/v1/teams/{teamId}/configurations"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("x-api-key", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://platform.thena.ai/v1/teams/{teamId}/configurations")
.header("x-api-key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://platform.thena.ai/v1/teams/{teamId}/configurations")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "status": true,
  "message": "Success",
  "timestamp": "2024-01-01T00:00:00.000Z",
  "data": [
    {
      "timezone": "<string>",
      "teamId": "<string>",
      "fallbackSubTeam": "<string>",
      "holidays": [
        "<string>"
      ],
      "routingRespectsTimezone": true,
      "routingRespectsUserTimezone": true,
      "routingRespectsUserAvailability": true,
      "routingRespectsUserBusinessHours": true,
      "userRoutingStrategy": "<string>",
      "commonDailyConfig": true,
      "dailyConfig": {
        "monday": {
          "isActive": true,
          "slots": [
            {
              "start": "10:00",
              "end": "18:00"
            }
          ]
        },
        "tuesday": {
          "isActive": true,
          "slots": [
            {
              "start": "10:00",
              "end": "18:00"
            }
          ]
        },
        "wednesday": {
          "isActive": true,
          "slots": [
            {
              "start": "10:00",
              "end": "18:00"
            }
          ]
        },
        "thursday": {
          "isActive": true,
          "slots": [
            {
              "start": "10:00",
              "end": "18:00"
            }
          ]
        },
        "friday": {
          "isActive": true,
          "slots": [
            {
              "start": "10:00",
              "end": "18:00"
            }
          ]
        },
        "saturday": {
          "isActive": true,
          "slots": [
            {
              "start": "10:00",
              "end": "18:00"
            }
          ]
        },
        "sunday": {
          "isActive": true,
          "slots": [
            {
              "start": "10:00",
              "end": "18:00"
            }
          ]
        }
      },
      "createdAt": "<string>",
      "updatedAt": "<string>"
    }
  ]
}

Authorizations

x-api-key
string
header
required

Enter your API key

Path Parameters

teamId
string
required

Response

Operation successful

status
boolean
default:true
required

The status of the response

message
string
default:Success
required

The message of the response

timestamp
string<date-time>
default:2024-01-01T00:00:00.000Z
required

The timestamp of the response

data
object[]
required

The team configurations fetched