本文へスキップ
新機能商品Q&A: お客様が商品ページで質問し、あなたの回答を受け取れます。仕組みを見る
IdukkiIdukki
Developers + API

OAuthで認証する

APIキーではなくOAuthを使う場面と、認可フローでアカウントとアプリを接続する流れを説明します。

4 min read · last updated 2026-05

APIキーは、自社で管理するサーバー間のアクセスに向いています。OAuthは、ユーザーがアプリにワークスペースへのアクセスを許可する場合に向いています。ユーザーの認証情報を持たずに、そのユーザーに代わって操作できます。

OAuthフローを実行する

  1. Register your app. 設定 → 開発者でアプリを作成し、クライアントIDとシークレットを控えます。
  2. Redirect to authorise. クライアントIDとリダイレクトURIを付けて、ユーザーを認可URLに移動させます。
  3. Exchange the code. ユーザーが承認したら、返されたコードをアクセストークンと交換します。
  4. Call the API. アクセストークンをベアラートークンとして使います。有効期限が切れたら更新します。
Was this page helpful?

Still stuck?

Email us at support@idukki.io or open the in-app chat. We answer within one working day.

Talk to a human

Related guides

Live in minutesDTC + B2B brands79 KB runtimeReal G2 reviews

Stuck?

A real human is faster than a search box.

In-app chat is staffed during EU + US business hours. Status of a ticket? Email support@idukki.io and we’ll surface it.

  • No credit card
  • Cancel anytime
  • GDPR self-certified · SOC 2 (in audit)