<@U02BS9YFFL7> <@U032CMXGG4A> <@U01NL7HM0SV> <@U01...
# api
v
@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
Can you try
Copy code
<https://api.cal.com/v1/users/ID?apiKey=cal_live_****>
?
v
@zomars is
ID
supposed to be the value of the user id here? I ask because I don't know the user id at this point - I am trying to fetch the user id by making the users API call. This is not self-hosted by the way
z
Can you try the users/me endpoint then?
v
will do. what is that endpoint? do I pass apiKey to that endpoint?
i am trying to make this call as admin using apiKey
z
Copy code
<https://api.cal.com/v1/me?apiKey=cal_live_****>
should work
v
getting a 400 (invalid string/Zod error) when trying
Copy code
<https://api.cal.com/v1/users/me?apiKey=cal_live_***>
oh
let me try that
thank you @zomars!
Copy code
<https://api.cal.com/v1/me?apiKey=cal_live_****>
worked 🙂
z
We will open source our API code soon BTW so we can keep up with the docs