Get your License state
curl --request POST \
--url 'https://api.flashcat.cloud/oncall/license/request/info?app_key='import requests
url = "https://api.flashcat.cloud/oncall/license/request/info?app_key="
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.flashcat.cloud/oncall/license/request/info?app_key=', 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.flashcat.cloud/oncall/license/request/info?app_key=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$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.flashcat.cloud/oncall/license/request/info?app_key="
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.flashcat.cloud/oncall/license/request/info?app_key=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.flashcat.cloud/oncall/license/request/info?app_key=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body{
"request_id": "01J0D5Y31GY2TWAHRP3Q8K4M6N",
"data": {
"holding": false,
"can_request": true,
"reason": "quota reached",
"window_start": 1793232000,
"window_end": 1795824000,
"request": null,
"admins": [
{
"person_id": 80001,
"person_name": "Wang Lei"
}
]
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "InvalidParameter",
"message": "The specified parameter is not valid."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "Unauthorized",
"message": "You are unauthorized."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "AccessDenied",
"message": "Access Denied."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "RequestTooFrequently",
"message": "Request too frequently."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "InternalError",
"message": "We encountered an internal error, and it has been reported. Please try again later."
}
}Licenses
Get your License state
Report the caller’s own On-call License state and request, and who to ask for a seat.
POST
/
oncall
/
license
/
request
/
info
Get your License state
curl --request POST \
--url 'https://api.flashcat.cloud/oncall/license/request/info?app_key='import requests
url = "https://api.flashcat.cloud/oncall/license/request/info?app_key="
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.flashcat.cloud/oncall/license/request/info?app_key=', 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.flashcat.cloud/oncall/license/request/info?app_key=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$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.flashcat.cloud/oncall/license/request/info?app_key="
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.flashcat.cloud/oncall/license/request/info?app_key=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.flashcat.cloud/oncall/license/request/info?app_key=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body{
"request_id": "01J0D5Y31GY2TWAHRP3Q8K4M6N",
"data": {
"holding": false,
"can_request": true,
"reason": "quota reached",
"window_start": 1793232000,
"window_end": 1795824000,
"request": null,
"admins": [
{
"person_id": 80001,
"person_name": "Wang Lei"
}
]
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "InvalidParameter",
"message": "The specified parameter is not valid."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "Unauthorized",
"message": "You are unauthorized."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "AccessDenied",
"message": "Access Denied."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "RequestTooFrequently",
"message": "Request too frequently."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "InternalError",
"message": "We encountered an internal error, and it has been reported. Please try again later."
}
}Restrictions
| Aspect | Value |
|---|---|
| Rate limits | 1,000 requests/minute; 50 requests/second per account |
| Permissions | None — any valid app_key can call this operation |
Usage
- Reading the state never takes a seat: this is a read-only call.
holdingsays whether the caller holds a seat in the current window.reasonsays why not, and is empty whileholdingis true.can_requestis true only when an owner or admin could fix the caller’s situation, the caller is not an owner or admin themselves (they assign a seat instead of asking), and this window has no request of theirs yet — a person has one request per window, whatever its status.requestis the caller’s own request in this window,nullwhen they have not asked.adminslists the owners and admins to ask.window_startandwindow_endare0when the account has no On-call resource to take a seat from.
Authorizations
Response
Success
Success response envelope. On every 2xx response, request_id identifies the call (also mirrored in the Flashcat-Request-Id header) and data holds the endpoint-specific payload. Failure responses use a different shape — see ErrorResponse.
Was this page helpful?