Lists single company booking
GET
/bookings/{bookingId}
Bookings
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
bookingId
string
required
Example:
fc0f4648-1c38-4e95-bba6-b397c2a458ee
Header Params
Authorization
string
required
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://connect.deskbird.com/bookings/' \
--header 'Authorization;'
Responses
🟢200OK
application/json
Body
id
string
required
Example:
123e4567-e89b-12d3-a456-426614174000
companyId
string
required
Example:
123e4567-e89b-12d3-a456-426614174000
userId
string | null
required
Example:
123e4567-e89b-12d3-a456-426614174000
anonymized
boolean
required
Example:
false
autoCancellationTime
string <date-time> | null
required
Example:
2021-01-01T00:00:00.000Z
checkInStatus
enum<string>
required
Allowed values:
checkedIncheckInNotAvailablenotCheckedInreadyForCheckInreadyForNonQRCheckIn
Example:
checkedIn
earlyReleaseEndTime
string <date-time> | null
required
Example:
2021-01-01T00:00:00.000Z
endTime
string <date-time>
required
Example:
2021-01-01T00:00:00.000Z
guest
required
One of
One of
Example:
{"firstName":"John","lastName":"Doe","email":"john.doe@example.com"}
isAnonymousBooking
boolean
required
Example:
false
startTime
string <date-time>
required
Example:
2021-01-01T00:00:00.000Z
status
enum<string>
required
Allowed values:
acceptedcancelledrunningcompletededitedByUser
Example:
accepted
zoneId
string | null
required
Example:
1234
floorId
string | null
required
Example:
1122
resourceId
string
required
Example:
123e4567-e89b-12d3-a456-426614174000
resource
object
required
Example:
{"id":"123e4567-e89b-12d3-a456-426614174000","name":"Flex Desk 1","type":"flexDesk"}
id
string
required
Example:
123e4567-e89b-12d3-a456-426614174000
name
string
required
Example:
Desk 1
type
enum<string>
required
Allowed values:
flexDeskmeetingRoomparkingother
Example:
flexDesk
officeId
string
required
Example:
3241
user
required
One of
One of
Example:
{"id":"123e4567-e89b-12d3-a456-426614174000","email":"john.doe@example.com","firstName":"John","lastName":"Doe"}
createdAt
string <date-time>
required
Example:
2021-01-01T00:00:00.000Z
updatedAt
string <date-time>
required
Example:
2021-01-01T00:00:00.000Z
Example
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"companyId": "123e4567-e89b-12d3-a456-426614174000",
"userId": "123e4567-e89b-12d3-a456-426614174000",
"anonymized": false,
"autoCancellationTime": "2021-01-01T00:00:00.000Z",
"checkInStatus": "checkedIn",
"earlyReleaseEndTime": "2021-01-01T00:00:00.000Z",
"endTime": "2021-01-01T00:00:00.000Z",
"guest": {
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@example.com"
},
"isAnonymousBooking": false,
"startTime": "2021-01-01T00:00:00.000Z",
"status": "accepted",
"zoneId": "1234",
"floorId": "1122",
"resourceId": "123e4567-e89b-12d3-a456-426614174000",
"resource": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Desk 1",
"type": "flexDesk"
},
"officeId": "3241",
"user": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"email": "john.doe@example.com",
"firstName": "John",
"lastName": "Doe"
},
"createdAt": "2021-01-01T00:00:00.000Z",
"updatedAt": "2021-01-01T00:00:00.000Z"
}
🟠401Unauthorized
🟠403Forbidden
🟠404Record Not Found