Get feature permissions
curl --request GET \
--url https://api.doozy.live/v1/account/permissions \
--header 'x-api-key: <api-key>'import requests
url = "https://api.doozy.live/v1/account/permissions"
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://api.doozy.live/v1/account/permissions', 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://api.doozy.live/v1/account/permissions",
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://api.doozy.live/v1/account/permissions"
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://api.doozy.live/v1/account/permissions")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.doozy.live/v1/account/permissions")
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{
"object": "account_permissions",
"activity_scheduling_roles": {
"christmas_countdown": [
"owner"
],
"daily_icebreaker": [
"owner"
],
"daily_quiz": [
"owner"
],
"doozy_roulette": [
"owner"
],
"doozy_matchmaking": [
"owner"
],
"celebrations": [
"owner"
],
"oneOffCelebration": [
"owner"
],
"survey": [
"owner"
],
"time_off": [
"owner"
],
"track": [
"owner"
],
"custom_quiz": [
"owner"
],
"custom_icebreaker": [
"owner"
]
},
"available_activities": [
"christmas_countdown"
]
}{
"error": {
"type": "invalid_request_error",
"code": "resource_not_found",
"message": "No such quiz: quiz_abc123",
"param": "id",
"doc_url": "https://docs.doozy.live/api/errors#resource_not_found"
}
}{
"error": {
"type": "invalid_request_error",
"code": "resource_not_found",
"message": "No such quiz: quiz_abc123",
"param": "id",
"doc_url": "https://docs.doozy.live/api/errors#resource_not_found"
}
}Account
Get feature permissions
Retrieve which roles may schedule each activity type. Owner is always permitted. Owner only.
GET
/
v1
/
account
/
permissions
Get feature permissions
curl --request GET \
--url https://api.doozy.live/v1/account/permissions \
--header 'x-api-key: <api-key>'import requests
url = "https://api.doozy.live/v1/account/permissions"
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://api.doozy.live/v1/account/permissions', 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://api.doozy.live/v1/account/permissions",
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://api.doozy.live/v1/account/permissions"
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://api.doozy.live/v1/account/permissions")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.doozy.live/v1/account/permissions")
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{
"object": "account_permissions",
"activity_scheduling_roles": {
"christmas_countdown": [
"owner"
],
"daily_icebreaker": [
"owner"
],
"daily_quiz": [
"owner"
],
"doozy_roulette": [
"owner"
],
"doozy_matchmaking": [
"owner"
],
"celebrations": [
"owner"
],
"oneOffCelebration": [
"owner"
],
"survey": [
"owner"
],
"time_off": [
"owner"
],
"track": [
"owner"
],
"custom_quiz": [
"owner"
],
"custom_icebreaker": [
"owner"
]
},
"available_activities": [
"christmas_countdown"
]
}{
"error": {
"type": "invalid_request_error",
"code": "resource_not_found",
"message": "No such quiz: quiz_abc123",
"param": "id",
"doc_url": "https://docs.doozy.live/api/errors#resource_not_found"
}
}{
"error": {
"type": "invalid_request_error",
"code": "resource_not_found",
"message": "No such quiz: quiz_abc123",
"param": "id",
"doc_url": "https://docs.doozy.live/api/errors#resource_not_found"
}
}Authorizations
API key for authentication. Generate keys in the Doozy dashboard.
Response
The account's feature permissions
Available options:
account_permissions Example:
"account_permissions"
Show child attributes
Show child attributes
Activity types whose scheduling roles can be changed. Celebrations, one-off celebrations and time off are fixed to owners and managers.
Available options:
christmas_countdown, daily_icebreaker, daily_quiz, doozy_roulette, doozy_matchmaking, celebrations, oneOffCelebration, survey, time_off, track, custom_quiz, custom_icebreaker Was this page helpful?