"daily co new token generation method" Code Answer

47
https://reqbin.com/curl


curl -H "Content-Type: application/json" 
     -H "Authorization: Bearer 99e4daf836759ed97ad45cb3c106bc9db18fbf91b2c92f99dc422e1ffc696f26" 
     -XPOST -d '{"properties":
                  {"enable_screenshare":false,
                   "enable_recording":"cloud",
                    "room_name": "9kVpenvaVfmtr",
    "nbf": 1631166900,
    "exp": 1631231700,
    "is_owner": true,
    "user_name": "in.amigoseafoodco.085756",
    "user_id": "11967875",
    "start_cloud_recording": true
                   
                   }}' 
     https://api.daily.co/v1/meeting-tokens




Result:
{
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzcyI6ZmFsc2UsImVyIjoiY2xvdWQiLCJyIjoiOWtWcGVudmFWZm10ciIsIm5iZiI6MTYzMTE2NjkwMCwiZXhwIjoxNjMxMjMxNzAwLCJvIjp0cnVlLCJ1IjoiaW4uYW1pZ29zZWFmb29kY28uMDg1NzU2IiwidWQiOiIxMTk2Nzg3NSIsInNyIjp0cnVlLCJkIjoiMzczMWNmZTctZjA4Yy00NWY4LWJmZmUtOTYyNDgzYzg3NmZhIiwiaWF0IjoxNjMxMTc0NTczfQ.6a0T3aWa2mZyTXvISHPMK5dwvm4g9tNQSUx8HHFo1pQ"
}
By jtsao22 on November 19 2022
Only authorized users can answer the Search term. Please sign in first, or register a free account.