https://cal.com logo
Join Slack
Powered by
# api
  • v

    Vivek Bijlwan

    02/04/2022, 2:41 PM
    Hi All any timeline when the API is getting released?
    b
    p
    • 3
    • 2
  • e

    Evan Farrell

    02/22/2022, 12:20 AM
    Hey folks, what’s the best way to get access to any kind of API for booking/availability? I suppose we would need to self-host since there’s no public api?
    b
    • 2
    • 5
  • p

    Peer

    02/23/2022, 10:02 AM
    would love to hear some feedback from the community https://github.com/calcom/cal.com/issues/1594#issuecomment-1048408285
    k
    a
    r
    • 4
    • 4
  • d

    Donald Casson

    03/01/2022, 1:18 AM
    Hi All, is there an API spec that we can see yet ? thanks
    p
    t
    +4
    • 7
    • 9
  • p

    Peer

    03/23/2022, 7:11 PM
    hey <!channel> @Agusti added endpoints to the RFC: https://github.com/calcom/cal.com/issues/1594 please comment
    👍 3
    👀 3
    a
    f
    r
    • 4
    • 6
  • t

    Tejas Badadare

    04/21/2022, 10:44 PM
    Hey folks, i'm trying to use the API to read/modify resources on Cal such as bookings and availabilities. Based on the swagger docs at https://docs.cal.com/public-api looks like I can authenticate my requests to the API by providing an
    apiKey=<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?
    z
    a
    • 3
    • 8
  • t

    Tejas Badadare

    04/22/2022, 10:59 PM
    Hey guys, i'm encountering unexpected behavior with several APIs, can someone take a look? Perhaps a couple of these are user error, but it seems like the APIs aren't returning what I expect. 1.
    GET <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!
    🙏 1
    z
    a
    • 3
    • 7
  • t

    Tejas Badadare

    04/26/2022, 7:16 PM
    Hey guys, I'm wondering if there is a way to get a booking's conference URL when using Meet integration (e.g. meet.google.com/xyz) in the API. The
    location
    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?
    ❤️ 1
    a
    • 2
    • 3
  • p

    Patrick DePippo

    04/29/2022, 3:18 AM
    if im an infrastructure user should i be able to see the api source code?
  • o

    Omar

    05/01/2022, 6:48 PM
    Hey all, working on a speech consultant project where the reuirement is for her users to login to their profiles where a summary of their cal charged sessions through stripe is visible in a table format. What would be the best way to get this done? How can I connect them to save records in DB for a user with a unique email and ID?
  • r

    Rohit Raj

    05/03/2022, 11:52 AM
    hey guys, I have been trying to integrate cal with "@calcom/embed-react" but all I am getting is a loader and nothing else. How will I proceed forward with the integration??
    j
    h
    • 3
    • 2
  • h

    Hariom Balhara

    05/05/2022, 10:30 AM
    Can you take a pull, I believe some fix went yesterday itself
  • v

    Victor Gbaye

    05/05/2022, 10:38 AM
    yes just did that and it's working just fine👌
    🎉 1
  • v

    Victor Gbaye

    05/05/2022, 10:38 AM
    thank you @Hariom Balhara
    ❤️ 1
  • v

    Victor Gbaye

    05/05/2022, 10:49 AM
    @Hariom Balhara is there a help channel for issues and questions about the project?
  • h

    Hariom Balhara

    05/05/2022, 10:51 AM
    You can ask your questions in this channel itself. If it's a bug/feature you can file it on Github
  • o

    Omar

    05/05/2022, 11:09 AM
    Hello all, I have a follow up question re: embed. How can we embed calendar in a self hosted cal into a client site?
    h
    • 2
    • 3
  • r

    Rohit Raj

    05/05/2022, 12:42 PM
    @calcom/webdev error - TypeError: "ikm" must be at least one byte in length while running cal on localhost
  • h

    Hariom Balhara

    05/05/2022, 12:44 PM
    Try this @Rohit Raj https://calendso.slack.com/archives/C01NXDSRY9W/p1651414752011369?thread_ts=1651019853.501459&amp;cid=C01NXDSRY9W
  • r

    Rohit Raj

    05/05/2022, 1:02 PM
    @Hariom Balhara still getting the same error
  • o

    Omar

    05/05/2022, 1:50 PM
    Hey all, What is the best way to pull data from a sel-hosted calcom from another website. Any links or guides would be greatly appreciated
    p
    • 2
    • 3
  • j

    Joshua Liu

    05/05/2022, 9:04 PM
    @Marx-Lenin Topico
  • j

    Joshua Liu

    05/05/2022, 9:07 PM
    @Peer what’s the status of Admin panel? is it live or still a RFC? not sure how to manage users registered on our self-hosted instance
  • z

    zomars

    05/05/2022, 11:20 PM
    Still WIP: We've setup a staging env where we'll be updating constantly: https://console.cal.dev/dashboard
    v
    • 2
    • 2
  • r

    Rohit Raj

    05/06/2022, 11:17 AM
    I wanted to know why I am still getting the same error: "TypeError: "ikm" must be at least one byte in length" . Even though I have used this link https://bcrypt-generator.com/ to store my password in the db
  • a

    Alexey Pepeskul

    05/08/2022, 11:54 AM
    Hello, guys! I started to integrate cal.com API into my server app and faced with 2 issues. 1. I can not make any API call to cal.com backend using my API keys. I tried api.cal.com and api.cal.dev with test and live API keys but always getting same error
    Copy code
    curl -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?
    a
    a
    +3
    • 6
    • 28
  • p

    Patrick DePippo

    05/09/2022, 6:31 PM
    is there a way to access the cal api if I self host? (I have an infrastructure license)
    p
    • 2
    • 3
  • p

    Patrick DePippo

    05/11/2022, 1:03 PM
    unless I'm doing something wrong it appears master is broken for the api
  • p

    Patrick DePippo

    05/11/2022, 1:04 PM
    getting
    Copy code
    @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 }))
    h
    a
    • 3
    • 10
  • p

    Patrick DePippo

    05/11/2022, 1:05 PM
    at commit
    982c32e92cb51ead6a159c904771d8adb62259f9
12345Latest