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
Description: Event Id or Instance id. For recurring appointments send masterEventId to modify original series.
Examples: ocQHyuzHvysMo5N5VsXc ocQHyuzHvysMo5N5VsXc_1729821600000_1800
string requiredDescription: Event Id or Instance id. For recurring appointments send masterEventId to modify original series.
Examples: ocQHyuzHvysMo5N5VsXc ocQHyuzHvysMo5N5VsXc_1729821600000_1800
Headers
Authorization
Access Token
Example: Bearer 9c48df2694a849b6089f9d0d3513efe
string requiredAccess Token
Example: Bearer 9c48df2694a849b6089f9d0d3513efe
Version
API Version
Allowed value: 2021-04-15
string requiredAPI Version
Allowed value: 2021-04-15
Responses
Successful response 200
Successful response
Body
event object
id
Event Id or Instance id for a recurring event
Examples: ocQHyuzHvysMo5N5VsXc ocQHyuzHvysMo5N5VsXc_1729821600000_1800
string required Event Id or Instance id for a recurring event
Examples: ocQHyuzHvysMo5N5VsXc ocQHyuzHvysMo5N5VsXc_1729821600000_1800
address
Calendar Event address
Example: https://meet.google.com/yqp-gogr-wve
string Calendar Event address
Example: https://meet.google.com/yqp-gogr-wve
title
Calendar Event title
Example: Appointment with PowerLeads Dev team
string required Calendar Event title
Example: Appointment with PowerLeads Dev team
calendarId
Calendar ID
Example: BqTwX8QFwXzpegMve9EQ
string required Calendar ID
Example: BqTwX8QFwXzpegMve9EQ
locationId
Location ID
Example: 0007BWpSzSwfiuSl0tR2
string required Location ID
Example: 0007BWpSzSwfiuSl0tR2
contactId
Contact ID
Example: 9NkT25Vor1v4aQatFsv2
string required Contact ID
Example: 9NkT25Vor1v4aQatFsv2
groupId
Group ID
Example: 9NkT25Vor1v4aQatFsv2
string required Group ID
Example: 9NkT25Vor1v4aQatFsv2
appointmentStatus
Appointment Status
Example: confirmed
string required Appointment Status
Example: confirmed
assignedUserId
AssignedUser - the primary owner of an appointment
Example: YlWd2wuCAZQzh2cH1fVZ
string required AssignedUser - the primary owner of an appointment
Example: YlWd2wuCAZQzh2cH1fVZ
users
Users - the secondary owners of an appointment.
Example: ["YlWd2wuCAZQzh2cH1fVZ","9NkT25Vor1v4aQatFsv2"]
array[string] required Users - the secondary owners of an appointment.
Example: ["YlWd2wuCAZQzh2cH1fVZ","9NkT25Vor1v4aQatFsv2"]
notes
Notes
Example: Some dummy note
string Notes
Example: Some dummy note
isRecurring
true if the event is recurring otherwise false
Example: true
boolean required true if the event is recurring otherwise false
Example: true
rrule
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
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
Start Time
Example: 2023-09-25T16:00:00+05:30
object required Start Time
Example: 2023-09-25T16:00:00+05:30
endTime
End Time
Example: 2023-09-25T16:00:00+05:30
object required End Time
Example: 2023-09-25T16:00:00+05:30
dateAdded
Date Added
Example: 2023-09-25T16:00:00+05:30
object required Date Added
Example: 2023-09-25T16:00:00+05:30
dateUpdated
Date Updated
Example: 2023-09-25T16:00:00+05:30
object required Date Updated
Example: 2023-09-25T16:00:00+05:30
assignedResources
Ids of associated resources rooms and/or equipments
array[string] Ids of associated resources rooms and/or equipments
createdBy
Appointment booked by metadata
object Appointment booked by metadata
userId
The ID of the user who created or updated the appointment
source
The source of the appointment
stringThe ID of the user who created or updated the appointment
source
string requiredThe source of the appointment
masterEventId
Master event id for a recurring instance
Example: ocWd2wuBGAQzh2cH1fSZ
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" }}