Skip to content

Approve a pending device code after browser authentication.

POST
/v1/auth/device-codes/{id}/approve
curl --request POST \
--url https://api.share2.us/v1/auth/device-codes/example/approve \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "user_code": "example" }'
id
required
string
Media typeapplication/json
object
user_code
string
Examplegenerated
{
"user_code": "example"
}

Device code approved.

Media typeapplication/json
object
status
required
string
Example
{
"status": "ok"
}

Standard error envelope.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
request_id
required
string
Example
{
"error": {
"code": "quota_exceeded"
}
}