Vivek Bijlwan
02/04/2022, 2:41 PMEvan Farrell
02/22/2022, 12:20 AMPeer
Donald Casson
03/01/2022, 1:18 AMPeer
Tejas Badadare
04/21/2022, 10:44 PMapiKey=<key>
query param with my requests. However, when I do this using Postman (or the integrated swagger client on the website), I get a 401: "error": "Your api key is not valid"
I've made sure the key is correct, and i've tried with a couple keys that i generated from the settings page. Am i calling the API wrong, or is there a different way to authenticate?
TLDR: How do I authenticate with the public API using my API key?Tejas Badadare
04/22/2022, 10:59 PMGET <https://api.cal.dev/v1/event-types>
-> returns empty array even though I have a few event types i can see on web
2. GET <https://api.cal.dev/v1/event-types/151>
-> If I try to get info on a specific event type, the server times out. Sometimes returns a 500.
3. GET <https://api.cal.dev/v1/availabilities>
-> returns empty array even though I can see Working Hours set up on web
4. PATCH <https://api.cal.dev/v1/bookings/145>
with body {"description": "testing description patch"}
-> returns 400 "Something went wrong"
. Same thing happens for all other PATCH APIs I tried. Am I structuring the body wrong? I'm following the format on swagger.
5. GET <https://api.cal.dev/v1/schedules>
-> returns a 400 with message "Expected object, received string"
6. GET <https://api.cal.dev/v1/schedules/3>
-> seems like i can access arbitrary schedules by requesting their IDs. I don't own schedule 3 (it belongs to user 6, i'm user 89) but I can still query it.
Thanks for the help!Tejas Badadare
04/26/2022, 7:16 PMlocation
field just shows up as "integrations:google:meet"
in both the API and the webhook payload. I'm looking to get the URL and also update it programmatically. Can this be done, and propagated to the destination calendar?Patrick DePippo
04/29/2022, 3:18 AMOmar
05/01/2022, 6:48 PMRohit Raj
05/03/2022, 11:52 AMHariom Balhara
05/05/2022, 10:30 AMVictor Gbaye
05/05/2022, 10:38 AMVictor Gbaye
05/05/2022, 10:38 AMVictor Gbaye
05/05/2022, 10:49 AMHariom Balhara
05/05/2022, 10:51 AMOmar
05/05/2022, 11:09 AMRohit Raj
05/05/2022, 12:42 PMHariom Balhara
05/05/2022, 12:44 PMRohit Raj
05/05/2022, 1:02 PMOmar
05/05/2022, 1:50 PMJoshua Liu
05/05/2022, 9:04 PMJoshua Liu
05/05/2022, 9:07 PMzomars
05/05/2022, 11:20 PMRohit Raj
05/06/2022, 11:17 AMAlexey Pepeskul
05/08/2022, 11:54 AMcurl -X 'GET' \
'<https://api.cal.dev/bookings?apiKey=cal_test_d...3>' \
-H 'accept: */*'
{"message":"Something went wrong","error":{"clientVersion":"3.10.0"}}
2. In swagger doc I found
https://developer.cal.com/api/api-reference
https://api.cal.com/docs
there is no definition of request body of POST and PUT requests? Is it broken? When it will be fixed?Patrick DePippo
05/09/2022, 6:31 PMPatrick DePippo
05/11/2022, 1:03 PMPatrick DePippo
05/11/2022, 1:04 PM@calcom/api:dev: info - Checking validity of types...
@calcom/api:dev: Failed to compile.
@calcom/api:dev:
@calcom/api:dev: ./pages/api/event-types/[id].ts:56:56
@calcom/api:dev: Type error: Type '{ timeZone?: string | null | undefined; userId?: number | null | undefined; description?: string | null | undefined; teamId?: number | null | undefined; eventName?: string | null | undefined; ... 22 more ...; currency: string; }' is not assignable to type 'Partial<EventType>'.
@calcom/api:dev: Types of property 'recurringEvent' are incompatible.
@calcom/api:dev: Type '{ dtstart?: Date | undefined; interval?: number | undefined; count?: number | undefined; freq?: Frequency | undefined; until?: Date | undefined; tzid?: string | undefined; }' is not assignable to type 'JsonValue | undefined'.
@calcom/api:dev: Type '{ dtstart?: Date | undefined; interval?: number | undefined; count?: number | undefined; freq?: Frequency | undefined; until?: Date | undefined; tzid?: string | undefined; }' is not assignable to type 'JsonObject'.
@calcom/api:dev: Property 'dtstart' is incompatible with index signature.
@calcom/api:dev: Type 'Date' is not assignable to type 'JsonValue | undefined'.
@calcom/api:dev: Type 'Date' is not assignable to type 'JsonObject'.
@calcom/api:dev: Index signature for type 'string' is missing in type 'Date'.
@calcom/api:dev:
@calcom/api:dev: 54 | .findUnique({ where: { id: safeQuery.data.id } })
@calcom/api:dev: 55 | .then((data) => schemaEventTypePublic.parse(data))
@calcom/api:dev: > 56 | .then((event_type) => res.status(200).json({ event_type }))
Patrick DePippo
05/11/2022, 1:05 PM982c32e92cb51ead6a159c904771d8adb62259f9