Get Appointment

Get appointment by ID

Request

Security: Bearer Auth

Utiliza el Access Token generado con tipo de usuario Subcuenta o el Token de Integración Privada de la Subcuenta en PowerLeads. Proporciona tu token Bearer en el encabezado Authorization al realizar solicitudes a recursos protegidos.

Example: Authorization: Bearer 123

Path Parameters

eventId string required
Description: Event Id or Instance id. For recurring appointments send masterEventId to modify original series.
Examples: ocQHyuzHvysMo5N5VsXc ocQHyuzHvysMo5N5VsXc_1729821600000_1800

Headers

Authorization string required
Access Token
Example: Bearer 9c48df2694a849b6089f9d0d3513efe

Version string required
API Version
Allowed value: 2021-04-15

 


Responses

Successful response 200

Successful response

Body 

event object
id string required
Event Id or Instance id for a recurring event
Examples: ocQHyuzHvysMo5N5VsXc ocQHyuzHvysMo5N5VsXc_1729821600000_1800
address string
Calendar Event address
Example: https://meet.google.com/yqp-gogr-wve
title string required
Calendar Event title
Example: Appointment with PowerLeads Dev team
calendarId string required
Calendar ID
Example: BqTwX8QFwXzpegMve9EQ
locationId string required
Location ID
Example: 0007BWpSzSwfiuSl0tR2
contactId string required
Contact ID
Example: 9NkT25Vor1v4aQatFsv2
groupId string required
Group ID
Example: 9NkT25Vor1v4aQatFsv2
appointmentStatus string required
Appointment Status
Example: confirmed
assignedUserId string required
AssignedUser - the primary owner of an appointment
Example: YlWd2wuCAZQzh2cH1fVZ
users array[string] required
Users - the secondary owners of an appointment.
Example: ["YlWd2wuCAZQzh2cH1fVZ","9NkT25Vor1v4aQatFsv2"]
notes string
Notes
Example: Some dummy note
isRecurring boolean required
true if the event is recurring otherwise false
Example: true
rrule string
RRULE as per the iCalendar (RFC 5545) specification for recurring events. DTSTART is not required, instance ids are calculated on the basis of startTime of the event.
Examples: RRULE:FREQ=DAILY;INTERVAL=1;COUNT=5 RRULE:FREQ=DAILY;INTERVAL=1;UNTIL=20210623T043000Z EXDATE:20211105T040000Z,20211105T040000Z
startTime object required
Start Time
Example: 2023-09-25T16:00:00+05:30
endTime object required
End Time
Example: 2023-09-25T16:00:00+05:30
dateAdded object required
Date Added
Example: 2023-09-25T16:00:00+05:30
dateUpdated object required
Date Updated
Example: 2023-09-25T16:00:00+05:30
assignedResources array[string]
Ids of associated resources rooms and/or equipments
createdBy object
Appointment booked by metadata
userId string
The ID of the user who created or updated the appointment
source string required
The source of the appointment
masterEventId string
Master event id for a recurring instance
Example: ocWd2wuBGAQzh2cH1fSZ
curl --request GET \
--url https://services.leadconnectorhq.com/calendars/events/appointments/ocQHyuzHvysMo5N5VsXc \
--header 'Accept: application/json' \
--header 'Authorization: Bearer 123' \
--header 'Version: 2021-04-15'

Response Example

{
"event": {
"id": "ocQHyuzHvysMo5N5VsXc",
"address": "https://meet.google.com/yqp-gogr-wve",
"title": "Appointment with GHL Dev team",
"calendarId": "BqTwX8QFwXzpegMve9EQ",
"locationId": "0007BWpSzSwfiuSl0tR2",
"contactId": "9NkT25Vor1v4aQatFsv2",
"groupId": "9NkT25Vor1v4aQatFsv2",
"appointmentStatus": "confirmed",
"assignedUserId": "YlWd2wuCAZQzh2cH1fVZ",
"users": [
"YlWd2wuCAZQzh2cH1fVZ",
"9NkT25Vor1v4aQatFsv2"
],
"notes": "Some dummy note",
"isRecurring": "true",
"rrule": "RRULE:FREQ=DAILY;INTERVAL=1;COUNT=5",
"startTime": "2023-09-25T16:00:00+05:30",
"endTime": "2023-09-25T16:00:00+05:30",
"dateAdded": "2023-09-25T16:00:00+05:30",
"dateUpdated": "2023-09-25T16:00:00+05:30",
"assignedResources": [
"string"
],
"createdBy": {
"userId": "string",
"source": "string"
},
"masterEventId": "ocWd2wuBGAQzh2cH1fSZ"
}
}

 


¿Este artículo fue útil?