Get Organization Availability
Get the consolidated free-busy of all users of an organization
Authorization
Authorization
RequiredBearer <token>The Recal API token
In: header
Path Parameters
orgSlug
RequiredstringQuery Parameters
minDate
RequiredDate | string | numbermaxDate
RequiredDate | string | numbertimeZone
stringDefault:
"UTC"
primaryOnly
booleanDefault:
false
provider
string | array<unknown>Response Body
TypeScript Definitions
Use the response body type in TypeScript.
response
Requiredarray<object>TypeScript Definitions
Use the response body type in TypeScript.
response
RequiredstringTypeScript Definitions
Use the response body type in TypeScript.
response
Requiredstringcurl -X GET "https://api.recal.dev/v1/organizations/string/calendar/free-busy?minDate=%5Bobject+Object%5D&maxDate=%5Bobject+Object%5D&timeZone=UTC&primaryOnly=false&provider=google" \
-H "Authorization: Bearer <token>"
fetch("https://api.recal.dev/v1/organizations/string/calendar/free-busy?minDate=%5Bobject+Object%5D&maxDate=%5Bobject+Object%5D&timeZone=UTC&primaryOnly=false&provider=google", {
headers: {
"Authorization": "Bearer <token>"
}
})
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.recal.dev/v1/organizations/string/calendar/free-busy?minDate=%5Bobject+Object%5D&maxDate=%5Bobject+Object%5D&timeZone=UTC&primaryOnly=false&provider=google"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
import requests
url = "https://api.recal.dev/v1/organizations/string/calendar/free-busy?minDate=%5Bobject+Object%5D&maxDate=%5Bobject+Object%5D&timeZone=UTC&primaryOnly=false&provider=google"
response = requests.request("GET", url, headers = {
"Authorization": "Bearer <token>"
})
print(response.text)
[
{
"start": "1970-01-01T01:00:00.000+01:00",
"end": "1970-01-01T01:00:00.000+01:00"
}
]
"User has no connected calendars"
"Organization not found"