Get a calendar
GET
/api/v1/calendars/{id}
const url = 'https://digize.com/api/v1/calendars/example';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://digize.com/api/v1/calendars/example \ --header 'x-api-key: <x-api-key>'One calendar with its team and booking rules.
Needs the crm:read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Responses
Section titled “Responses”Done
Media typeapplication/json
object
id
required
string
name
required
string
slug
required
Its booking page’s address after the workspace’s.
string
description
required
string
color
required
string
duration
required
In minutes.
number
price
required
Per person, in minor units.
integer
deposit
required
Per person, taken through Stripe when a customer books.
integer
capacity
required
The most people one booking can bring.
number
bufferMinutes
required
Kept free after each appointment.
number
noticeHours
required
How soon before it starts a time can be booked.
number
windowDays
required
How far ahead customers can book.
number
team
required
Array<object>
object
id
required
The team member’s user id.
string
name
required
string
roundRobin
required
Each booking goes to whoever’s free and least booked.
boolean
active
required
Whether its booking page takes bookings.
boolean
Example
{ "color": "violet"}What was sent isn’t valid (invalid).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}