Skip to content

Airtable credentials#

คุณสามารถใช้ credentials นี้เพื่อเชื่อมต่อกับ node เหล่านี้:

Prerequisites#

สมัคร Airtable ให้เรียบร้อยก่อน

Supported authentication methods#

  • Personal Access Token (PAT)
  • OAuth2

API Key deprecation

n8n เคยมีวิธีการยืนยันตัวตนด้วย API key กับ Airtable Airtable ยกเลิกการใช้งาน keys เหล่านี้อย่างสมบูรณ์ ณ เดือนกุมภาพันธ์ 2024 หากคุณเคยใช้ Airtable API credential ให้แทนที่ด้วย Airtable Personal Access Token หรือ Airtable OAuth2 credential n8n แนะนำให้ใช้ Personal Access Token แทน

ดูข้อมูลเพิ่มเติมเกี่ยวกับบริการได้ที่ Airtable's API documentation

Using personal access token#

ถ้าจะตั้งค่า credentials นี้ คุณต้องมี:

  • Personal Access Token (PAT)

วิธีสร้าง PAT ของคุณ:

  1. ไปที่หน้า Airtable Builder Hub Personal access tokens
  2. เลือก + Create new token Airtable จะเปิดหน้า Create personal access token
  3. ป้อน Name สำหรับ token ของคุณ เช่น n8n credential
  4. เพิ่ม Scopes ให้กับ token ของคุณ ดูข้อมูลเพิ่มเติมได้ที่คู่มือ Scopes ของ Airtable n8n แนะนำให้ใช้ scopes เหล่านี้:
    • data.records:read
    • data.records:write
    • schema.bases:read
  5. เลือก Access สำหรับ token ของคุณ เลือกจาก base เดียว, หลาย bases (แม้กระทั่ง bases จาก workspaces ที่แตกต่างกัน), bases ทั้งหมดในปัจจุบันและอนาคตใน workspace ที่คุณเป็นเจ้าของ หรือ bases ทั้งหมดจาก workspace ใดๆ ที่คุณเป็นเจ้าของ รวมถึง bases/workspace ที่เพิ่มเข้ามาในอนาคต
  6. เลือก Create token
  7. Airtable จะเปิด modal พร้อม token ของคุณที่แสดงอยู่ คัดลอก token นี้และป้อนลงใน n8n credential ของคุณเป็น Access Token

ดูข้อมูลเพิ่มเติมได้ที่ Find/create PATs documentation ของ Airtable

Using OAuth2#

ถ้าจะตั้งค่า credentials นี้ คุณต้องมี:

  • OAuth Redirect URL
  • Client ID
  • Client Secret

หากต้องการสร้างข้อมูลทั้งหมดนี้ ให้ลงทะเบียน Airtable integration ใหม่:

  1. เปิดหน้า Airtable Builder Hub OAuth integrations ของคุณ
  2. เลือกปุ่ม Register new OAuth integration
  3. ป้อนชื่อสำหรับ OAuth integration ของคุณ
  4. คัดลอก OAuth Redirect URL จาก n8n credential ของคุณ
  5. วาง redirect URL นั้นใน Airtable เป็น OAuth redirect URL
  6. เลือก Register integration
  7. ในหน้าถัดไป คัดลอก Client ID จาก Airtable และวางลงใน Client ID ใน n8n credential ของคุณ
  8. ใน Airtable เลือก Generate client secret
  9. คัดลอก client secret และวางลงใน Client Secret ใน n8n credential ของคุณ
  10. เลือก scopes ต่อไปนี้ใน Airtable:
    • data.records:read
    • data.records:write
    • schema.bases:read
  11. เลือก Save changes ใน Airtable
  12. ใน n8n credential ของคุณ เลือก Connect my account modal Grant access จะเปิดขึ้น
  13. ทำตามคำแนะนำและเลือก base ที่คุณต้องการทำงาน (หรือ bases ทั้งหมด)
  14. เลือก Grant access เพื่อทำการเชื่อมต่อให้เสร็จสิ้น

ดูขั้นตอนเกี่ยวกับการลงทะเบียน Oauth integration ใหม่ได้ที่ Airtable Register a new integration documentation