Skip to main content
POST
/
v1
/
cli
/
device-codes
/
approve
Approve a device code
curl --request POST \
  --url https://api.strait.dev/v1/cli/device-codes/approve \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "device_code": "<string>",
  "project_id": "<string>"
}
'
{}

Documentation Index

Fetch the complete documentation index at: https://docs.strait.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key passed as Bearer token

Body

application/json
device_code
string
required
project_id
string
required

Response

OK

{key}
string