<@U032CMXGG4A> Is there any Api to create users? I...
# api
t
@Agusti Is there any Api to create users? I see only get, edit and delete Apis
a
Hello @Tarek, there’s a
POST /users
endpoint, your user needs to be ADMIN to be able to call it.
t
Hello @Agusti
a
I need to add it to the postman / docs collection yet
t
Great. Many thanks
Could you please share with me simpl example till you update postman docs
a
example body params
Copy code
{
  "username": "hello",
  "metadata": {},
  "id": 1,
  "email": "<mailto:me3@agusti.me|me3@agusti.me>",
  "createdDate": "1970-01-01T09:00:00.000Z"
}
t
👍
a
w curl
Copy code
curl --location --request POST '<http://localhost:3002/v1/users?apiKey=cal_live_7d8187bdc188c10b714fd39c317ce1e1>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "username": "hello",
    "metadata": {},
    "id": 1,
    "email": "<mailto:me3@agusti.me|me3@agusti.me>",
    "createdDate": "1970-01-01T09:00:00.000Z"
}'
Its on postman, can’t find the way to extract a link directly to it though
t
What about user password? How can I create it for each user?
🙏 1
a
Great question! Let me check that back as I don’t think we were handling it.
You could ask them to reset password I guess and It should work, so they recieve an email.
You’d prefer passing an encrypted password already which you might already have saved for each user, right?
or plain pw and I’ll encrypt it, I’ll see
t
I can path any of them. but it will be more secure if I pass the encrypted text
*Pass
a
Opened an issue in API repo for this https://github.com/calcom/api/issues/131 will get back at you once implemented @Tarek
t
@Agusti 🙏 Thanks for your prompt support
🙏 1
@Agusti I can't see API repo under Cacom github project and this link is not accessible:https://github.com/calcom/api/issues/131 from my side. please advise.
a
Hey @Tarek API repo is currently only for EE customers, you can get access by becoming an infra customer Also easiest way is to get a license key in console.cal.com, and there’s a form there in the dashboard to request access to the API github private repo.
👍 1
t
I requested access by email and waiting your team approval. Thanks in advance
🙏 1
a
@Sydney O
❤️ 1