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

    Jimmy Chan

    05/11/2022, 4:35 PM
    so what is the stable commit that i should be building for production
  • j

    Jimmy Chan

    05/11/2022, 4:36 PM
    or atleast be able to try
  • j

    Jimmy Chan

    05/11/2022, 4:36 PM
    i get a ton of type errors now and in dev i get missing Identity providers
  • e

    Elias Ruiz Monserrat

    05/16/2022, 9:20 AM
    https://calendso.slack.com/archives/C02QT9R2HDW/p1652692676160899?thread_ts=1652010868.802909&cid=C02QT9R2HDW
  • p

    Patrick DePippo

    05/18/2022, 11:36 AM
    when saving addition inputs, whats the reasoning behind saving it as some sort of html format in
    Booking.description
    ? Is that just so it's displayed nicely on emails? Wouldn't it potentially make more sense to have it be a separate table or at the very least a json blob?
    h
    • 2
    • 2
  • p

    Patrick DePippo

    05/18/2022, 11:37 AM
    also POST /booking is unusable? it doesn't use the same code path as the website
  • a

    Agusti

    05/18/2022, 8:42 PM
    Hello <!here> a few minutes ago we launched API in production for our hosted users at (Cal.com) Feel fry to try it already and let us know what you think! Remember you can generate your api keys at Settings > Security Link to our Developer Docs: https://developer.cal.com/ Link to our Postman Public API Collection https://www.postman.com/calcom/workspace/cd670dd8-b36d-4aee-8ab2-9044122e30d1/collection/20666831-b92a1d73-bfcc-4a5f-9ef5-cb117d49c904 Will be improving the docs and ironing out any issues! Have a great afternoon! PS: if you generated your keys prior to this change and they start with prefix cal_ replace them to cal_live_ please 🙏
    🚀 6
    z
    p
    • 3
    • 2
  • v

    Varun Krishnamurthy

    05/24/2022, 12:47 AM
    Hi @Agusti @zomars @Emrysal, I am trying to do a POST to
    /bookings
    in order to create a booking via API. I followed the API docs but I keep getting a 400
    "Bad request. Booking body is invalid."
    This is an example cURL request:
    Copy code
    curl -X POST -H "Content-Type: application/json" --data '{"title": "15min", "startTime": "2022-05-24T16:00:00.000Z", "endTime": "2022-05-24T17:00:00.000Z"}' '<https://api.cal.com/v1/bookings?apiKey=cal_live_*****>'
    Any idea what I'm doing wrong?
    a
    v
    • 3
    • 2
  • b

    Bassam

    05/25/2022, 11:02 PM
    Is the API up and running for local instances of Cal?
    m
    p
    • 3
    • 4
  • e

    Evan Farrell

    05/30/2022, 7:48 PM
    if I were to want to rebuild this screen myself (lets say in a mobile app) using the api for our hosted instance, what's the best way to calculate the time slots to display on the right? Looks like it would be a mix of availabilities minus bookings? just curious if there's a single single endpoint for this, and if not, what the gotcha-free way to display these time slots is thanks!
    p
    e
    +3
    • 6
    • 20
  • p

    Peer

    06/02/2022, 5:29 PM
    shoutout to @zomars. it’s a fresh MVP and we’ll be adding a ton of exciting features in the coming weeks
    🙏 2
    🎉 1
  • v

    Vikram

    06/02/2022, 8:36 PM
    Any idea why I cant see my API keys in the security page? I have a feeling its related to the fact that i login using google oauth but not sure how to resolve this issue
    z
    • 2
    • 2
  • v

    Vikram

    06/02/2022, 9:40 PM
    Anyone have any luck creating a booking? Not sure if im missing something, the docs just ask or
    endTime
    ,
    startTime
    ,
    title
    but im getting "Bad request. Booking body is invalid.". Here is the request im making
    Copy code
    curl --location --request POST '<https://api.cal.com/v1/bookings/?apiKey=><API_KEY>' \
    --header 'Content-Type: application/json' \
    --data-raw '{
        "title": "30 Min Meeting between Vikram and testoo",
        "startTime": "2022-06-07T16:00:00.000Z",
        "endTime": "2022-06-07T16:30:00.000Z"
    }'
  • z

    zomars

    06/02/2022, 9:46 PM
    Seems like you're missing email
  • v

    Vikram

    06/02/2022, 9:47 PM
    is there any documentation or an example I can look at? Its still not working for me
  • v

    Varun Krishnamurthy

    06/02/2022, 9:59 PM
    @Vikram, @Agusti has the most context here so he can confirm, but I believe these are the required request parameters for POST request to create a booking:
    Copy code
    {
        "title": "<title>",
        "uid": "<unique identifier>",
        "eventTypeId": <event type id>,
        "startTime": "2022-05-30T11:00:00.000Z",
        "endTime": "2022-05-30T12:00:00.000Z"
    }
    🙏 2
    v
    z
    a
    • 4
    • 12
  • c

    Chrissy

    06/03/2022, 2:20 AM
    @zomars are you the right person to send a tiny typo to in the console?
    z
    p
    • 3
    • 3
  • a

    Agusti

    06/06/2022, 7:34 PM
    Hey @Varun Krishnamurthy not shipped to prod yet, but hopefully will test it properly and merge today. Will keep you guys posted @Vikram too! Also new admin endpoints coming soon!
    ❤️ 1
    v
    v
    • 3
    • 21
  • v

    Vikram

    06/06/2022, 9:29 PM
    Im getting a error whenever I hit the
    /bookings
    endpoint. Seems like its for all requests simply doing a
    GET
    request is also failing. Any ideas? I think I broke something and now my bookings are in a borked state
    Copy code
    {
      "message": "Something went wrong",
      "error": {
        "code": "P2022",
        "clientVersion": "3.14.0",
        "meta": {
          "column": "Booking.confirmed"
        }
      }
    }
  • z

    zomars

    06/06/2022, 9:41 PM
    If you're running the latest main, there are new migrations that need to be run into the DB
  • v

    Vikram

    06/06/2022, 9:47 PM
    this is not a self hosted instance. Im using https://api.cal.com/v1/bookings
    🙏 1
    z
    • 2
    • 5
  • v

    Vikram

    06/07/2022, 6:11 PM
    Any way to view and debug webhooks? I am not sure if mine is firing. Also @Agusti webhooks are not documented in the postman collection you started.
    a
    a
    • 3
    • 40
  • a

    Agusti

    06/08/2022, 2:52 PM
    @Ali Might know more about this @Vikram as he’s been building webhooks
  • v

    Vikram

    06/08/2022, 11:27 PM
    @Agusti anyway to set the attendees when creating a booking using the API?
  • v

    Vikram

    06/08/2022, 11:27 PM
    and any other metadata?
    a
    • 2
    • 6
  • d

    Devan Thakur

    06/10/2022, 6:24 AM
    Hey Team Cal, We've been exploring Cal.com API to build an application. We have been facing a few issues though. 1. Availability API return empty [], even if we have availabilities showing up on Cal.com. Only when we create an availability through the API, it shows up. But it resets the start and end dates to 1970 2. Booking API does not work as per the provided documentation. Not able to create a booking. 3. Can't find any documentation/Postman item for the payload required to create a schedule.
    p
    • 2
    • 5
  • v

    Vikram

    06/10/2022, 4:11 PM
    @Agusti any updates on the availability API? sorry to be so persistent about this but the availability endpoint and the ability to add emails to the booking endpoint are the only thing holding my team back from using cal.com
    🙏 1
    a
    v
    • 3
    • 11
  • t

    Talently Tech

    06/10/2022, 10:22 PM
    Hi
  • t

    Talently Tech

    06/10/2022, 10:22 PM
    How should the round robin function work?
    a
    m
    • 3
    • 2
  • a

    Agusti

    06/14/2022, 10:52 PM
    New API availability endpoint on production! @Varun Krishnamurthy @Vikram @Octavian Balatel I know you guys where waiting for this! Couldn’t have make it without @zomars help tbh but here it is!
    <https://api.cal.com/v1/availability?apiKey=YOUR_API_KEY_HERE&dateFrom=2022-06-14&dateTo=2022-06-17&userId=1>
    Postman docs: https://documenter.getpostman.com/view/20666831/Uz5ArJni#8333a1d5-9df6-4134-b654-8ede7becafb5
    🙏 4
    ❤️ 1
    🙌 2
    v
    z
    v
    • 4
    • 31
12345Latest