POST /v1/device/code

Responses

201 Device code
application/json
user_code string
poll_token string
verification_uri string (uri)
verification_uri_complete string (uri)
expires_in integer
interval integer
429 Error response
curl -X POST 'https://screenframed.com/v1/device/code' \  -H 'Authorization: Bearer YOUR_API_TOKEN'
const response = await fetch('https://screenframed.com/v1/device/code', {  method: 'POST',  headers: {      "Authorization": "Bearer YOUR_API_TOKEN"  }});const data = await response.json();console.log(data);
import requestsheaders = {    'Authorization': 'Bearer YOUR_API_TOKEN'}response = requests.post('https://screenframed.com/v1/device/code', headers=headers)print(response.json())
201 Response
{  "user_code": "<string>",  "poll_token": "<string>",  "verification_uri": "<uri>",  "verification_uri_complete": "<uri>",  "expires_in": 123,  "interval": 123}