承認を確かめ、承認済みならCLI用のAPIキーを発行する
RFC 8628 §3.5 のエラー名を error.code に返す。キーは成功した1回の応答にだけ載り、再取得できない。
POST
/cli/tokensリクエストボディ
必須application/jsondevice_codestring必須最小長 1 · 最大長 128
レスポンス
200
承認済み。期限30日・導入用の4スコープのキー。
api_keystring必須平文のキー。この応答でしか受け取れない。
key_idstring必須creator_idstring必須environmentstring必須expires_atstring<date-time>必須400
authorization_pending(承認前)/ slow_down(間隔が5秒未満)/ access_denied(拒否)/ expired_token(期限切れ・消費済み・不明なコード)/ invalid_input。
errorobject必須プロパティを表示プロパティを非表示
codestring必須messagestring必須request_idstring必須429
rate_limited。
errorobject必須プロパティを表示プロパティを非表示
codestring必須messagestring必須request_idstring必須500
internal。
errorobject必須プロパティを表示プロパティを非表示
codestring必須messagestring必須request_idstring必須