コンテンツにスキップ

Approve a device code and generate API key

POST
/dashboard/device/approve

ユーザーが userCode を入力してデバイス認証を承認する。 承認成功時に CLI/MCP 用の API Key が自動生成される。 JWT 認証必須。member 以上のロール、メール確認済みが必要。

object
userCode
required

デバイスコードフローで発行された userCode (例: ABCD-EFGH)

string
/^[A-Z0-9]{4}-[A-Z0-9]{4}$/

デバイス承認成功

object
approved

承認結果

boolean
apiKeyName

生成された API Key の名前

string
callbackUrl

Localhost callback URL to redirect after approval (only present for CLI auth)

string
Example
http://localhost:12345/callback

試行回数超過

object
error
object
code
string
Example
VALIDATION_ERROR
message
string
Example
Invalid request body
status
integer
Example
400
upgradeUrl

URL to upgrade plan (only present for plan limit errors)

string
Example
https://app.manako.dev/billing
Example
{
"error": {
"code": "TOO_MANY_ATTEMPTS",
"message": "Too many failed attempts",
"status": 400
}
}

API Key 数上限到達

object
error
object
code
string
Example
VALIDATION_ERROR
message
string
Example
Invalid request body
status
integer
Example
400
upgradeUrl

URL to upgrade plan (only present for plan limit errors)

string
Example
https://app.manako.dev/billing

コードが見つからない / 期限切れ

object
error
object
code
string
Example
VALIDATION_ERROR
message
string
Example
Invalid request body
status
integer
Example
400
upgradeUrl

URL to upgrade plan (only present for plan limit errors)

string
Example
https://app.manako.dev/billing