availability
Get availability 1
GET
/
availability
/
{id}
cURL
curl --request GET \
--url https://api.example.com/availability/{id} \
--header 'x-meetergo-api-user-id: <api-key>'import requests
url = "https://api.example.com/availability/{id}"
headers = {"x-meetergo-api-user-id": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-meetergo-api-user-id': '<api-key>'}};
fetch('https://api.example.com/availability/{id}', 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.example.com/availability/{id}",
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-meetergo-api-user-id: <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.example.com/availability/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-meetergo-api-user-id", "<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.example.com/availability/{id}")
.header("x-meetergo-api-user-id", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/availability/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-meetergo-api-user-id"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"schedule": {
"monday": {
"enabled": true,
"hours": [
{
"start": "<string>",
"end": "<string>"
}
]
},
"tuesday": {
"enabled": true,
"hours": [
{
"start": "<string>",
"end": "<string>"
}
]
},
"wednesday": {
"enabled": true,
"hours": [
{
"start": "<string>",
"end": "<string>"
}
]
},
"thursday": {
"enabled": true,
"hours": [
{
"start": "<string>",
"end": "<string>"
}
]
},
"friday": {
"enabled": true,
"hours": [
{
"start": "<string>",
"end": "<string>"
}
]
},
"saturday": {
"enabled": true,
"hours": [
{
"start": "<string>",
"end": "<string>"
}
]
},
"sunday": {
"enabled": true,
"hours": [
{
"start": "<string>",
"end": "<string>"
}
]
}
},
"timezone": "<string>",
"availabilityExceptions": [
{
"ownerId": "<string>",
"available": true,
"start": "<string>",
"end": "<string>",
"createdAt": "<string>",
"id": 123,
"title": "<string>",
"note": "<string>",
"deletedAt": "<string>"
}
],
"isDefault": true,
"createdAt": "<string>",
"deletedAt": "<string>",
"useExplicitAvailability": true,
"explicitAvailabilityEventTitle": "<string>"
}Authorizations
ApiUserHeaderJWTApiKey
User ID to act on behalf of. Platform API Keys only (required with an API Key unless the endpoint states otherwise). Requests authenticated with a Personal Access Token are rejected if this header names another user.
Path Parameters
Query Parameters
Response
200 - application/json
Show child attributes
Show child attributes
Show child attributes
Show child attributes
When enabled, only calendar events with the specified title will be used as available slots.
The calendar event title to look for when useExplicitAvailability is enabled.
⌘I
cURL
curl --request GET \
--url https://api.example.com/availability/{id} \
--header 'x-meetergo-api-user-id: <api-key>'import requests
url = "https://api.example.com/availability/{id}"
headers = {"x-meetergo-api-user-id": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-meetergo-api-user-id': '<api-key>'}};
fetch('https://api.example.com/availability/{id}', 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.example.com/availability/{id}",
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-meetergo-api-user-id: <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.example.com/availability/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-meetergo-api-user-id", "<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.example.com/availability/{id}")
.header("x-meetergo-api-user-id", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/availability/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-meetergo-api-user-id"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"schedule": {
"monday": {
"enabled": true,
"hours": [
{
"start": "<string>",
"end": "<string>"
}
]
},
"tuesday": {
"enabled": true,
"hours": [
{
"start": "<string>",
"end": "<string>"
}
]
},
"wednesday": {
"enabled": true,
"hours": [
{
"start": "<string>",
"end": "<string>"
}
]
},
"thursday": {
"enabled": true,
"hours": [
{
"start": "<string>",
"end": "<string>"
}
]
},
"friday": {
"enabled": true,
"hours": [
{
"start": "<string>",
"end": "<string>"
}
]
},
"saturday": {
"enabled": true,
"hours": [
{
"start": "<string>",
"end": "<string>"
}
]
},
"sunday": {
"enabled": true,
"hours": [
{
"start": "<string>",
"end": "<string>"
}
]
}
},
"timezone": "<string>",
"availabilityExceptions": [
{
"ownerId": "<string>",
"available": true,
"start": "<string>",
"end": "<string>",
"createdAt": "<string>",
"id": 123,
"title": "<string>",
"note": "<string>",
"deletedAt": "<string>"
}
],
"isDefault": true,
"createdAt": "<string>",
"deletedAt": "<string>",
"useExplicitAvailability": true,
"explicitAvailabilityEventTitle": "<string>"
}