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

    Visits Casavo

    09/05/2022, 8:52 AM
    Hi all, i'm new to Cal, i 'm trying to working with the Api, i'm able to create a new event type but when i call the get by id (https://api.cal.com/v1/event-type/{id) cal respond with 401 Unauthorized? i'm calling this Api with the api_key that i created .... i'm with trial pro account, any suggestion?
    a
    a
    • 3
    • 3
  • c

    Chrissy

    09/09/2022, 1:38 PM
    Is there an ETA for the endpoint updates to start accepting passwords? This is holding up our deployment. Thanks!
  • p

    Peer

    09/20/2022, 2:47 PM
    is this helping? https://developer.cal.com/api/api-reference
  • j

    Jesse Winton

    09/21/2022, 4:12 PM
    Hi! I'm trying to allow vendors to manage their availability as part of our team via our platform, rather than the cal.com dashboard; am I able to do that with the API, and if so, where would I go for that documentation?
  • v

    Varun Krishnamurthy

    09/22/2022, 12:56 AM
    @zomars @Agusti @Peer @Bailey are the v1 APIs still operational? I am on an individual account, but the APIs do not seem to be returning correct information when I use my API Key (I am using the api key I generated that is associated with my account) šŸ˜ž for example, I want to fetch my
    user id
    , so I am making a GET request to
    Copy code
    <https://api.cal.com/v1/users?apiKey=cal_live_****>
    However, I am getting an empty list of users instead of the one I created. Seems like the behavior here has changed since July, but the documentation/Postman collection doesn't indicate any changes here. Any idea what I'm doing wrong? It seems that without
    user id
    , I cannot make other API calls, like availabilities, etc.
    z
    • 2
    • 11
  • d

    Damian Kress

    09/27/2022, 10:14 AM
    Hi, again. I'm having trouble with the /event-types endpoint, trying to integrate cal.com with our platform, hopefully someone here is able to help us: When a user has succesfully registered, we programatically (via api.cal.com) 1. create a team for the new user 2. create two schedules for the team 3. create two event types for the team (1 per schedule) 4. create two availabilities for the team (1 per schedule/event type) However, when we create the event type(s) via API, we have the following issues: • we can't schedule events through the booking calendar (https://cal.com/{teamSlug}/{eventTypeSlug}), the "days" are just greyed-out • on app.cal.com/event-types the new team, availabilities and event types are visible, but: ā—¦ the newly created event types appear below the newly created team (correct), but also below the "global" user at the very top (might indicate the root cause of the issue?) ā—¦ the event types are not editable, when trying to edit them through app.cal.com we get an error 500 (everything else newly created is editable and appears fine) ā—¦ the created event types also don't show up when calling https://api.cal.com/v1/event-types/?apiKey=… we started out with this POST body to /event-types:
    Copy code
    {
    	length: 15,
    	title: 'some title',
    	slug: 'some-title',
    	description: '',
    	metadata: {},
    	teamId: 1234,
    }
    but a more sophisticated POST body results in the same issues:
    Copy code
    {
      "title": "EventType Per Postman",
      "slug": "eventtype-per-postman",
      "description": "",
      "position": 0,
      "locations": [
        {
          "type": "integrations:daily"
        }
      ],
      "length": 15,
      "hidden": false,
      "userId": null,
      "teamId": 1234,
      "eventName": "",
      "timeZone": null,
      "periodType": "UNLIMITED",
      "periodDays": null,
      "periodCountCalendarDays": false,
      "requiresConfirmation": false,
      "disableGuests": false,
      "hideCalendarNotes": false,
      "minimumBookingNotice": 120,
      "beforeEventBuffer": 0,
      "afterEventBuffer": 0,
      "schedulingType": "COLLECTIVE",
      "price": 0,
      "currency": "usd",
      "slotInterval": null,
      "metadata": {
        "blockchainId": 1
      },
      "successRedirectUrl": null
    }
    Note: the
    seatsPerTimeSlot
    and
    scheduleId
    properties are not recognised, also
    "periodStartDate": "2022-09-27T09:41:32.794Z"
    and
    "periodEndDate": "2022-09-27T09:41:32.794Z"
    result in the error
    "Expected date, received string"
    z
    a
    r
    • 4
    • 7
  • m

    Maciej Gryka

    10/13/2022, 8:53 PM
    Hiya - would it be possible to add booking
    uid
    to the data included in the
    bookingSuccessful
    action? https://developer.cal.com/embed/set-up-your-embed#following-are-the-list-of-supported-actions I’ve got an embed of Cal on my site and want to know when users create bookings and give them easy ways to reschedule/cancel them. To do that I need to
    uid
    and the only way I can see so far of getting it, is • wait for the
    bookingSuccessful
    action to fire • look at the
    eventType
    and
    date
    • make an API call to get all bookings, filter by the
    eventType
    and
    date
    This will probably work, but seems roundabout?
    e
    • 2
    • 1
  • m

    Michael Ferioli

    10/20/2022, 4:01 PM
    Hey - this might be related to @Damian Kress’s problem above - but maybe not. I'm seeing that the "Create user" endpoint neither accepts a
    username
    attribute nor does it automatically create one. I'm wondering if this is a problem when accessing the Event Type since the URL must contain the
    username
    param. @Agusti - any thoughts on this? I also tried to update/PATCH the User object with a username and no go.
    z
    e
    +2
    • 5
    • 13
  • m

    Michael Ferioli

    10/20/2022, 4:01 PM
    message has been deleted
  • g

    George Larson

    10/25/2022, 8:53 AM
    I was trying to integrate a self-hosted Cal with n8n to, eventually, offer a flow that would make it easier for the community to connect additional nodes (e.g., SuiteCRM) Cal.com's dev docs (https://developer.cal.com/api/authentication) and n8n's documentation (https://docs.n8n.io/integrations/builtin/credentials/cal/#using-api-keys) lead to what appears to be an older variant of Cal, where you could generate an API key from the Security menu That functionality seems to have been moved to a $189 per month feature? or is there something I'm misunderstanding? Thanks!
    s
    • 2
    • 1
  • v

    Varun Krishnamurthy

    10/26/2022, 12:12 PM
    @zomars @Agusti @Emrysal @Bailey I noticed that when trying to create a booking via API by doing a POST to
    <https://api.cal.com/v1/bookings?apiKey=cal_live_***>
    with the same request body, roughly half the requests succeed as they should. However, half the time I get a 500 with the error message
    No available users found.
    Since the request body is not changing between success or failure, this seems like a server issue. Any idea why this would be happening?
    e
    • 2
    • 1
  • k

    Karran G

    11/03/2022, 8:22 PM
    hi friends - is there a API endpoint to "sign up" a user using the self hosted version of calcom?
    h
    z
    • 3
    • 4
  • r

    Riccardo Giorato

    11/08/2022, 2:16 PM
    Does anyone know how to get a list of "event-types" for a specific team from the APIs? I couldn't find the API endpoint to use from the docs and if I query "event-types" I only get my personal events not the team ones
    z
    • 2
    • 5
  • a

    Augusto Samame

    11/26/2022, 2:54 PM
    Hello everyone. We’re self hosting and trying to use the API but pointing to our self_hosted db. The docs indicate this: ā€œ_Hosted api through cal.com_ _Go to console.cal.com Add a deployment or go to an existing one. Activate API or Admin addon Provide your
    DATABASE_URL
    Now you can call api.cal.com?key=CALCOM_LICENSE_KEY, which will connect to your own databaseUrl_.ā€ However, we can’t find any place to enter the DATABASE_URL to our deployment via console or even the option of an API or Admin addon. We do have a working database url added to .env of course, in order for our self hosted site to work, but no idea of how to make it work with the hosted API
    p
    z
    • 3
    • 60
  • p

    Peter

    12/02/2022, 9:08 PM
    Good evening from Berlin to everyone! @Connor was so friendly to grant me access to the API-repo (thanks again for the lightning fast reply). Unfortunately I'm not able to clone and smth really strange happens while trying. It's very similar what @Augusto Samame described in his thread. Environment: self-hosted
    git version 2.38.1
    Copy code
    Distributor ID: Ubuntu
    Description:    Ubuntu 22.04.1 LTS
    Release:        22.04
    Codename:       jammy
    Problems: • using `-j8`completly destroys the cloning process ... I'm not able to use the PAT (screenshot 1,2) and the PAT is even shown in cleartext • avoiding `-j8`cloning process is partailly successful - but no API content (Screenshot 3) • adjusting the `.git/config`file as suggested here doesn't change anything I'm completly lost here - could someone please point me the direction out of this?
    b
    a
    • 3
    • 11
  • t

    Timo Rogge

    12/07/2022, 8:43 AM
    Hello everyone: Is there a way that we can see an api response object for endpoint (/bookings/{id})? I need to know if this endpoint returns the needed data šŸ™‚
  • a

    Augusto Samame

    12/07/2022, 2:28 PM
    this is what we get from ours:
  • a

    Augusto Samame

    12/07/2022, 2:28 PM
    message has been deleted
  • a

    Augusto Samame

    12/07/2022, 2:30 PM
    Do you have the Postman collection? Almost all calls are there so you can just make the calls with one click and see the responses
  • t

    Travis Hamilton

    12/12/2022, 7:19 PM
    šŸ‘‹ Hello, team! How can I get my daily availabilities for each Event Type using cal.com api? I tried with http://api.cal.com/v1/availabilities/{id} , but got response of "Method Not Allowed (Allow: POST)"
    p
    a
    • 3
    • 2
  • s

    Sergey Kotlov

    01/04/2023, 1:03 PM
    Hello everyone, I’m trying to understand how the platform instance works. Right now I have an admin profile and I’m able to add any app to my personal profile. When I go to Settings -> Apps which says ā€œEnable apps for your instance of Calā€ and try to click any link (like this http://localhost:3000/settings/admin/apps&amp;category=payment), I get 404. In my understanding, I should be able to configure what apps other users on the platform can use. Is it the correct assumption? I didn’t find any documentation of the platform administration.
    s
    h
    • 3
    • 3
  • f

    Federico Meini

    01/16/2023, 6:35 PM
    Hi everyone, I am testing out the API module locally but I get a "Invalid or missing CALCOM_LICENSE_KEY environment variable" error. I have added a console log to the middleware that checks the license and it seems like it's correctly read from the env var, but then the call to
    <https://console.cal.dev/api/license?key=my-license-key>
    returns
    valid:false
    . What could be the issue?
    z
    a
    • 3
    • 4
  • t

    TimothƩe Pineau

    01/20/2023, 10:23 PM
    Hi everyone, I'm testing the creation of event types and I'm struggling with getting the periodStartDate dates to be accepted. The format I'm submitting is for example is : 2023-07-06T130102.160Z Error I'm receiving : "invalid_type in 'periodStartDate': Expected date, received string; invalid_type in 'periodEndDate': Expected date, received string" Am I doing something wrong ?
    m
    a
    e
    • 4
    • 8
  • m

    Miguel Estepa

    01/25/2023, 4:47 PM
    Hi everyone. We are already a self hosted with CALCOM_LICENSE_KEY in place (root .env) and trying to use API but doesn't work at all. I'm trying to test same postman collection I tested in https://api.cal.com/v1 URL with my new self hosted Url witn no success. I tried with port 3000 and 3002. Is there any docs or guide to help in the process to use API in self hosted license?
  • a

    Ali

    01/26/2023, 1:30 AM
    Hi @Miguel Estepa You can refer to https://docs.cal.com/how-to-guides/how-to-test-api-in-a-local-instance šŸ™
    m
    • 2
    • 2
  • g

    Gaurav Kelkar

    01/27/2023, 8:27 AM
    Hi, I'm are trying to create an user using admin api, but getting an 'invalid JSON' message. As for the steps, i followed this guide, https://docs.cal.com/how-to-guides/how-to-test-api-in-a-local-instance, got the test license, generated the api key and ran
    yarn workspace @calcom/api dev
    as per docs. I'm not sure whats wrong.
    calcom_api
    in the image is
    localhost:3002/v1
    a
    • 2
    • 2
  • b

    Bill Metangmo

    01/30/2023, 10:12 AM
    Hello, I want to know how to change cal.video as the default meeting for Google meet. How to do it ?
    p
    • 2
    • 2
  • m

    Miguel Estepa

    01/30/2023, 3:38 PM
    Hello. I am creating new users through the API in self-hosted but I have seen I cannot set them a password, a message error is shown
    "message": "Unrecognized key(s) in object: 'password'"
    So I am wondering how I can use these users to sign-in in the cal UI? I've seen @zomars could know something about this regarding the sign-up endpoint.
    z
    n
    j
    • 4
    • 9
  • m

    Miguel Estepa

    01/31/2023, 2:34 PM
    Hello. Does anyone know if the "adding-date-override" https://docs.cal.com/how-to-guides/setting-up-your-availability/adding-date-override feature is enabled to call through the API endpoint?
    a
    • 2
    • 1
  • p

    Peer

    02/03/2023, 12:39 PM
    has renamed the channel from ā€˜admin-panel-and-api’ to ā€˜api’
12345Latest