Poll or redeem CLI device authorization
Polls a device grant and returns credentials once the browser approves it.
POST
/api/auth/device/tokenBody
grant_typeenumrequiredOne of: urn:ietf:params:oauth:grant-type:device_code
device_codestringrequiredclient_idenumrequiredOne of: trickest-cli
Request
curl
curl -X POST https://trickest.io/api/auth/device/token \
-H "Authorization: Bearer $TRICKEST_TOKEN" \
-H "Content-Type: application/json" \
-d '{ }'Responses
200Device authorization credentials
access_tokenstringrequiredrefresh_tokenstringtoken_typeenumrequiredOne of: Bearer
is_googlebooleanrequired400Bad Request – validation error or malformed input
codestringrequiredmessagestringrequireddetailsobjectField-level detail when the error is a validation failure.
500Internal Server Error
codestringrequiredmessagestringrequireddetailsobjectField-level detail when the error is a validation failure.