What a device code asks for
GET
/api/v1/oauth/device/{code}
const url = 'http://localhost:3000/api/v1/oauth/device/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:3000/api/v1/oauth/device/example \ --header 'Authorization: Bearer <token>'Signed in: the client, and the projects and scopes you can give it.
Any caller; the scope needed is checked on what it acts on.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”code
required
string
The user code, e.g. WDJB-MJHT
Responses
Section titled “Responses”The request
default
Section titled “default”An error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
detail
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": "example" }}