Skip to content

Instantly share code, notes, and snippets.

@kwindla
Last active March 10, 2019 21:52
Show Gist options
  • Save kwindla/83c646c34a545db9db17fc4255fbdbb1 to your computer and use it in GitHub Desktop.
Save kwindla/83c646c34a545db9db17fc4255fbdbb1 to your computer and use it in GitHub Desktop.
create a new room (command line)
# create a new video call room, with a random name,
# that expires 60 seconds from now
#
curl -H "Content-Type: application/json" \
-H "Authorization: Bearer $YOUR_API_TOKEN" \
-XPOST -d \
'{"properties":{"exp":'`expr $(date +%s) + 60`'}}' \
https://api.daily.co/v1/rooms/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment