เอกสารอ้างอิง Banger API

ใช้ Banger API เพื่อจัดการกล่องจดหมาย ส่งอีเมล จัดการรายชื่อติดต่อ และดำเนินแคมเปญและเส้นทางในพื้นที่ทำงาน

เชื่อมต่อพื้นที่ทำงาน

URL หลัก: https://api.bangermail.com

ดาวน์โหลด OpenAPI (OpenAPI 3.1 JSON ที่มีการดำเนินการเหมือนหน้านี้) สำหรับเครื่องมือสร้างโค้ด ไคลเอนต์ API และเอเจนต์ AI

ใน แอป Banger เปิด การตั้งค่า → นักพัฒนา → จัดการคีย์ API เลือก สร้างคีย์ API ใส่ชื่อ เลือกขอบเขตสิทธิ์ที่แอปต้องใช้ แล้วเลือก สร้างคีย์ คัดลอกคีย์ทันที เพราะจะแสดงเพียงครั้งเดียวและเรียกคืนไม่ได้

คีย์พื้นที่ทำงานมีรูปแบบ bgr_<12-character prefix>_<secret> ตั้งคีย์เป็น BANGER_API_KEY ในสภาพแวดล้อม แล้วใช้ข้อมูลต่อไปนี้ยืนยันตัวตนสำหรับคำขอพื้นที่ทำงาน:

Authorization: Bearer <workspace API key>

เส้นทางแบบฟอร์มสมัครสาธารณะด้านล่างไม่ต้องยืนยันตัวตน แต่ละการดำเนินการระบุว่าต้องใช้โทเค็น Bearer หรือไม่ แทนตัวแทนในพาธ เช่น {workspaceId} ด้วย ID ทรัพยากรของคุณก่อนรันตัวอย่าง

คำขอและการตอบกลับ

การตอบกลับ JSON โดยทั่วไปห่อผลลัพธ์ไว้ใน { data } และข้อผิดพลาดใน { error: { code, message } } บางเอนด์พอยต์คืนรูปแบบอื่นหรือไม่มีเนื้อหา ให้ใช้คำจำกัดความการตอบกลับของการดำเนินการนั้น

ส่ง Idempotency-Key เมื่อระบุในพารามิเตอร์ส่วนหัว และใช้คีย์เดิมเมื่อลองคำขอเดิมอีกครั้ง สัญญากำหนดข้อจำกัดความยาวต่างกันในแต่ละการดำเนินการ ให้ทำตามตารางพารามิเตอร์

การแบ่งหน้าขึ้นอยู่กับเอนด์พอยต์ เมื่อมีพารามิเตอร์ร่วม cursor และ limit เคอร์เซอร์เป็นสตริงยาวไม่เกิน 1,024 อักขระ และขีดจำกัดเริ่มต้นคือ 50 ในช่วง 1–100 เอนด์พอยต์อื่นกำหนดพารามิเตอร์และฟิลด์การตอบกลับเอง เช่น next_cursor ให้ทำตามสคีมาเหล่านั้น

ตัวอย่างสร้างจากตัวอย่าง ค่าเริ่มต้น enum และชนิดสคีมาในสัญญา แทนค่าตัวอย่างด้วยข้อมูลของคุณ หากไม่มีสคีมาเนื้อหาหรือการตอบกลับ จะระบุไว้ด้านล่าง

ผู้ช่วย AI ใช้ความสามารถเหล่านี้ได้ผ่าน เซิร์ฟเวอร์ Banger MCP เช่นกัน

ผลิตภัณฑ์

GET/v1/workspaces/{workspaceId}/products

แสดงผลิตภัณฑ์ในพื้นที่ทำงาน

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • workspace_idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • slugstringจำเป็น
  • kindstringจำเป็น

    enum: "product", "store", "brand", "newsletter", "company", "other"

  • website_urlstring | nullจำเป็น
  • domainsarrayจำเป็น
  • แต่ละรายการstring
  • descriptionstringจำเป็น
  • contextobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • brandobjectจำเป็น
  • company_namestring

    maxLength: 160

  • logo_urlstring

    ไอคอน: สัญลักษณ์เดี่ยว ใช้ขนาดเล็ก (ส่วนท้ายอีเมล แบบฟอร์มเลื่อนเข้า) และใช้เป็นส่วนหัวเมื่อไม่มีโลโก้ตัวอักษร

    maxLength: 2000

  • wordmark_urlstring

    โลโก้ตัวอักษร: ชื่อบริษัทตามที่ออกแบบ แสดงเดี่ยวที่ด้านบนของทุกอีเมล

    maxLength: 2000

  • wordmark_inkstring

    สีที่ใช้วาดโลโก้ตัวอักษร วัดจากภาพเมื่อบันทึก หากโลโก้อ่านไม่ชัดบนส่วนหัว จะมีแผ่นพื้นหลังรองไว้ ไม่มีค่านี้สำหรับภาพทึบแสง

    maxLength: 7

  • logo_inkstring

    สีที่ใช้วาดไอคอน วัดจากภาพเมื่อบันทึก

    maxLength: 7

  • website_urlstring

    maxLength: 2000

  • primary_colorstring

    maxLength: 7

  • accent_colorstring

    maxLength: 7

  • background_colorstring

    maxLength: 7

  • surface_colorstring

    maxLength: 7

  • text_colorstring

    maxLength: 7

  • muted_text_colorstring

    maxLength: 7

  • heading_font_familystring

    maxLength: 200

  • body_font_familystring

    maxLength: 200

  • tonestring

    maxLength: 1000

  • footer_addressstring

    maxLength: 500

  • email_stylestring

    maxLength: 20

  • statusstringจำเป็น

    deleting: บุคคลลบแล้ว กู้คืนได้จนถึง delete_after จากนั้นลบถาวร

    enum: "active", "archived", "deleting"

  • delete_afterstring | null

    เวลาที่ผลิตภัณฑ์สถานะ deleting ถูกลบถาวร

    format: "date-time"

  • is_defaultbooleanจำเป็น
  • route_readybooleanจำเป็น
  • noreply_senderstring | null

    noreply@ on the product's Broadcast lane: what Broadcasts, Journeys and forms send from when no mailbox is chosen. Replies to it are discarded. Null until a lane is active.

  • setuparrayจำเป็น
  • แต่ละรายการobject
  • keystringจำเป็น

    enum: "context", "domain", "mailboxes", "journeys", "broadcasts", "compliance"

  • statusstringจำเป็น

    enum: "todo", "in_progress", "complete", "not_relevant"

  • completion_sourcestring | nullจำเป็น

    enum: "system", "person", "agent", null

  • notestringจำเป็น
  • updated_atstring | nullจำเป็น

    format: "date-time"

  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/products' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/products

สร้างผลิตภัณฑ์

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • namestringจำเป็น

    minLength: 1 · maxLength: 160

  • kindstring

    default: "product" · enum: "product", "store", "brand", "newsletter", "company", "other"

  • website_urlstring | null

    maxLength: 2000

  • descriptionstring

    maxLength: 4000

  • contextobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • domainsarray

    maxItems: 20

  • แต่ละรายการstring

    maxLength: 253

การตอบกลับสำเร็จ 201

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • workspace_idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • slugstringจำเป็น
  • kindstringจำเป็น

    enum: "product", "store", "brand", "newsletter", "company", "other"

  • website_urlstring | nullจำเป็น
  • domainsarrayจำเป็น
  • แต่ละรายการstring
  • descriptionstringจำเป็น
  • contextobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • brandobjectจำเป็น
  • company_namestring

    maxLength: 160

  • logo_urlstring

    ไอคอน: สัญลักษณ์เดี่ยว ใช้ขนาดเล็ก (ส่วนท้ายอีเมล แบบฟอร์มเลื่อนเข้า) และใช้เป็นส่วนหัวเมื่อไม่มีโลโก้ตัวอักษร

    maxLength: 2000

  • wordmark_urlstring

    โลโก้ตัวอักษร: ชื่อบริษัทตามที่ออกแบบ แสดงเดี่ยวที่ด้านบนของทุกอีเมล

    maxLength: 2000

  • wordmark_inkstring

    สีที่ใช้วาดโลโก้ตัวอักษร วัดจากภาพเมื่อบันทึก หากโลโก้อ่านไม่ชัดบนส่วนหัว จะมีแผ่นพื้นหลังรองไว้ ไม่มีค่านี้สำหรับภาพทึบแสง

    maxLength: 7

  • logo_inkstring

    สีที่ใช้วาดไอคอน วัดจากภาพเมื่อบันทึก

    maxLength: 7

  • website_urlstring

    maxLength: 2000

  • primary_colorstring

    maxLength: 7

  • accent_colorstring

    maxLength: 7

  • background_colorstring

    maxLength: 7

  • surface_colorstring

    maxLength: 7

  • text_colorstring

    maxLength: 7

  • muted_text_colorstring

    maxLength: 7

  • heading_font_familystring

    maxLength: 200

  • body_font_familystring

    maxLength: 200

  • tonestring

    maxLength: 1000

  • footer_addressstring

    maxLength: 500

  • email_stylestring

    maxLength: 20

  • statusstringจำเป็น

    deleting: บุคคลลบแล้ว กู้คืนได้จนถึง delete_after จากนั้นลบถาวร

    enum: "active", "archived", "deleting"

  • delete_afterstring | null

    เวลาที่ผลิตภัณฑ์สถานะ deleting ถูกลบถาวร

    format: "date-time"

  • is_defaultbooleanจำเป็น
  • route_readybooleanจำเป็น
  • noreply_senderstring | null

    noreply@ on the product's Broadcast lane: what Broadcasts, Journeys and forms send from when no mailbox is chosen. Replies to it are discarded. Null until a lane is active.

  • setuparrayจำเป็น
  • แต่ละรายการobject
  • keystringจำเป็น

    enum: "context", "domain", "mailboxes", "journeys", "broadcasts", "compliance"

  • statusstringจำเป็น

    enum: "todo", "in_progress", "complete", "not_relevant"

  • completion_sourcestring | nullจำเป็น

    enum: "system", "person", "agent", null

  • notestringจำเป็น
  • updated_atstring | nullจำเป็น

    format: "date-time"

  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/products' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "name": "example",
  "kind": "product",
  "website_url": "example",
  "description": "example",
  "context": {},
  "domains": [
    "example"
  ]
}'
GET/v1/workspaces/{workspaceId}/products/{productId}

ดึงผลิตภัณฑ์

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

productId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • workspace_idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • slugstringจำเป็น
  • kindstringจำเป็น

    enum: "product", "store", "brand", "newsletter", "company", "other"

  • website_urlstring | nullจำเป็น
  • domainsarrayจำเป็น
  • แต่ละรายการstring
  • descriptionstringจำเป็น
  • contextobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • brandobjectจำเป็น
  • company_namestring

    maxLength: 160

  • logo_urlstring

    ไอคอน: สัญลักษณ์เดี่ยว ใช้ขนาดเล็ก (ส่วนท้ายอีเมล แบบฟอร์มเลื่อนเข้า) และใช้เป็นส่วนหัวเมื่อไม่มีโลโก้ตัวอักษร

    maxLength: 2000

  • wordmark_urlstring

    โลโก้ตัวอักษร: ชื่อบริษัทตามที่ออกแบบ แสดงเดี่ยวที่ด้านบนของทุกอีเมล

    maxLength: 2000

  • wordmark_inkstring

    สีที่ใช้วาดโลโก้ตัวอักษร วัดจากภาพเมื่อบันทึก หากโลโก้อ่านไม่ชัดบนส่วนหัว จะมีแผ่นพื้นหลังรองไว้ ไม่มีค่านี้สำหรับภาพทึบแสง

    maxLength: 7

  • logo_inkstring

    สีที่ใช้วาดไอคอน วัดจากภาพเมื่อบันทึก

    maxLength: 7

  • website_urlstring

    maxLength: 2000

  • primary_colorstring

    maxLength: 7

  • accent_colorstring

    maxLength: 7

  • background_colorstring

    maxLength: 7

  • surface_colorstring

    maxLength: 7

  • text_colorstring

    maxLength: 7

  • muted_text_colorstring

    maxLength: 7

  • heading_font_familystring

    maxLength: 200

  • body_font_familystring

    maxLength: 200

  • tonestring

    maxLength: 1000

  • footer_addressstring

    maxLength: 500

  • email_stylestring

    maxLength: 20

  • statusstringจำเป็น

    deleting: บุคคลลบแล้ว กู้คืนได้จนถึง delete_after จากนั้นลบถาวร

    enum: "active", "archived", "deleting"

  • delete_afterstring | null

    เวลาที่ผลิตภัณฑ์สถานะ deleting ถูกลบถาวร

    format: "date-time"

  • is_defaultbooleanจำเป็น
  • route_readybooleanจำเป็น
  • noreply_senderstring | null

    noreply@ on the product's Broadcast lane: what Broadcasts, Journeys and forms send from when no mailbox is chosen. Replies to it are discarded. Null until a lane is active.

  • setuparrayจำเป็น
  • แต่ละรายการobject
  • keystringจำเป็น

    enum: "context", "domain", "mailboxes", "journeys", "broadcasts", "compliance"

  • statusstringจำเป็น

    enum: "todo", "in_progress", "complete", "not_relevant"

  • completion_sourcestring | nullจำเป็น

    enum: "system", "person", "agent", null

  • notestringจำเป็น
  • updated_atstring | nullจำเป็น

    format: "date-time"

  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/products/{productId}' \
  --header "Authorization: Bearer $BANGER_API_KEY"
PATCH/v1/workspaces/{workspaceId}/products/{productId}

อัปเดตผลิตภัณฑ์

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

productId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • namestring

    maxLength: 160

  • kindstring

    enum: "product", "store", "brand", "newsletter", "company", "other"

  • website_urlstring | null

    maxLength: 2000

  • descriptionstring

    maxLength: 4000

  • contextobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • brandobject
  • company_namestring

    maxLength: 160

  • logo_urlstring

    ไอคอน: สัญลักษณ์เดี่ยว ใช้ขนาดเล็ก (ส่วนท้ายอีเมล แบบฟอร์มเลื่อนเข้า) และใช้เป็นส่วนหัวเมื่อไม่มีโลโก้ตัวอักษร

    maxLength: 2000

  • wordmark_urlstring

    โลโก้ตัวอักษร: ชื่อบริษัทตามที่ออกแบบ แสดงเดี่ยวที่ด้านบนของทุกอีเมล

    maxLength: 2000

  • wordmark_inkstring

    สีที่ใช้วาดโลโก้ตัวอักษร วัดจากภาพเมื่อบันทึก หากโลโก้อ่านไม่ชัดบนส่วนหัว จะมีแผ่นพื้นหลังรองไว้ ไม่มีค่านี้สำหรับภาพทึบแสง

    maxLength: 7

  • logo_inkstring

    สีที่ใช้วาดไอคอน วัดจากภาพเมื่อบันทึก

    maxLength: 7

  • website_urlstring

    maxLength: 2000

  • primary_colorstring

    maxLength: 7

  • accent_colorstring

    maxLength: 7

  • background_colorstring

    maxLength: 7

  • surface_colorstring

    maxLength: 7

  • text_colorstring

    maxLength: 7

  • muted_text_colorstring

    maxLength: 7

  • heading_font_familystring

    maxLength: 200

  • body_font_familystring

    maxLength: 200

  • tonestring

    maxLength: 1000

  • footer_addressstring

    maxLength: 500

  • email_stylestring

    maxLength: 20

  • statusstring

    enum: "active", "archived"

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • workspace_idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • slugstringจำเป็น
  • kindstringจำเป็น

    enum: "product", "store", "brand", "newsletter", "company", "other"

  • website_urlstring | nullจำเป็น
  • domainsarrayจำเป็น
  • แต่ละรายการstring
  • descriptionstringจำเป็น
  • contextobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • brandobjectจำเป็น
  • company_namestring

    maxLength: 160

  • logo_urlstring

    ไอคอน: สัญลักษณ์เดี่ยว ใช้ขนาดเล็ก (ส่วนท้ายอีเมล แบบฟอร์มเลื่อนเข้า) และใช้เป็นส่วนหัวเมื่อไม่มีโลโก้ตัวอักษร

    maxLength: 2000

  • wordmark_urlstring

    โลโก้ตัวอักษร: ชื่อบริษัทตามที่ออกแบบ แสดงเดี่ยวที่ด้านบนของทุกอีเมล

    maxLength: 2000

  • wordmark_inkstring

    สีที่ใช้วาดโลโก้ตัวอักษร วัดจากภาพเมื่อบันทึก หากโลโก้อ่านไม่ชัดบนส่วนหัว จะมีแผ่นพื้นหลังรองไว้ ไม่มีค่านี้สำหรับภาพทึบแสง

    maxLength: 7

  • logo_inkstring

    สีที่ใช้วาดไอคอน วัดจากภาพเมื่อบันทึก

    maxLength: 7

  • website_urlstring

    maxLength: 2000

  • primary_colorstring

    maxLength: 7

  • accent_colorstring

    maxLength: 7

  • background_colorstring

    maxLength: 7

  • surface_colorstring

    maxLength: 7

  • text_colorstring

    maxLength: 7

  • muted_text_colorstring

    maxLength: 7

  • heading_font_familystring

    maxLength: 200

  • body_font_familystring

    maxLength: 200

  • tonestring

    maxLength: 1000

  • footer_addressstring

    maxLength: 500

  • email_stylestring

    maxLength: 20

  • statusstringจำเป็น

    deleting: บุคคลลบแล้ว กู้คืนได้จนถึง delete_after จากนั้นลบถาวร

    enum: "active", "archived", "deleting"

  • delete_afterstring | null

    เวลาที่ผลิตภัณฑ์สถานะ deleting ถูกลบถาวร

    format: "date-time"

  • is_defaultbooleanจำเป็น
  • route_readybooleanจำเป็น
  • noreply_senderstring | null

    noreply@ on the product's Broadcast lane: what Broadcasts, Journeys and forms send from when no mailbox is chosen. Replies to it are discarded. Null until a lane is active.

  • setuparrayจำเป็น
  • แต่ละรายการobject
  • keystringจำเป็น

    enum: "context", "domain", "mailboxes", "journeys", "broadcasts", "compliance"

  • statusstringจำเป็น

    enum: "todo", "in_progress", "complete", "not_relevant"

  • completion_sourcestring | nullจำเป็น

    enum: "system", "person", "agent", null

  • notestringจำเป็น
  • updated_atstring | nullจำเป็น

    format: "date-time"

  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

ตัวอย่าง curl

curl --request PATCH --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/products/{productId}' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "name": "example",
  "kind": "product",
  "website_url": "example",
  "description": "example",
  "context": {},
  "brand": {
    "company_name": "example",
    "logo_url": "example",
    "wordmark_url": "example",
    "website_url": "example",
    "primary_color": "example",
    "accent_color": "example",
    "background_color": "example",
    "surface_color": "example",
    "text_color": "example",
    "muted_text_color": "example",
    "heading_font_family": "example",
    "body_font_family": "example",
    "tone": "example",
    "footer_address": "example",
    "email_style": "example"
  },
  "status": "active"
}'
DELETE/v1/workspaces/{workspaceId}/products/{productId}

ลบหนึ่งผลิตภัณฑ์ (โปรเจกต์ในแอป) หลังตรวจสอบตัวอย่างผลการลบ ผลิตภัณฑ์หยุดใช้งานทันที (หยุดส่ง) และกู้คืนได้ 24 ชั่วโมง จากนั้น Banger ลบโดเมนส่งและแถวข้อมูลทั้งหมดของผลิตภัณฑ์ ลบผลิตภัณฑ์ที่ยังใช้งานตัวสุดท้ายของพื้นที่ทำงานไม่ได้ ต้องเป็นผู้ดูแลพื้นที่ทำงานและมีเซสชันที่เข้าสู่ระบบ ปฏิเสธคีย์ API และสิทธิ์ OAuth

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

productId
path · จำเป็น
  • valuestring

    format: "uuid"

Idempotency-Key
header · จำเป็น
  • valuestring

    minLength: 16 · maxLength: 128

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • confirm_namestringจำเป็น

    ชื่อผลิตภัณฑ์ที่ตรงทุกตัวอักษร

    minLength: 1 · maxLength: 160

  • preview_tokenstringจำเป็น

    minLength: 64 · maxLength: 64

การตอบกลับสำเร็จ 202

ผลิตภัณฑ์หยุดใช้งานและถูกลบถาวรเมื่อถึง delete_after เว้นแต่กู้คืนก่อน การเรียกซ้ำแบบ idempotent คืนผลเดิม

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • statusstringจำเป็น

    enum: "deleting"

  • delete_afterstringจำเป็น

    เวลาที่ผลิตภัณฑ์ถูกลบถาวร กู้คืนได้จนถึงเวลานั้น

    format: "date-time"

  • next_product_idstringจำเป็น

    ผลิตภัณฑ์เริ่มต้นของพื้นที่ทำงานในขณะนี้

    format: "uuid"

  • replayedboolean

ตัวอย่าง curl

curl --request DELETE --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/products/{productId}' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Idempotency-Key: examplexxxxxxxxx' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "confirm_name": "example",
  "preview_token": "examplexxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}'
GET/v1/workspaces/{workspaceId}/products/{productId}/deletion-preview

ดูตัวอย่างการลบหนึ่งผลิตภัณฑ์และทุกอย่างที่เป็นของผลิตภัณฑ์โดยไม่ลบจริง ต้องเป็นผู้ดูแลพื้นที่ทำงานที่เข้าสู่ระบบหรือใช้ OAuth ที่ผู้ใช้อนุญาต

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

productId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

สิ่งที่ถูกลบและหยุดเมื่อลบผลิตภัณฑ์

application/json

  • valueobject
  • dataobjectจำเป็น
  • productobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • is_defaultbooleanจำเป็น
  • next_default_productไม่ได้ระบุจำเป็น

    ผลิตภัณฑ์ที่เป็นค่าเริ่มต้นของพื้นที่ทำงานเมื่อลบผลิตภัณฑ์เริ่มต้น

  • oneOf 1null
  • oneOf 2object
  • idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • last_productbooleanจำเป็น

    ลบผลิตภัณฑ์ที่ใช้งานอยู่เพียงตัวเดียวไม่ได้

  • mailboxesarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • addressstringจำเป็น
  • domainsarrayจำเป็น

    โดเมนส่งที่ Banger ลบเมื่อพ้นช่วงกู้คืน

  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • domainstringจำเป็น
  • journeysintegerจำเป็น
  • broadcastsintegerจำเป็น
  • signup_formsintegerจำเป็น
  • contactsintegerจำเป็น
  • api_keysintegerจำเป็น
  • webhooksintegerจำเป็น
  • pending_sendsintegerจำเป็น
  • impactarrayจำเป็น
  • แต่ละรายการstring
  • preview_tokenstringจำเป็น

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/products/{productId}/deletion-preview' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/products/{productId}/restore

กู้คืนผลิตภัณฑ์ที่ลบก่อน delete_after กล่องจดหมาย เส้นทาง แบบฟอร์มสมัคร เว็บฮุก และการผสานระบบจะเปิดอีกครั้ง แคมเปญยังคงหยุดชั่วคราว ต้องเป็นผู้ดูแลพื้นที่ทำงานที่เข้าสู่ระบบหรือใช้ OAuth ที่ผู้ใช้อนุญาต

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

productId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

ผลิตภัณฑ์กลับมาใช้งานแล้ว

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • statusstringจำเป็น

    enum: "active"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/products/{productId}/restore' \
  --header "Authorization: Bearer $BANGER_API_KEY"
PUT/v1/workspaces/{workspaceId}/products/{productId}/setup/{key}

อัปเดตรายการตั้งค่าผลิตภัณฑ์

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

productId
path · จำเป็น
  • valuestring

    format: "uuid"

key
path · จำเป็น
  • valuestring

    enum: "context", "domain", "mailboxes", "journeys", "broadcasts", "compliance"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • statusstringจำเป็น

    enum: "todo", "in_progress", "complete", "not_relevant"

  • completion_sourcestring

    default: "person" · enum: "system", "person", "agent"

  • notestring

    maxLength: 1000

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • keystringจำเป็น

    enum: "context", "domain", "mailboxes", "journeys", "broadcasts", "compliance"

  • statusstringจำเป็น

    enum: "todo", "in_progress", "complete", "not_relevant"

  • completion_sourcestring | nullจำเป็น

    enum: "system", "person", "agent", null

  • notestringจำเป็น
  • updated_atstring | nullจำเป็น

    format: "date-time"

ตัวอย่าง curl

curl --request PUT --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/products/{productId}/setup/{key}' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "status": "todo",
  "completion_source": "person",
  "note": "example"
}'
POST/v1/workspaces/{workspaceId}/products/{productId}/domains

เชื่อมโดเมนกับผลิตภัณฑ์

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

productId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • domainstringจำเป็น

    minLength: 3 · maxLength: 253

การตอบกลับสำเร็จ 201

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • workspace_idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • slugstringจำเป็น
  • kindstringจำเป็น

    enum: "product", "store", "brand", "newsletter", "company", "other"

  • website_urlstring | nullจำเป็น
  • domainsarrayจำเป็น
  • แต่ละรายการstring
  • descriptionstringจำเป็น
  • contextobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • brandobjectจำเป็น
  • company_namestring

    maxLength: 160

  • logo_urlstring

    ไอคอน: สัญลักษณ์เดี่ยว ใช้ขนาดเล็ก (ส่วนท้ายอีเมล แบบฟอร์มเลื่อนเข้า) และใช้เป็นส่วนหัวเมื่อไม่มีโลโก้ตัวอักษร

    maxLength: 2000

  • wordmark_urlstring

    โลโก้ตัวอักษร: ชื่อบริษัทตามที่ออกแบบ แสดงเดี่ยวที่ด้านบนของทุกอีเมล

    maxLength: 2000

  • wordmark_inkstring

    สีที่ใช้วาดโลโก้ตัวอักษร วัดจากภาพเมื่อบันทึก หากโลโก้อ่านไม่ชัดบนส่วนหัว จะมีแผ่นพื้นหลังรองไว้ ไม่มีค่านี้สำหรับภาพทึบแสง

    maxLength: 7

  • logo_inkstring

    สีที่ใช้วาดไอคอน วัดจากภาพเมื่อบันทึก

    maxLength: 7

  • website_urlstring

    maxLength: 2000

  • primary_colorstring

    maxLength: 7

  • accent_colorstring

    maxLength: 7

  • background_colorstring

    maxLength: 7

  • surface_colorstring

    maxLength: 7

  • text_colorstring

    maxLength: 7

  • muted_text_colorstring

    maxLength: 7

  • heading_font_familystring

    maxLength: 200

  • body_font_familystring

    maxLength: 200

  • tonestring

    maxLength: 1000

  • footer_addressstring

    maxLength: 500

  • email_stylestring

    maxLength: 20

  • statusstringจำเป็น

    deleting: บุคคลลบแล้ว กู้คืนได้จนถึง delete_after จากนั้นลบถาวร

    enum: "active", "archived", "deleting"

  • delete_afterstring | null

    เวลาที่ผลิตภัณฑ์สถานะ deleting ถูกลบถาวร

    format: "date-time"

  • is_defaultbooleanจำเป็น
  • route_readybooleanจำเป็น
  • noreply_senderstring | null

    noreply@ on the product's Broadcast lane: what Broadcasts, Journeys and forms send from when no mailbox is chosen. Replies to it are discarded. Null until a lane is active.

  • setuparrayจำเป็น
  • แต่ละรายการobject
  • keystringจำเป็น

    enum: "context", "domain", "mailboxes", "journeys", "broadcasts", "compliance"

  • statusstringจำเป็น

    enum: "todo", "in_progress", "complete", "not_relevant"

  • completion_sourcestring | nullจำเป็น

    enum: "system", "person", "agent", null

  • notestringจำเป็น
  • updated_atstring | nullจำเป็น

    format: "date-time"

  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/products/{productId}/domains' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "domain": "example"
}'

กล่องจดหมาย

GET/v1/workspaces/{workspaceId}/mailboxes

listMailboxes

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

กล่องจดหมายที่ผู้ดำเนินการมองเห็น

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • workspace_idstringจำเป็น

    format: "uuid"

  • product_idstring | null

    ผลิตภัณฑ์ (โปรเจกต์) ที่กล่องจดหมายเป็นของ ไคลเอนต์ใช้จัดกลุ่มกล่องจดหมายและสร้างลิงก์เว็บแอป

    format: "uuid"

  • domain_idstring | null

    format: "uuid"

  • addressstringจำเป็น

    ที่อยู่อีเมล หรือหมายเลขโทรศัพท์ในรูปแบบ E.164 (+15551234567) สำหรับกล่องจดหมายเข้า SMS

  • display_namestringจำเป็น
  • providerstringจำเป็น

    enum: "gmail", "smtp", "twilio"

  • channelstring

    email; sms สำหรับกล่องจดหมายเข้า SMS บน Twilio; whatsapp สำหรับกล่องจดหมายเข้า WhatsApp ซึ่งเป็นผู้ส่ง WhatsApp บน Twilio สำหรับบัญชี WhatsApp Business ของธุรกิจ

    enum: "email", "sms", "whatsapp"

  • sms_verificationobject | null

    สำหรับหมายเลขจาก Banger เป็นคำตอบของผู้ให้บริการเครือข่ายต่อการยืนยันหมายเลขโทรฟรี ส่งได้เมื่ออนุมัติแล้ว เป็น null สำหรับกล่องจดหมายอื่นทั้งหมด

  • statusstring

    enum: "pending_review", "in_review", "approved", "rejected"

  • reasonstring | null

    เหตุผลของผู้ให้บริการเครือข่ายเมื่อปฏิเสธ

  • statusstringจำเป็น

    enum: "pending", "active", "suspended", "reconnect_required", "disabled"

  • status_reasonstring | null
  • suspended_atstring | null
  • mailbox_kindstringจำเป็น

    enum: "domain", "starter"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/mailboxes' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/mailboxes

สร้างกล่องจดหมายงานบนระบบ Banger ในโดเมนส่งของพื้นที่ทำงาน

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

Idempotency-Key
header · จำเป็น
  • valuestring

    minLength: 16 · maxLength: 128

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • domain_idstringจำเป็น

    format: "uuid"

  • local_partstringจำเป็น

    minLength: 1 · maxLength: 64

  • display_namestring

    maxLength: 200

การตอบกลับสำเร็จ 200

การเรียกซ้ำแบบ idempotent สำหรับการสร้างกล่องจดหมายบนระบบ

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • workspace_idstringจำเป็น

    format: "uuid"

  • product_idstring | null

    ผลิตภัณฑ์ (โปรเจกต์) ที่กล่องจดหมายเป็นของ ไคลเอนต์ใช้จัดกลุ่มกล่องจดหมายและสร้างลิงก์เว็บแอป

    format: "uuid"

  • domain_idstring | null

    format: "uuid"

  • addressstringจำเป็น

    ที่อยู่อีเมล หรือหมายเลขโทรศัพท์ในรูปแบบ E.164 (+15551234567) สำหรับกล่องจดหมายเข้า SMS

  • display_namestringจำเป็น
  • providerstringจำเป็น

    enum: "gmail", "smtp", "twilio"

  • channelstring

    email; sms สำหรับกล่องจดหมายเข้า SMS บน Twilio; whatsapp สำหรับกล่องจดหมายเข้า WhatsApp ซึ่งเป็นผู้ส่ง WhatsApp บน Twilio สำหรับบัญชี WhatsApp Business ของธุรกิจ

    enum: "email", "sms", "whatsapp"

  • sms_verificationobject | null

    สำหรับหมายเลขจาก Banger เป็นคำตอบของผู้ให้บริการเครือข่ายต่อการยืนยันหมายเลขโทรฟรี ส่งได้เมื่ออนุมัติแล้ว เป็น null สำหรับกล่องจดหมายอื่นทั้งหมด

  • statusstring

    enum: "pending_review", "in_review", "approved", "rejected"

  • reasonstring | null

    เหตุผลของผู้ให้บริการเครือข่ายเมื่อปฏิเสธ

  • statusstringจำเป็น

    enum: "pending", "active", "suspended", "reconnect_required", "disabled"

  • status_reasonstring | null
  • suspended_atstring | null
  • mailbox_kindstringจำเป็น

    enum: "domain", "starter"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/mailboxes' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Idempotency-Key: examplexxxxxxxxx' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "domain_id": "00000000-0000-4000-8000-000000000001",
  "local_part": "example",
  "display_name": "example"
}'
POST/v1/workspaces/{workspaceId}/mailboxes/sms

เพิ่มกล่องจดหมายเข้า SMS สำหรับหมายเลขในบัญชี Twilio ของบริษัทเอง Banger ตรวจสอบว่าบัญชีเป็นเจ้าของหมายเลข กำหนดให้ข้อความขาเข้าส่งไปยังกล่องจดหมายเข้า และเก็บ Auth Token แบบเข้ารหัส ผู้ดูแลพื้นที่ทำงานที่ลงชื่อเข้าใช้เว็บแอปเป็นผู้ดำเนินการ ต้องเปิดใช้ฟีเจอร์ customers ของพื้นที่ทำงาน

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • account_sidstringจำเป็น

    pattern: "^AC[0-9a-f]{32}$"

  • auth_tokenstringจำเป็น

    minLength: 16 · maxLength: 128

  • phone_numberstringจำเป็น

    หมายเลข Twilio ในรูปแบบ E.164

  • display_namestring

    maxLength: 200

การตอบกลับสำเร็จ 201

กล่องจดหมายเข้า SMS

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • workspace_idstringจำเป็น

    format: "uuid"

  • product_idstring | null

    ผลิตภัณฑ์ (โปรเจกต์) ที่กล่องจดหมายเป็นของ ไคลเอนต์ใช้จัดกลุ่มกล่องจดหมายและสร้างลิงก์เว็บแอป

    format: "uuid"

  • domain_idstring | null

    format: "uuid"

  • addressstringจำเป็น

    ที่อยู่อีเมล หรือหมายเลขโทรศัพท์ในรูปแบบ E.164 (+15551234567) สำหรับกล่องจดหมายเข้า SMS

  • display_namestringจำเป็น
  • providerstringจำเป็น

    enum: "gmail", "smtp", "twilio"

  • channelstring

    email; sms สำหรับกล่องจดหมายเข้า SMS บน Twilio; whatsapp สำหรับกล่องจดหมายเข้า WhatsApp ซึ่งเป็นผู้ส่ง WhatsApp บน Twilio สำหรับบัญชี WhatsApp Business ของธุรกิจ

    enum: "email", "sms", "whatsapp"

  • sms_verificationobject | null

    สำหรับหมายเลขจาก Banger เป็นคำตอบของผู้ให้บริการเครือข่ายต่อการยืนยันหมายเลขโทรฟรี ส่งได้เมื่ออนุมัติแล้ว เป็น null สำหรับกล่องจดหมายอื่นทั้งหมด

  • statusstring

    enum: "pending_review", "in_review", "approved", "rejected"

  • reasonstring | null

    เหตุผลของผู้ให้บริการเครือข่ายเมื่อปฏิเสธ

  • statusstringจำเป็น

    enum: "pending", "active", "suspended", "reconnect_required", "disabled"

  • status_reasonstring | null
  • suspended_atstring | null
  • mailbox_kindstringจำเป็น

    enum: "domain", "starter"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/mailboxes/sms' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "account_sid": "example",
  "auth_token": "examplexxxxxxxxx",
  "phone_number": "example",
  "display_name": "example"
}'
GET/v1/workspaces/{workspaceId}/mailboxes/whatsapp/signup

ข้อมูลที่เว็บแอปต้องใช้เพื่อเปิด Embedded Signup ของ Meta สำหรับกล่องจดหมายเข้า WhatsApp (Banger เป็น Tech Provider ภายใต้ Twilio) ดำเนินการโดยผู้ดูแลพื้นที่ทำงานในเว็บแอป ต้องเปิดใช้ฟีเจอร์ customers ของพื้นที่ทำงานและใช้แผนแบบชำระเงิน

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

แอป Meta ของ Banger และการกำหนดค่า Embedded Signup ของแอป

application/json

  • valueobject
  • dataobjectจำเป็น
  • app_idstringจำเป็น
  • config_idstringจำเป็น
  • solution_idstringจำเป็น

    id ของ Partner Solution ของ Twilio สำหรับแอป Meta ของ Banger

  • graph_versionstringจำเป็น

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/mailboxes/whatsapp/signup' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/mailboxes/whatsapp/senders

The WhatsApp senders of the company's own Twilio account, to pick an inbox's number from. Nothing is kept. A workspace admin signed in to the web app does this; it needs the customers workspace feature.

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • account_sidstringจำเป็น

    pattern: "^AC[0-9a-f]{32}$"

  • auth_tokenstringจำเป็น

    minLength: 16 · maxLength: 128

การตอบกลับสำเร็จ 200

The account's WhatsApp senders.

application/json

  • valueobject
  • dataobjectจำเป็น
  • sendersarrayจำเป็น
  • แต่ละรายการobject
  • sidstringจำเป็น
  • phone_numberstringจำเป็น

    The sender's number in international format.

  • display_namestringจำเป็น

    The name on its WhatsApp profile.

  • statusstringจำเป็น

    Twilio's state of the sender, in capitals. ONLINE sends and receives, and so does ONLINE:UPDATING.

  • connectedbooleanจำเป็น

    Whether the number is a WhatsApp inbox in this workspace already, in any of its projects.

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/mailboxes/whatsapp/senders' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "account_sid": "example",
  "auth_token": "examplexxxxxxxxx"
}'
POST/v1/workspaces/{workspaceId}/mailboxes/whatsapp

Connect a WhatsApp number as an inbox, one of two ways. With the company's own Twilio account (account_sid, auth_token), Banger keeps the inbox with the Auth Token encrypted, then points that account's WhatsApp sender's incoming messages at it; Twilio and Meta bill the company, and it needs only the customers workspace feature. The inbox is pending, and sends nothing, until the sender is online and Twilio sends its messages to the inbox. Connecting the same number again looks at the sender once more, tries the change again and takes a new Auth Token. With the WhatsApp Business account Meta's Embedded Signup returned (waba_id), Banger registers the number as a sender in the workspace's Twilio sub-account, which needs a paid plan.

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueไม่ได้ระบุ
  • oneOf 1object

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • account_sidstringจำเป็น

    pattern: "^AC[0-9a-f]{32}$"

  • auth_tokenstringจำเป็น

    minLength: 16 · maxLength: 128

  • phone_numberstringจำเป็น

    The number of a WhatsApp sender on that Twilio account, in international format.

  • display_namestring

    The inbox's name in Banger. Defaults to the name on the sender's WhatsApp profile.

    maxLength: 200

  • oneOf 2object

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • waba_idstringจำเป็น
  • phone_numberstringจำเป็น

    The number the business chose in the signup, in international format.

  • display_namestring

    ชื่อที่ WhatsApp แสดง จำเป็นสำหรับหมายเลขจาก Banger

    maxLength: 200

การตอบกลับสำเร็จ 200

The company's own sender was an inbox already, and was connected again.

application/json

  • valueobject
  • dataไม่ได้ระบุจำเป็น
  • allOf 1object
  • idstringจำเป็น

    format: "uuid"

  • workspace_idstringจำเป็น

    format: "uuid"

  • product_idstring | null

    ผลิตภัณฑ์ (โปรเจกต์) ที่กล่องจดหมายเป็นของ ไคลเอนต์ใช้จัดกลุ่มกล่องจดหมายและสร้างลิงก์เว็บแอป

    format: "uuid"

  • domain_idstring | null

    format: "uuid"

  • addressstringจำเป็น

    ที่อยู่อีเมล หรือหมายเลขโทรศัพท์ในรูปแบบ E.164 (+15551234567) สำหรับกล่องจดหมายเข้า SMS

  • display_namestringจำเป็น
  • providerstringจำเป็น

    enum: "gmail", "smtp", "twilio"

  • channelstring

    email; sms สำหรับกล่องจดหมายเข้า SMS บน Twilio; whatsapp สำหรับกล่องจดหมายเข้า WhatsApp ซึ่งเป็นผู้ส่ง WhatsApp บน Twilio สำหรับบัญชี WhatsApp Business ของธุรกิจ

    enum: "email", "sms", "whatsapp"

  • sms_verificationobject | null

    สำหรับหมายเลขจาก Banger เป็นคำตอบของผู้ให้บริการเครือข่ายต่อการยืนยันหมายเลขโทรฟรี ส่งได้เมื่ออนุมัติแล้ว เป็น null สำหรับกล่องจดหมายอื่นทั้งหมด

  • statusstring

    enum: "pending_review", "in_review", "approved", "rejected"

  • reasonstring | null

    เหตุผลของผู้ให้บริการเครือข่ายเมื่อปฏิเสธ

  • statusstringจำเป็น

    enum: "pending", "active", "suspended", "reconnect_required", "disabled"

  • status_reasonstring | null
  • suspended_atstring | null
  • mailbox_kindstringจำเป็น

    enum: "domain", "starter"

  • allOf 2object
  • webhooksobject

    For a sender on the company's own Twilio account. Where its incoming messages must go.

  • setbooleanจำเป็น

    Whether Twilio sends the sender's incoming messages to the inbox. When false the inbox is pending with the status_reason whatsapp_sender_points_elsewhere, and the person sets incoming_url on the sender in Twilio, with the method POST.

  • incoming_urlstringจำเป็น

    format: "uri"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/mailboxes/whatsapp' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "account_sid": "example",
  "auth_token": "examplexxxxxxxxx",
  "phone_number": "example",
  "display_name": "example"
}'
GET/v1/workspaces/{workspaceId}/mailboxes/sms/available-numbers

หมายเลขโทรฟรีที่ Banger ซื้อให้พื้นที่ทำงานนี้ได้ ใช้ส่งข้อความไปยังโทรศัพท์ในสหรัฐอเมริกาและแคนาดา ต้องเปิดใช้ฟีเจอร์ customers ของพื้นที่ทำงานและใช้แผนแบบชำระเงิน

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

หมายเลขที่เลือกได้

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject
  • phone_numberstringจำเป็น
  • kindstringจำเป็น

    enum: "toll_free"

  • reachesarrayจำเป็น
  • แต่ละรายการstring

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/mailboxes/sms/available-numbers' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/mailboxes/sms/numbers

ซื้อหมายเลขโทรฟรีเป็นกล่องจดหมายเข้า SMS และขอให้ผู้ให้บริการเครือข่ายอนุมัติโดยใช้รายละเอียดของธุรกิจ รับข้อความได้ทันที และส่งได้เมื่อผู้ให้บริการเครือข่ายอนุมัติ ซึ่งโดยปกติใช้เวลาไม่กี่วัน ส่งข้อความได้เฉพาะสหรัฐอเมริกาและแคนาดา

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • phone_numberstringจำเป็น
  • display_namestring

    maxLength: 200

  • businessobjectจำเป็น
  • legal_namestringจำเป็น

    maxLength: 200

  • websitestringจำเป็น

    maxLength: 500

  • typestringจำเป็น

    enum: "private_profit", "public_profit", "sole_proprietor", "non_profit", "government"

  • registration_numberstring

    EIN ในสหรัฐอเมริกา

    maxLength: 64

  • countrystringจำเป็น

    enum: "US", "CA"

  • streetstringจำเป็น

    maxLength: 200

  • street2string

    maxLength: 200

  • citystringจำเป็น

    maxLength: 100

  • regionstringจำเป็น

    maxLength: 100

  • postal_codestringจำเป็น

    maxLength: 20

  • contact_first_namestringจำเป็น

    maxLength: 100

  • contact_last_namestringจำเป็น

    maxLength: 100

  • contact_emailstringจำเป็น

    maxLength: 320

  • contact_phonestringจำเป็น

    maxLength: 32

  • opt_in_urlstringจำเป็น

    หน้าที่ลูกค้าพบหมายเลขนี้

    maxLength: 500

  • use_case_summarystring

    maxLength: 1000

  • message_samplestring

    maxLength: 1000

การตอบกลับสำเร็จ 201

กล่องจดหมายเข้า SMS ซึ่งรอจนกว่าผู้ให้บริการเครือข่ายจะอนุมัติหมายเลข

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • workspace_idstringจำเป็น

    format: "uuid"

  • product_idstring | null

    ผลิตภัณฑ์ (โปรเจกต์) ที่กล่องจดหมายเป็นของ ไคลเอนต์ใช้จัดกลุ่มกล่องจดหมายและสร้างลิงก์เว็บแอป

    format: "uuid"

  • domain_idstring | null

    format: "uuid"

  • addressstringจำเป็น

    ที่อยู่อีเมล หรือหมายเลขโทรศัพท์ในรูปแบบ E.164 (+15551234567) สำหรับกล่องจดหมายเข้า SMS

  • display_namestringจำเป็น
  • providerstringจำเป็น

    enum: "gmail", "smtp", "twilio"

  • channelstring

    email; sms สำหรับกล่องจดหมายเข้า SMS บน Twilio; whatsapp สำหรับกล่องจดหมายเข้า WhatsApp ซึ่งเป็นผู้ส่ง WhatsApp บน Twilio สำหรับบัญชี WhatsApp Business ของธุรกิจ

    enum: "email", "sms", "whatsapp"

  • sms_verificationobject | null

    สำหรับหมายเลขจาก Banger เป็นคำตอบของผู้ให้บริการเครือข่ายต่อการยืนยันหมายเลขโทรฟรี ส่งได้เมื่ออนุมัติแล้ว เป็น null สำหรับกล่องจดหมายอื่นทั้งหมด

  • statusstring

    enum: "pending_review", "in_review", "approved", "rejected"

  • reasonstring | null

    เหตุผลของผู้ให้บริการเครือข่ายเมื่อปฏิเสธ

  • statusstringจำเป็น

    enum: "pending", "active", "suspended", "reconnect_required", "disabled"

  • status_reasonstring | null
  • suspended_atstring | null
  • mailbox_kindstringจำเป็น

    enum: "domain", "starter"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/mailboxes/sms/numbers' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "phone_number": "example",
  "display_name": "example",
  "business": {
    "legal_name": "example",
    "website": "example",
    "type": "private_profit",
    "registration_number": "example",
    "country": "US",
    "street": "example",
    "street2": "example",
    "city": "example",
    "region": "example",
    "postal_code": "example",
    "contact_first_name": "example",
    "contact_last_name": "example",
    "contact_email": "example",
    "contact_phone": "example",
    "opt_in_url": "example",
    "use_case_summary": "example",
    "message_sample": "example"
  }
}'
GET/v1/workspaces/{workspaceId}/mailboxes/{mailboxId}/deletion-preview

ดูตัวอย่างการลบกล่องจดหมายถาวรและขั้นตอนส่งที่พึ่งพา ต้องเป็นผู้ดูแลพื้นที่ทำงานและมีขอบเขตผลิตภัณฑ์

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

mailboxId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

กล่องจดหมายที่ตรงกันและผลกระทบการลบปัจจุบันโดยไม่ลบจริง

application/json

  • valueobject
  • dataobjectจำเป็น
  • mailboxobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • addressstringจำเป็น
  • providerstringจำเป็น
  • domain_idstring | nullจำเป็น

    format: "uuid"

  • provider_connection_idstring | nullจำเป็น

    format: "uuid"

  • messagesintegerจำเป็น
  • draftsintegerจำเป็น
  • pending_sendsintegerจำเป็น
  • broadcastsarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • statusstringจำเป็น
  • journeysarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • statusstringจำเป็น
  • signup_formsarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • statusstringจำเป็น
  • impactarrayจำเป็น
  • แต่ละรายการstring
  • preview_tokenstringจำเป็น

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/mailboxes/{mailboxId}/deletion-preview' \
  --header "Authorization: Bearer $BANGER_API_KEY"
PATCH/v1/workspaces/{workspaceId}/mailboxes/{mailboxId}

ตั้งชื่อผู้ส่งที่ผู้รับเห็นในอีเมลจากหนึ่งกล่องจดหมาย Banger ("Name <address>") กล่องจดหมาย Gmail ใช้ชื่อที่ตั้งใน Gmail ต่อไป ต้องเป็นผู้ดูแลพื้นที่ทำงาน

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

mailboxId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • display_namestringจำเป็น

    หนึ่งบรรทัด หากว่างจะส่งเฉพาะที่อยู่

    maxLength: 200

การตอบกลับสำเร็จ 200

กล่องจดหมายพร้อมชื่อผู้ส่ง

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • workspace_idstringจำเป็น

    format: "uuid"

  • product_idstring | null

    ผลิตภัณฑ์ (โปรเจกต์) ที่กล่องจดหมายเป็นของ ไคลเอนต์ใช้จัดกลุ่มกล่องจดหมายและสร้างลิงก์เว็บแอป

    format: "uuid"

  • domain_idstring | null

    format: "uuid"

  • addressstringจำเป็น

    ที่อยู่อีเมล หรือหมายเลขโทรศัพท์ในรูปแบบ E.164 (+15551234567) สำหรับกล่องจดหมายเข้า SMS

  • display_namestringจำเป็น
  • providerstringจำเป็น

    enum: "gmail", "smtp", "twilio"

  • channelstring

    email; sms สำหรับกล่องจดหมายเข้า SMS บน Twilio; whatsapp สำหรับกล่องจดหมายเข้า WhatsApp ซึ่งเป็นผู้ส่ง WhatsApp บน Twilio สำหรับบัญชี WhatsApp Business ของธุรกิจ

    enum: "email", "sms", "whatsapp"

  • sms_verificationobject | null

    สำหรับหมายเลขจาก Banger เป็นคำตอบของผู้ให้บริการเครือข่ายต่อการยืนยันหมายเลขโทรฟรี ส่งได้เมื่ออนุมัติแล้ว เป็น null สำหรับกล่องจดหมายอื่นทั้งหมด

  • statusstring

    enum: "pending_review", "in_review", "approved", "rejected"

  • reasonstring | null

    เหตุผลของผู้ให้บริการเครือข่ายเมื่อปฏิเสธ

  • statusstringจำเป็น

    enum: "pending", "active", "suspended", "reconnect_required", "disabled"

  • status_reasonstring | null
  • suspended_atstring | null
  • mailbox_kindstringจำเป็น

    enum: "domain", "starter"

ตัวอย่าง curl

curl --request PATCH --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/mailboxes/{mailboxId}' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "display_name": "example"
}'
DELETE/v1/workspaces/{workspaceId}/mailboxes/{mailboxId}

ลบหนึ่งกล่องจดหมายถาวรโดยเก็บโดเมนและกล่องจดหมายอื่น ต้องเป็นผู้ดูแลพื้นที่ทำงานและมีขอบเขตผลิตภัณฑ์

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

mailboxId
path · จำเป็น
  • valuestring

    format: "uuid"

Idempotency-Key
header · จำเป็น
  • valuestring

    minLength: 16 · maxLength: 128

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • confirm_addressstringจำเป็น

    minLength: 3 · maxLength: 320

  • preview_tokenstringจำเป็น

    minLength: 64 · maxLength: 64

การตอบกลับสำเร็จ 200

ลบแล้วหรือเป็นการเรียกซ้ำแบบ idempotent ไฟล์ที่จัดเก็บเข้าคิวเพื่อล้างถาวร

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • addressstringจำเป็น
  • deletedbooleanจำเป็น
  • replayedboolean

ตัวอย่าง curl

curl --request DELETE --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/mailboxes/{mailboxId}' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Idempotency-Key: examplexxxxxxxxx' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "confirm_address": "example",
  "preview_token": "examplexxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}'
POST/v1/workspaces/{workspaceId}/mailboxes/starter

สร้างกล่องจดหมายที่โฮสต์ โดยจำกัดให้ติดต่อกล่องจดหมายเข้าที่โฮสต์ของผลิตภัณฑ์เดียวกันและผู้รับที่สมัครพื้นที่ทำงาน

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

Idempotency-Key
header · จำเป็น
  • valuestring

    minLength: 16 · maxLength: 128

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • create_newboolean

    สร้างกล่องจดหมายที่โฮสต์เพิ่มแทนการกลับมาใช้กล่องแรก

  • local_partstring

    ชื่อก่อน @bangermail.com หากไม่ระบุ กล่องจดหมายจะได้ชื่อจากคำ เช่น quiet-maple-harbor

    minLength: 3 · maxLength: 40

  • display_namestring

    maxLength: 200

การตอบกลับสำเร็จ 200

การเรียกซ้ำแบบ idempotent สำหรับการสร้างตัวตนเริ่มต้น

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • workspace_idstringจำเป็น

    format: "uuid"

  • product_idstring | null

    ผลิตภัณฑ์ (โปรเจกต์) ที่กล่องจดหมายเป็นของ ไคลเอนต์ใช้จัดกลุ่มกล่องจดหมายและสร้างลิงก์เว็บแอป

    format: "uuid"

  • domain_idstring | null

    format: "uuid"

  • addressstringจำเป็น

    ที่อยู่อีเมล หรือหมายเลขโทรศัพท์ในรูปแบบ E.164 (+15551234567) สำหรับกล่องจดหมายเข้า SMS

  • display_namestringจำเป็น
  • providerstringจำเป็น

    enum: "gmail", "smtp", "twilio"

  • channelstring

    email; sms สำหรับกล่องจดหมายเข้า SMS บน Twilio; whatsapp สำหรับกล่องจดหมายเข้า WhatsApp ซึ่งเป็นผู้ส่ง WhatsApp บน Twilio สำหรับบัญชี WhatsApp Business ของธุรกิจ

    enum: "email", "sms", "whatsapp"

  • sms_verificationobject | null

    สำหรับหมายเลขจาก Banger เป็นคำตอบของผู้ให้บริการเครือข่ายต่อการยืนยันหมายเลขโทรฟรี ส่งได้เมื่ออนุมัติแล้ว เป็น null สำหรับกล่องจดหมายอื่นทั้งหมด

  • statusstring

    enum: "pending_review", "in_review", "approved", "rejected"

  • reasonstring | null

    เหตุผลของผู้ให้บริการเครือข่ายเมื่อปฏิเสธ

  • statusstringจำเป็น

    enum: "pending", "active", "suspended", "reconnect_required", "disabled"

  • status_reasonstring | null
  • suspended_atstring | null
  • mailbox_kindstringจำเป็น

    enum: "domain", "starter"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/mailboxes/starter' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Idempotency-Key: examplexxxxxxxxx' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "create_new": true,
  "local_part": "example",
  "display_name": "example"
}'
POST/v1/workspaces/{workspaceId}/mailboxes/{mailboxId}/reactivate

ยกเลิกการหยุดหนึ่งกล่องจดหมายเนื่องจากชื่อเสียงผู้ส่ง ตามกฎการกลับมาส่งแบบบริการตนเองของ resumeSending

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

mailboxId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • acknowledge_recipient_complaintbooleanจำเป็น

    const: true

  • reasonstring

    เหตุผลที่เปิดการส่งอีกครั้ง บันทึกในบันทึกตรวจสอบ

    maxLength: 500

การตอบกลับสำเร็จ 200

เปิดกล่องจดหมายอีกครั้ง หรือใช้งานอยู่แล้วหลังคำขอก่อนหน้าสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • workspace_idstringจำเป็น

    format: "uuid"

  • product_idstring | null

    ผลิตภัณฑ์ (โปรเจกต์) ที่กล่องจดหมายเป็นของ ไคลเอนต์ใช้จัดกลุ่มกล่องจดหมายและสร้างลิงก์เว็บแอป

    format: "uuid"

  • domain_idstring | null

    format: "uuid"

  • addressstringจำเป็น

    ที่อยู่อีเมล หรือหมายเลขโทรศัพท์ในรูปแบบ E.164 (+15551234567) สำหรับกล่องจดหมายเข้า SMS

  • display_namestringจำเป็น
  • providerstringจำเป็น

    enum: "gmail", "smtp", "twilio"

  • channelstring

    email; sms สำหรับกล่องจดหมายเข้า SMS บน Twilio; whatsapp สำหรับกล่องจดหมายเข้า WhatsApp ซึ่งเป็นผู้ส่ง WhatsApp บน Twilio สำหรับบัญชี WhatsApp Business ของธุรกิจ

    enum: "email", "sms", "whatsapp"

  • sms_verificationobject | null

    สำหรับหมายเลขจาก Banger เป็นคำตอบของผู้ให้บริการเครือข่ายต่อการยืนยันหมายเลขโทรฟรี ส่งได้เมื่ออนุมัติแล้ว เป็น null สำหรับกล่องจดหมายอื่นทั้งหมด

  • statusstring

    enum: "pending_review", "in_review", "approved", "rejected"

  • reasonstring | null

    เหตุผลของผู้ให้บริการเครือข่ายเมื่อปฏิเสธ

  • statusstringจำเป็น

    enum: "pending", "active", "suspended", "reconnect_required", "disabled"

  • status_reasonstring | null
  • suspended_atstring | null
  • mailbox_kindstringจำเป็น

    enum: "domain", "starter"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/mailboxes/{mailboxId}/reactivate' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "acknowledge_recipient_complaint": true,
  "reason": "example"
}'

ฉบับร่าง

GET/v1/workspaces/{workspaceId}/drafts

listDrafts

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

mailbox_id
query
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • mailbox_idstringจำเป็น

    format: "uuid"

  • thread_idstring | nullจำเป็น

    format: "uuid"

  • versionintegerจำเป็น
  • toarrayจำเป็น
  • แต่ละรายการobject
  • emailstringจำเป็น
  • namestring
  • ccarrayจำเป็น
  • แต่ละรายการobject
  • emailstringจำเป็น
  • namestring
  • bccarrayจำเป็น
  • แต่ละรายการobject
  • emailstringจำเป็น
  • namestring
  • subjectstringจำเป็น
  • body_textstringจำเป็น
  • statusstringจำเป็น
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • attachmentsarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • filenamestringจำเป็น
  • content_typestringจำเป็น
  • size_bytesintegerจำเป็น
  • sha256string
  • created_atstring

    format: "date-time"

  • body_html_urlstring

    format: "uri"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/drafts?mailbox_id=00000000-0000-4000-8000-000000000001' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/drafts

createDraft

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • mailbox_idstringจำเป็น

    format: "uuid"

  • thread_idstring

    format: "uuid"

  • toarray

    maxItems: 500

  • แต่ละรายการobject
  • namestring
  • emailstringจำเป็น

    format: "email"

  • ccarray

    maxItems: 500

  • แต่ละรายการobject
  • namestring
  • emailstringจำเป็น

    format: "email"

  • bccarray

    maxItems: 500

  • แต่ละรายการobject
  • namestring
  • emailstringจำเป็น

    format: "email"

  • subjectstring

    maxLength: 10000

  • body_textstring

    maxLength: 2000000

  • body_htmlstring

    maxLength: 2000000

การตอบกลับสำเร็จ 201

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • mailbox_idstringจำเป็น

    format: "uuid"

  • thread_idstring | nullจำเป็น

    format: "uuid"

  • versionintegerจำเป็น
  • toarrayจำเป็น
  • แต่ละรายการobject
  • emailstringจำเป็น
  • namestring
  • ccarrayจำเป็น
  • แต่ละรายการobject
  • emailstringจำเป็น
  • namestring
  • bccarrayจำเป็น
  • แต่ละรายการobject
  • emailstringจำเป็น
  • namestring
  • subjectstringจำเป็น
  • body_textstringจำเป็น
  • statusstringจำเป็น
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • attachmentsarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • filenamestringจำเป็น
  • content_typestringจำเป็น
  • size_bytesintegerจำเป็น
  • sha256string
  • created_atstring

    format: "date-time"

  • body_html_urlstring

    format: "uri"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/drafts' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "mailbox_id": "00000000-0000-4000-8000-000000000001",
  "thread_id": "00000000-0000-4000-8000-000000000001",
  "to": [
    {
      "name": "example",
      "email": "person@example.com"
    }
  ],
  "cc": [
    {
      "name": "example",
      "email": "person@example.com"
    }
  ],
  "bcc": [
    {
      "name": "example",
      "email": "person@example.com"
    }
  ],
  "subject": "example",
  "body_text": "example",
  "body_html": "example"
}'
GET/v1/workspaces/{workspaceId}/drafts/{draftId}

getDraft

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

draftId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

ประสิทธิภาพการส่งถึง สถานะ และเหตุขัดข้องจากข้อมูลหลัก

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • mailbox_idstringจำเป็น

    format: "uuid"

  • thread_idstring | nullจำเป็น

    format: "uuid"

  • versionintegerจำเป็น
  • toarrayจำเป็น
  • แต่ละรายการobject
  • emailstringจำเป็น
  • namestring
  • ccarrayจำเป็น
  • แต่ละรายการobject
  • emailstringจำเป็น
  • namestring
  • bccarrayจำเป็น
  • แต่ละรายการobject
  • emailstringจำเป็น
  • namestring
  • subjectstringจำเป็น
  • body_textstringจำเป็น
  • statusstringจำเป็น
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • attachmentsarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • filenamestringจำเป็น
  • content_typestringจำเป็น
  • size_bytesintegerจำเป็น
  • sha256string
  • created_atstring

    format: "date-time"

  • body_html_urlstring

    format: "uri"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/drafts/{draftId}' \
  --header "Authorization: Bearer $BANGER_API_KEY"
PUT/v1/workspaces/{workspaceId}/drafts/{draftId}

updateDraft

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

draftId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueไม่ได้ระบุ
  • allOf 1object

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • mailbox_idstringจำเป็น

    format: "uuid"

  • thread_idstring

    format: "uuid"

  • toarray

    maxItems: 500

  • แต่ละรายการobject
  • namestring
  • emailstringจำเป็น

    format: "email"

  • ccarray

    maxItems: 500

  • แต่ละรายการobject
  • namestring
  • emailstringจำเป็น

    format: "email"

  • bccarray

    maxItems: 500

  • แต่ละรายการobject
  • namestring
  • emailstringจำเป็น

    format: "email"

  • subjectstring

    maxLength: 10000

  • body_textstring

    maxLength: 2000000

  • body_htmlstring

    maxLength: 2000000

  • allOf 2object
  • versionintegerจำเป็น

    minimum: 1

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • mailbox_idstringจำเป็น

    format: "uuid"

  • thread_idstring | nullจำเป็น

    format: "uuid"

  • versionintegerจำเป็น
  • toarrayจำเป็น
  • แต่ละรายการobject
  • emailstringจำเป็น
  • namestring
  • ccarrayจำเป็น
  • แต่ละรายการobject
  • emailstringจำเป็น
  • namestring
  • bccarrayจำเป็น
  • แต่ละรายการobject
  • emailstringจำเป็น
  • namestring
  • subjectstringจำเป็น
  • body_textstringจำเป็น
  • statusstringจำเป็น
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • attachmentsarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • filenamestringจำเป็น
  • content_typestringจำเป็น
  • size_bytesintegerจำเป็น
  • sha256string
  • created_atstring

    format: "date-time"

  • body_html_urlstring

    format: "uri"

ตัวอย่าง curl

curl --request PUT --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/drafts/{draftId}' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "mailbox_id": "00000000-0000-4000-8000-000000000001",
  "thread_id": "00000000-0000-4000-8000-000000000001",
  "to": [
    {
      "name": "example",
      "email": "person@example.com"
    }
  ],
  "cc": [
    {
      "name": "example",
      "email": "person@example.com"
    }
  ],
  "bcc": [
    {
      "name": "example",
      "email": "person@example.com"
    }
  ],
  "subject": "example",
  "body_text": "example",
  "body_html": "example",
  "version": 1
}'
DELETE/v1/workspaces/{workspaceId}/drafts/{draftId}

deleteDraft

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

draftId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 204

ฉบับร่างและออบเจ็กต์ที่อ้างถึงถูกตั้งเวลาลบ

ไม่มีเนื้อหาการตอบกลับ

ตัวอย่าง curl

curl --request DELETE --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/drafts/{draftId}' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/drafts/{draftId}/send

sendDraft

ส่งฉบับร่างจากกล่องจดหมายที่ผู้เรียกต้องเข้าถึงได้ ผู้เรียกที่ต้องขออนุมัติการส่งจะได้รับการอนุมัติที่รอดำเนินการแทน ผู้ที่ส่งฉบับร่างโดยตรงได้เป็นผู้ตัดสิน

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

draftId
path · จำเป็น
  • valuestring

    format: "uuid"

Idempotency-Key
header · จำเป็น
  • valuestring

    minLength: 16 · maxLength: 128

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 202

การส่งเข้าคิวหรือรออนุมัติ

application/json

  • valueobject
  • dataไม่ได้ระบุจำเป็น
  • oneOf 1object
  • idstringจำเป็น

    format: "uuid"

  • typestringจำเป็น
  • statusstringจำเป็น

    enum: "accepted", "executing", "succeeded", "failed"

  • workspace_revisionintegerจำเป็น

    format: "int64"

  • created_atstringจำเป็น

    format: "date-time"

  • oneOf 2object

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • approvalobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • requested_by_actor_idstringจำเป็น
  • action_kindstringจำเป็น
  • summarystringจำเป็น
  • capability_scopesarrayจำเป็น
  • แต่ละรายการstring
  • resource_scopeobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมarray
  • แต่ละรายการstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • payloadobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • payload_sha256stringจำเป็น

    pattern: "^[0-9a-f]{64}$"

  • statusstringจำเป็น

    enum: "pending", "approved", "rejected", "cancelled", "expired"

  • missedbooleanจำเป็น
  • expires_atstringจำเป็น

    format: "date-time"

  • qa_automationobject | null

    หลักฐานแหล่งที่มาของระบบอัตโนมัติ QA โดยเฉพาะที่เซิร์ฟเวอร์บันทึกไว้ ไม่ถือเป็นหลักฐานว่ามีคนตรวจทานเพย์โหลด ระบบจะตรวจสอบการทำงานและสิทธิ์อนุญาตส่วนกลางอีกครั้งขณะดำเนินการ

  • kindstring

    enum: "dedicated_qa_automation"

  • authorization_referencestring
  • run_idstring
  • operation_keystring
  • recipientsarray
  • แต่ละรายการstring

    format: "email"

    ละส่วนที่ซ้อนลึกกว่านี้

  • approval_sha256string
  • resource_sha256string
  • decided_by_actor_idstring | null
  • decision_reasonstring | null
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • decided_atstring | null

    format: "date-time"

  • execution_job_idstring

    format: "uuid"

  • reviewobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • dispositionstringจำเป็น

    enum: "automatic", "human_required"

  • recipient_countinteger | nullจำเป็น

    minimum: 0

  • reasonsarrayจำเป็น
  • แต่ละรายการstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • checksarrayจำเป็น
  • แต่ละรายการstring

    ละส่วนที่ซ้อนลึกกว่านี้

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/drafts/{draftId}/send' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Idempotency-Key: examplexxxxxxxxx'
POST/v1/workspaces/{workspaceId}/drafts/{draftId}/attachments

uploadDraftAttachment

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

draftId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Filename
header · จำเป็น
  • valuestring

    minLength: 1 · maxLength: 500

เนื้อหาคำขอ จำเป็น

application/octet-stream

  • valuestring

    format: "binary" · maxLength: 26214400

การตอบกลับสำเร็จ 201

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • filenamestringจำเป็น
  • content_typestringจำเป็น
  • size_bytesintegerจำเป็น
  • sha256string
  • created_atstring

    format: "date-time"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/drafts/{draftId}/attachments' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Filename: example' \
  --header 'Content-Type: application/octet-stream' \
  --data-binary @request-body
DELETE/v1/workspaces/{workspaceId}/drafts/{draftId}/attachments/{attachmentId}

deleteDraftAttachment

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

draftId
path · จำเป็น
  • valuestring

    format: "uuid"

attachmentId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 204

ไฟล์แนบถูกตั้งเวลาลบใน B2 โดยคำนึงถึงเวอร์ชัน

ไม่มีเนื้อหาการตอบกลับ

ตัวอย่าง curl

curl --request DELETE --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/drafts/{draftId}/attachments/{attachmentId}' \
  --header "Authorization: Bearer $BANGER_API_KEY"
GET/v1/workspaces/{workspaceId}/drafts/{draftId}/html

อ่านเนื้อหา HTML ของฉบับร่าง

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

draftId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

HTML ฉบับร่าง

text/html

  • valuestring

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/drafts/{draftId}/html' \
  --header "Authorization: Bearer $BANGER_API_KEY"

การส่ง

GET/v1/workspaces/{workspaceId}/send-intents

listSendIntents

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

limit
query
  • valueinteger

    minimum: 1 · maximum: 100 · default: 50

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การส่งล่าสุดตามข้อมูลหลักและสถานะผู้ให้บริการ

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

  • statusstringจำเป็น

    enum: "accepted", "scheduled", "queued", "executing", "partially_succeeded", "succeeded", "failed", "canceled"

  • traffic_classstringจำเป็น

    enum: "mailbox", "product", "broadcast"

  • recipient_countintegerจำเป็น

    minimum: 1

  • provider_keystringจำเป็น
  • provider_statestringจำเป็น

    enum: "pending", "leased", "submitted", "accepted", "ambiguous", "reconciling", "succeeded", "failed", "canceled"

  • provider_message_idstring | null
  • error_codestring | null
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • completed_atstring | null

    format: "date-time"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/send-intents?limit=50' \
  --header "Authorization: Bearer $BANGER_API_KEY"
GET/v1/workspaces/{workspaceId}/send-intents/{sendIntentId}

getSendIntent

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

sendIntentId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

สถานะการส่งแบบอะซิงโครนัสตามข้อมูลหลัก

application/json

  • valueobject
  • dataobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

  • statusstringจำเป็น

    enum: "accepted", "scheduled", "queued", "executing", "partially_succeeded", "succeeded", "failed", "canceled"

  • traffic_classstringจำเป็น

    enum: "mailbox", "product", "broadcast"

  • recipient_countintegerจำเป็น

    minimum: 1

  • provider_keystringจำเป็น
  • provider_statestringจำเป็น

    enum: "pending", "leased", "submitted", "accepted", "ambiguous", "reconciling", "succeeded", "failed", "canceled"

  • provider_message_idstring | null
  • error_codestring | null
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • completed_atstring | null

    format: "date-time"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/send-intents/{sendIntentId}' \
  --header "Authorization: Bearer $BANGER_API_KEY"

การส่งอีเมลธุรกรรม

GET/v1/workspaces/{workspaceId}/transactional-sends

listTransactionalSends

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

limit
query
  • valueinteger

    minimum: 1 · maximum: 500 · default: 200

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • mailbox_idstring | nullจำเป็น

    format: "uuid"

  • command_idstring | nullจำเป็น

    format: "uuid"

  • statusstringจำเป็น
  • command_statusstring | nullจำเป็น
  • subjectstring
  • recipientsarray
  • แต่ละรายการobject
  • emailstringจำเป็น
  • namestring
  • recipient_countintegerจำเป็น
  • error_codestring | null
  • send_intent_idstring

    format: "uuid"

  • providerstring | null
  • route_kindstring | null
  • sourcestring
  • from_addressstring
  • recipient_statesobject
  • พร็อพเพอร์ตีเพิ่มเติมinteger
  • provider_message_idstring | null
  • languageไม่ได้ระบุ

    ภาษาที่ส่งอีเมลนี้ เป็น null หากไม่ได้แปล

  • anyOf 1object

    ภาษาที่บุคคลได้รับอีเมล มีเฉพาะอีเมลที่แปล (เนื้อหาที่จัดการ)

  • localestringจำเป็น

    แท็ก BCP 47 ของภาษาที่เขียนอีเมล

  • requested_localestring

    มีเฉพาะการส่งเก่าที่ใช้ภาษาอื่น เป็นภาษาที่บุคคลควรได้รับ

  • fallback_reasonstring

    enum: "translation_missing", "translation_pending", "translation_review_required", "translation_failed", "translation_timeout"

  • anyOf 2null
  • journeyobject | null

    ขั้นตอนเส้นทางและการเข้าร่วมที่ส่งอีเมลนี้ เป็น null สำหรับการส่งอื่น

  • journey_idstringจำเป็น

    format: "uuid"

  • step_idstringจำเป็น

    format: "uuid"

  • enrollment_idstringจำเป็น

    format: "uuid"

  • experimentobject | null

    ตัวแปรการทดลองของอีเมลนี้ เป็น null หากไม่มี

  • experiment_idstringจำเป็น

    format: "uuid"

  • variant_keystringจำเป็น
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • completed_atstring | nullจำเป็น

    format: "date-time"

  • template_idstring | null

    format: "uuid"

  • template_versioninteger | null
  • workspace_revisioninteger | null
  • command_resultobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • command_started_atstring | null

    format: "date-time"

  • command_completed_atstring | null

    format: "date-time"

  • body_textstring
  • body_htmlstring
  • reply_toarray
  • แต่ละรายการobject
  • emailstringจำเป็น
  • namestring
  • headersobject
  • พร็อพเพอร์ตีเพิ่มเติมstring
  • tagsarray
  • แต่ละรายการobject
  • namestringจำเป็น
  • valuestringจำเป็น

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/transactional-sends?limit=200' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/transactional-sends

createTransactionalSend

หนึ่งผู้รับต่อการส่งเส้นทาง To รับหนึ่งผู้รับในรูปแบบ RecipientInput ใดก็ได้ ("a@example.com", "Pat <a@example.com>", { email, name } หรือรายการหนึ่งสมาชิก) Cc และ Bcc ต้องว่าง reply_to ใช้กล่องจดหมายเส้นทางเป็นค่าเริ่มต้น (รายการว่างก็หมายถึงค่าเริ่มต้น) อีเมลผลิตภัณฑ์ต้องมีหนึ่งรายการพอดี เส้นทาง API ใหม่ใช้เนื้อหาต้นฉบับที่จัดการเป็นค่าเริ่มต้น เส้นทางโค้ดรุ่นเก่ายังคงส่งเนื้อหาครบ เมื่อปฏิเสธ (4xx) จะไม่ตรึงสิ่งใดของผู้รับ ดังนั้นคำขอที่แก้แล้วพร้อมคีย์ idempotency ใหม่จะส่งได้

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

Idempotency-Key
header · จำเป็น
  • valuestring

    minLength: 16 · maxLength: 128

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • journeystring

    คีย์ของเส้นทางที่อีเมลนี้อยู่ เช่น welcome คีย์ที่ Banger ยังไม่เคยพบจะบันทึกเส้นทางใหม่จากอีเมลนี้แล้วส่งอีเมล คุณรับเส้นทางนั้นมาจัดการเนื้อหาได้ภายหลัง คีย์ของเส้นทางที่คุณสร้างจะส่งเมื่อเส้นทางนั้นได้รับอนุมัติและเปิดใช้งานแล้ว หากไม่มีคีย์ การส่งจะถูกปฏิเสธด้วย 422 journey_key_required เว้นแต่พื้นที่ทำงานยอมรับการส่งโดยไม่มีคีย์ POST /journeys/{journeyKey}/send เป็นการส่งแบบเดียวกันโดยระบุคีย์ในพาธ

    minLength: 1 · maxLength: 100

  • mailbox_idstring

    กล่องจดหมายผู้ส่ง ไม่บังคับหากเส้นทางที่ระบุมีอยู่แล้ว โดยจะใช้กล่องจดหมายนั้นส่ง

    format: "uuid"

  • toไม่ได้ระบุจำเป็น

    ผู้รับสำหรับ to, cc, bcc และ reply_to: ที่อยู่ ("a@example.com" หรือ "Pat <a@example.com>") ออบเจ็กต์ { email, name } หรือรายการที่ผสมทั้งสอง Banger เก็บเป็นออบเจ็กต์ { email, name } โดยอีเมลเป็นตัวพิมพ์เล็ก แฮช idempotency ครอบคลุมเนื้อหาตามที่ส่ง จึงต้องลองซ้ำด้วยรูปแบบเดิม

  • oneOf 1string

    minLength: 3 · maxLength: 1000

  • oneOf 2object
  • namestring
  • emailstringจำเป็น

    format: "email"

  • oneOf 3array

    maxItems: 500

  • แต่ละรายการไม่ได้ระบุ
  • oneOf 1string

    minLength: 3 · maxLength: 1000

  • oneOf 2object
  • namestring
  • emailstringจำเป็น

    format: "email"

  • ccarray

    maxItems: 0

  • แต่ละรายการobject
  • namestring
  • emailstringจำเป็น

    format: "email"

  • bccarray

    maxItems: 0

  • แต่ละรายการobject
  • namestring
  • emailstringจำเป็น

    format: "email"

  • subjectstring

    maxLength: 10000

  • expires_atstring

    ยกเลิกการส่งเส้นทางที่เลื่อนหลังเวลานี้ ไม่เกินเจ็ดวันจากคำขอเดิม

    format: "date-time"

  • expires_after_secondsinteger

    minimum: 1 · maximum: 604800

  • body_textstring

    maxLength: 2000000

  • body_htmlstring

    maxLength: 2000000

  • reply_toไม่ได้ระบุ

    ผู้รับสำหรับ to, cc, bcc และ reply_to: ที่อยู่ ("a@example.com" หรือ "Pat <a@example.com>") ออบเจ็กต์ { email, name } หรือรายการที่ผสมทั้งสอง Banger เก็บเป็นออบเจ็กต์ { email, name } โดยอีเมลเป็นตัวพิมพ์เล็ก แฮช idempotency ครอบคลุมเนื้อหาตามที่ส่ง จึงต้องลองซ้ำด้วยรูปแบบเดิม

  • oneOf 1string

    minLength: 3 · maxLength: 1000

  • oneOf 2object
  • namestring
  • emailstringจำเป็น

    format: "email"

  • oneOf 3array

    maxItems: 500

  • แต่ละรายการไม่ได้ระบุ
  • oneOf 1string

    minLength: 3 · maxLength: 1000

  • oneOf 2object
  • namestring
  • emailstringจำเป็น

    format: "email"

  • headersobject
  • พร็อพเพอร์ตีเพิ่มเติมstring

    maxLength: 5000

  • tagsarray

    maxItems: 49

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • namestringจำเป็น

    minLength: 1 · maxLength: 256

  • valuestringจำเป็น

    minLength: 1 · maxLength: 256

  • attachmentsarray

    ไฟล์ที่ส่งพร้อมอีเมล ทั้งในเส้นทางที่จัดการและเส้นทางแบบโค้ด เนื้อหา base64 รวมได้ไม่เกิน 10 MiB (ไฟล์ประมาณ 7.5 MiB)

    maxItems: 20

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • filenamestringจำเป็น

    ชื่อที่ผู้รับเห็น ในบรรทัดเดียว

    minLength: 1 · maxLength: 500

  • contentstringจำเป็น

    ไฟล์ที่เข้ารหัสเป็น base64 โดยไม่สนใจช่องว่าง

    minLength: 4

  • content_typestring

    ชนิดสื่อ เช่น application/pdf โดยไม่มีพารามิเตอร์ ค่าเริ่มต้นคือ application/octet-stream

    maxLength: 255

  • content_idstring

    Content-ID ที่เนื้อหา HTML อ้างอิงได้ด้วย cid:<content_id>

    minLength: 1 · maxLength: 500

การตอบกลับสำเร็จ 202

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • action_kindstringจำเป็น

    enum: "transactional.send"

  • idstring

    format: "uuid"

  • send_intent_idstring

    format: "uuid"

  • provider_attempt_idstring

    format: "uuid"

  • statusstringจำเป็น

    สถานะ sent/queued จากการส่งถึง หรือสำหรับคำขอที่ตรึงไว้: deferred (ตั้งเวลาตามนโยบายหรือรอแปล), processing (กำลังส่ง), discarded

  • replayedboolean
  • journeyไม่ได้ระบุจำเป็น
  • anyOf 1object
  • journey_idstringจำเป็น

    format: "uuid"

  • enrollment_idstringจำเป็น

    format: "uuid"

  • step_idstringจำเป็น

    format: "uuid"

  • step_positionintegerจำเป็น
  • originstring

    enum: "journey"

  • journey_identitystring
  • anyOf 2null
  • ignored_variablesarrayจำเป็น
  • แต่ละรายการstring
  • scheduled_atstring

    format: "date-time"

  • reasonstring
  • communication_reservation_idstring

    format: "uuid"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/transactional-sends' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Idempotency-Key: examplexxxxxxxxx' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "journey": "example",
  "mailbox_id": "00000000-0000-4000-8000-000000000001",
  "to": "example",
  "cc": [
    {
      "name": "example",
      "email": "person@example.com"
    }
  ],
  "bcc": [
    {
      "name": "example",
      "email": "person@example.com"
    }
  ],
  "subject": "example",
  "expires_at": "2026-01-01T00:00:00Z",
  "expires_after_seconds": 1,
  "body_text": "example",
  "body_html": "example",
  "reply_to": "example",
  "headers": {},
  "tags": [
    {
      "name": "example",
      "value": "example"
    }
  ],
  "attachments": [
    {
      "filename": "example",
      "content": "example",
      "content_type": "example",
      "content_id": "example"
    }
  ]
}'
GET/v1/workspaces/{workspaceId}/transactional-sends/{transactionalSendId}

getTransactionalSend

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

transactionalSendId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • mailbox_idstring | nullจำเป็น

    format: "uuid"

  • command_idstring | nullจำเป็น

    format: "uuid"

  • statusstringจำเป็น
  • command_statusstring | nullจำเป็น
  • subjectstring
  • recipientsarray
  • แต่ละรายการobject
  • emailstringจำเป็น
  • namestring
  • recipient_countintegerจำเป็น
  • error_codestring | null
  • send_intent_idstring

    format: "uuid"

  • providerstring | null
  • route_kindstring | null
  • sourcestring
  • from_addressstring
  • recipient_statesobject
  • พร็อพเพอร์ตีเพิ่มเติมinteger
  • provider_message_idstring | null
  • languageไม่ได้ระบุ

    ภาษาที่ส่งอีเมลนี้ เป็น null หากไม่ได้แปล

  • anyOf 1object

    ภาษาที่บุคคลได้รับอีเมล มีเฉพาะอีเมลที่แปล (เนื้อหาที่จัดการ)

  • localestringจำเป็น

    แท็ก BCP 47 ของภาษาที่เขียนอีเมล

  • requested_localestring

    มีเฉพาะการส่งเก่าที่ใช้ภาษาอื่น เป็นภาษาที่บุคคลควรได้รับ

  • fallback_reasonstring

    enum: "translation_missing", "translation_pending", "translation_review_required", "translation_failed", "translation_timeout"

  • anyOf 2null
  • journeyobject | null

    ขั้นตอนเส้นทางและการเข้าร่วมที่ส่งอีเมลนี้ เป็น null สำหรับการส่งอื่น

  • journey_idstringจำเป็น

    format: "uuid"

  • step_idstringจำเป็น

    format: "uuid"

  • enrollment_idstringจำเป็น

    format: "uuid"

  • experimentobject | null

    ตัวแปรการทดลองของอีเมลนี้ เป็น null หากไม่มี

  • experiment_idstringจำเป็น

    format: "uuid"

  • variant_keystringจำเป็น
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • completed_atstring | nullจำเป็น

    format: "date-time"

  • template_idstring | null

    format: "uuid"

  • template_versioninteger | null
  • workspace_revisioninteger | null
  • command_resultobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • command_started_atstring | null

    format: "date-time"

  • command_completed_atstring | null

    format: "date-time"

  • body_textstring
  • body_htmlstring
  • reply_toarray
  • แต่ละรายการobject
  • emailstringจำเป็น
  • namestring
  • headersobject
  • พร็อพเพอร์ตีเพิ่มเติมstring
  • tagsarray
  • แต่ละรายการobject
  • namestringจำเป็น
  • valuestringจำเป็น

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/transactional-sends/{transactionalSendId}' \
  --header "Authorization: Bearer $BANGER_API_KEY"
GET/v1/workspaces/{workspaceId}/transactional-sends/{transactionalSendId}/timeline

listTransactionalSendTimeline

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

transactionalSendId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

ไทม์ไลน์เรียงลำดับการรับคำขอ ความพยายามของผู้ให้บริการ และเหตุการณ์ผู้รับ

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject
  • occurred_atstringจำเป็น

    format: "date-time"

  • event_typestringจำเป็น
  • labelstringจำเป็น
  • providerstring | null
  • recipient_domainstring | null
  • error_codestring | null

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/transactional-sends/{transactionalSendId}/timeline' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/transactional-sends/{transactionalSendId}/retry

retryTransactionalSend

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

transactionalSendId
path · จำเป็น
  • valuestring

    format: "uuid"

Idempotency-Key
header · จำเป็น
  • valuestring

    minLength: 16 · maxLength: 128

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 202

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • action_kindstringจำเป็น

    enum: "transactional.send"

  • idstringจำเป็น

    format: "uuid"

  • send_intent_idstringจำเป็น

    format: "uuid"

  • provider_attempt_idstringจำเป็น

    format: "uuid"

  • statusstringจำเป็น
  • replayedbooleanจำเป็น

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/transactional-sends/{transactionalSendId}/retry' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Idempotency-Key: examplexxxxxxxxx'

เธรด

GET/v1/workspaces/{workspaceId}/threads

listThreads

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

cursor
query
  • valuestring

    maxLength: 1024

limit
query
  • valueinteger

    minimum: 1 · maximum: 100 · default: 50

mailbox_id
query
  • valuestring

    format: "uuid"

label_id
query

คืนเฉพาะเธรดที่มีป้ายกำกับกล่องจดหมายนี้

  • valuestring

    format: "uuid"

view
query
  • valuestring

    default: "inbox" · enum: "inbox", "sent", "drafts", "archive", "trash", "spam", "all"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

เธรดพื้นที่ทำงานที่แบ่งหน้าแบบ keyset

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • mailbox_idstringจำเป็น

    format: "uuid"

  • subjectstringจำเป็น
  • snippetstringจำเป็น
  • last_message_atstringจำเป็น

    format: "date-time"

  • message_countintegerจำเป็น
  • unread_countintegerจำเป็น
  • is_archivedbooleanจำเป็น
  • is_trashbooleanจำเป็น
  • is_spambooleanจำเป็น
  • is_starredbooleanจำเป็น
  • is_sentbooleanจำเป็น
  • has_attachmentsbooleanจำเป็น
  • sender_unverifiedboolean

    เป็น true เมื่อผู้ส่งข้อความล่าสุดไม่ผ่านทั้ง SPF และ DKIM สำหรับโดเมน From จึงอาจมีการปลอมที่อยู่ From

  • labelsarrayจำเป็น
  • แต่ละรายการstring
  • participantsarray
  • แต่ละรายการobject
  • namestring
  • emailstringจำเป็น

    format: "email"

  • recipientsarray

    The To list of the mailbox's latest sent message in this thread; empty when the mailbox sent none. Sent views show these instead of the sender.

  • แต่ละรายการobject
  • namestring
  • emailstringจำเป็น

    format: "email"

  • pageobjectจำเป็น
  • next_cursorstring
  • has_morebooleanจำเป็น

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/threads?cursor=example&limit=50&mailbox_id=00000000-0000-4000-8000-000000000001&label_id=00000000-0000-4000-8000-000000000001&view=inbox' \
  --header "Authorization: Bearer $BANGER_API_KEY"
GET/v1/workspaces/{workspaceId}/threads/{threadId}

getThread

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

threadId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

เธรดและข้อความเรียงลำดับ

application/json

  • valueobject
  • dataไม่ได้ระบุจำเป็น
  • allOf 1object
  • idstringจำเป็น

    format: "uuid"

  • mailbox_idstringจำเป็น

    format: "uuid"

  • subjectstringจำเป็น
  • snippetstringจำเป็น
  • last_message_atstringจำเป็น

    format: "date-time"

  • message_countintegerจำเป็น
  • unread_countintegerจำเป็น
  • is_archivedbooleanจำเป็น
  • is_trashbooleanจำเป็น
  • is_spambooleanจำเป็น
  • is_starredbooleanจำเป็น
  • is_sentbooleanจำเป็น
  • has_attachmentsbooleanจำเป็น
  • sender_unverifiedboolean

    เป็น true เมื่อผู้ส่งข้อความล่าสุดไม่ผ่านทั้ง SPF และ DKIM สำหรับโดเมน From จึงอาจมีการปลอมที่อยู่ From

  • labelsarrayจำเป็น
  • แต่ละรายการstring
  • participantsarray
  • แต่ละรายการobject
  • namestring
  • emailstringจำเป็น

    format: "email"

  • recipientsarray

    The To list of the mailbox's latest sent message in this thread; empty when the mailbox sent none. Sent views show these instead of the sender.

  • แต่ละรายการobject
  • namestring
  • emailstringจำเป็น

    format: "email"

  • allOf 2object
  • messagesarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • mailbox_idstringจำเป็น

    format: "uuid"

  • thread_idstringจำเป็น

    format: "uuid"

  • sent_atstringจำเป็น

    format: "date-time"

  • received_atstring

    format: "date-time"

  • envelope_recipientsarray

    ผู้รับซอง SMTP เดิมที่ระบบขอบ SMTP ปรับตัวพิมพ์ ก่อนกำหนดเส้นทางนามแฝงสำหรับรับอย่างเดียว ว่างสำหรับข้อความเก่าหรือแหล่งที่ไม่ใช่ SMTP ไม่ขึ้นกับส่วนหัว To/Cc ที่มองเห็น

  • แต่ละรายการstring

    format: "email"

    ละส่วนที่ซ้อนลึกกว่านี้

  • fromobjectจำเป็น
  • namestring

    ละส่วนที่ซ้อนลึกกว่านี้

  • emailstringจำเป็น

    format: "email"

    ละส่วนที่ซ้อนลึกกว่านี้

  • toarrayจำเป็น
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • ccarray
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • reply_toarray
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • is_sentboolean

    ระบุว่าข้อความนี้ส่งจากกล่องจดหมายหรือไม่ รวมการส่งจากนามแฝง

  • provider_statusstring | null

    สถานะการส่งถึงของคำตอบ SMS หรือ WhatsApp ตามรายงานล่าสุดจากผู้ให้บริการ (read ใช้กับ WhatsApp เท่านั้น) เป็น null สำหรับอีเมล

    enum: "queued", "sent", "delivered", "read", "undelivered", "failed", null

  • body_textstring
  • body_html_urlstring

    format: "uri"

  • reply_originobject
  • send_intent_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • sourcestringจำเป็น

    enum: "gateway", "transactional", "marketing", "mailbox", "agent"

    ละส่วนที่ซ้อนลึกกว่านี้

  • source_idstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • traffic_classstringจำเป็น

    enum: "transactional", "marketing", "mailbox"

    ละส่วนที่ซ้อนลึกกว่านี้

  • kindstringจำเป็น

    enum: "campaign", "sequence", "transactional", "mailbox", "agent"

    ละส่วนที่ซ้อนลึกกว่านี้

  • namestring

    ละส่วนที่ซ้อนลึกกว่านี้

  • sender_verifiedboolean

    มีค่าและเป็น false เมื่อผู้ส่งไม่ผ่านทั้ง SPF และ DKIM สำหรับโดเมน From โดย Banger ยอมรับข้อความเพราะนโยบาย DMARC ของโดเมนนั้นไม่ใช่ reject จึงอาจมีการปลอมที่อยู่ From ไม่มีค่านี้เมื่อผู้ส่งได้รับการยืนยันหรือไม่ได้ตรวจสอบ

  • has_attachmentsbooleanจำเป็น
  • attachmentsarray
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/threads/{threadId}' \
  --header "Authorization: Bearer $BANGER_API_KEY"

ข้อความ

GET/v1/workspaces/{workspaceId}/messages/{messageId}/html

getMessageHtml

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

messageId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

เนื้อหาข้อความ HTML ที่ยืนยันตัวตนและจำกัดด้วยแซนด์บ็อกซ์

text/html

  • valuestring

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/messages/{messageId}/html' \
  --header "Authorization: Bearer $BANGER_API_KEY"

ไฟล์แนบ

GET/v1/workspaces/{workspaceId}/attachments/{attachmentId}/content

downloadAttachment

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

attachmentId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

สตรีมไฟล์แนบที่ยืนยันตัวตน

application/octet-stream

  • valuestring

    format: "binary"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/attachments/{attachmentId}/content' \
  --header "Authorization: Bearer $BANGER_API_KEY"
GET/v1/workspaces/{workspaceId}/search

searchMail

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

q
query · จำเป็น
  • valuestring

    minLength: 1 · maxLength: 512

cursor
query
  • valuestring

    maxLength: 1024

limit
query
  • valueinteger

    minimum: 1 · maximum: 100 · default: 50

mailbox_id
query
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

ผลค้นหาทั้งพื้นที่ทำงาน

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • mailbox_idstringจำเป็น

    format: "uuid"

  • subjectstringจำเป็น
  • snippetstringจำเป็น
  • last_message_atstringจำเป็น

    format: "date-time"

  • message_countintegerจำเป็น
  • unread_countintegerจำเป็น
  • is_archivedbooleanจำเป็น
  • is_trashbooleanจำเป็น
  • is_spambooleanจำเป็น
  • is_starredbooleanจำเป็น
  • is_sentbooleanจำเป็น
  • has_attachmentsbooleanจำเป็น
  • sender_unverifiedboolean

    เป็น true เมื่อผู้ส่งข้อความล่าสุดไม่ผ่านทั้ง SPF และ DKIM สำหรับโดเมน From จึงอาจมีการปลอมที่อยู่ From

  • labelsarrayจำเป็น
  • แต่ละรายการstring
  • participantsarray
  • แต่ละรายการobject
  • namestring
  • emailstringจำเป็น

    format: "email"

  • recipientsarray

    The To list of the mailbox's latest sent message in this thread; empty when the mailbox sent none. Sent views show these instead of the sender.

  • แต่ละรายการobject
  • namestring
  • emailstringจำเป็น

    format: "email"

  • pageobjectจำเป็น
  • next_cursorstring
  • has_morebooleanจำเป็น

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/search?q=example&cursor=example&limit=50&mailbox_id=00000000-0000-4000-8000-000000000001' \
  --header "Authorization: Bearer $BANGER_API_KEY"

รายชื่อติดต่อ

GET/v1/workspaces/{workspaceId}/contacts

listContacts

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

cursor
query
  • valuestring

    maxLength: 1024

limit
query
  • valueinteger

    minimum: 1 · maximum: 100 · default: 50

q
query
  • valuestring

    maxLength: 512

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • emailstringจำเป็น

    format: "email"

  • display_namestring | nullจำเป็น
  • attributesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • statusstringจำเป็น

    enum: "subscribed", "unsubscribed", "bounced", "complained"

  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • pageobjectจำเป็น
  • next_cursorstring
  • has_morebooleanจำเป็น

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/contacts?cursor=example&limit=50&q=example' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/contacts

upsertContact

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • emailstringจำเป็น

    format: "email"

  • display_namestring

    maxLength: 1000

  • statusstringจำเป็น

    enum: "subscribed", "unsubscribed", "bounced", "complained"

  • attributesobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • consent_confirmedboolean

    จำเป็นเมื่อสมัครรับข่าวสารด้วยที่อยู่ใหม่

การตอบกลับสำเร็จ 201

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • emailstringจำเป็น

    format: "email"

  • display_namestring | nullจำเป็น
  • attributesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • statusstringจำเป็น

    enum: "subscribed", "unsubscribed", "bounced", "complained"

  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/contacts' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "email": "person@example.com",
  "display_name": "example",
  "status": "subscribed",
  "attributes": {},
  "consent_confirmed": true
}'
GET/v1/workspaces/{workspaceId}/contacts/{contactId}

getContact

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

contactId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • emailstringจำเป็น

    format: "email"

  • display_namestring | nullจำเป็น
  • attributesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • statusstringจำเป็น

    enum: "subscribed", "unsubscribed", "bounced", "complained"

  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • suppressedbooleanจำเป็น
  • suppression_reasonstring | nullจำเป็น
  • sourcesarrayจำเป็น
  • แต่ละรายการobject
  • kindstringจำเป็น
  • referencestringจำเป็น
  • connection_idstring | nullจำเป็น

    format: "uuid"

  • metadataobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • first_seen_atstringจำเป็น

    format: "date-time"

  • last_seen_atstringจำเป็น

    format: "date-time"

  • listsarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • subscription_statusstringจำเป็น
  • consent_evidencearrayจำเป็น
  • แต่ละรายการobject
  • kindstringจำเป็น
  • referencestringจำเป็น
  • connection_idstring | nullจำเป็น

    format: "uuid"

  • metadataobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • first_seen_atstringจำเป็น

    format: "date-time"

  • last_seen_atstringจำเป็น

    format: "date-time"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/contacts/{contactId}' \
  --header "Authorization: Bearer $BANGER_API_KEY"
DELETE/v1/workspaces/{workspaceId}/contacts/{contactId}

deleteContact

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

contactId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 204

ลบรายชื่อติดต่อแล้ว

ไม่มีเนื้อหาการตอบกลับ

ตัวอย่าง curl

curl --request DELETE --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/contacts/{contactId}' \
  --header "Authorization: Bearer $BANGER_API_KEY"
GET/v1/workspaces/{workspaceId}/contacts/imports

listContactImports

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject
  • idstring

    format: "uuid"

  • filenamestring
  • list_idstring | null

    format: "uuid"

  • list_namestring | null
  • statusstring
  • total_rowsinteger
  • imported_rowsinteger
  • invalid_rowsinteger
  • error_summaryarray
  • แต่ละรายการstring
  • consent_confirmedboolean
  • consent_confirmed_atstring | null

    format: "date-time"

  • processed_rowsinteger
  • attempt_countinteger
  • last_error_codestring | null
  • created_atstring

    format: "date-time"

  • completed_atstring | null

    format: "date-time"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/contacts/imports' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/contacts/imports

importContacts

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • filenamestringจำเป็น

    minLength: 1 · maxLength: 500

  • list_idstring

    format: "uuid"

  • consent_confirmedboolean

    Required when any imported row with an email is subscribed.

  • phone_channelsarray

    The channels the rows' phone numbers are subscribed on. Required when any row has a phone. Banger takes an imported number as consented and keeps no proof, so no import or send is refused for lack of a consent record: the importer needs each person's consent before texting them. The number of a row marked unsubscribed is not subscribed, and numbers that opted out stay opted out.

    maxItems: 2 · uniqueItems: true

  • แต่ละรายการstring

    enum: "sms", "whatsapp"

  • phone_countrystring

    Two-letter country code of the phone numbers written without a country code.

    minLength: 2 · maxLength: 2

  • rowsarrayจำเป็น

    minItems: 1 · maxItems: 5000

  • แต่ละรายการobject

    A person by email, by phone, or both.

  • emailstring

    format: "email"

  • phonestring

    Mobile number, with its country code (+5511999998888) or as a number of phone_country.

    maxLength: 60

  • display_namestring

    maxLength: 1000

  • statusstring

    enum: "subscribed", "unsubscribed", "bounced", "complained"

  • attributesobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้

การตอบกลับสำเร็จ 201

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • statusstringจำเป็น

    enum: "queued"

  • total_rowsintegerจำเป็น
  • imported_rowsintegerจำเป็น
  • invalid_rowsintegerจำเป็น
  • list_idstring | nullจำเป็น

    format: "uuid"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/contacts/imports' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "filename": "example",
  "list_id": "00000000-0000-4000-8000-000000000001",
  "consent_confirmed": true,
  "phone_channels": [
    "sms"
  ],
  "phone_country": "ex",
  "rows": [
    {
      "email": "person@example.com",
      "phone": "example",
      "display_name": "example",
      "status": "subscribed",
      "attributes": {}
    }
  ]
}'
PATCH/v1/workspaces/{workspaceId}/contacts/{contactId}/attributes

รวมแอตทริบิวต์ที่ระบุชนิดโดยไม่เปลี่ยนการสมัครรับข่าวสารหรือความยินยอม

ต้องมี contacts:write และ contacts:read อัปเดตเฉพาะรายชื่อติดต่อที่มีอยู่ เก็บแอตทริบิวต์ที่ไม่ระบุ บันทึก false ที่ระบุชัด และ null ลบฟิลด์ ส่งข้อเท็จจริงจากแหล่งที่ตรวจแล้ว ข้อมูลที่ไม่มีไม่ใช่ false การสมัครรับข่าวสาร การระงับ ตัวตน และประวัติแหล่งข้อมูลไม่เปลี่ยน

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

contactId
path · จำเป็น
  • valuestring

    format: "uuid"

Idempotency-Key
header · จำเป็น
  • valuestring

    minLength: 1 · maxLength: 256

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • attributesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้

การตอบกลับสำเร็จ 200

ข้อมูลรายชื่อติดต่อที่อ่านกลับปัจจุบัน replayed เป็น true หากใช้การเปลี่ยนแปลงนี้แล้ว

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • attributesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • statusstringจำเป็น

    enum: "subscribed", "unsubscribed", "bounced", "complained"

  • replayedbooleanจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้

ตัวอย่าง curl

curl --request PATCH --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/contacts/{contactId}/attributes' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001' \
  --header 'Idempotency-Key: example' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "attributes": {}
}'
POST/v1/workspaces/{workspaceId}/contacts/upsert

upsertProductContact

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

Idempotency-Key
header · จำเป็น
  • valuestring

    minLength: 1 · maxLength: 256

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • emailstringจำเป็น

    format: "email" · maxLength: 320

  • display_namestring

    minLength: 0 · maxLength: 1000

  • attributesobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • statusstringจำเป็น

    enum: "subscribed", "unsubscribed", "bounced", "complained"

  • consent_evidenceobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • sourcestring

    minLength: 1 · maxLength: 2000

  • referencestring

    minLength: 1 · maxLength: 2000

  • observed_atstring

    format: "date-time"

  • statementstring

    minLength: 1 · maxLength: 2000

  • consent_confirmedboolean

การตอบกลับสำเร็จ 200

ข้อมูลหลักที่อ่านกลับหรือใบรับแบบ idempotent ผู้ให้บริการรับแล้วคือ sent ส่วน delivered ต้องมีเหตุการณ์ส่งถึงและไม่ยืนยันว่าเข้ากล่องจดหมายเข้า

application/json

  • valueobject
  • dataไม่ได้ระบุจำเป็น
  • allOf 1object
  • idstringจำเป็น

    format: "uuid"

  • emailstringจำเป็น

    format: "email"

  • display_namestring | nullจำเป็น
  • attributesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • statusstringจำเป็น

    enum: "subscribed", "unsubscribed", "bounced", "complained"

  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • suppressedbooleanจำเป็น
  • suppression_reasonstring | nullจำเป็น
  • sourcesarrayจำเป็น
  • แต่ละรายการobject
  • kindstringจำเป็น
  • referencestringจำเป็น
  • connection_idstring | nullจำเป็น

    format: "uuid"

  • metadataobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • first_seen_atstringจำเป็น

    format: "date-time"

  • last_seen_atstringจำเป็น

    format: "date-time"

  • listsarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • subscription_statusstringจำเป็น
  • consent_evidencearrayจำเป็น
  • แต่ละรายการobject
  • kindstringจำเป็น
  • referencestringจำเป็น
  • connection_idstring | nullจำเป็น

    format: "uuid"

  • metadataobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • first_seen_atstringจำเป็น

    format: "date-time"

  • last_seen_atstringจำเป็น

    format: "date-time"

  • allOf 2object
  • replayedbooleanจำเป็น

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/contacts/upsert' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001' \
  --header 'Idempotency-Key: example' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "email": "person@example.com",
  "display_name": "example",
  "attributes": {},
  "status": "subscribed",
  "consent_evidence": {
    "source": "example",
    "reference": "example",
    "observed_at": "2026-01-01T00:00:00Z",
    "statement": "example"
  },
  "consent_confirmed": true
}'
POST/v1/workspaces/{workspaceId}/contacts/import-validation

validateProductContactImport

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • rowsarrayจำเป็น

    minItems: 1 · maxItems: 5000

  • แต่ละรายการobject

    A person by email (with its status), by phone, or both.

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • emailstring

    format: "email" · maxLength: 320

  • phonestring

    Mobile number, with its country code (+5511999998888) or as a number of phone_country. A row with only a phone needs no consent confirmation and no status: it is subscribed unless its status says unsubscribed, and a number brought so is not subscribed by a later import.

    maxLength: 60

  • display_namestring

    minLength: 0 · maxLength: 1000

  • attributesobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • statusstring

    enum: "subscribed", "unsubscribed", "bounced", "complained"

  • consent_evidenceobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • sourcestring

    minLength: 1 · maxLength: 2000

  • referencestring

    minLength: 1 · maxLength: 2000

  • observed_atstring

    format: "date-time"

  • statementstring

    minLength: 1 · maxLength: 2000

  • consent_confirmedboolean
  • phone_channelsarray

    The channels the rows' phone numbers are subscribed on. Required when any row has a phone. Banger takes an imported number as consented and keeps no proof, so no import or send is refused for lack of a consent record: the importer needs each person's consent before texting them. The number of a row marked unsubscribed is not subscribed, and numbers that opted out stay opted out.

    maxItems: 2 · uniqueItems: true

  • แต่ละรายการstring

    enum: "sms", "whatsapp"

  • phone_countrystring

    Two-letter country code of the phone numbers written without a country code.

    minLength: 2 · maxLength: 2

การตอบกลับสำเร็จ 200

ข้อมูลหลักที่อ่านกลับหรือใบรับแบบ idempotent ผู้ให้บริการรับแล้วคือ sent ส่วน delivered ต้องมีเหตุการณ์ส่งถึงและไม่ยืนยันว่าเข้ากล่องจดหมายเข้า

application/json

  • valueobject
  • dataobjectจำเป็น
  • validbooleanจำเป็น
  • total_rowsintegerจำเป็น
  • valid_rowsintegerจำเป็น
  • errorsarrayจำเป็น
  • แต่ละรายการobject
  • rowintegerจำเป็น
  • codestringจำเป็น
  • messagestringจำเป็น
  • phone_rowsinteger

    Valid rows that bring a phone number. Present when there is one.

  • phone_channelsarray
  • แต่ละรายการstring

    enum: "sms", "whatsapp"

  • phone_consent_noticestring

    What to tell the importer about consent for the numbers. Present when a row brings one.

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/contacts/import-validation' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "rows": [
    {
      "email": "person@example.com",
      "phone": "example",
      "display_name": "example",
      "attributes": {},
      "status": "subscribed",
      "consent_evidence": {
        "source": "example",
        "reference": "example",
        "observed_at": "2026-01-01T00:00:00Z",
        "statement": "example"
      }
    }
  ],
  "consent_confirmed": true,
  "phone_channels": [
    "sms"
  ],
  "phone_country": "ex"
}'
GET/v1/workspaces/{workspaceId}/contacts/imports/{importId}

getProductContactImport

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

importId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

ข้อมูลหลักที่อ่านกลับหรือใบรับแบบ idempotent ผู้ให้บริการรับแล้วคือ sent ส่วน delivered ต้องมีเหตุการณ์ส่งถึงและไม่ยืนยันว่าเข้ากล่องจดหมายเข้า

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstring

    format: "uuid"

  • filenamestring
  • list_idstring | null

    format: "uuid"

  • list_namestring | null
  • statusstring
  • total_rowsinteger
  • imported_rowsinteger
  • invalid_rowsinteger
  • error_summaryarray
  • แต่ละรายการstring
  • consent_confirmedboolean
  • consent_confirmed_atstring | null

    format: "date-time"

  • processed_rowsinteger
  • attempt_countinteger
  • last_error_codestring | null
  • created_atstring

    format: "date-time"

  • completed_atstring | null

    format: "date-time"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/contacts/imports/{importId}' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001'
GET/v1/workspaces/{workspaceId}/contacts/fields

แสดงคีย์แอตทริบิวต์รายชื่อติดต่อที่จัดเก็บ

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการstring

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/contacts/fields' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/contacts/import-mapping

เสนอการแมปคอลัมน์นำเข้ารายชื่อติดต่อ

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • filenamestring

    maxLength: 500

  • columnsarrayจำเป็น

    minItems: 1 · maxItems: 100

  • แต่ละรายการobject
  • namestringจำเป็น

    minLength: 1 · maxLength: 200

  • samplesarray

    maxItems: 8

  • แต่ละรายการstring

    maxLength: 120

  • filledinteger

    minimum: 0

  • rowsinteger

    minimum: 0

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • mappingobjectจำเป็น
  • columnsarrayจำเป็น
  • แต่ละรายการobject
  • columnstringจำเป็น
  • targetstringจำเป็น

    enum: "email", "phone", "display_name", "first_name", "last_name", "locale", "time_zone", "status", "unsubscribed_flag", "subscribed_flag", "field", "ignore"

  • field_keystring
  • field_typestring

    enum: "text", "number", "boolean", "date", "choice", "choices"

  • confidencenumberจำเป็น
  • sourcestringจำเป็น

    enum: "saved", "ai", "rules", "person"

  • alternativesarray
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • locale_valuesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมstring | null
  • phone_channelsarray

    The channels a phone column's numbers are for, chosen by the importer. A column is matched to phone only in a workspace whose contacts hold numbers.

    maxItems: 2 · uniqueItems: true

  • แต่ละรายการstring

    enum: "sms", "whatsapp"

  • phone_countrystring

    Two-letter country code of the numbers written without a country code.

    minLength: 2 · maxLength: 2

  • reviewobjectจำเป็น
  • neededbooleanจำเป็น
  • reasonsarrayจำเป็น
  • แต่ละรายการstring
  • columnsarrayจำเป็น
  • แต่ละรายการstring
  • sourcestringจำเป็น

    enum: "saved", "ai", "rules"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/contacts/import-mapping' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "filename": "example",
  "columns": [
    {
      "name": "example",
      "samples": [
        "example"
      ],
      "filled": 0,
      "rows": 0
    }
  ]
}'

รายการรายชื่อติดต่อ

GET/v1/workspaces/{workspaceId}/contact-lists

listContactLists

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • descriptionstringจำเป็น
  • member_countintegerจำเป็น
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/contact-lists' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/contact-lists

createContactList

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • namestringจำเป็น

    minLength: 1 · maxLength: 200

  • descriptionstring

    maxLength: 2000

การตอบกลับสำเร็จ 201

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • descriptionstringจำเป็น
  • member_countintegerจำเป็น
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/contact-lists' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "name": "example",
  "description": "example"
}'
GET/v1/workspaces/{workspaceId}/contact-lists/{listId}

getContactList

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

listId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • descriptionstringจำเป็น
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • membersarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • emailstringจำเป็น
  • display_namestring | nullจำเป็น
  • statusstringจำเป็น
  • attributesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • updated_atstringจำเป็น

    format: "date-time"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/contact-lists/{listId}' \
  --header "Authorization: Bearer $BANGER_API_KEY"
DELETE/v1/workspaces/{workspaceId}/contact-lists/{listId}

deleteContactList

ลบรายการนี้และรายชื่อติดต่อที่อยู่ในรายการนี้เท่านั้น เก็บรายชื่อติดต่อที่อยู่ในรายการอื่น ต้องมี contacts:write

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

listId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

จำนวนรายชื่อติดต่อเฉพาะที่ลบแล้ว (หรือจะลบ) และรายชื่อติดต่อร่วมที่เก็บไว้

application/json

  • valueobject
  • dataobjectจำเป็น
  • deleted_contactsintegerจำเป็น

    minimum: 0

  • kept_contactsintegerจำเป็น

    minimum: 0

ตัวอย่าง curl

curl --request DELETE --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/contact-lists/{listId}' \
  --header "Authorization: Bearer $BANGER_API_KEY"
GET/v1/workspaces/{workspaceId}/contact-lists/{listId}/deletion-preview

previewContactListDeletion

ดูตัวอย่างจำนวนเมื่อลบรายการ ตรวจสอบสมาชิกอีกครั้งขณะลบ ต้องมี contacts:read

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

listId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

จำนวนรายชื่อติดต่อเฉพาะที่ลบแล้ว (หรือจะลบ) และรายชื่อติดต่อร่วมที่เก็บไว้

application/json

  • valueobject
  • dataobjectจำเป็น
  • deleted_contactsintegerจำเป็น

    minimum: 0

  • kept_contactsintegerจำเป็น

    minimum: 0

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/contact-lists/{listId}/deletion-preview' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/contact-lists/{listId}/members

addContactListMembers

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

listId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • contact_idsarrayจำเป็น

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

การตอบกลับสำเร็จ 204

อัปเดตการเป็นสมาชิกในรายการแล้ว

ไม่มีเนื้อหาการตอบกลับ

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/contact-lists/{listId}/members' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "contact_ids": [
    "00000000-0000-4000-8000-000000000001"
  ]
}'
DELETE/v1/workspaces/{workspaceId}/contact-lists/{listId}/members

removeContactListMembers

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

listId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • contact_idsarrayจำเป็น

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

การตอบกลับสำเร็จ 204

อัปเดตการเป็นสมาชิกในรายการแล้ว

ไม่มีเนื้อหาการตอบกลับ

ตัวอย่าง curl

curl --request DELETE --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/contact-lists/{listId}/members' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "contact_ids": [
    "00000000-0000-4000-8000-000000000001"
  ]
}'

ฟิลด์รายชื่อติดต่อ

GET/v1/workspaces/{workspaceId}/contact-fields

ฟิลด์รายชื่อติดต่อผลิตภัณฑ์ (ในระบบ ประกาศ และค้นพบ) พร้อมชนิด ตัวเลือก แหล่ง จำนวนรายชื่อติดต่อที่มีค่า และตัวดำเนินการกลุ่มที่แต่ละฟิลด์รองรับ

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject
  • keystringจำเป็น

    pattern: "^[a-z][a-z0-9_]{0,39}$"

  • labelstringจำเป็น

    maxLength: 80

  • descriptionstringจำเป็น

    maxLength: 500

  • typestringจำเป็น

    enum: "text", "number", "boolean", "date", "choice", "choices"

  • optionsarrayจำเป็น

    maxItems: 50

  • แต่ละรายการstring
  • originstringจำเป็น

    enum: "system", "person", "agent", "form", "import", "api", "event", "discovered"

  • statusstringจำเป็น

    enum: "active", "hidden"

  • created_atstring

    format: "date-time"

  • updated_atstring

    format: "date-time"

  • operatorsarray
  • แต่ละรายการstring
  • contacts_with_valueinteger

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/contact-fields' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/contact-fields

ประกาศฟิลด์รายชื่อติดต่อ: label, type (text, number, boolean, date, choice, choices), key ที่ไม่บังคับ, options และ description

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • keystring

    pattern: "^[a-z][a-z0-9_]{0,39}$"

  • labelstringจำเป็น

    minLength: 1 · maxLength: 80

  • descriptionstring

    maxLength: 500

  • typestring

    default: "text" · enum: "text", "number", "boolean", "date", "choice", "choices"

  • optionsarray

    maxItems: 50

  • แต่ละรายการstring

การตอบกลับสำเร็จ 201

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • keystringจำเป็น

    pattern: "^[a-z][a-z0-9_]{0,39}$"

  • labelstringจำเป็น

    maxLength: 80

  • descriptionstringจำเป็น

    maxLength: 500

  • typestringจำเป็น

    enum: "text", "number", "boolean", "date", "choice", "choices"

  • optionsarrayจำเป็น

    maxItems: 50

  • แต่ละรายการstring
  • originstringจำเป็น

    enum: "system", "person", "agent", "form", "import", "api", "event", "discovered"

  • statusstringจำเป็น

    enum: "active", "hidden"

  • created_atstring

    format: "date-time"

  • updated_atstring

    format: "date-time"

  • operatorsarray
  • แต่ละรายการstring
  • contacts_with_valueinteger

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/contact-fields' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "key": "example",
  "label": "example",
  "description": "example",
  "type": "text",
  "options": [
    "example"
  ]
}'
PATCH/v1/workspaces/{workspaceId}/contact-fields/{key}

เปลี่ยนชื่อ อธิบาย เปลี่ยนชนิด (แปลงค่าที่จัดเก็บ หรือคืน 409 พร้อมตัวอย่างที่ไม่ตรง) เปลี่ยนตัวเลือก หรือซ่อนฟิลด์

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

key
path · จำเป็น
  • valuestring

    pattern: "^[a-z][a-z0-9_]{0,39}$"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • labelstring

    maxLength: 80

  • descriptionstring

    maxLength: 500

  • typestring

    enum: "text", "number", "boolean", "date", "choice", "choices"

  • optionsarray

    maxItems: 50

  • แต่ละรายการstring
  • statusstring

    enum: "active", "hidden"

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • keystringจำเป็น

    pattern: "^[a-z][a-z0-9_]{0,39}$"

  • labelstringจำเป็น

    maxLength: 80

  • descriptionstringจำเป็น

    maxLength: 500

  • typestringจำเป็น

    enum: "text", "number", "boolean", "date", "choice", "choices"

  • optionsarrayจำเป็น

    maxItems: 50

  • แต่ละรายการstring
  • originstringจำเป็น

    enum: "system", "person", "agent", "form", "import", "api", "event", "discovered"

  • statusstringจำเป็น

    enum: "active", "hidden"

  • created_atstring

    format: "date-time"

  • updated_atstring

    format: "date-time"

  • operatorsarray
  • แต่ละรายการstring
  • contacts_with_valueinteger

ตัวอย่าง curl

curl --request PATCH --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/contact-fields/{key}' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "label": "example",
  "description": "example",
  "type": "text",
  "options": [
    "example"
  ],
  "status": "active"
}'

กลุ่ม

GET/v1/workspaces/{workspaceId}/segments

listSegments

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • filterobjectจำเป็น

    เงื่อนไขต้องอ้างฟิลด์รายชื่อติดต่อที่ประกาศและใช้ตัวดำเนินการที่ชนิดรองรับ set และ not_set ไม่ระบุ value ส่วน within_days ใช้ 1–3650 วัน

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • statusstring

    enum: "subscribed", "unsubscribed", "bounced", "complained"

  • attributesobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • conditionsarray

    maxItems: 20

  • แต่ละรายการobject
  • fieldstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • opstringจำเป็น

    enum: "is", "is_not", "contains", "set", "not_set", "gt", "gte", "lt", "lte", "within_days", "any_of", "includes"

    ละส่วนที่ซ้อนลึกกว่านี้

  • valueไม่ได้ระบุ

    ละส่วนที่ซ้อนลึกกว่านี้

  • matchstring

    enum: "all", "any"

  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/segments' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/segments

createSegment

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • namestringจำเป็น

    minLength: 1 · maxLength: 200

  • filterobject

    เงื่อนไขต้องอ้างฟิลด์รายชื่อติดต่อที่ประกาศและใช้ตัวดำเนินการที่ชนิดรองรับ set และ not_set ไม่ระบุ value ส่วน within_days ใช้ 1–3650 วัน

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • statusstring

    enum: "subscribed", "unsubscribed", "bounced", "complained"

  • attributesobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • conditionsarray

    maxItems: 20

  • แต่ละรายการobject
  • fieldstringจำเป็น
  • opstringจำเป็น

    enum: "is", "is_not", "contains", "set", "not_set", "gt", "gte", "lt", "lte", "within_days", "any_of", "includes"

  • valueไม่ได้ระบุ
  • anyOf 1string
  • anyOf 2number
  • anyOf 3boolean
  • anyOf 4array
  • แต่ละรายการstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • matchstring

    enum: "all", "any"

การตอบกลับสำเร็จ 201

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • filterobjectจำเป็น

    เงื่อนไขต้องอ้างฟิลด์รายชื่อติดต่อที่ประกาศและใช้ตัวดำเนินการที่ชนิดรองรับ set และ not_set ไม่ระบุ value ส่วน within_days ใช้ 1–3650 วัน

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • statusstring

    enum: "subscribed", "unsubscribed", "bounced", "complained"

  • attributesobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • conditionsarray

    maxItems: 20

  • แต่ละรายการobject
  • fieldstringจำเป็น
  • opstringจำเป็น

    enum: "is", "is_not", "contains", "set", "not_set", "gt", "gte", "lt", "lte", "within_days", "any_of", "includes"

  • valueไม่ได้ระบุ
  • anyOf 1string

    ละส่วนที่ซ้อนลึกกว่านี้

  • anyOf 2number

    ละส่วนที่ซ้อนลึกกว่านี้

  • anyOf 3boolean

    ละส่วนที่ซ้อนลึกกว่านี้

  • anyOf 4array

    ละส่วนที่ซ้อนลึกกว่านี้

  • matchstring

    enum: "all", "any"

  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/segments' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "name": "example",
  "filter": {
    "status": "subscribed",
    "attributes": {},
    "conditions": [
      {
        "field": "example",
        "op": "is",
        "value": "example"
      }
    ],
    "match": "all"
  }
}'
GET/v1/workspaces/{workspaceId}/segments/{segmentId}/preview

previewSegment

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

segmentId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataไม่ได้ระบุจำเป็น
  • allOf 1object
  • idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • filterobjectจำเป็น

    เงื่อนไขต้องอ้างฟิลด์รายชื่อติดต่อที่ประกาศและใช้ตัวดำเนินการที่ชนิดรองรับ set และ not_set ไม่ระบุ value ส่วน within_days ใช้ 1–3650 วัน

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • statusstring

    enum: "subscribed", "unsubscribed", "bounced", "complained"

  • attributesobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • conditionsarray

    maxItems: 20

  • แต่ละรายการobject
  • fieldstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • opstringจำเป็น

    enum: "is", "is_not", "contains", "set", "not_set", "gt", "gte", "lt", "lte", "within_days", "any_of", "includes"

    ละส่วนที่ซ้อนลึกกว่านี้

  • valueไม่ได้ระบุ

    ละส่วนที่ซ้อนลึกกว่านี้

  • matchstring

    enum: "all", "any"

  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • allOf 2object
  • countintegerจำเป็น
  • missing_consent_evidence_countintegerจำเป็น
  • samplearrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • emailstringจำเป็น
  • display_namestring | nullจำเป็น
  • attributesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • excludedobjectจำเป็น
  • suppressedintegerจำเป็น
  • not_subscribedintegerจำเป็น
  • missing_recipient_hashintegerจำเป็น
  • missing_consent_evidenceintegerจำเป็น

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/segments/{segmentId}/preview' \
  --header "Authorization: Bearer $BANGER_API_KEY"
DELETE/v1/workspaces/{workspaceId}/segments/{segmentId}

ลบกลุ่ม

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

segmentId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • deletedbooleanจำเป็น

    const: true

ตัวอย่าง curl

curl --request DELETE --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/segments/{segmentId}' \
  --header "Authorization: Bearer $BANGER_API_KEY"

ผู้รับ

POST/v1/workspaces/{workspaceId}/audience/lists

createProductContactList

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

Idempotency-Key
header · จำเป็น
  • valuestring

    minLength: 1 · maxLength: 256

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • namestringจำเป็น

    minLength: 1 · maxLength: 200

  • descriptionstring

    minLength: 0 · maxLength: 2000

การตอบกลับสำเร็จ 200

ข้อมูลหลักที่อ่านกลับหรือใบรับแบบ idempotent ผู้ให้บริการรับแล้วคือ sent ส่วน delivered ต้องมีเหตุการณ์ส่งถึงและไม่ยืนยันว่าเข้ากล่องจดหมายเข้า

application/json

  • valueobject
  • dataไม่ได้ระบุจำเป็น
  • allOf 1object
  • idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • descriptionstringจำเป็น
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • membersarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • emailstringจำเป็น
  • display_namestring | nullจำเป็น
  • statusstringจำเป็น
  • attributesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • updated_atstringจำเป็น

    format: "date-time"

  • allOf 2object
  • replayedbooleanจำเป็น

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/audience/lists' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001' \
  --header 'Idempotency-Key: example' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "name": "example",
  "description": "example"
}'
GET/v1/workspaces/{workspaceId}/audience/lists/{listId}

getProductContactList

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

listId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

ข้อมูลหลักที่อ่านกลับหรือใบรับแบบ idempotent ผู้ให้บริการรับแล้วคือ sent ส่วน delivered ต้องมีเหตุการณ์ส่งถึงและไม่ยืนยันว่าเข้ากล่องจดหมายเข้า

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • descriptionstringจำเป็น
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • membersarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • emailstringจำเป็น
  • display_namestring | nullจำเป็น
  • statusstringจำเป็น
  • attributesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • updated_atstringจำเป็น

    format: "date-time"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/audience/lists/{listId}' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001'
POST/v1/workspaces/{workspaceId}/audience/lists/{listId}/members

addProductContactListMembers

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

listId
path · จำเป็น
  • valuestring

    format: "uuid"

Idempotency-Key
header · จำเป็น
  • valuestring

    minLength: 1 · maxLength: 256

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • contact_idsarrayจำเป็น

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

การตอบกลับสำเร็จ 200

ข้อมูลหลักที่อ่านกลับหรือใบรับแบบ idempotent ผู้ให้บริการรับแล้วคือ sent ส่วน delivered ต้องมีเหตุการณ์ส่งถึงและไม่ยืนยันว่าเข้ากล่องจดหมายเข้า

application/json

  • valueobject
  • dataไม่ได้ระบุจำเป็น
  • allOf 1object
  • idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • descriptionstringจำเป็น
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • membersarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • emailstringจำเป็น
  • display_namestring | nullจำเป็น
  • statusstringจำเป็น
  • attributesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • updated_atstringจำเป็น

    format: "date-time"

  • allOf 2object
  • replayedbooleanจำเป็น

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/audience/lists/{listId}/members' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001' \
  --header 'Idempotency-Key: example' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "contact_ids": [
    "00000000-0000-4000-8000-000000000001"
  ]
}'
DELETE/v1/workspaces/{workspaceId}/audience/lists/{listId}/members

removeProductContactListMembers

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

listId
path · จำเป็น
  • valuestring

    format: "uuid"

Idempotency-Key
header · จำเป็น
  • valuestring

    minLength: 1 · maxLength: 256

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • contact_idsarrayจำเป็น

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

การตอบกลับสำเร็จ 200

ข้อมูลหลักที่อ่านกลับหรือใบรับแบบ idempotent ผู้ให้บริการรับแล้วคือ sent ส่วน delivered ต้องมีเหตุการณ์ส่งถึงและไม่ยืนยันว่าเข้ากล่องจดหมายเข้า

application/json

  • valueobject
  • dataไม่ได้ระบุจำเป็น
  • allOf 1object
  • idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • descriptionstringจำเป็น
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • membersarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • emailstringจำเป็น
  • display_namestring | nullจำเป็น
  • statusstringจำเป็น
  • attributesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • updated_atstringจำเป็น

    format: "date-time"

  • allOf 2object
  • replayedbooleanจำเป็น

ตัวอย่าง curl

curl --request DELETE --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/audience/lists/{listId}/members' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001' \
  --header 'Idempotency-Key: example' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "contact_ids": [
    "00000000-0000-4000-8000-000000000001"
  ]
}'
POST/v1/workspaces/{workspaceId}/audience/segments

createProductSegment

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

Idempotency-Key
header · จำเป็น
  • valuestring

    minLength: 1 · maxLength: 256

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • namestringจำเป็น

    minLength: 1 · maxLength: 200

  • filterobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • statusstring

    enum: "subscribed", "unsubscribed", "bounced", "complained"

  • attributesobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้

การตอบกลับสำเร็จ 200

ข้อมูลหลักที่อ่านกลับหรือใบรับแบบ idempotent ผู้ให้บริการรับแล้วคือ sent ส่วน delivered ต้องมีเหตุการณ์ส่งถึงและไม่ยืนยันว่าเข้ากล่องจดหมายเข้า

application/json

  • valueobject
  • dataไม่ได้ระบุจำเป็น
  • allOf 1ไม่ได้ระบุ
  • allOf 1object
  • idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • filterobjectจำเป็น

    เงื่อนไขต้องอ้างฟิลด์รายชื่อติดต่อที่ประกาศและใช้ตัวดำเนินการที่ชนิดรองรับ set และ not_set ไม่ระบุ value ส่วน within_days ใช้ 1–3650 วัน

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • statusstring

    enum: "subscribed", "unsubscribed", "bounced", "complained"

  • attributesobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • conditionsarray

    maxItems: 20

  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • matchstring

    enum: "all", "any"

  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • allOf 2object
  • countintegerจำเป็น
  • missing_consent_evidence_countintegerจำเป็น
  • samplearrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • emailstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • display_namestring | nullจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • attributesobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • excludedobjectจำเป็น
  • suppressedintegerจำเป็น
  • not_subscribedintegerจำเป็น
  • missing_recipient_hashintegerจำเป็น
  • missing_consent_evidenceintegerจำเป็น
  • allOf 2object
  • replayedbooleanจำเป็น

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/audience/segments' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001' \
  --header 'Idempotency-Key: example' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "name": "example",
  "filter": {
    "status": "subscribed",
    "attributes": {}
  }
}'
GET/v1/workspaces/{workspaceId}/audience/segments/{segmentId}/preview

previewProductSegment

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

segmentId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

ข้อมูลหลักที่อ่านกลับหรือใบรับแบบ idempotent ผู้ให้บริการรับแล้วคือ sent ส่วน delivered ต้องมีเหตุการณ์ส่งถึงและไม่ยืนยันว่าเข้ากล่องจดหมายเข้า

application/json

  • valueobject
  • dataไม่ได้ระบุจำเป็น
  • allOf 1object
  • idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • filterobjectจำเป็น

    เงื่อนไขต้องอ้างฟิลด์รายชื่อติดต่อที่ประกาศและใช้ตัวดำเนินการที่ชนิดรองรับ set และ not_set ไม่ระบุ value ส่วน within_days ใช้ 1–3650 วัน

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • statusstring

    enum: "subscribed", "unsubscribed", "bounced", "complained"

  • attributesobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • conditionsarray

    maxItems: 20

  • แต่ละรายการobject
  • fieldstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • opstringจำเป็น

    enum: "is", "is_not", "contains", "set", "not_set", "gt", "gte", "lt", "lte", "within_days", "any_of", "includes"

    ละส่วนที่ซ้อนลึกกว่านี้

  • valueไม่ได้ระบุ

    ละส่วนที่ซ้อนลึกกว่านี้

  • matchstring

    enum: "all", "any"

  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • allOf 2object
  • countintegerจำเป็น
  • missing_consent_evidence_countintegerจำเป็น
  • samplearrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • emailstringจำเป็น
  • display_namestring | nullจำเป็น
  • attributesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • excludedobjectจำเป็น
  • suppressedintegerจำเป็น
  • not_subscribedintegerจำเป็น
  • missing_recipient_hashintegerจำเป็น
  • missing_consent_evidenceintegerจำเป็น

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/audience/segments/{segmentId}/preview' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001'
GET/v1/workspaces/{workspaceId}/audience/approvals

listProductApprovalEvidence

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

status
query
  • valuestring

    enum: "pending", "approved", "rejected", "cancelled", "expired", "undecided"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

ข้อมูลหลักที่อ่านกลับหรือใบรับแบบ idempotent ผู้ให้บริการรับแล้วคือ sent ส่วน delivered ต้องมีเหตุการณ์ส่งถึงและไม่ยืนยันว่าเข้ากล่องจดหมายเข้า

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการไม่ได้ระบุ
  • allOf 1object
  • idstringจำเป็น

    format: "uuid"

  • requested_by_actor_idstringจำเป็น
  • action_kindstringจำเป็น
  • summarystringจำเป็น
  • capability_scopesarrayจำเป็น
  • แต่ละรายการstring
  • resource_scopeobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมarray
  • แต่ละรายการstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • payloadobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • payload_sha256stringจำเป็น

    pattern: "^[0-9a-f]{64}$"

  • statusstringจำเป็น

    enum: "pending", "approved", "rejected", "cancelled", "expired"

  • missedbooleanจำเป็น
  • expires_atstringจำเป็น

    format: "date-time"

  • qa_automationobject | null

    หลักฐานแหล่งที่มาของระบบอัตโนมัติ QA โดยเฉพาะที่เซิร์ฟเวอร์บันทึกไว้ ไม่ถือเป็นหลักฐานว่ามีคนตรวจทานเพย์โหลด ระบบจะตรวจสอบการทำงานและสิทธิ์อนุญาตส่วนกลางอีกครั้งขณะดำเนินการ

  • kindstring

    enum: "dedicated_qa_automation"

  • authorization_referencestring
  • run_idstring
  • operation_keystring
  • recipientsarray
  • แต่ละรายการstring

    format: "email"

    ละส่วนที่ซ้อนลึกกว่านี้

  • approval_sha256string
  • resource_sha256string
  • decided_by_actor_idstring | null
  • decision_reasonstring | null
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • decided_atstring | null

    format: "date-time"

  • execution_job_idstring

    format: "uuid"

  • reviewobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • dispositionstringจำเป็น

    enum: "automatic", "human_required"

  • recipient_countinteger | nullจำเป็น

    minimum: 0

  • reasonsarrayจำเป็น
  • แต่ละรายการstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • checksarrayจำเป็น
  • แต่ละรายการstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • allOf 2object
  • approval_idstringจำเป็น

    format: "uuid"

  • broadcast_idstring | nullจำเป็น

    format: "uuid"

  • import_idstring | nullจำเป็น

    format: "uuid"

  • blockersarrayจำเป็น
  • แต่ละรายการobject
  • codestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • messagestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • executionsarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • statusstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • resultobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • error_codestring | nullจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • execution_job_idsarrayจำเป็น
  • แต่ละรายการstring

    format: "uuid"

  • execution_statusstringจำเป็น

    enum: "completed", "failed", "queued", "awaiting_review", "not_queued"

  • human_review_urlstring | nullจำเป็น
  • human_review_instructionstring | nullจำเป็น

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/audience/approvals?status=pending' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001'
GET/v1/workspaces/{workspaceId}/audience/approvals/{approvalId}

getProductApprovalEvidence

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

approvalId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

ข้อมูลหลักที่อ่านกลับหรือใบรับแบบ idempotent ผู้ให้บริการรับแล้วคือ sent ส่วน delivered ต้องมีเหตุการณ์ส่งถึงและไม่ยืนยันว่าเข้ากล่องจดหมายเข้า

application/json

  • valueobject
  • dataไม่ได้ระบุจำเป็น
  • allOf 1object
  • idstringจำเป็น

    format: "uuid"

  • requested_by_actor_idstringจำเป็น
  • action_kindstringจำเป็น
  • summarystringจำเป็น
  • capability_scopesarrayจำเป็น
  • แต่ละรายการstring
  • resource_scopeobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมarray
  • แต่ละรายการstring
  • payloadobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • payload_sha256stringจำเป็น

    pattern: "^[0-9a-f]{64}$"

  • statusstringจำเป็น

    enum: "pending", "approved", "rejected", "cancelled", "expired"

  • missedbooleanจำเป็น
  • expires_atstringจำเป็น

    format: "date-time"

  • qa_automationobject | null

    หลักฐานแหล่งที่มาของระบบอัตโนมัติ QA โดยเฉพาะที่เซิร์ฟเวอร์บันทึกไว้ ไม่ถือเป็นหลักฐานว่ามีคนตรวจทานเพย์โหลด ระบบจะตรวจสอบการทำงานและสิทธิ์อนุญาตส่วนกลางอีกครั้งขณะดำเนินการ

  • kindstring

    enum: "dedicated_qa_automation"

  • authorization_referencestring
  • run_idstring
  • operation_keystring
  • recipientsarray
  • แต่ละรายการstring

    format: "email"

  • approval_sha256string
  • resource_sha256string
  • decided_by_actor_idstring | null
  • decision_reasonstring | null
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • decided_atstring | null

    format: "date-time"

  • execution_job_idstring

    format: "uuid"

  • reviewobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • dispositionstringจำเป็น

    enum: "automatic", "human_required"

  • recipient_countinteger | nullจำเป็น

    minimum: 0

  • reasonsarrayจำเป็น
  • แต่ละรายการstring
  • checksarrayจำเป็น
  • แต่ละรายการstring
  • allOf 2object
  • approval_idstringจำเป็น

    format: "uuid"

  • broadcast_idstring | nullจำเป็น

    format: "uuid"

  • import_idstring | nullจำเป็น

    format: "uuid"

  • blockersarrayจำเป็น
  • แต่ละรายการobject
  • codestringจำเป็น
  • messagestringจำเป็น
  • executionsarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • statusstringจำเป็น
  • resultobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • error_codestring | nullจำเป็น
  • execution_job_idsarrayจำเป็น
  • แต่ละรายการstring

    format: "uuid"

  • execution_statusstringจำเป็น

    enum: "completed", "failed", "queued", "awaiting_review", "not_queued"

  • human_review_urlstring | nullจำเป็น
  • human_review_instructionstring | nullจำเป็น

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/audience/approvals/{approvalId}' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001'

แบบฟอร์มสมัคร

GET/v1/workspaces/{workspaceId}/signup-forms

แบบฟอร์มสมัครผลิตภัณฑ์พร้อมโค้ดฝัง ลิงก์ที่โฮสต์ ยอดดู การสมัคร การยืนยัน สมาชิก และอัตราเปลี่ยนเป็นผู้สมัคร

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

include_archived
query
  • valueboolean

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • product_idstringจำเป็น

    format: "uuid"

  • public_idstringจำเป็น

    pattern: "^f_[a-z0-9]{16}$"

  • namestringจำเป็น
  • kindstringจำเป็น

    enum: "inline", "popup", "bar", "slide_in", "page"

  • list_idstringจำเป็น

    format: "uuid"

  • list_namestringจำเป็น
  • mailbox_idstring | nullจำเป็น

    format: "uuid"

  • double_opt_inbooleanจำเป็น
  • configobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • eyebrowstring

    maxLength: 60

  • headlinestring

    minLength: 1 · maxLength: 140

  • bodystring

    maxLength: 400

  • button_labelstring

    minLength: 1 · maxLength: 40

  • email_placeholderstring

    maxLength: 80

  • name_placeholderstring

    maxLength: 60

  • fine_printstring

    maxLength: 160

  • incentivestring

    maxLength: 160

  • success_headlinestring

    maxLength: 120

  • success_bodystring

    maxLength: 400

  • redirect_urlstring

    maxLength: 2000 · pattern: "^(|https://[^\\s\"'<>]+)$"

  • image_urlstring

    maxLength: 2000 · pattern: "^(|https://[^\\s\"'<>]+)$"

  • artstring

    enum: "arcs", "blocks", "horizon", "confetti", "frame", "bands", "dots"

  • stylestring

    enum: "", "brand", "material", "clarity", "editorial", "bold", "luxe", "playful", "plain"

  • count_nounstring

    maxLength: 30

  • confirm_promisestring

    maxLength: 200

  • text_channelsarray

    Texts (needs the customers feature): the channels the form asks consent for. The form then asks for a mobile number and shows one unticked box per channel under text_consent_wording. A ticked box makes the number the contact's subscribed address on that channel, kept with what the form showed, and a new SMS subscriber gets one confirmation text from the product's SMS inbox. Empty (the default) asks for no number. Not shown on bars.

    maxItems: 2 · uniqueItems: true

  • แต่ละรายการstring

    enum: "sms", "whatsapp"

  • phone_placeholderstring

    maxLength: 60

  • text_consent_wordingstring

    What ticking a box agrees to, shown above the consent boxes and kept with each consent as it was shown. {company} in it becomes the brand's company name.

    maxLength: 600

  • sms_consent_labelstring

    maxLength: 120

  • whatsapp_consent_labelstring

    maxLength: 120

  • localestring
  • collect_nameboolean
  • show_logoboolean
  • show_countboolean
  • exit_intentboolean
  • delay_secondsinteger

    minimum: 0 · maximum: 600

  • scroll_percentinteger

    minimum: 0 · maximum: 100

  • frequency_daysinteger

    minimum: 0 · maximum: 365

  • imagestring

    enum: "none", "photo", "art"

  • layoutstring

    enum: "stacked", "split"

  • themestring

    enum: "light", "dark", "brand", "auto"

  • positionstring

    enum: "bottom", "top", "right", "left"

  • fieldsarray

    maxItems: 6

  • แต่ละรายการobject

    คำถามแบบเลือกต้องมี options คำถามชนิดอื่นไม่รับ options คีย์ต้องไม่ซ้ำและไม่ใช้ฟิลด์แบบฟอร์มที่สงวน คีย์ที่ไม่ระบุสร้างจากป้าย

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • keystring

    pattern: "^[a-z][a-z0-9_]{0,39}$"

    ละส่วนที่ซ้อนลึกกว่านี้

  • labelstringจำเป็น

    minLength: 1 · maxLength: 80

    ละส่วนที่ซ้อนลึกกว่านี้

  • typestring

    default: "text" · enum: "text", "select", "checkbox"

    ละส่วนที่ซ้อนลึกกว่านี้

  • requiredboolean

    default: false

    ละส่วนที่ซ้อนลึกกว่านี้

  • placeholderstring

    maxLength: 80

    ละส่วนที่ซ้อนลึกกว่านี้

  • optionsarray

    minItems: 1 · maxItems: 20 · uniqueItems: true

    ละส่วนที่ซ้อนลึกกว่านี้

  • statusstringจำเป็น

    enum: "active", "paused", "archived"

  • viewsintegerจำเป็น
  • submissionsintegerจำเป็น
  • confirmationsintegerจำเป็น
  • subscribersintegerจำเป็น
  • versionintegerจำเป็น
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • hosted_urlstringจำเป็น
  • embed_codestringจำเป็น
  • embed_slotstringจำเป็น
  • open_buttonstringจำเป็น
  • conversion_ratenumberจำเป็น

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/signup-forms?include_archived=true' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/signup-forms

สร้างแบบฟอร์ม: kind (inline, popup, bar, slide_in, page), list_id หรือ list_name, mailbox_id ที่ไม่บังคับ, double_opt_in (ค่าเริ่มต้น true) และ config บางส่วน

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

Idempotency-Key
header · จำเป็น
  • valuestring

    minLength: 1 · maxLength: 256

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • namestring

    maxLength: 200

  • kindstring

    default: "inline" · enum: "inline", "popup", "bar", "slide_in", "page"

  • list_idstring

    format: "uuid"

  • list_namestring

    maxLength: 200

  • mailbox_idstring | null

    format: "uuid"

  • double_opt_inboolean

    default: true

  • configobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • eyebrowstring

    maxLength: 60

  • headlinestring

    minLength: 1 · maxLength: 140

  • bodystring

    maxLength: 400

  • button_labelstring

    minLength: 1 · maxLength: 40

  • email_placeholderstring

    maxLength: 80

  • name_placeholderstring

    maxLength: 60

  • fine_printstring

    maxLength: 160

  • incentivestring

    maxLength: 160

  • success_headlinestring

    maxLength: 120

  • success_bodystring

    maxLength: 400

  • redirect_urlstring

    maxLength: 2000 · pattern: "^(|https://[^\\s\"'<>]+)$"

  • image_urlstring

    maxLength: 2000 · pattern: "^(|https://[^\\s\"'<>]+)$"

  • artstring

    enum: "arcs", "blocks", "horizon", "confetti", "frame", "bands", "dots"

  • stylestring

    enum: "", "brand", "material", "clarity", "editorial", "bold", "luxe", "playful", "plain"

  • count_nounstring

    maxLength: 30

  • confirm_promisestring

    maxLength: 200

  • text_channelsarray

    Texts (needs the customers feature): the channels the form asks consent for. The form then asks for a mobile number and shows one unticked box per channel under text_consent_wording. A ticked box makes the number the contact's subscribed address on that channel, kept with what the form showed, and a new SMS subscriber gets one confirmation text from the product's SMS inbox. Empty (the default) asks for no number. Not shown on bars.

    maxItems: 2 · uniqueItems: true

  • แต่ละรายการstring

    enum: "sms", "whatsapp"

  • phone_placeholderstring

    maxLength: 60

  • text_consent_wordingstring

    What ticking a box agrees to, shown above the consent boxes and kept with each consent as it was shown. {company} in it becomes the brand's company name.

    maxLength: 600

  • sms_consent_labelstring

    maxLength: 120

  • whatsapp_consent_labelstring

    maxLength: 120

  • localestring
  • collect_nameboolean
  • show_logoboolean
  • show_countboolean
  • exit_intentboolean
  • delay_secondsinteger

    minimum: 0 · maximum: 600

  • scroll_percentinteger

    minimum: 0 · maximum: 100

  • frequency_daysinteger

    minimum: 0 · maximum: 365

  • imagestring

    enum: "none", "photo", "art"

  • layoutstring

    enum: "stacked", "split"

  • themestring

    enum: "light", "dark", "brand", "auto"

  • positionstring

    enum: "bottom", "top", "right", "left"

  • fieldsarray

    maxItems: 6

  • แต่ละรายการobject

    คำถามแบบเลือกต้องมี options คำถามชนิดอื่นไม่รับ options คีย์ต้องไม่ซ้ำและไม่ใช้ฟิลด์แบบฟอร์มที่สงวน คีย์ที่ไม่ระบุสร้างจากป้าย

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • keystring

    pattern: "^[a-z][a-z0-9_]{0,39}$"

  • labelstringจำเป็น

    minLength: 1 · maxLength: 80

  • typestring

    default: "text" · enum: "text", "select", "checkbox"

  • requiredboolean

    default: false

  • placeholderstring

    maxLength: 80

  • optionsarray

    minItems: 1 · maxItems: 20 · uniqueItems: true

  • แต่ละรายการstring

    minLength: 1 · maxLength: 80

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstring

    format: "uuid"

  • product_idstring

    format: "uuid"

  • public_idstring

    pattern: "^f_[a-z0-9]{16}$"

  • namestring
  • kindstring

    enum: "inline", "popup", "bar", "slide_in", "page"

  • list_idstring

    format: "uuid"

  • list_namestring
  • mailbox_idstring | null

    format: "uuid"

  • double_opt_inboolean
  • configobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • eyebrowstring

    maxLength: 60

  • headlinestring

    minLength: 1 · maxLength: 140

  • bodystring

    maxLength: 400

  • button_labelstring

    minLength: 1 · maxLength: 40

  • email_placeholderstring

    maxLength: 80

  • name_placeholderstring

    maxLength: 60

  • fine_printstring

    maxLength: 160

  • incentivestring

    maxLength: 160

  • success_headlinestring

    maxLength: 120

  • success_bodystring

    maxLength: 400

  • redirect_urlstring

    maxLength: 2000 · pattern: "^(|https://[^\\s\"'<>]+)$"

  • image_urlstring

    maxLength: 2000 · pattern: "^(|https://[^\\s\"'<>]+)$"

  • artstring

    enum: "arcs", "blocks", "horizon", "confetti", "frame", "bands", "dots"

  • stylestring

    enum: "", "brand", "material", "clarity", "editorial", "bold", "luxe", "playful", "plain"

  • count_nounstring

    maxLength: 30

  • confirm_promisestring

    maxLength: 200

  • text_channelsarray

    Texts (needs the customers feature): the channels the form asks consent for. The form then asks for a mobile number and shows one unticked box per channel under text_consent_wording. A ticked box makes the number the contact's subscribed address on that channel, kept with what the form showed, and a new SMS subscriber gets one confirmation text from the product's SMS inbox. Empty (the default) asks for no number. Not shown on bars.

    maxItems: 2 · uniqueItems: true

  • แต่ละรายการstring

    enum: "sms", "whatsapp"

  • phone_placeholderstring

    maxLength: 60

  • text_consent_wordingstring

    What ticking a box agrees to, shown above the consent boxes and kept with each consent as it was shown. {company} in it becomes the brand's company name.

    maxLength: 600

  • sms_consent_labelstring

    maxLength: 120

  • whatsapp_consent_labelstring

    maxLength: 120

  • localestring
  • collect_nameboolean
  • show_logoboolean
  • show_countboolean
  • exit_intentboolean
  • delay_secondsinteger

    minimum: 0 · maximum: 600

  • scroll_percentinteger

    minimum: 0 · maximum: 100

  • frequency_daysinteger

    minimum: 0 · maximum: 365

  • imagestring

    enum: "none", "photo", "art"

  • layoutstring

    enum: "stacked", "split"

  • themestring

    enum: "light", "dark", "brand", "auto"

  • positionstring

    enum: "bottom", "top", "right", "left"

  • fieldsarray

    maxItems: 6

  • แต่ละรายการobject

    คำถามแบบเลือกต้องมี options คำถามชนิดอื่นไม่รับ options คีย์ต้องไม่ซ้ำและไม่ใช้ฟิลด์แบบฟอร์มที่สงวน คีย์ที่ไม่ระบุสร้างจากป้าย

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • keystring

    pattern: "^[a-z][a-z0-9_]{0,39}$"

  • labelstringจำเป็น

    minLength: 1 · maxLength: 80

  • typestring

    default: "text" · enum: "text", "select", "checkbox"

  • requiredboolean

    default: false

  • placeholderstring

    maxLength: 80

  • optionsarray

    minItems: 1 · maxItems: 20 · uniqueItems: true

  • แต่ละรายการstring

    minLength: 1 · maxLength: 80

    ละส่วนที่ซ้อนลึกกว่านี้

  • statusstring

    enum: "active", "paused", "archived"

  • viewsinteger
  • submissionsinteger
  • confirmationsinteger
  • subscribersinteger
  • versioninteger
  • created_atstring

    format: "date-time"

  • updated_atstring

    format: "date-time"

  • hosted_urlstring
  • embed_codestring
  • embed_slotstring
  • open_buttonstring
  • conversion_ratenumber
  • replayedboolean

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/signup-forms' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Idempotency-Key: example' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "name": "example",
  "kind": "inline",
  "list_id": "00000000-0000-4000-8000-000000000001",
  "list_name": "example",
  "mailbox_id": "00000000-0000-4000-8000-000000000001",
  "double_opt_in": true,
  "config": {
    "eyebrow": "example",
    "headline": "example",
    "body": "example",
    "button_label": "example",
    "email_placeholder": "example",
    "name_placeholder": "example",
    "fine_print": "example",
    "incentive": "example",
    "success_headline": "example",
    "success_body": "example",
    "redirect_url": "example",
    "image_url": "example",
    "art": "arcs",
    "style": "",
    "count_noun": "example",
    "confirm_promise": "example",
    "text_channels": [
      "sms"
    ],
    "phone_placeholder": "example",
    "text_consent_wording": "example",
    "sms_consent_label": "example",
    "whatsapp_consent_label": "example",
    "locale": "example",
    "collect_name": true,
    "show_logo": true,
    "show_count": true,
    "exit_intent": true,
    "delay_seconds": 0,
    "scroll_percent": 0,
    "frequency_days": 0,
    "image": "none",
    "layout": "stacked",
    "theme": "light",
    "position": "bottom",
    "fields": [
      {
        "key": "example",
        "label": "example",
        "type": "text",
        "required": false,
        "placeholder": "example",
        "options": [
          "example"
        ]
      }
    ]
  }
}'
GET/v1/workspaces/{workspaceId}/signup-forms/readiness

ระบุว่าผลิตภัณฑ์นี้เปิดแบบฟอร์มได้หรือไม่ (ช่องทางผลิตภัณฑ์ส่งจากโดเมนที่ยืนยันแล้ว)

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • forms_enabledbooleanจำเป็น
  • reasonstring

    enum: "verified_domain_required"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/signup-forms/readiness' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/signup-forms/preview

เรนเดอร์การตั้งค่าแบบฟอร์มที่ยังไม่บันทึกเป็นหน้า HTML สมบูรณ์บนเว็บไซต์จำลอง

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • kindstring

    enum: "inline", "popup", "bar", "slide_in", "page"

  • configobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • eyebrowstring

    maxLength: 60

  • headlinestring

    minLength: 1 · maxLength: 140

  • bodystring

    maxLength: 400

  • button_labelstring

    minLength: 1 · maxLength: 40

  • email_placeholderstring

    maxLength: 80

  • name_placeholderstring

    maxLength: 60

  • fine_printstring

    maxLength: 160

  • incentivestring

    maxLength: 160

  • success_headlinestring

    maxLength: 120

  • success_bodystring

    maxLength: 400

  • redirect_urlstring

    maxLength: 2000 · pattern: "^(|https://[^\\s\"'<>]+)$"

  • image_urlstring

    maxLength: 2000 · pattern: "^(|https://[^\\s\"'<>]+)$"

  • artstring

    enum: "arcs", "blocks", "horizon", "confetti", "frame", "bands", "dots"

  • stylestring

    enum: "", "brand", "material", "clarity", "editorial", "bold", "luxe", "playful", "plain"

  • count_nounstring

    maxLength: 30

  • confirm_promisestring

    maxLength: 200

  • text_channelsarray

    Texts (needs the customers feature): the channels the form asks consent for. The form then asks for a mobile number and shows one unticked box per channel under text_consent_wording. A ticked box makes the number the contact's subscribed address on that channel, kept with what the form showed, and a new SMS subscriber gets one confirmation text from the product's SMS inbox. Empty (the default) asks for no number. Not shown on bars.

    maxItems: 2 · uniqueItems: true

  • แต่ละรายการstring

    enum: "sms", "whatsapp"

  • phone_placeholderstring

    maxLength: 60

  • text_consent_wordingstring

    What ticking a box agrees to, shown above the consent boxes and kept with each consent as it was shown. {company} in it becomes the brand's company name.

    maxLength: 600

  • sms_consent_labelstring

    maxLength: 120

  • whatsapp_consent_labelstring

    maxLength: 120

  • localestring
  • collect_nameboolean
  • show_logoboolean
  • show_countboolean
  • exit_intentboolean
  • delay_secondsinteger

    minimum: 0 · maximum: 600

  • scroll_percentinteger

    minimum: 0 · maximum: 100

  • frequency_daysinteger

    minimum: 0 · maximum: 365

  • imagestring

    enum: "none", "photo", "art"

  • layoutstring

    enum: "stacked", "split"

  • themestring

    enum: "light", "dark", "brand", "auto"

  • positionstring

    enum: "bottom", "top", "right", "left"

  • fieldsarray

    maxItems: 6

  • แต่ละรายการobject

    คำถามแบบเลือกต้องมี options คำถามชนิดอื่นไม่รับ options คีย์ต้องไม่ซ้ำและไม่ใช้ฟิลด์แบบฟอร์มที่สงวน คีย์ที่ไม่ระบุสร้างจากป้าย

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • keystring

    pattern: "^[a-z][a-z0-9_]{0,39}$"

  • labelstringจำเป็น

    minLength: 1 · maxLength: 80

  • typestring

    default: "text" · enum: "text", "select", "checkbox"

  • requiredboolean

    default: false

  • placeholderstring

    maxLength: 80

  • optionsarray

    minItems: 1 · maxItems: 20 · uniqueItems: true

  • แต่ละรายการstring

    minLength: 1 · maxLength: 80

  • double_opt_inboolean
  • statestring

    enum: "form", "success"

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • kindstringจำเป็น

    enum: "inline", "popup", "bar", "slide_in", "page"

  • statestringจำเป็น

    enum: "form", "success"

  • htmlstringจำเป็น

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/signup-forms/preview' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "kind": "inline",
  "config": {
    "eyebrow": "example",
    "headline": "example",
    "body": "example",
    "button_label": "example",
    "email_placeholder": "example",
    "name_placeholder": "example",
    "fine_print": "example",
    "incentive": "example",
    "success_headline": "example",
    "success_body": "example",
    "redirect_url": "example",
    "image_url": "example",
    "art": "arcs",
    "style": "",
    "count_noun": "example",
    "confirm_promise": "example",
    "text_channels": [
      "sms"
    ],
    "phone_placeholder": "example",
    "text_consent_wording": "example",
    "sms_consent_label": "example",
    "whatsapp_consent_label": "example",
    "locale": "example",
    "collect_name": true,
    "show_logo": true,
    "show_count": true,
    "exit_intent": true,
    "delay_seconds": 0,
    "scroll_percent": 0,
    "frequency_days": 0,
    "image": "none",
    "layout": "stacked",
    "theme": "light",
    "position": "bottom",
    "fields": [
      {
        "key": "example",
        "label": "example",
        "type": "text",
        "required": false,
        "placeholder": "example",
        "options": [
          "example"
        ]
      }
    ]
  },
  "double_opt_in": true,
  "state": "form"
}'
GET/v1/workspaces/{workspaceId}/signup-forms/{formId}

getSignupForm

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

formId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • product_idstringจำเป็น

    format: "uuid"

  • public_idstringจำเป็น

    pattern: "^f_[a-z0-9]{16}$"

  • namestringจำเป็น
  • kindstringจำเป็น

    enum: "inline", "popup", "bar", "slide_in", "page"

  • list_idstringจำเป็น

    format: "uuid"

  • list_namestringจำเป็น
  • mailbox_idstring | nullจำเป็น

    format: "uuid"

  • double_opt_inbooleanจำเป็น
  • configobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • eyebrowstring

    maxLength: 60

  • headlinestring

    minLength: 1 · maxLength: 140

  • bodystring

    maxLength: 400

  • button_labelstring

    minLength: 1 · maxLength: 40

  • email_placeholderstring

    maxLength: 80

  • name_placeholderstring

    maxLength: 60

  • fine_printstring

    maxLength: 160

  • incentivestring

    maxLength: 160

  • success_headlinestring

    maxLength: 120

  • success_bodystring

    maxLength: 400

  • redirect_urlstring

    maxLength: 2000 · pattern: "^(|https://[^\\s\"'<>]+)$"

  • image_urlstring

    maxLength: 2000 · pattern: "^(|https://[^\\s\"'<>]+)$"

  • artstring

    enum: "arcs", "blocks", "horizon", "confetti", "frame", "bands", "dots"

  • stylestring

    enum: "", "brand", "material", "clarity", "editorial", "bold", "luxe", "playful", "plain"

  • count_nounstring

    maxLength: 30

  • confirm_promisestring

    maxLength: 200

  • text_channelsarray

    Texts (needs the customers feature): the channels the form asks consent for. The form then asks for a mobile number and shows one unticked box per channel under text_consent_wording. A ticked box makes the number the contact's subscribed address on that channel, kept with what the form showed, and a new SMS subscriber gets one confirmation text from the product's SMS inbox. Empty (the default) asks for no number. Not shown on bars.

    maxItems: 2 · uniqueItems: true

  • แต่ละรายการstring

    enum: "sms", "whatsapp"

  • phone_placeholderstring

    maxLength: 60

  • text_consent_wordingstring

    What ticking a box agrees to, shown above the consent boxes and kept with each consent as it was shown. {company} in it becomes the brand's company name.

    maxLength: 600

  • sms_consent_labelstring

    maxLength: 120

  • whatsapp_consent_labelstring

    maxLength: 120

  • localestring
  • collect_nameboolean
  • show_logoboolean
  • show_countboolean
  • exit_intentboolean
  • delay_secondsinteger

    minimum: 0 · maximum: 600

  • scroll_percentinteger

    minimum: 0 · maximum: 100

  • frequency_daysinteger

    minimum: 0 · maximum: 365

  • imagestring

    enum: "none", "photo", "art"

  • layoutstring

    enum: "stacked", "split"

  • themestring

    enum: "light", "dark", "brand", "auto"

  • positionstring

    enum: "bottom", "top", "right", "left"

  • fieldsarray

    maxItems: 6

  • แต่ละรายการobject

    คำถามแบบเลือกต้องมี options คำถามชนิดอื่นไม่รับ options คีย์ต้องไม่ซ้ำและไม่ใช้ฟิลด์แบบฟอร์มที่สงวน คีย์ที่ไม่ระบุสร้างจากป้าย

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • keystring

    pattern: "^[a-z][a-z0-9_]{0,39}$"

  • labelstringจำเป็น

    minLength: 1 · maxLength: 80

  • typestring

    default: "text" · enum: "text", "select", "checkbox"

  • requiredboolean

    default: false

  • placeholderstring

    maxLength: 80

  • optionsarray

    minItems: 1 · maxItems: 20 · uniqueItems: true

  • แต่ละรายการstring

    minLength: 1 · maxLength: 80

    ละส่วนที่ซ้อนลึกกว่านี้

  • statusstringจำเป็น

    enum: "active", "paused", "archived"

  • viewsintegerจำเป็น
  • submissionsintegerจำเป็น
  • confirmationsintegerจำเป็น
  • subscribersintegerจำเป็น
  • versionintegerจำเป็น
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • hosted_urlstringจำเป็น
  • embed_codestringจำเป็น
  • embed_slotstringจำเป็น
  • open_buttonstringจำเป็น
  • conversion_ratenumberจำเป็น

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/signup-forms/{formId}' \
  --header "Authorization: Bearer $BANGER_API_KEY"
PATCH/v1/workspaces/{workspaceId}/signup-forms/{formId}

อัปเดตบางส่วน config รวมกับการตั้งค่าที่บันทึก status เป็น active, paused หรือ archived และ expected_version ป้องกันการแก้พร้อมกัน

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

formId
path · จำเป็น
  • valuestring

    format: "uuid"

Idempotency-Key
header · จำเป็น
  • valuestring

    minLength: 1 · maxLength: 256

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • namestring

    maxLength: 200

  • kindstring

    default: "inline" · enum: "inline", "popup", "bar", "slide_in", "page"

  • list_idstring

    format: "uuid"

  • list_namestring

    maxLength: 200

  • mailbox_idstring | null

    format: "uuid"

  • double_opt_inboolean

    default: true

  • configobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • eyebrowstring

    maxLength: 60

  • headlinestring

    minLength: 1 · maxLength: 140

  • bodystring

    maxLength: 400

  • button_labelstring

    minLength: 1 · maxLength: 40

  • email_placeholderstring

    maxLength: 80

  • name_placeholderstring

    maxLength: 60

  • fine_printstring

    maxLength: 160

  • incentivestring

    maxLength: 160

  • success_headlinestring

    maxLength: 120

  • success_bodystring

    maxLength: 400

  • redirect_urlstring

    maxLength: 2000 · pattern: "^(|https://[^\\s\"'<>]+)$"

  • image_urlstring

    maxLength: 2000 · pattern: "^(|https://[^\\s\"'<>]+)$"

  • artstring

    enum: "arcs", "blocks", "horizon", "confetti", "frame", "bands", "dots"

  • stylestring

    enum: "", "brand", "material", "clarity", "editorial", "bold", "luxe", "playful", "plain"

  • count_nounstring

    maxLength: 30

  • confirm_promisestring

    maxLength: 200

  • text_channelsarray

    Texts (needs the customers feature): the channels the form asks consent for. The form then asks for a mobile number and shows one unticked box per channel under text_consent_wording. A ticked box makes the number the contact's subscribed address on that channel, kept with what the form showed, and a new SMS subscriber gets one confirmation text from the product's SMS inbox. Empty (the default) asks for no number. Not shown on bars.

    maxItems: 2 · uniqueItems: true

  • แต่ละรายการstring

    enum: "sms", "whatsapp"

  • phone_placeholderstring

    maxLength: 60

  • text_consent_wordingstring

    What ticking a box agrees to, shown above the consent boxes and kept with each consent as it was shown. {company} in it becomes the brand's company name.

    maxLength: 600

  • sms_consent_labelstring

    maxLength: 120

  • whatsapp_consent_labelstring

    maxLength: 120

  • localestring
  • collect_nameboolean
  • show_logoboolean
  • show_countboolean
  • exit_intentboolean
  • delay_secondsinteger

    minimum: 0 · maximum: 600

  • scroll_percentinteger

    minimum: 0 · maximum: 100

  • frequency_daysinteger

    minimum: 0 · maximum: 365

  • imagestring

    enum: "none", "photo", "art"

  • layoutstring

    enum: "stacked", "split"

  • themestring

    enum: "light", "dark", "brand", "auto"

  • positionstring

    enum: "bottom", "top", "right", "left"

  • fieldsarray

    maxItems: 6

  • แต่ละรายการobject

    คำถามแบบเลือกต้องมี options คำถามชนิดอื่นไม่รับ options คีย์ต้องไม่ซ้ำและไม่ใช้ฟิลด์แบบฟอร์มที่สงวน คีย์ที่ไม่ระบุสร้างจากป้าย

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • keystring

    pattern: "^[a-z][a-z0-9_]{0,39}$"

  • labelstringจำเป็น

    minLength: 1 · maxLength: 80

  • typestring

    default: "text" · enum: "text", "select", "checkbox"

  • requiredboolean

    default: false

  • placeholderstring

    maxLength: 80

  • optionsarray

    minItems: 1 · maxItems: 20 · uniqueItems: true

  • แต่ละรายการstring

    minLength: 1 · maxLength: 80

  • statusstring

    enum: "active", "paused", "archived"

  • expected_versioninteger

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • product_idstringจำเป็น

    format: "uuid"

  • public_idstringจำเป็น

    pattern: "^f_[a-z0-9]{16}$"

  • namestringจำเป็น
  • kindstringจำเป็น

    enum: "inline", "popup", "bar", "slide_in", "page"

  • list_idstringจำเป็น

    format: "uuid"

  • list_namestringจำเป็น
  • mailbox_idstring | nullจำเป็น

    format: "uuid"

  • double_opt_inbooleanจำเป็น
  • configobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • eyebrowstring

    maxLength: 60

  • headlinestring

    minLength: 1 · maxLength: 140

  • bodystring

    maxLength: 400

  • button_labelstring

    minLength: 1 · maxLength: 40

  • email_placeholderstring

    maxLength: 80

  • name_placeholderstring

    maxLength: 60

  • fine_printstring

    maxLength: 160

  • incentivestring

    maxLength: 160

  • success_headlinestring

    maxLength: 120

  • success_bodystring

    maxLength: 400

  • redirect_urlstring

    maxLength: 2000 · pattern: "^(|https://[^\\s\"'<>]+)$"

  • image_urlstring

    maxLength: 2000 · pattern: "^(|https://[^\\s\"'<>]+)$"

  • artstring

    enum: "arcs", "blocks", "horizon", "confetti", "frame", "bands", "dots"

  • stylestring

    enum: "", "brand", "material", "clarity", "editorial", "bold", "luxe", "playful", "plain"

  • count_nounstring

    maxLength: 30

  • confirm_promisestring

    maxLength: 200

  • text_channelsarray

    Texts (needs the customers feature): the channels the form asks consent for. The form then asks for a mobile number and shows one unticked box per channel under text_consent_wording. A ticked box makes the number the contact's subscribed address on that channel, kept with what the form showed, and a new SMS subscriber gets one confirmation text from the product's SMS inbox. Empty (the default) asks for no number. Not shown on bars.

    maxItems: 2 · uniqueItems: true

  • แต่ละรายการstring

    enum: "sms", "whatsapp"

  • phone_placeholderstring

    maxLength: 60

  • text_consent_wordingstring

    What ticking a box agrees to, shown above the consent boxes and kept with each consent as it was shown. {company} in it becomes the brand's company name.

    maxLength: 600

  • sms_consent_labelstring

    maxLength: 120

  • whatsapp_consent_labelstring

    maxLength: 120

  • localestring
  • collect_nameboolean
  • show_logoboolean
  • show_countboolean
  • exit_intentboolean
  • delay_secondsinteger

    minimum: 0 · maximum: 600

  • scroll_percentinteger

    minimum: 0 · maximum: 100

  • frequency_daysinteger

    minimum: 0 · maximum: 365

  • imagestring

    enum: "none", "photo", "art"

  • layoutstring

    enum: "stacked", "split"

  • themestring

    enum: "light", "dark", "brand", "auto"

  • positionstring

    enum: "bottom", "top", "right", "left"

  • fieldsarray

    maxItems: 6

  • แต่ละรายการobject

    คำถามแบบเลือกต้องมี options คำถามชนิดอื่นไม่รับ options คีย์ต้องไม่ซ้ำและไม่ใช้ฟิลด์แบบฟอร์มที่สงวน คีย์ที่ไม่ระบุสร้างจากป้าย

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • keystring

    pattern: "^[a-z][a-z0-9_]{0,39}$"

  • labelstringจำเป็น

    minLength: 1 · maxLength: 80

  • typestring

    default: "text" · enum: "text", "select", "checkbox"

  • requiredboolean

    default: false

  • placeholderstring

    maxLength: 80

  • optionsarray

    minItems: 1 · maxItems: 20 · uniqueItems: true

  • แต่ละรายการstring

    minLength: 1 · maxLength: 80

    ละส่วนที่ซ้อนลึกกว่านี้

  • statusstringจำเป็น

    enum: "active", "paused", "archived"

  • viewsintegerจำเป็น
  • submissionsintegerจำเป็น
  • confirmationsintegerจำเป็น
  • subscribersintegerจำเป็น
  • versionintegerจำเป็น
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • hosted_urlstringจำเป็น
  • embed_codestringจำเป็น
  • embed_slotstringจำเป็น
  • open_buttonstringจำเป็น
  • conversion_ratenumberจำเป็น
  • replayedbooleanจำเป็น

ตัวอย่าง curl

curl --request PATCH --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/signup-forms/{formId}' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Idempotency-Key: example' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "name": "example",
  "kind": "inline",
  "list_id": "00000000-0000-4000-8000-000000000001",
  "list_name": "example",
  "mailbox_id": "00000000-0000-4000-8000-000000000001",
  "double_opt_in": true,
  "config": {
    "eyebrow": "example",
    "headline": "example",
    "body": "example",
    "button_label": "example",
    "email_placeholder": "example",
    "name_placeholder": "example",
    "fine_print": "example",
    "incentive": "example",
    "success_headline": "example",
    "success_body": "example",
    "redirect_url": "example",
    "image_url": "example",
    "art": "arcs",
    "style": "",
    "count_noun": "example",
    "confirm_promise": "example",
    "text_channels": [
      "sms"
    ],
    "phone_placeholder": "example",
    "text_consent_wording": "example",
    "sms_consent_label": "example",
    "whatsapp_consent_label": "example",
    "locale": "example",
    "collect_name": true,
    "show_logo": true,
    "show_count": true,
    "exit_intent": true,
    "delay_seconds": 0,
    "scroll_percent": 0,
    "frequency_days": 0,
    "image": "none",
    "layout": "stacked",
    "theme": "light",
    "position": "bottom",
    "fields": [
      {
        "key": "example",
        "label": "example",
        "type": "text",
        "required": false,
        "placeholder": "example",
        "options": [
          "example"
        ]
      }
    ]
  },
  "status": "active",
  "expected_version": 1
}'
POST/v1/workspaces/{workspaceId}/signup-forms/{formId}/preview

เรนเดอร์แบบฟอร์มที่บันทึก อาจมีการเปลี่ยนแปลงที่ยังไม่บันทึก ในสถานะแบบฟอร์มหรือสำเร็จ

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

formId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • kindstring

    enum: "inline", "popup", "bar", "slide_in", "page"

  • configobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • eyebrowstring

    maxLength: 60

  • headlinestring

    minLength: 1 · maxLength: 140

  • bodystring

    maxLength: 400

  • button_labelstring

    minLength: 1 · maxLength: 40

  • email_placeholderstring

    maxLength: 80

  • name_placeholderstring

    maxLength: 60

  • fine_printstring

    maxLength: 160

  • incentivestring

    maxLength: 160

  • success_headlinestring

    maxLength: 120

  • success_bodystring

    maxLength: 400

  • redirect_urlstring

    maxLength: 2000 · pattern: "^(|https://[^\\s\"'<>]+)$"

  • image_urlstring

    maxLength: 2000 · pattern: "^(|https://[^\\s\"'<>]+)$"

  • artstring

    enum: "arcs", "blocks", "horizon", "confetti", "frame", "bands", "dots"

  • stylestring

    enum: "", "brand", "material", "clarity", "editorial", "bold", "luxe", "playful", "plain"

  • count_nounstring

    maxLength: 30

  • confirm_promisestring

    maxLength: 200

  • text_channelsarray

    Texts (needs the customers feature): the channels the form asks consent for. The form then asks for a mobile number and shows one unticked box per channel under text_consent_wording. A ticked box makes the number the contact's subscribed address on that channel, kept with what the form showed, and a new SMS subscriber gets one confirmation text from the product's SMS inbox. Empty (the default) asks for no number. Not shown on bars.

    maxItems: 2 · uniqueItems: true

  • แต่ละรายการstring

    enum: "sms", "whatsapp"

  • phone_placeholderstring

    maxLength: 60

  • text_consent_wordingstring

    What ticking a box agrees to, shown above the consent boxes and kept with each consent as it was shown. {company} in it becomes the brand's company name.

    maxLength: 600

  • sms_consent_labelstring

    maxLength: 120

  • whatsapp_consent_labelstring

    maxLength: 120

  • localestring
  • collect_nameboolean
  • show_logoboolean
  • show_countboolean
  • exit_intentboolean
  • delay_secondsinteger

    minimum: 0 · maximum: 600

  • scroll_percentinteger

    minimum: 0 · maximum: 100

  • frequency_daysinteger

    minimum: 0 · maximum: 365

  • imagestring

    enum: "none", "photo", "art"

  • layoutstring

    enum: "stacked", "split"

  • themestring

    enum: "light", "dark", "brand", "auto"

  • positionstring

    enum: "bottom", "top", "right", "left"

  • fieldsarray

    maxItems: 6

  • แต่ละรายการobject

    คำถามแบบเลือกต้องมี options คำถามชนิดอื่นไม่รับ options คีย์ต้องไม่ซ้ำและไม่ใช้ฟิลด์แบบฟอร์มที่สงวน คีย์ที่ไม่ระบุสร้างจากป้าย

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • keystring

    pattern: "^[a-z][a-z0-9_]{0,39}$"

  • labelstringจำเป็น

    minLength: 1 · maxLength: 80

  • typestring

    default: "text" · enum: "text", "select", "checkbox"

  • requiredboolean

    default: false

  • placeholderstring

    maxLength: 80

  • optionsarray

    minItems: 1 · maxItems: 20 · uniqueItems: true

  • แต่ละรายการstring

    minLength: 1 · maxLength: 80

  • double_opt_inboolean
  • statestring

    enum: "form", "success"

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • kindstringจำเป็น

    enum: "inline", "popup", "bar", "slide_in", "page"

  • statestringจำเป็น

    enum: "form", "success"

  • htmlstringจำเป็น

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/signup-forms/{formId}/preview' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "kind": "inline",
  "config": {
    "eyebrow": "example",
    "headline": "example",
    "body": "example",
    "button_label": "example",
    "email_placeholder": "example",
    "name_placeholder": "example",
    "fine_print": "example",
    "incentive": "example",
    "success_headline": "example",
    "success_body": "example",
    "redirect_url": "example",
    "image_url": "example",
    "art": "arcs",
    "style": "",
    "count_noun": "example",
    "confirm_promise": "example",
    "text_channels": [
      "sms"
    ],
    "phone_placeholder": "example",
    "text_consent_wording": "example",
    "sms_consent_label": "example",
    "whatsapp_consent_label": "example",
    "locale": "example",
    "collect_name": true,
    "show_logo": true,
    "show_count": true,
    "exit_intent": true,
    "delay_seconds": 0,
    "scroll_percent": 0,
    "frequency_days": 0,
    "image": "none",
    "layout": "stacked",
    "theme": "light",
    "position": "bottom",
    "fields": [
      {
        "key": "example",
        "label": "example",
        "type": "text",
        "required": false,
        "placeholder": "example",
        "options": [
          "example"
        ]
      }
    ]
  },
  "double_opt_in": true,
  "state": "form"
}'

แบบฟอร์มสมัครสาธารณะ

GET/v1/forms/embed.js

ตัวโหลดแบบฟอร์มสมัคร หนึ่งแท็กสคริปต์ต่อแบบฟอร์ม (data-banger-form="f_…") เรนเดอร์วิดเจ็ตใน shadow root และจัดการทริกเกอร์และการส่ง

เอนด์พอยต์สาธารณะ: ไม่ต้องยืนยันตัวตน

พารามิเตอร์

ไม่ได้ระบุพารามิเตอร์

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

ตัวโหลดแบบฟอร์มสมัครที่ฝังได้

text/javascript

  • valuestring

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/forms/embed.js'
OPTIONS/v1/forms/embed.js

อ่านนโยบาย CORS การสมัครสาธารณะ

เอนด์พอยต์สาธารณะ: ไม่ต้องยืนยันตัวตน

พารามิเตอร์

ไม่ได้ระบุพารามิเตอร์

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 204

การตอบกลับสำเร็จ

ไม่มีเนื้อหาการตอบกลับ

ตัวอย่าง curl

curl --request OPTIONS --globoff 'https://api.bangermail.com/v1/forms/embed.js'
HEAD/v1/forms/embed.js

อ่านส่วนหัวสคริปต์ฝัง

เอนด์พอยต์สาธารณะ: ไม่ต้องยืนยันตัวตน

พารามิเตอร์

ไม่ได้ระบุพารามิเตอร์

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

สัญญาไม่ได้ระบุสคีมาการตอบกลับ

ตัวอย่าง curl

curl --request HEAD --globoff 'https://api.bangermail.com/v1/forms/embed.js'
GET/v1/forms/{publicId}/widget

วิดเจ็ตที่เรนเดอร์ (html, css, ลิงก์ฟอนต์) และพฤติกรรมป๊อปอัปของแบบฟอร์มใช้งาน เป็นสาธารณะ เปิด CORS แคชหนึ่งนาที

เอนด์พอยต์สาธารณะ: ไม่ต้องยืนยันตัวตน

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
publicId
path · จำเป็น
  • valuestring

    pattern: "^f_[a-z0-9]{16}$"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • kindstringจำเป็น

    enum: "inline", "popup", "bar", "slide_in", "page"

  • langstringจำเป็น
  • htmlstringจำเป็น
  • cssstringจำเป็น
  • font_hrefstringจำเป็น
  • redirect_urlstringจำเป็น
  • behaviorobjectจำเป็น
  • delay_secondsnumberจำเป็น
  • scroll_percentnumberจำเป็น
  • exit_intentbooleanจำเป็น
  • frequency_daysnumberจำเป็น

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/forms/{publicId}/widget'
OPTIONS/v1/forms/{publicId}/widget

อ่านนโยบาย CORS การสมัครสาธารณะ

เอนด์พอยต์สาธารณะ: ไม่ต้องยืนยันตัวตน

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
publicId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 204

การตอบกลับสำเร็จ

ไม่มีเนื้อหาการตอบกลับ

ตัวอย่าง curl

curl --request OPTIONS --globoff 'https://api.bangermail.com/v1/forms/{publicId}/widget'
POST/v1/forms/{publicId}/subscribe

ผู้เข้าชมสมัคร ใช้การเข้ารหัสแบบฟอร์ม (email, name, page, lang ที่ไม่บังคับ) เพื่อให้เบราว์เซอร์ข้าม preflight รับ JSON ด้วย ข้อความและอีเมลยืนยันใช้ภาษาแบบฟอร์ม หากไม่มีใช้ lang แล้ว Accept-Language การยืนยันสองขั้นส่งอีเมลยืนยันและเพิ่มบุคคลเข้ารายการหลังยืนยัน

เอนด์พอยต์สาธารณะ: ไม่ต้องยืนยันตัวตน

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
publicId
path · จำเป็น
  • valuestring

    pattern: "^f_[a-z0-9]{16}$"

เนื้อหาคำขอ จำเป็น

application/x-www-form-urlencoded

  • valueobject

    คำตอบที่กำหนดเองใช้ x_<field key> (หรือคีย์ไม่ใส่คำนำหน้า) คำตอบที่จำเป็นขึ้นกับการตั้งค่าแบบฟอร์ม ตัวจัดการอ่าน 8000 อักขระแรกของเนื้อหา

  • emailstringจำเป็น

    format: "email" · maxLength: 320

  • namestring

    maxLength: 100

  • pagestring

    maxLength: 2000

  • elapsednumber | string

    มิลลิวินาทีที่ผ่านไปหลังแสดงแบบฟอร์ม

  • langstring

    maxLength: 35

  • localestring

    maxLength: 35

  • websitestring

    Honeypot ให้เว้นว่าง

    maxLength: 200

  • phonestring

    A mobile number in international format (+ and the country code), on a form that asks for one. Needed only with a consent box; without one it is not kept.

    maxLength: 40

  • sms_consentstring

    The visitor ticked the SMS box: the number becomes their subscribed SMS address, with what the form showed.

    enum: "yes"

  • whatsapp_consentstring

    The visitor ticked the WhatsApp box: the number becomes their subscribed WhatsApp address, with what the form showed.

    enum: "yes"

  • พร็อพเพอร์ตีเพิ่มเติมstring | number

application/json

  • valueobject

    คำตอบที่กำหนดเองใช้ x_<field key> (หรือคีย์ไม่ใส่คำนำหน้า) คำตอบที่จำเป็นขึ้นกับการตั้งค่าแบบฟอร์ม ตัวจัดการอ่าน 8000 อักขระแรกของเนื้อหา

  • emailstringจำเป็น

    format: "email" · maxLength: 320

  • namestring

    maxLength: 100

  • pagestring

    maxLength: 2000

  • elapsednumber | string

    มิลลิวินาทีที่ผ่านไปหลังแสดงแบบฟอร์ม

  • langstring

    maxLength: 35

  • localestring

    maxLength: 35

  • websitestring

    Honeypot ให้เว้นว่าง

    maxLength: 200

  • phonestring

    A mobile number in international format (+ and the country code), on a form that asks for one. Needed only with a consent box; without one it is not kept.

    maxLength: 40

  • sms_consentstring

    The visitor ticked the SMS box: the number becomes their subscribed SMS address, with what the form showed.

    enum: "yes"

  • whatsapp_consentstring

    The visitor ticked the WhatsApp box: the number becomes their subscribed WhatsApp address, with what the form showed.

    enum: "yes"

  • พร็อพเพอร์ตีเพิ่มเติมstring | number

การตอบกลับสำเร็จ 200

รับการสมัครแล้ว

application/json

  • valueobject
  • okbooleanจำเป็น

    const: true

  • statusstringจำเป็น

    enum: "pending_confirmation", "subscribed", "already_subscribed"

  • redirect_urlstring

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/forms/{publicId}/subscribe' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "email": "person@example.com",
  "name": "example",
  "page": "example",
  "elapsed": 1,
  "lang": "example",
  "locale": "example",
  "website": "example",
  "phone": "example",
  "sms_consent": "yes",
  "whatsapp_consent": "yes"
}'
OPTIONS/v1/forms/{publicId}/subscribe

อ่านนโยบาย CORS การสมัครสาธารณะ

เอนด์พอยต์สาธารณะ: ไม่ต้องยืนยันตัวตน

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
publicId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 204

การตอบกลับสำเร็จ

ไม่มีเนื้อหาการตอบกลับ

ตัวอย่าง curl

curl --request OPTIONS --globoff 'https://api.bangermail.com/v1/forms/{publicId}/subscribe'
POST/v1/forms/{publicId}/view

นับการแสดงวิดเจ็ตหนึ่งครั้ง

เอนด์พอยต์สาธารณะ: ไม่ต้องยืนยันตัวตน

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
publicId
path · จำเป็น
  • valuestring

    pattern: "^f_[a-z0-9]{16}$"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 204

นับแล้ว

ไม่มีเนื้อหาการตอบกลับ

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/forms/{publicId}/view'
OPTIONS/v1/forms/{publicId}/view

อ่านนโยบาย CORS การสมัครสาธารณะ

เอนด์พอยต์สาธารณะ: ไม่ต้องยืนยันตัวตน

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
publicId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 204

การตอบกลับสำเร็จ

ไม่มีเนื้อหาการตอบกลับ

ตัวอย่าง curl

curl --request OPTIONS --globoff 'https://api.bangermail.com/v1/forms/{publicId}/view'

เทมเพลต

GET/v1/workspaces/{workspaceId}/templates

listTemplates

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • product_idstring

    format: "uuid"

  • namestringจำเป็น
  • subjectstringจำเป็น
  • body_textstringจำเป็น
  • contentobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมstring
  • slotsarrayจำเป็น
  • แต่ละรายการobject
  • keystringจำเป็น

    pattern: "^[A-Za-z0-9_$.-]{1,200}$"

  • labelstring

    maxLength: 120

  • typestring

    enum: "text", "paragraph", "url", "image"

  • helpstring

    maxLength: 300

  • statusstringจำเป็น

    enum: "active", "archived"

  • originstringจำเป็น

    enum: "person", "agent", "starter", "import"

  • created_by_actor_idstring | null
  • campaign_idstring | null

    format: "uuid"

  • message_kindstring
  • starter_idstring | null
  • starter_versioninteger | null
  • versionintegerจำเป็น
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • body_html_urlstring

    format: "uri"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/templates' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/templates

createTemplate

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • namestringจำเป็น

    minLength: 1 · maxLength: 200

  • subjectstring

    maxLength: 10000

  • body_textstring

    maxLength: 2000000

  • body_htmlstring

    maxLength: 2000000

  • contentobject
  • พร็อพเพอร์ตีเพิ่มเติมstring
  • slotsarray
  • แต่ละรายการobject
  • keystringจำเป็น

    pattern: "^[A-Za-z0-9_$.-]{1,200}$"

  • labelstring

    maxLength: 120

  • typestring

    enum: "text", "paragraph", "url", "image"

  • helpstring

    maxLength: 300

  • originstring

    enum: "person", "agent", "starter", "import"

  • message_kindstring
  • starter_idstring

    maxLength: 80

  • starter_versioninteger

    minimum: 1

การตอบกลับสำเร็จ 201

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • product_idstring

    format: "uuid"

  • namestringจำเป็น
  • subjectstringจำเป็น
  • body_textstringจำเป็น
  • contentobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมstring
  • slotsarrayจำเป็น
  • แต่ละรายการobject
  • keystringจำเป็น

    pattern: "^[A-Za-z0-9_$.-]{1,200}$"

  • labelstring

    maxLength: 120

  • typestring

    enum: "text", "paragraph", "url", "image"

  • helpstring

    maxLength: 300

  • statusstringจำเป็น

    enum: "active", "archived"

  • originstringจำเป็น

    enum: "person", "agent", "starter", "import"

  • created_by_actor_idstring | null
  • campaign_idstring | null

    format: "uuid"

  • message_kindstring
  • starter_idstring | null
  • starter_versioninteger | null
  • versionintegerจำเป็น
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • body_html_urlstring

    format: "uri"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/templates' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "name": "example",
  "subject": "example",
  "body_text": "example",
  "body_html": "example",
  "content": {},
  "slots": [
    {
      "key": "example",
      "label": "example",
      "type": "text",
      "help": "example"
    }
  ],
  "origin": "person",
  "message_kind": "example",
  "starter_id": "example",
  "starter_version": 1
}'
POST/v1/workspaces/{workspaceId}/templates/preview

previewDesign

เรนเดอร์ข้อมูลดีไซน์ที่ยังไม่บันทึกด้วยค่าตัวอย่างหรือผู้รับ และรายงานตัวแทนที่ขาด

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • subjectstring

    maxLength: 10000

  • body_textstring

    maxLength: 2000000

  • body_htmlstring

    maxLength: 2000000

  • contentobject
  • พร็อพเพอร์ตีเพิ่มเติมstring
  • audienceobject

    เลือกรายชื่อติดต่อที่สมัครทั้งหมด หรืออย่างน้อยหนึ่งรายการ contact_ids, list_ids หรือ segment_ids ที่ไม่ว่าง

  • all_subscribedboolean
  • contact_idsarray

    maxItems: 10000

  • แต่ละรายการstring

    format: "uuid"

  • list_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

  • segment_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

  • sample_emailstring

    อีเมลรายชื่อติดต่อที่มีอยู่ ที่อยู่ไม่รู้จักคืน sample_recipient_not_found ไม่ระบุเพื่อใช้ค่าตัวอย่างหรือผู้รับ

    maxLength: 320

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • subjectstringจำเป็น
  • body_textstringจำเป็น
  • body_htmlstring
  • font_renderingarrayจำเป็น
  • แต่ละรายการobject
  • stackstringจำเป็น
  • fontstringจำเป็น
  • web_fontbooleanจำเป็น
  • clientsarrayจำเป็น
  • แต่ละรายการobject
  • clientstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • labelstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • fontstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • web_fontbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • fallbackbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • sample_recipientไม่ได้ระบุจำเป็น
  • anyOf 1object
  • emailstringจำเป็น
  • display_namestring | nullจำเป็น
  • anyOf 2null
  • required_variablesarrayจำเป็น
  • แต่ละรายการstring
  • effective_slotsarrayจำเป็น
  • แต่ละรายการobject
  • keystringจำเป็น

    pattern: "^[A-Za-z0-9_$.-]{1,200}$"

  • labelstring

    maxLength: 120

  • typestring

    enum: "text", "paragraph", "url", "image"

  • helpstring

    maxLength: 300

  • audience_countinteger
  • gapsarray
  • แต่ละรายการobject
  • variablestringจำเป็น
  • missing_countintegerจำเป็น
  • sample_emailsarrayจำเป็น
  • แต่ละรายการstring

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/templates/preview' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "subject": "example",
  "body_text": "example",
  "body_html": "example",
  "content": {},
  "audience": {
    "all_subscribed": true,
    "contact_ids": [
      "00000000-0000-4000-8000-000000000001"
    ],
    "list_ids": [
      "00000000-0000-4000-8000-000000000001"
    ],
    "segment_ids": [
      "00000000-0000-4000-8000-000000000001"
    ]
  },
  "sample_email": "example"
}'
GET/v1/workspaces/{workspaceId}/templates/{templateId}

getTemplate

หนึ่งดีไซน์พร้อม HTML แบบอินไลน์ เนื้อหาที่ต้องกรอก และสล็อตที่ใช้งาน

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

templateId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • product_idstring

    format: "uuid"

  • namestringจำเป็น
  • subjectstringจำเป็น
  • body_textstringจำเป็น
  • contentobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมstring
  • slotsarrayจำเป็น
  • แต่ละรายการobject
  • keystringจำเป็น

    pattern: "^[A-Za-z0-9_$.-]{1,200}$"

  • labelstring

    maxLength: 120

  • typestring

    enum: "text", "paragraph", "url", "image"

  • helpstring

    maxLength: 300

  • statusstringจำเป็น

    enum: "active", "archived"

  • originstringจำเป็น

    enum: "person", "agent", "starter", "import"

  • created_by_actor_idstring | null
  • campaign_idstring | null

    format: "uuid"

  • message_kindstring
  • starter_idstring | null
  • starter_versioninteger | null
  • versionintegerจำเป็น
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • body_html_urlstring

    format: "uri"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/templates/{templateId}' \
  --header "Authorization: Bearer $BANGER_API_KEY"
PATCH/v1/workspaces/{workspaceId}/templates/{templateId}

updateTemplate

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

templateId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • namestring

    maxLength: 200

  • subjectstring

    maxLength: 10000

  • body_textstring

    maxLength: 2000000

  • body_htmlstring

    minLength: 1 · maxLength: 2000000

  • contentobject
  • พร็อพเพอร์ตีเพิ่มเติมstring

    maxLength: 20000

  • slotsarray

    maxItems: 100

  • แต่ละรายการobject
  • keystringจำเป็น

    maxLength: 200

  • labelstring

    maxLength: 120

  • typestring

    enum: "text", "paragraph", "url", "image"

  • helpstring

    maxLength: 300

  • statusstring

    enum: "active", "archived"

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • product_idstring

    format: "uuid"

  • namestringจำเป็น
  • subjectstringจำเป็น
  • body_textstringจำเป็น
  • contentobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมstring
  • slotsarrayจำเป็น
  • แต่ละรายการobject
  • keystringจำเป็น

    pattern: "^[A-Za-z0-9_$.-]{1,200}$"

  • labelstring

    maxLength: 120

  • typestring

    enum: "text", "paragraph", "url", "image"

  • helpstring

    maxLength: 300

  • statusstringจำเป็น

    enum: "active", "archived"

  • originstringจำเป็น

    enum: "person", "agent", "starter", "import"

  • created_by_actor_idstring | null
  • campaign_idstring | null

    format: "uuid"

  • message_kindstring
  • starter_idstring | null
  • starter_versioninteger | null
  • versionintegerจำเป็น
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • body_html_urlstring

    format: "uri"

ตัวอย่าง curl

curl --request PATCH --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/templates/{templateId}' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "name": "example",
  "subject": "example",
  "body_text": "example",
  "body_html": "example",
  "content": {},
  "slots": [
    {
      "key": "example",
      "label": "example",
      "type": "text",
      "help": "example"
    }
  ],
  "status": "active"
}'
POST/v1/workspaces/{workspaceId}/templates/{templateId}/duplicate

duplicateTemplate

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

templateId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • namestring

    maxLength: 200

การตอบกลับสำเร็จ 201

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • product_idstring

    format: "uuid"

  • namestringจำเป็น
  • subjectstringจำเป็น
  • body_textstringจำเป็น
  • contentobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมstring
  • slotsarrayจำเป็น
  • แต่ละรายการobject
  • keystringจำเป็น

    pattern: "^[A-Za-z0-9_$.-]{1,200}$"

  • labelstring

    maxLength: 120

  • typestring

    enum: "text", "paragraph", "url", "image"

  • helpstring

    maxLength: 300

  • statusstringจำเป็น

    enum: "active", "archived"

  • originstringจำเป็น

    enum: "person", "agent", "starter", "import"

  • created_by_actor_idstring | null
  • campaign_idstring | null

    format: "uuid"

  • message_kindstring
  • starter_idstring | null
  • starter_versioninteger | null
  • versionintegerจำเป็น
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • body_html_urlstring

    format: "uri"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/templates/{templateId}/duplicate' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "name": "example"
}'
POST/v1/workspaces/{workspaceId}/templates/{templateId}/preview

previewTemplate

เรนเดอร์ดีไซน์ที่บันทึกด้วยค่าตัวอย่างหรือผู้รับ และรายงานตัวแทนที่ขาด

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

templateId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • contentobject
  • พร็อพเพอร์ตีเพิ่มเติมstring
  • audienceobject

    เลือกรายชื่อติดต่อที่สมัครทั้งหมด หรืออย่างน้อยหนึ่งรายการ contact_ids, list_ids หรือ segment_ids ที่ไม่ว่าง

  • all_subscribedboolean
  • contact_idsarray

    maxItems: 10000

  • แต่ละรายการstring

    format: "uuid"

  • list_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

  • segment_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

  • sample_emailstring

    อีเมลรายชื่อติดต่อที่มีอยู่ ที่อยู่ไม่รู้จักคืน sample_recipient_not_found ไม่ระบุเพื่อใช้ค่าตัวอย่างหรือผู้รับ

    maxLength: 320

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • subjectstringจำเป็น
  • body_textstringจำเป็น
  • body_htmlstring
  • font_renderingarrayจำเป็น
  • แต่ละรายการobject
  • stackstringจำเป็น
  • fontstringจำเป็น
  • web_fontbooleanจำเป็น
  • clientsarrayจำเป็น
  • แต่ละรายการobject
  • clientstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • labelstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • fontstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • web_fontbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • fallbackbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • sample_recipientไม่ได้ระบุจำเป็น
  • anyOf 1object
  • emailstringจำเป็น
  • display_namestring | nullจำเป็น
  • anyOf 2null
  • required_variablesarrayจำเป็น
  • แต่ละรายการstring
  • effective_slotsarrayจำเป็น
  • แต่ละรายการobject
  • keystringจำเป็น

    pattern: "^[A-Za-z0-9_$.-]{1,200}$"

  • labelstring

    maxLength: 120

  • typestring

    enum: "text", "paragraph", "url", "image"

  • helpstring

    maxLength: 300

  • audience_countinteger
  • gapsarray
  • แต่ละรายการobject
  • variablestringจำเป็น
  • missing_countintegerจำเป็น
  • sample_emailsarrayจำเป็น
  • แต่ละรายการstring

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/templates/{templateId}/preview' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "content": {},
  "audience": {
    "all_subscribed": true,
    "contact_ids": [
      "00000000-0000-4000-8000-000000000001"
    ],
    "list_ids": [
      "00000000-0000-4000-8000-000000000001"
    ],
    "segment_ids": [
      "00000000-0000-4000-8000-000000000001"
    ]
  },
  "sample_email": "example"
}'
GET/v1/workspaces/{workspaceId}/templates/{templateId}/html

getTemplateHtml

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

templateId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

เนื้อหาเทมเพลตอีเมล HTML ที่ไม่มีสคริปต์

text/html

  • valuestring

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/templates/{templateId}/html' \
  --header "Authorization: Bearer $BANGER_API_KEY"

แคมเปญ

POST/v1/workspaces/{workspaceId}/campaigns/coverage-preview

previewCampaignCoverage

ตัวแทนที่จำเป็นซึ่งผู้รับเติมค่าไม่ได้ ก่อนบันทึกแคมเปญใด

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • subjectstring

    maxLength: 10000

  • body_textstring

    maxLength: 2000000

  • body_htmlstring

    maxLength: 2000000

  • contentobject
  • พร็อพเพอร์ตีเพิ่มเติมstring
  • audienceobjectจำเป็น

    เลือกรายชื่อติดต่อที่สมัครทั้งหมด หรืออย่างน้อยหนึ่งรายการ contact_ids, list_ids หรือ segment_ids ที่ไม่ว่าง

  • all_subscribedboolean
  • contact_idsarray

    maxItems: 10000

  • แต่ละรายการstring

    format: "uuid"

  • list_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

  • segment_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

  • sample_emailstring

    maxLength: 320

  • template_idstring

    format: "uuid"

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • required_variablesarrayจำเป็น
  • แต่ละรายการstring
  • audience_countintegerจำเป็น
  • gapsarrayจำเป็น
  • แต่ละรายการobject
  • variablestringจำเป็น
  • missing_countintegerจำเป็น
  • sample_emailsarrayจำเป็น
  • แต่ละรายการstring

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/campaigns/coverage-preview' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "subject": "example",
  "body_text": "example",
  "body_html": "example",
  "content": {},
  "audience": {
    "all_subscribed": true,
    "contact_ids": [
      "00000000-0000-4000-8000-000000000001"
    ],
    "list_ids": [
      "00000000-0000-4000-8000-000000000001"
    ],
    "segment_ids": [
      "00000000-0000-4000-8000-000000000001"
    ]
  },
  "sample_email": "example",
  "template_id": "00000000-0000-4000-8000-000000000001"
}'
GET/v1/workspaces/{workspaceId}/campaigns

listCampaigns

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • product_idstring

    format: "uuid"

  • namestringจำเป็น
  • mailbox_idstring

    format: "uuid"

  • template_idstring | null

    format: "uuid"

  • managed_content_idstring | null

    format: "uuid"

  • managed_source_revision_idstring | null

    format: "uuid"

  • managed_publication_idstring | null

    format: "uuid"

  • managed_locales_snapshotarray
  • แต่ละรายการstring
  • expires_after_secondsinteger | null
  • statusstringจำเป็น
  • versionintegerจำเป็น
  • subject_variantsarray
  • แต่ละรายการstring
  • selected_subject_variantinteger
  • content_overridesobject
  • พร็อพเพอร์ตีเพิ่มเติมstring
  • audience_queryobject

    เลือกรายชื่อติดต่อที่สมัครทั้งหมด หรืออย่างน้อยหนึ่งรายการ contact_ids, list_ids หรือ segment_ids ที่ไม่ว่าง

  • all_subscribedboolean
  • contact_idsarray

    maxItems: 10000

  • แต่ละรายการstring

    format: "uuid"

  • list_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

  • segment_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

  • audience_frozen_atstring | null

    format: "date-time"

  • audience_recipient_countinteger | null
  • audience_snapshot_sha256string | null
  • audience_snapshot_campaign_versioninteger | null
  • scheduled_atstring | null

    format: "date-time"

  • started_atstring | null

    format: "date-time"

  • completed_atstring | null

    format: "date-time"

  • created_atstring

    format: "date-time"

  • updated_atstring

    format: "date-time"

  • archived_atstring | null

    format: "date-time"

  • statsobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/campaigns' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/campaigns

createCampaign

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • namestringจำเป็น

    maxLength: 200

  • mailbox_idstring

    format: "uuid"

  • template_idstringจำเป็น

    format: "uuid"

  • subject_variantsarray

    maxItems: 8

  • แต่ละรายการstring

    minLength: 1 · maxLength: 998

  • selected_subject_variantinteger

    minimum: 0

  • audienceobjectจำเป็น
  • all_subscribedboolean

    default: false

  • contact_idsarray

    maxItems: 10000

  • แต่ละรายการstring

    format: "uuid"

  • list_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

  • segment_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

การตอบกลับสำเร็จ 201

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • product_idstring

    format: "uuid"

  • namestringจำเป็น
  • mailbox_idstring

    format: "uuid"

  • template_idstring | null

    format: "uuid"

  • managed_content_idstring | null

    format: "uuid"

  • managed_source_revision_idstring | null

    format: "uuid"

  • managed_publication_idstring | null

    format: "uuid"

  • managed_locales_snapshotarray
  • แต่ละรายการstring
  • expires_after_secondsinteger | null
  • statusstringจำเป็น
  • versionintegerจำเป็น
  • subject_variantsarray
  • แต่ละรายการstring
  • selected_subject_variantinteger
  • content_overridesobject
  • พร็อพเพอร์ตีเพิ่มเติมstring
  • audience_queryobject

    เลือกรายชื่อติดต่อที่สมัครทั้งหมด หรืออย่างน้อยหนึ่งรายการ contact_ids, list_ids หรือ segment_ids ที่ไม่ว่าง

  • all_subscribedboolean
  • contact_idsarray

    maxItems: 10000

  • แต่ละรายการstring

    format: "uuid"

  • list_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

  • segment_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

  • audience_frozen_atstring | null

    format: "date-time"

  • audience_recipient_countinteger | null
  • audience_snapshot_sha256string | null
  • audience_snapshot_campaign_versioninteger | null
  • scheduled_atstring | null

    format: "date-time"

  • started_atstring | null

    format: "date-time"

  • completed_atstring | null

    format: "date-time"

  • created_atstring

    format: "date-time"

  • updated_atstring

    format: "date-time"

  • archived_atstring | null

    format: "date-time"

  • statsobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/campaigns' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "name": "example",
  "mailbox_id": "00000000-0000-4000-8000-000000000001",
  "template_id": "00000000-0000-4000-8000-000000000001",
  "subject_variants": [
    "example"
  ],
  "selected_subject_variant": 0,
  "audience": {
    "all_subscribed": false,
    "contact_ids": [
      "00000000-0000-4000-8000-000000000001"
    ],
    "list_ids": [
      "00000000-0000-4000-8000-000000000001"
    ],
    "segment_ids": [
      "00000000-0000-4000-8000-000000000001"
    ]
  }
}'
POST/v1/workspaces/{workspaceId}/campaigns/audience-preview

previewCampaignAudience

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • audienceobjectจำเป็น

    เลือกรายชื่อติดต่อที่สมัครทั้งหมด หรืออย่างน้อยหนึ่งรายการ contact_ids, list_ids หรือ segment_ids ที่ไม่ว่าง

  • all_subscribedboolean
  • contact_idsarray

    maxItems: 10000

  • แต่ละรายการstring

    format: "uuid"

  • list_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

  • segment_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • countintegerจำเป็น
  • missing_consent_evidence_countintegerจำเป็น
  • samplearrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • emailstringจำเป็น
  • display_namestring | nullจำเป็น
  • attributesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • excludedobjectจำเป็น
  • suppressedintegerจำเป็น
  • not_subscribedintegerจำเป็น
  • missing_recipient_hashintegerจำเป็น
  • missing_consent_evidenceintegerจำเป็น

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/campaigns/audience-preview' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "audience": {
    "all_subscribed": true,
    "contact_ids": [
      "00000000-0000-4000-8000-000000000001"
    ],
    "list_ids": [
      "00000000-0000-4000-8000-000000000001"
    ],
    "segment_ids": [
      "00000000-0000-4000-8000-000000000001"
    ]
  }
}'
GET/v1/workspaces/{workspaceId}/campaigns/{campaignId}

getCampaign

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

campaignId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • product_idstring

    format: "uuid"

  • namestringจำเป็น
  • mailbox_idstring

    format: "uuid"

  • template_idstring | null

    format: "uuid"

  • managed_content_idstring | null

    format: "uuid"

  • managed_source_revision_idstring | null

    format: "uuid"

  • managed_publication_idstring | null

    format: "uuid"

  • managed_locales_snapshotarray
  • แต่ละรายการstring
  • expires_after_secondsinteger | null
  • statusstringจำเป็น
  • versionintegerจำเป็น
  • subject_variantsarray
  • แต่ละรายการstring
  • selected_subject_variantinteger
  • content_overridesobject
  • พร็อพเพอร์ตีเพิ่มเติมstring
  • audience_queryobject

    เลือกรายชื่อติดต่อที่สมัครทั้งหมด หรืออย่างน้อยหนึ่งรายการ contact_ids, list_ids หรือ segment_ids ที่ไม่ว่าง

  • all_subscribedboolean
  • contact_idsarray

    maxItems: 10000

  • แต่ละรายการstring

    format: "uuid"

  • list_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

  • segment_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

  • audience_frozen_atstring | null

    format: "date-time"

  • audience_recipient_countinteger | null
  • audience_snapshot_sha256string | null
  • audience_snapshot_campaign_versioninteger | null
  • scheduled_atstring | null

    format: "date-time"

  • started_atstring | null

    format: "date-time"

  • completed_atstring | null

    format: "date-time"

  • created_atstring

    format: "date-time"

  • updated_atstring

    format: "date-time"

  • archived_atstring | null

    format: "date-time"

  • statsobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/campaigns/{campaignId}' \
  --header "Authorization: Bearer $BANGER_API_KEY"
PATCH/v1/workspaces/{workspaceId}/campaigns/{campaignId}

updateCampaign

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

campaignId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • namestringจำเป็น

    maxLength: 200

  • mailbox_idstringจำเป็น

    format: "uuid"

  • template_idstring

    format: "uuid"

  • subject_variantsarray

    maxItems: 8

  • แต่ละรายการstring

    minLength: 1 · maxLength: 998

  • selected_subject_variantinteger

    minimum: 0

  • audienceobjectจำเป็น

    พร็อพเพอร์ตีที่ไม่ได้ระบุในสัญญา

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • product_idstring

    format: "uuid"

  • namestringจำเป็น
  • mailbox_idstring

    format: "uuid"

  • template_idstring | null

    format: "uuid"

  • managed_content_idstring | null

    format: "uuid"

  • managed_source_revision_idstring | null

    format: "uuid"

  • managed_publication_idstring | null

    format: "uuid"

  • managed_locales_snapshotarray
  • แต่ละรายการstring
  • expires_after_secondsinteger | null
  • statusstringจำเป็น
  • versionintegerจำเป็น
  • subject_variantsarray
  • แต่ละรายการstring
  • selected_subject_variantinteger
  • content_overridesobject
  • พร็อพเพอร์ตีเพิ่มเติมstring
  • audience_queryobject

    เลือกรายชื่อติดต่อที่สมัครทั้งหมด หรืออย่างน้อยหนึ่งรายการ contact_ids, list_ids หรือ segment_ids ที่ไม่ว่าง

  • all_subscribedboolean
  • contact_idsarray

    maxItems: 10000

  • แต่ละรายการstring

    format: "uuid"

  • list_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

  • segment_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

  • audience_frozen_atstring | null

    format: "date-time"

  • audience_recipient_countinteger | null
  • audience_snapshot_sha256string | null
  • audience_snapshot_campaign_versioninteger | null
  • scheduled_atstring | null

    format: "date-time"

  • started_atstring | null

    format: "date-time"

  • completed_atstring | null

    format: "date-time"

  • created_atstring

    format: "date-time"

  • updated_atstring

    format: "date-time"

  • archived_atstring | null

    format: "date-time"

  • statsobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้

ตัวอย่าง curl

curl --request PATCH --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/campaigns/{campaignId}' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "name": "example",
  "mailbox_id": "00000000-0000-4000-8000-000000000001",
  "template_id": "00000000-0000-4000-8000-000000000001",
  "subject_variants": [
    "example"
  ],
  "selected_subject_variant": 0,
  "audience": {}
}'
DELETE/v1/workspaces/{workspaceId}/campaigns/{campaignId}

ลบแคมเปญที่ยังไม่ส่ง

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

campaignId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • deletedbooleanจำเป็น

    const: true

ตัวอย่าง curl

curl --request DELETE --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/campaigns/{campaignId}' \
  --header "Authorization: Bearer $BANGER_API_KEY"
GET/v1/workspaces/{workspaceId}/campaigns/{campaignId}/recipients

listCampaignRecipients

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

campaignId
path · จำเป็น
  • valuestring

    format: "uuid"

cursor
query
  • valuestring

    maxLength: 1024

limit
query
  • valueinteger

    minimum: 1 · maximum: 100 · default: 50

status
query
  • valuestring

    enum: "pending", "queued", "sent", "failed", "skipped", "delivered", "deferred", "bounced", "complained", "unsubscribed"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject
  • contact_idstring | null

    format: "uuid"

  • recipient_emailstring
  • recipient_namestring | null
  • recipient_hashstring
  • variant_keystring | null

    Persisted Broadcast experiment arm, or holdback before a winner is chosen. Null for a Broadcast without an experiment.

  • statusstring
  • dispatch_statusstring
  • command_idstring | null

    format: "uuid"

  • error_codestring | null
  • created_atstring

    format: "date-time"

  • updated_atstring

    format: "date-time"

  • delivery_statestring | null
  • provider_message_keystring | null
  • last_event_atstring | null

    format: "date-time"

  • first_delivered_atstring | null

    format: "date-time"

  • first_opened_atstring | null

    format: "date-time"

  • first_clicked_atstring | null

    format: "date-time"

  • first_human_likely_opened_atstring | null

    format: "date-time"

  • first_human_likely_clicked_atstring | null

    format: "date-time"

  • first_replied_atstring | null

    format: "date-time"

  • machine_open_countinteger
  • machine_click_countinteger
  • privacy_proxy_open_countinteger
  • unknown_open_countinteger
  • unknown_click_countinteger
  • first_unsubscribed_atstring | null

    format: "date-time"

  • pageobjectจำเป็น
  • next_cursorstring
  • has_morebooleanจำเป็น

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/campaigns/{campaignId}/recipients?cursor=example&limit=50&status=pending' \
  --header "Authorization: Bearer $BANGER_API_KEY"
GET/v1/workspaces/{workspaceId}/campaigns/{campaignId}/timeline

listCampaignTimeline

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

campaignId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น
  • typestringจำเป็น
  • occurred_atstringจำเป็น

    format: "date-time"

  • actor_idstring | nullจำเป็น
  • detailobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/campaigns/{campaignId}/timeline' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/campaigns/{campaignId}/pause

pauseCampaign

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

campaignId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • product_idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • mailbox_idstringจำเป็น

    format: "uuid"

  • template_idstring | nullจำเป็น

    format: "uuid"

  • statusstringจำเป็น
  • audience_queryobjectจำเป็น

    เลือกรายชื่อติดต่อที่สมัครทั้งหมด หรืออย่างน้อยหนึ่งรายการ contact_ids, list_ids หรือ segment_ids ที่ไม่ว่าง

  • all_subscribedboolean
  • contact_idsarray

    maxItems: 10000

  • แต่ละรายการstring

    format: "uuid"

  • list_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

  • segment_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

  • scheduled_atstring | nullจำเป็น

    format: "date-time"

  • started_atstring | nullจำเป็น

    format: "date-time"

  • completed_atstring | nullจำเป็น

    format: "date-time"

  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/campaigns/{campaignId}/pause' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/campaigns/{campaignId}/resume

resumeCampaign

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

campaignId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • product_idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • mailbox_idstringจำเป็น

    format: "uuid"

  • template_idstring | nullจำเป็น

    format: "uuid"

  • statusstringจำเป็น
  • audience_queryobjectจำเป็น

    เลือกรายชื่อติดต่อที่สมัครทั้งหมด หรืออย่างน้อยหนึ่งรายการ contact_ids, list_ids หรือ segment_ids ที่ไม่ว่าง

  • all_subscribedboolean
  • contact_idsarray

    maxItems: 10000

  • แต่ละรายการstring

    format: "uuid"

  • list_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

  • segment_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

  • scheduled_atstring | nullจำเป็น

    format: "date-time"

  • started_atstring | nullจำเป็น

    format: "date-time"

  • completed_atstring | nullจำเป็น

    format: "date-time"

  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/campaigns/{campaignId}/resume' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/campaigns/{campaignId}/cancel

cancelCampaign

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

campaignId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • product_idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • mailbox_idstringจำเป็น

    format: "uuid"

  • template_idstring | nullจำเป็น

    format: "uuid"

  • statusstringจำเป็น
  • audience_queryobjectจำเป็น

    เลือกรายชื่อติดต่อที่สมัครทั้งหมด หรืออย่างน้อยหนึ่งรายการ contact_ids, list_ids หรือ segment_ids ที่ไม่ว่าง

  • all_subscribedboolean
  • contact_idsarray

    maxItems: 10000

  • แต่ละรายการstring

    format: "uuid"

  • list_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

  • segment_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

  • scheduled_atstring | nullจำเป็น

    format: "date-time"

  • started_atstring | nullจำเป็น

    format: "date-time"

  • completed_atstring | nullจำเป็น

    format: "date-time"

  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/campaigns/{campaignId}/cancel' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/campaigns/{campaignId}/schedule

scheduleCampaign

เลิกใช้แล้ว

ขอบเขตตั้งเวลาโดยตรงที่เลิกใช้ คืน governed_review_required เสมอ ใช้เอนด์พอยต์ตรวจทานแคมเปญเพื่อบังคับเกณฑ์ผู้รับของพื้นที่ทำงาน

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

campaignId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ

สัญญาไม่ได้ระบุการตอบกลับสำเร็จ

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/campaigns/{campaignId}/schedule' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/campaigns/{campaignId}/test

testCampaign

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

campaignId
path · จำเป็น
  • valuestring

    format: "uuid"

Idempotency-Key
header · จำเป็น
  • valuestring

    minLength: 16 · maxLength: 128

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • tostringจำเป็น

    minLength: 3 · maxLength: 320

  • data_modestring

    default: "contact" · enum: "sample", "fallback", "contact"

  • contact_emailstring

    maxLength: 320

  • variant_keystring

    maxLength: 80

  • localestring

การตอบกลับสำเร็จ 202

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • action_kindstringจำเป็น

    enum: "transactional.send"

  • idstringจำเป็น

    format: "uuid"

  • send_intent_idstringจำเป็น

    format: "uuid"

  • provider_attempt_idstringจำเป็น

    format: "uuid"

  • statusstringจำเป็น
  • replayedbooleanจำเป็น

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/campaigns/{campaignId}/test' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Idempotency-Key: examplexxxxxxxxx' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "to": "example",
  "data_mode": "contact",
  "contact_email": "example",
  "variant_key": "example",
  "locale": "example"
}'
POST/v1/workspaces/{workspaceId}/campaigns/{campaignId}/review

requestCampaignReview

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

campaignId
path · จำเป็น
  • valuestring

    format: "uuid"

Idempotency-Key
header · จำเป็น
  • valuestring

    minLength: 16 · maxLength: 128

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • expected_versioninteger

    minimum: 1

  • expected_design_versioninteger

    minimum: 1

  • recipient_selectionobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • all_subscribedboolean
  • contact_idsarray

    maxItems: 10000

  • แต่ละรายการstring

    format: "uuid"

  • list_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

  • segment_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

  • scheduled_atstring

    format: "date-time"

  • send_nowboolean

    const: true

  • approve_as_launcherboolean

    คนที่กดส่งอนุมัติคำขอนี้ตามจริงเมื่อนโยบายตรวจทานต้องใช้คน ละเว้นสำหรับคีย์ API และเอเจนต์ ซึ่งรอในส่วนการอนุมัติ

  • oneOf 1ไม่ได้ระบุ
  • oneOf 2ไม่ได้ระบุ

การตอบกลับสำเร็จ 201

สร้างการอนุมัติตั้งเวลาแคมเปญแล้ว

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • requested_by_actor_idstringจำเป็น
  • action_kindstringจำเป็น
  • summarystringจำเป็น
  • capability_scopesarrayจำเป็น
  • แต่ละรายการstring
  • resource_scopeobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมarray
  • แต่ละรายการstring
  • payloadobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • payload_sha256stringจำเป็น

    pattern: "^[0-9a-f]{64}$"

  • statusstringจำเป็น

    enum: "pending", "approved", "rejected", "cancelled", "expired"

  • missedbooleanจำเป็น
  • expires_atstringจำเป็น

    format: "date-time"

  • qa_automationobject | null

    หลักฐานแหล่งที่มาของระบบอัตโนมัติ QA โดยเฉพาะที่เซิร์ฟเวอร์บันทึกไว้ ไม่ถือเป็นหลักฐานว่ามีคนตรวจทานเพย์โหลด ระบบจะตรวจสอบการทำงานและสิทธิ์อนุญาตส่วนกลางอีกครั้งขณะดำเนินการ

  • kindstring

    enum: "dedicated_qa_automation"

  • authorization_referencestring
  • run_idstring
  • operation_keystring
  • recipientsarray
  • แต่ละรายการstring

    format: "email"

  • approval_sha256string
  • resource_sha256string
  • decided_by_actor_idstring | null
  • decision_reasonstring | null
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • decided_atstring | null

    format: "date-time"

  • execution_job_idstring

    format: "uuid"

  • reviewobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • dispositionstringจำเป็น

    enum: "automatic", "human_required"

  • recipient_countinteger | nullจำเป็น

    minimum: 0

  • reasonsarrayจำเป็น
  • แต่ละรายการstring
  • checksarrayจำเป็น
  • แต่ละรายการstring

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/campaigns/{campaignId}/review' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Idempotency-Key: examplexxxxxxxxx' \
  --header 'Content-Type: application/json' \
  --data-raw '"example"'
POST/v1/workspaces/{workspaceId}/campaigns/{campaignId}/archive

เก็บแคมเปญถาวร

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

campaignId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • statusstringจำเป็น
  • archived_atstring | nullจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/campaigns/{campaignId}/archive' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/campaigns/{campaignId}/unarchive

นำแคมเปญออกจากที่เก็บถาวร

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

campaignId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • statusstringจำเป็น
  • archived_atstring | nullจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/campaigns/{campaignId}/unarchive' \
  --header "Authorization: Bearer $BANGER_API_KEY"
PUT/v1/workspaces/{workspaceId}/campaigns/{campaignId}/design-test

บันทึกดีไซน์อีเมลแคมเปญหนึ่งถึงสี่แบบ

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

campaignId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • namestringจำเป็น

    minLength: 1 · maxLength: 200

  • mailbox_idstringจำเป็น

    format: "uuid"

  • audienceobjectจำเป็น

    เลือกรายชื่อติดต่อที่สมัครทั้งหมด หรืออย่างน้อยหนึ่งรายการ contact_ids, list_ids หรือ segment_ids ที่ไม่ว่าง

  • all_subscribedboolean
  • contact_idsarray

    maxItems: 10000

  • แต่ละรายการstring

    format: "uuid"

  • list_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

  • segment_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

  • automatic_translationboolean
  • variantsarrayจำเป็น

    minItems: 1 · maxItems: 4

  • แต่ละรายการobject
  • body_htmlstringจำเป็น

    minLength: 1 · maxLength: 2000000

  • subjectstring

    maxLength: 10000

  • body_textstring

    maxLength: 2000000

  • contentobject
  • พร็อพเพอร์ตีเพิ่มเติมstring

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • product_idstring

    format: "uuid"

  • namestringจำเป็น
  • mailbox_idstring

    format: "uuid"

  • template_idstring | null

    format: "uuid"

  • managed_content_idstring | null

    format: "uuid"

  • managed_source_revision_idstring | null

    format: "uuid"

  • managed_publication_idstring | null

    format: "uuid"

  • managed_locales_snapshotarray
  • แต่ละรายการstring
  • expires_after_secondsinteger | null
  • statusstringจำเป็น
  • versionintegerจำเป็น
  • subject_variantsarray
  • แต่ละรายการstring
  • selected_subject_variantinteger
  • content_overridesobject
  • พร็อพเพอร์ตีเพิ่มเติมstring
  • audience_queryobject

    เลือกรายชื่อติดต่อที่สมัครทั้งหมด หรืออย่างน้อยหนึ่งรายการ contact_ids, list_ids หรือ segment_ids ที่ไม่ว่าง

  • all_subscribedboolean
  • contact_idsarray

    maxItems: 10000

  • แต่ละรายการstring

    format: "uuid"

  • list_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

  • segment_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

  • audience_frozen_atstring | null

    format: "date-time"

  • audience_recipient_countinteger | null
  • audience_snapshot_sha256string | null
  • audience_snapshot_campaign_versioninteger | null
  • scheduled_atstring | null

    format: "date-time"

  • started_atstring | null

    format: "date-time"

  • completed_atstring | null

    format: "date-time"

  • created_atstring

    format: "date-time"

  • updated_atstring

    format: "date-time"

  • archived_atstring | null

    format: "date-time"

  • statsobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • design_template_idstringจำเป็น

    format: "uuid"

ตัวอย่าง curl

curl --request PUT --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/campaigns/{campaignId}/design-test' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "name": "example",
  "mailbox_id": "00000000-0000-4000-8000-000000000001",
  "audience": {
    "all_subscribed": true,
    "contact_ids": [
      "00000000-0000-4000-8000-000000000001"
    ],
    "list_ids": [
      "00000000-0000-4000-8000-000000000001"
    ],
    "segment_ids": [
      "00000000-0000-4000-8000-000000000001"
    ]
  },
  "automatic_translation": true,
  "variants": [
    {
      "body_html": "example",
      "subject": "example",
      "body_text": "example",
      "content": {}
    }
  ]
}'

แคมเปญ

POST/v1/workspaces/{workspaceId}/broadcasts

createBroadcast

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

Idempotency-Key
header · จำเป็น
  • valuestring

    minLength: 1 · maxLength: 256

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • namestringจำเป็น

    minLength: 1 · maxLength: 200

  • mailbox_idstring

    ที่อยู่ผู้ส่งที่มีอยู่ ไม่ระบุเพื่อใช้ผู้ส่งเริ่มต้น จากนั้นกล่องจดหมายกำหนดเองที่ใช้งาน แล้วกล่องที่โฮสต์

    format: "uuid"

  • template_idstring

    format: "uuid"

  • audienceobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • all_subscribedboolean
  • contact_idsarray

    maxItems: 10000

  • แต่ละรายการstring

    format: "uuid"

  • list_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

  • segment_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

  • subject_variantsarray

    maxItems: 8

  • แต่ละรายการstring

    minLength: 1 · maxLength: 998

  • selected_subject_variantinteger

    minimum: 0 · maximum: 7

  • expires_after_secondsinteger

    ยกเลิกผู้รับที่ยังไม่ส่งหลังจำนวนวินาทีนี้นับจากเวลาที่ตั้งไว้ ค่าเริ่มต้นเจ็ดวัน

    minimum: 1 · maximum: 604800

  • content_overridesobject
  • พร็อพเพอร์ตีเพิ่มเติมstring

    maxLength: 20000

การตอบกลับสำเร็จ 200

ข้อมูลหลักที่อ่านกลับหรือใบรับแบบ idempotent ผู้ให้บริการรับแล้วคือ sent ส่วน delivered ต้องมีเหตุการณ์ส่งถึงและไม่ยืนยันว่าเข้ากล่องจดหมายเข้า

application/json

  • valueobject
  • dataไม่ได้ระบุจำเป็น
  • allOf 1ไม่ได้ระบุ
  • allOf 1object
  • idstringจำเป็น

    format: "uuid"

  • product_idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • mailbox_idstring

    format: "uuid"

  • template_idstring | null

    format: "uuid"

  • managed_content_idstring | null

    format: "uuid"

  • managed_source_revision_idstring | null

    format: "uuid"

  • managed_publication_idstring | null

    format: "uuid"

  • managed_locales_snapshotarray
  • แต่ละรายการstring
  • expires_after_secondsinteger | null
  • statusstring
  • versionintegerจำเป็น
  • subject_variantsarray
  • แต่ละรายการstring
  • selected_subject_variantinteger
  • content_overridesobject
  • พร็อพเพอร์ตีเพิ่มเติมstring
  • audience_queryobject

    เลือกรายชื่อติดต่อที่สมัครทั้งหมด หรืออย่างน้อยหนึ่งรายการ contact_ids, list_ids หรือ segment_ids ที่ไม่ว่าง

  • all_subscribedboolean
  • contact_idsarray

    maxItems: 10000

  • แต่ละรายการstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • list_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • segment_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • audience_frozen_atstring | null

    format: "date-time"

  • audience_recipient_countinteger | null
  • audience_snapshot_sha256string | null
  • audience_snapshot_campaign_versioninteger | null
  • scheduled_atstring | null

    format: "date-time"

  • started_atstring | null

    format: "date-time"

  • completed_atstring | null

    format: "date-time"

  • created_atstring

    format: "date-time"

  • updated_atstring

    format: "date-time"

  • archived_atstring | null

    format: "date-time"

  • statsobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • broadcast_idstringจำเป็น

    format: "uuid"

  • sender_addressstring | nullจำเป็น
  • sending_blockerไม่ได้ระบุจำเป็น
  • anyOf 1object
  • codestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • messagestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • anyOf 2null
  • designไม่ได้ระบุจำเป็น
  • anyOf 1object
  • idstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • product_idstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • namestring

    ละส่วนที่ซ้อนลึกกว่านี้

  • subjectstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • body_textstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • contentobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • slotsarray

    ละส่วนที่ซ้อนลึกกว่านี้

  • statusstring

    enum: "active", "archived"

    ละส่วนที่ซ้อนลึกกว่านี้

  • originstring

    enum: "person", "agent", "starter", "import"

    ละส่วนที่ซ้อนลึกกว่านี้

  • created_by_actor_idstring | null

    ละส่วนที่ซ้อนลึกกว่านี้

  • campaign_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • message_kindstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • starter_idstring | null

    ละส่วนที่ซ้อนลึกกว่านี้

  • starter_versioninteger | null

    ละส่วนที่ซ้อนลึกกว่านี้

  • versioninteger

    ละส่วนที่ซ้อนลึกกว่านี้

  • created_atstring

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • updated_atstring

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • body_html_urlstring

    format: "uri"

    ละส่วนที่ซ้อนลึกกว่านี้

  • body_htmlstring | null

    ละส่วนที่ซ้อนลึกกว่านี้

  • body_html_b2_keystring | null

    ละส่วนที่ซ้อนลึกกว่านี้

  • anyOf 2null
  • managed_contentไม่ได้ระบุจำเป็น
  • anyOf 1ไม่ได้ระบุ
  • allOf 1object

    ละส่วนที่ซ้อนลึกกว่านี้

  • allOf 2object

    ละส่วนที่ซ้อนลึกกว่านี้

  • anyOf 2null
  • subjectstring | nullจำเป็น
  • sender_mailboxไม่ได้ระบุจำเป็น
  • anyOf 1object
  • idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • addressstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • display_namestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • statusstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • anyOf 2null
  • reply_mailboxไม่ได้ระบุจำเป็น
  • anyOf 1object
  • idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • addressstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • display_namestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • statusstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • anyOf 2null
  • design_versioninteger | nullจำเป็น
  • audienceobjectจำเป็น

    เลือกรายชื่อติดต่อที่สมัครทั้งหมด หรืออย่างน้อยหนึ่งรายการ contact_ids, list_ids หรือ segment_ids ที่ไม่ว่าง

  • all_subscribedboolean
  • contact_idsarray

    maxItems: 10000

  • แต่ละรายการstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • list_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • segment_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • allOf 2object
  • replayedbooleanจำเป็น
  • allOf 2object
  • previewobject
  • subjectstringจำเป็น
  • preheaderstring
  • htmlstringจำเป็น
  • textstringจำเป็น
  • localestringจำเป็น
  • directionstringจำเป็น

    enum: "ltr", "rtl"

  • warningsarray
  • แต่ละรายการstring
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • translation_jobsarrayจำเป็น
  • แต่ละรายการstring

    format: "uuid"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/broadcasts' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001' \
  --header 'Idempotency-Key: example' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "name": "example",
  "mailbox_id": "00000000-0000-4000-8000-000000000001",
  "template_id": "00000000-0000-4000-8000-000000000001",
  "audience": {
    "all_subscribed": true,
    "contact_ids": [
      "00000000-0000-4000-8000-000000000001"
    ],
    "list_ids": [
      "00000000-0000-4000-8000-000000000001"
    ],
    "segment_ids": [
      "00000000-0000-4000-8000-000000000001"
    ]
  },
  "subject_variants": [
    "example"
  ],
  "selected_subject_variant": 0,
  "expires_after_seconds": 1,
  "content_overrides": {}
}'
GET/v1/workspaces/{workspaceId}/broadcasts/{broadcastId}

getBroadcast

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

broadcastId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

ข้อมูลหลักที่อ่านกลับหรือใบรับแบบ idempotent ผู้ให้บริการรับแล้วคือ sent ส่วน delivered ต้องมีเหตุการณ์ส่งถึงและไม่ยืนยันว่าเข้ากล่องจดหมายเข้า

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • product_idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • mailbox_idstring

    format: "uuid"

  • template_idstring | null

    format: "uuid"

  • managed_content_idstring | null

    format: "uuid"

  • managed_source_revision_idstring | null

    format: "uuid"

  • managed_publication_idstring | null

    format: "uuid"

  • managed_locales_snapshotarray
  • แต่ละรายการstring
  • expires_after_secondsinteger | null
  • statusstring
  • versionintegerจำเป็น
  • subject_variantsarray
  • แต่ละรายการstring
  • selected_subject_variantinteger
  • content_overridesobject
  • พร็อพเพอร์ตีเพิ่มเติมstring
  • audience_queryobject

    เลือกรายชื่อติดต่อที่สมัครทั้งหมด หรืออย่างน้อยหนึ่งรายการ contact_ids, list_ids หรือ segment_ids ที่ไม่ว่าง

  • all_subscribedboolean
  • contact_idsarray

    maxItems: 10000

  • แต่ละรายการstring

    format: "uuid"

  • list_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

  • segment_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

  • audience_frozen_atstring | null

    format: "date-time"

  • audience_recipient_countinteger | null
  • audience_snapshot_sha256string | null
  • audience_snapshot_campaign_versioninteger | null
  • scheduled_atstring | null

    format: "date-time"

  • started_atstring | null

    format: "date-time"

  • completed_atstring | null

    format: "date-time"

  • created_atstring

    format: "date-time"

  • updated_atstring

    format: "date-time"

  • archived_atstring | null

    format: "date-time"

  • statsobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • broadcast_idstringจำเป็น

    format: "uuid"

  • sender_addressstring | nullจำเป็น
  • sending_blockerไม่ได้ระบุจำเป็น
  • anyOf 1object
  • codestringจำเป็น
  • messagestringจำเป็น
  • anyOf 2null
  • designไม่ได้ระบุจำเป็น
  • anyOf 1object
  • idstring

    format: "uuid"

  • product_idstring

    format: "uuid"

  • namestring
  • subjectstring
  • body_textstring
  • contentobject
  • พร็อพเพอร์ตีเพิ่มเติมstring
  • slotsarray
  • แต่ละรายการobject
  • keystringจำเป็น

    pattern: "^[A-Za-z0-9_$.-]{1,200}$"

    ละส่วนที่ซ้อนลึกกว่านี้

  • labelstring

    maxLength: 120

    ละส่วนที่ซ้อนลึกกว่านี้

  • typestring

    enum: "text", "paragraph", "url", "image"

    ละส่วนที่ซ้อนลึกกว่านี้

  • helpstring

    maxLength: 300

    ละส่วนที่ซ้อนลึกกว่านี้

  • statusstring

    enum: "active", "archived"

  • originstring

    enum: "person", "agent", "starter", "import"

  • created_by_actor_idstring | null
  • campaign_idstring | null

    format: "uuid"

  • message_kindstring
  • starter_idstring | null
  • starter_versioninteger | null
  • versioninteger
  • created_atstring

    format: "date-time"

  • updated_atstring

    format: "date-time"

  • body_html_urlstring

    format: "uri"

  • body_htmlstring | null
  • body_html_b2_keystring | null
  • anyOf 2null
  • managed_contentไม่ได้ระบุจำเป็น
  • anyOf 1ไม่ได้ระบุ
  • allOf 1object
  • idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • versionintegerจำเป็น

    minimum: 1

  • review_requiredbooleanจำเป็น
  • draft_revision_idstring | null

    format: "uuid"

  • submitted_revision_idstring | null

    format: "uuid"

  • approved_revision_idstring | null

    format: "uuid"

  • published_revision_idstring | null

    format: "uuid"

  • published_publication_idstring | null

    format: "uuid"

  • source_revisionobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • translationsarray
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • translation_jobsarray
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • allOf 2object
  • source_revisionไม่ได้ระบุจำเป็น
  • anyOf 1object

    ละส่วนที่ซ้อนลึกกว่านี้

  • anyOf 2null

    ละส่วนที่ซ้อนลึกกว่านี้

  • published_source_revisionไม่ได้ระบุจำเป็น
  • anyOf 1object

    ละส่วนที่ซ้อนลึกกว่านี้

  • anyOf 2null

    ละส่วนที่ซ้อนลึกกว่านี้

  • translationsarrayจำเป็น
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • anyOf 2null
  • subjectstring | nullจำเป็น
  • sender_mailboxไม่ได้ระบุจำเป็น
  • anyOf 1object
  • idstringจำเป็น

    format: "uuid"

  • addressstringจำเป็น
  • display_namestringจำเป็น
  • statusstringจำเป็น
  • anyOf 2null
  • reply_mailboxไม่ได้ระบุจำเป็น
  • anyOf 1object
  • idstringจำเป็น

    format: "uuid"

  • addressstringจำเป็น
  • display_namestringจำเป็น
  • statusstringจำเป็น
  • anyOf 2null
  • design_versioninteger | nullจำเป็น
  • audienceobjectจำเป็น

    เลือกรายชื่อติดต่อที่สมัครทั้งหมด หรืออย่างน้อยหนึ่งรายการ contact_ids, list_ids หรือ segment_ids ที่ไม่ว่าง

  • all_subscribedboolean
  • contact_idsarray

    maxItems: 10000

  • แต่ละรายการstring

    format: "uuid"

  • list_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

  • segment_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/broadcasts/{broadcastId}' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001'
PATCH/v1/workspaces/{workspaceId}/broadcasts/{broadcastId}

updateBroadcast

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

broadcastId
path · จำเป็น
  • valuestring

    format: "uuid"

Idempotency-Key
header · จำเป็น
  • valuestring

    minLength: 1 · maxLength: 256

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • namestring

    minLength: 1 · maxLength: 200

  • mailbox_idstring

    format: "uuid"

  • template_idstring

    format: "uuid"

  • audienceobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • all_subscribedboolean
  • contact_idsarray

    maxItems: 10000

  • แต่ละรายการstring

    format: "uuid"

  • list_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

  • segment_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

  • subject_variantsarray

    maxItems: 8

  • แต่ละรายการstring

    minLength: 1 · maxLength: 998

  • selected_subject_variantinteger

    minimum: 0 · maximum: 7

  • expires_after_secondsinteger

    ยกเลิกผู้รับที่ยังไม่ส่งหลังจำนวนวินาทีนี้นับจากเวลาที่ตั้งไว้

    minimum: 1 · maximum: 604800

  • content_overridesobject
  • พร็อพเพอร์ตีเพิ่มเติมstring

    maxLength: 20000

  • expected_versionintegerจำเป็น

    minimum: 1

การตอบกลับสำเร็จ 200

ข้อมูลหลักที่อ่านกลับหรือใบรับแบบ idempotent ผู้ให้บริการรับแล้วคือ sent ส่วน delivered ต้องมีเหตุการณ์ส่งถึงและไม่ยืนยันว่าเข้ากล่องจดหมายเข้า

application/json

  • valueobject
  • dataไม่ได้ระบุจำเป็น
  • allOf 1object
  • idstringจำเป็น

    format: "uuid"

  • product_idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • mailbox_idstring

    format: "uuid"

  • template_idstring | null

    format: "uuid"

  • managed_content_idstring | null

    format: "uuid"

  • managed_source_revision_idstring | null

    format: "uuid"

  • managed_publication_idstring | null

    format: "uuid"

  • managed_locales_snapshotarray
  • แต่ละรายการstring
  • expires_after_secondsinteger | null
  • statusstring
  • versionintegerจำเป็น
  • subject_variantsarray
  • แต่ละรายการstring
  • selected_subject_variantinteger
  • content_overridesobject
  • พร็อพเพอร์ตีเพิ่มเติมstring
  • audience_queryobject

    เลือกรายชื่อติดต่อที่สมัครทั้งหมด หรืออย่างน้อยหนึ่งรายการ contact_ids, list_ids หรือ segment_ids ที่ไม่ว่าง

  • all_subscribedboolean
  • contact_idsarray

    maxItems: 10000

  • แต่ละรายการstring

    format: "uuid"

  • list_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

  • segment_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

  • audience_frozen_atstring | null

    format: "date-time"

  • audience_recipient_countinteger | null
  • audience_snapshot_sha256string | null
  • audience_snapshot_campaign_versioninteger | null
  • scheduled_atstring | null

    format: "date-time"

  • started_atstring | null

    format: "date-time"

  • completed_atstring | null

    format: "date-time"

  • created_atstring

    format: "date-time"

  • updated_atstring

    format: "date-time"

  • archived_atstring | null

    format: "date-time"

  • statsobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • broadcast_idstringจำเป็น

    format: "uuid"

  • sender_addressstring | nullจำเป็น
  • sending_blockerไม่ได้ระบุจำเป็น
  • anyOf 1object
  • codestringจำเป็น
  • messagestringจำเป็น
  • anyOf 2null
  • designไม่ได้ระบุจำเป็น
  • anyOf 1object
  • idstring

    format: "uuid"

  • product_idstring

    format: "uuid"

  • namestring
  • subjectstring
  • body_textstring
  • contentobject
  • พร็อพเพอร์ตีเพิ่มเติมstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • slotsarray
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • statusstring

    enum: "active", "archived"

  • originstring

    enum: "person", "agent", "starter", "import"

  • created_by_actor_idstring | null
  • campaign_idstring | null

    format: "uuid"

  • message_kindstring
  • starter_idstring | null
  • starter_versioninteger | null
  • versioninteger
  • created_atstring

    format: "date-time"

  • updated_atstring

    format: "date-time"

  • body_html_urlstring

    format: "uri"

  • body_htmlstring | null
  • body_html_b2_keystring | null
  • anyOf 2null
  • managed_contentไม่ได้ระบุจำเป็น
  • anyOf 1ไม่ได้ระบุ
  • allOf 1object
  • idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • namestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • versionintegerจำเป็น

    minimum: 1

    ละส่วนที่ซ้อนลึกกว่านี้

  • review_requiredbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • draft_revision_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • submitted_revision_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • approved_revision_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • published_revision_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • published_publication_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • source_revisionobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • translationsarray

    ละส่วนที่ซ้อนลึกกว่านี้

  • translation_jobsarray

    ละส่วนที่ซ้อนลึกกว่านี้

  • allOf 2object
  • source_revisionไม่ได้ระบุจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • published_source_revisionไม่ได้ระบุจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • translationsarrayจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • anyOf 2null
  • subjectstring | nullจำเป็น
  • sender_mailboxไม่ได้ระบุจำเป็น
  • anyOf 1object
  • idstringจำเป็น

    format: "uuid"

  • addressstringจำเป็น
  • display_namestringจำเป็น
  • statusstringจำเป็น
  • anyOf 2null
  • reply_mailboxไม่ได้ระบุจำเป็น
  • anyOf 1object
  • idstringจำเป็น

    format: "uuid"

  • addressstringจำเป็น
  • display_namestringจำเป็น
  • statusstringจำเป็น
  • anyOf 2null
  • design_versioninteger | nullจำเป็น
  • audienceobjectจำเป็น

    เลือกรายชื่อติดต่อที่สมัครทั้งหมด หรืออย่างน้อยหนึ่งรายการ contact_ids, list_ids หรือ segment_ids ที่ไม่ว่าง

  • all_subscribedboolean
  • contact_idsarray

    maxItems: 10000

  • แต่ละรายการstring

    format: "uuid"

  • list_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

  • segment_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

  • allOf 2object
  • replayedbooleanจำเป็น

ตัวอย่าง curl

curl --request PATCH --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/broadcasts/{broadcastId}' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001' \
  --header 'Idempotency-Key: example' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "name": "example",
  "mailbox_id": "00000000-0000-4000-8000-000000000001",
  "template_id": "00000000-0000-4000-8000-000000000001",
  "audience": {
    "all_subscribed": true,
    "contact_ids": [
      "00000000-0000-4000-8000-000000000001"
    ],
    "list_ids": [
      "00000000-0000-4000-8000-000000000001"
    ],
    "segment_ids": [
      "00000000-0000-4000-8000-000000000001"
    ]
  },
  "subject_variants": [
    "example"
  ],
  "selected_subject_variant": 0,
  "expires_after_seconds": 1,
  "content_overrides": {},
  "expected_version": 1
}'
POST/v1/workspaces/{workspaceId}/broadcasts/audience-preview

previewBroadcastAudience

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • audienceobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • all_subscribedboolean
  • contact_idsarray

    maxItems: 10000

  • แต่ละรายการstring

    format: "uuid"

  • list_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

  • segment_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

  • template_idstring

    format: "uuid"

  • subjectstring

    minLength: 0 · maxLength: 10000

  • content_overridesobject
  • พร็อพเพอร์ตีเพิ่มเติมstring

    maxLength: 20000

การตอบกลับสำเร็จ 200

ข้อมูลหลักที่อ่านกลับหรือใบรับแบบ idempotent ผู้ให้บริการรับแล้วคือ sent ส่วน delivered ต้องมีเหตุการณ์ส่งถึงและไม่ยืนยันว่าเข้ากล่องจดหมายเข้า

application/json

  • valueobject
  • dataไม่ได้ระบุจำเป็น
  • allOf 1object
  • countintegerจำเป็น
  • missing_consent_evidence_countintegerจำเป็น
  • samplearrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • emailstringจำเป็น
  • display_namestring | nullจำเป็น
  • attributesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • excludedobjectจำเป็น
  • suppressedintegerจำเป็น
  • not_subscribedintegerจำเป็น
  • missing_recipient_hashintegerจำเป็น
  • missing_consent_evidenceintegerจำเป็น
  • allOf 2object
  • eligible_countintegerจำเป็น
  • required_variablesarrayจำเป็น
  • แต่ละรายการstring
  • missing_personalization_fieldsarrayจำเป็น
  • แต่ละรายการobject
  • variablestringจำเป็น
  • missingCountintegerจำเป็น
  • sampleEmailsarrayจำเป็น
  • แต่ละรายการstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • audienceobjectจำเป็น

    เลือกรายชื่อติดต่อที่สมัครทั้งหมด หรืออย่างน้อยหนึ่งรายการ contact_ids, list_ids หรือ segment_ids ที่ไม่ว่าง

  • all_subscribedboolean
  • contact_idsarray

    maxItems: 10000

  • แต่ละรายการstring

    format: "uuid"

  • list_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

  • segment_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/broadcasts/audience-preview' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "audience": {
    "all_subscribed": true,
    "contact_ids": [
      "00000000-0000-4000-8000-000000000001"
    ],
    "list_ids": [
      "00000000-0000-4000-8000-000000000001"
    ],
    "segment_ids": [
      "00000000-0000-4000-8000-000000000001"
    ]
  },
  "template_id": "00000000-0000-4000-8000-000000000001",
  "subject": "example",
  "content_overrides": {}
}'
POST/v1/workspaces/{workspaceId}/broadcasts/{broadcastId}/audience-preview

previewSavedBroadcastAudience

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

broadcastId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • audienceobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • all_subscribedboolean
  • contact_idsarray

    maxItems: 10000

  • แต่ละรายการstring

    format: "uuid"

  • list_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

  • segment_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

การตอบกลับสำเร็จ 200

ข้อมูลหลักที่อ่านกลับหรือใบรับแบบ idempotent ผู้ให้บริการรับแล้วคือ sent ส่วน delivered ต้องมีเหตุการณ์ส่งถึงและไม่ยืนยันว่าเข้ากล่องจดหมายเข้า

application/json

  • valueobject
  • dataไม่ได้ระบุจำเป็น
  • allOf 1object
  • countintegerจำเป็น
  • missing_consent_evidence_countintegerจำเป็น
  • samplearrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • emailstringจำเป็น
  • display_namestring | nullจำเป็น
  • attributesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • excludedobjectจำเป็น
  • suppressedintegerจำเป็น
  • not_subscribedintegerจำเป็น
  • missing_recipient_hashintegerจำเป็น
  • missing_consent_evidenceintegerจำเป็น
  • allOf 2object
  • eligible_countintegerจำเป็น
  • required_variablesarrayจำเป็น
  • แต่ละรายการstring
  • missing_personalization_fieldsarrayจำเป็น
  • แต่ละรายการobject
  • variablestringจำเป็น
  • missingCountintegerจำเป็น
  • sampleEmailsarrayจำเป็น
  • แต่ละรายการstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • audienceobjectจำเป็น

    เลือกรายชื่อติดต่อที่สมัครทั้งหมด หรืออย่างน้อยหนึ่งรายการ contact_ids, list_ids หรือ segment_ids ที่ไม่ว่าง

  • all_subscribedboolean
  • contact_idsarray

    maxItems: 10000

  • แต่ละรายการstring

    format: "uuid"

  • list_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

  • segment_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/broadcasts/{broadcastId}/audience-preview' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "audience": {
    "all_subscribed": true,
    "contact_ids": [
      "00000000-0000-4000-8000-000000000001"
    ],
    "list_ids": [
      "00000000-0000-4000-8000-000000000001"
    ],
    "segment_ids": [
      "00000000-0000-4000-8000-000000000001"
    ]
  }
}'
GET/v1/workspaces/{workspaceId}/broadcasts/{broadcastId}/readiness

checkBroadcastReadiness

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

broadcastId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

ข้อมูลหลักที่อ่านกลับหรือใบรับแบบ idempotent ผู้ให้บริการรับแล้วคือ sent ส่วน delivered ต้องมีเหตุการณ์ส่งถึงและไม่ยืนยันว่าเข้ากล่องจดหมายเข้า

application/json

  • valueobject
  • dataobjectจำเป็น
  • broadcast_idstringจำเป็น

    format: "uuid"

  • product_idstringจำเป็น

    format: "uuid"

  • readybooleanจำเป็น
  • blockersarrayจำเป็น
  • แต่ละรายการobject
  • codestringจำเป็น
  • messagestringจำเป็น
  • audienceไม่ได้ระบุจำเป็น
  • allOf 1object
  • countintegerจำเป็น
  • missing_consent_evidence_countintegerจำเป็น
  • samplearrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • emailstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • display_namestring | nullจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • attributesobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • excludedobjectจำเป็น
  • suppressedintegerจำเป็น
  • not_subscribedintegerจำเป็น
  • missing_recipient_hashintegerจำเป็น
  • missing_consent_evidenceintegerจำเป็น
  • allOf 2object
  • eligible_countintegerจำเป็น
  • required_variablesarrayจำเป็น
  • แต่ละรายการstring
  • missing_personalization_fieldsarrayจำเป็น
  • แต่ละรายการobject
  • variablestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • missingCountintegerจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • sampleEmailsarrayจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • audienceobjectจำเป็น

    เลือกรายชื่อติดต่อที่สมัครทั้งหมด หรืออย่างน้อยหนึ่งรายการ contact_ids, list_ids หรือ segment_ids ที่ไม่ว่าง

  • all_subscribedboolean
  • contact_idsarray

    maxItems: 10000

  • แต่ละรายการstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • list_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • segment_idsarray

    maxItems: 1000

  • แต่ละรายการstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • campaign_versionintegerจำเป็น
  • design_versioninteger | nullจำเป็น
  • languagesไม่ได้ระบุจำเป็น
  • anyOf 1object

    ภาษาผู้รับที่ยังแปลไม่ทำให้แคมเปญรอ ผู้อ่านได้รับเมื่อคำแปลพร้อม และข้าม (translation_failed, translation_awaiting_review หรือ translation_still_preparing) หากไม่พร้อมภายในหนึ่งวันหลังส่ง

  • requestedarrayจำเป็น
  • แต่ละรายการobject
  • localestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • countintegerจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • pending_localesarrayจำเป็น
  • แต่ละรายการstring
  • waiting_localesarrayจำเป็น
  • แต่ละรายการstring
  • anyOf 2null
  • sendingobjectจำเป็น
  • route_kindstring | null
  • sending_stream_idstring | null

    format: "uuid"

  • banger_send_limitinteger | string | null
  • daily_send_limitinteger | string | null
  • usedinteger | string | null
  • daily_usedinteger | string | null
  • delivery_paceไม่ได้ระบุจำเป็น
  • anyOf 1object
  • daysintegerจำเป็น
  • daily_limitintegerจำเป็น
  • messagestringจำเป็น
  • anyOf 2null
  • approval_requirementsobjectจำเป็น
  • dispositionstringจำเป็น

    enum: "automatic", "human_required"

  • recipient_countinteger | nullจำเป็น
  • reasonsarrayจำเป็น
  • แต่ละรายการstring
  • checksarrayจำเป็น
  • แต่ละรายการstring
  • footerobjectจำเป็น
  • identity_presentbooleanจำเป็น
  • address_presentbooleanจำเป็น
  • checks_are_advisorybooleanจำเป็น

    const: true

  • next_actionstringจำเป็น

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/broadcasts/{broadcastId}/readiness' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001'
GET/v1/workspaces/{workspaceId}/broadcasts/{broadcastId}/recipients

listBroadcastRecipients

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

broadcastId
path · จำเป็น
  • valuestring

    format: "uuid"

cursor
query
  • valuestring

    minLength: 0 · maxLength: 1024

limit
query
  • valueinteger

    minimum: 1 · maximum: 100

status
query
  • valuestring

    enum: "pending", "queued", "sent", "delivered", "failed", "skipped", "bounced", "complained"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

ข้อมูลหลักที่อ่านกลับหรือใบรับแบบ idempotent ผู้ให้บริการรับแล้วคือ sent ส่วน delivered ต้องมีเหตุการณ์ส่งถึงและไม่ยืนยันว่าเข้ากล่องจดหมายเข้า

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject
  • contact_idstring | null

    format: "uuid"

  • recipient_emailstring
  • recipient_namestring | null
  • recipient_hashstring
  • variant_keystring | null

    Persisted Broadcast experiment arm, or holdback before a winner is chosen. Null for a Broadcast without an experiment.

  • statusstring
  • dispatch_statusstring
  • command_idstring | null

    format: "uuid"

  • error_codestring | null
  • created_atstring

    format: "date-time"

  • updated_atstring

    format: "date-time"

  • delivery_statestring | null
  • provider_message_keystring | null
  • last_event_atstring | null

    format: "date-time"

  • first_delivered_atstring | null

    format: "date-time"

  • first_opened_atstring | null

    format: "date-time"

  • first_clicked_atstring | null

    format: "date-time"

  • first_human_likely_opened_atstring | null

    format: "date-time"

  • first_human_likely_clicked_atstring | null

    format: "date-time"

  • first_replied_atstring | null

    format: "date-time"

  • machine_open_countinteger
  • machine_click_countinteger
  • privacy_proxy_open_countinteger
  • unknown_open_countinteger
  • unknown_click_countinteger
  • first_unsubscribed_atstring | null

    format: "date-time"

  • pageobjectจำเป็น
  • next_cursorstring
  • has_morebooleanจำเป็น
  • delivery_semanticsstringจำเป็น

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/broadcasts/{broadcastId}/recipients?cursor=example&limit=1&status=pending' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001'
GET/v1/workspaces/{workspaceId}/broadcasts/{broadcastId}/timeline

listBroadcastTimeline

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

broadcastId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

ข้อมูลหลักที่อ่านกลับหรือใบรับแบบ idempotent ผู้ให้บริการรับแล้วคือ sent ส่วน delivered ต้องมีเหตุการณ์ส่งถึงและไม่ยืนยันว่าเข้ากล่องจดหมายเข้า

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น
  • typestringจำเป็น
  • occurred_atstringจำเป็น

    format: "date-time"

  • actor_idstring | nullจำเป็น
  • detailobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • delivery_semanticsstringจำเป็น

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/broadcasts/{broadcastId}/timeline' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001'

เส้นทาง

GET/v1/workspaces/{workspaceId}/journeys

listJourneys

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

status
query
  • valuestring

    enum: "draft", "discovered", "active", "paused", "archived"

trigger_kind
query
  • valuestring
testing
query
  • valuestring

    enum: "1"

q
query
  • valuestring

    maxLength: 200

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

เส้นทางผลิตภัณฑ์

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการไม่ได้ระบุ
  • allOf 1object

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • namestringจำเป็น

    minLength: 1 · maxLength: 200

  • descriptionstring

    maxLength: 2000

  • mailbox_idstring

    ผู้ส่งที่มีอยู่ ไม่ระบุเพื่อเลือกผู้ส่งเริ่มต้นก่อน แล้วกล่องจดหมายกำหนดเองที่ใช้งาน แล้วกล่องที่โฮสต์ ผู้ส่งที่บันทึกและระบุชัดไม่เปลี่ยน

    format: "uuid"

  • from_local_partstring

    maxLength: 64 · pattern: "^[a-z0-9][a-z0-9._+-]{0,62}$"

  • triggerobjectจำเป็น
  • kindstringจำเป็น

    enum: "manual", "contact_created", "audience_joined", "event", "schedule", "inbound_email", "email_replied", "api"

  • connection_idstring

    format: "uuid"

  • configobject
  • eventstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • everyinteger

    สำหรับทริกเกอร์แบบตั้งเวลา เป็นช่วงตามปฏิทินนับจากวันที่เปิดใช้งานตามเวลาท้องถิ่น

    minimum: 1 · maximum: 366 · default: 1

    ละส่วนที่ซ้อนลึกกว่านี้

  • unitstring

    สำหรับทริกเกอร์แบบตั้งเวลา หากวันนั้นไม่มีในเดือน จะใช้วันสุดท้ายของเดือนโดยไม่เปลี่ยนวันอ้างอิงเดิม

    default: "weeks" · enum: "days", "weeks", "months"

    ละส่วนที่ซ้อนลึกกว่านี้

  • timestring

    เวลาตามนาฬิกาท้องถิ่นของกำหนดการ ครั้งแรกต้องเกิดหลังการเปิดใช้งานเท่านั้น เวลาที่ไม่มีอยู่เนื่องจาก DST จะถูกข้าม และเวลาท้องถิ่นที่ซ้ำจะทำงานเพียงครั้งเดียว

    pattern: "^([01][0-9]|2[0-3]):[0-5][0-9]$" · default: "09:00"

    ละส่วนที่ซ้อนลึกกว่านี้

  • timezonestring

    เขตเวลา IANA สำหรับทริกเกอร์แบบตั้งเวลา หลังระบบหยุดทำงาน จะเรียกคืนเฉพาะครั้งล่าสุดที่ถึงกำหนด เวลาที่พลาดระหว่างหยุดชั่วคราวจะถูกข้าม เงื่อนไขทริกเกอร์ต้องว่าง ให้เลือกรายชื่อติดต่อด้วย audience กฎการตรวจทาน การระงับส่ง และการเข้าร่วมซ้ำตามปกติยังคงใช้

    default: "UTC"

    ละส่วนที่ซ้อนลึกกว่านี้

  • once_per_personboolean

    แต่ละคนเข้าร่วมครั้งเดียว ตั้ง false เพื่อให้เข้าร่วมอีกหลังเสร็จ

    default: true

    ละส่วนที่ซ้อนลึกกว่านี้

  • reentry_daysinteger

    เมื่อ once_per_person เป็น false จำนวนวันหลังการเข้าร่วมล่าสุดก่อนเข้าร่วมอีกได้

    minimum: 1 · maximum: 365

    ละส่วนที่ซ้อนลึกกว่านี้

  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • conditionsarray
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • audienceobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • goalobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • kindstringจำเป็น

    enum: "none", "event", "reply", "conversion"

  • connection_idstring

    format: "uuid"

  • configobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • exitobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • on_replyboolean

    default: true

  • on_unsubscribeboolean

    default: true

  • on_suppressionboolean

    default: true

  • eventstring

    maxLength: 200

  • approval_modestring

    enum: "policy", "required"

  • apiobject
  • keystring

    maxLength: 100

  • content_modestring

    enum: "code", "managed"

  • identitystring

    maxLength: 300

  • managed_contentobject

    ทางลัดเฉพาะสร้าง: บันทึกฉบับร่างอีเมลที่จัดการต้นฉบับและเส้นทางที่ขั้นตอนอีเมลอ้างถึงแบบอะตอม ภาษาปลายทางที่ขาดเข้าคิวแปลฟรี ไม่เผยแพร่หรือเปิดเส้นทาง

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • source_localestring

    โลแคลต้นฉบับ BCP 47 ตามข้อมูลหลัก หากไม่ระบุจะสืบทอดการตั้งค่าผลิตภัณฑ์

  • configured_localesarray

    โลแคลต้นฉบับและปลายทาง เซิร์ฟเวอร์เพิ่มต้นฉบับที่ไม่ได้ระบุ

    maxItems: 100 · uniqueItems: true

  • แต่ละรายการstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • fallback_localestring
  • layout_idstring

    เลย์เอาต์ใช้ซ้ำที่เลือก เซิร์ฟเวอร์เก็บภาพรวมฉบับที่เผยแพร่ในฉบับเนื้อหานี้

    format: "uuid"

  • localization_policyobject

    อีเมลเส้นทางส่งเฉพาะภาษาของบุคคลนั้น รอคำแปลประมาณหนึ่งนาทีสำหรับใบเสร็จ รหัส และแจ้งความปลอดภัย และสูงสุดหนึ่งวันสำหรับอีเมลอื่น ไม่ส่งหากคำแปลยังไม่พร้อมเมื่อครบเวลา

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • manual_reviewboolean

    default: false

    ละส่วนที่ซ้อนลึกกว่านี้

  • sourceobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • subjectstringจำเป็น

    minLength: 1 · maxLength: 100000

    ละส่วนที่ซ้อนลึกกว่านี้

  • preheaderstring

    maxLength: 100000

    ละส่วนที่ซ้อนลึกกว่านี้

  • body_textstring

    รับเพื่อรองรับต้นฉบับ ข้อความล้วนที่เรนเดอร์ได้มาจาก HTML สุดท้าย

    maxLength: 100000

    ละส่วนที่ซ้อนลึกกว่านี้

  • body_htmlstringจำเป็น

    minLength: 1 · maxLength: 100000

    ละส่วนที่ซ้อนลึกกว่านี้

  • layoutstring

    ต้องมีสล็อต {{ content }} หนึ่งแห่ง

    maxLength: 100000

    ละส่วนที่ซ้อนลึกกว่านี้

  • variantsobject

    เวอร์ชันต้นฉบับที่ไม่บังคับ ทุกเวอร์ชันแปลอัตโนมัติในฉบับเดียวกัน

    ละส่วนที่ซ้อนลึกกว่านี้

  • variablesobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • samplesobject

    ชุดค่าตัวอย่างที่มีชื่อสำหรับแสดงตัวอย่างและตรวจสอบต้นฉบับ

  • พร็อพเพอร์ตีเพิ่มเติมobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • translationsobject

    แค็ตตาล็อกข้อความ ICU ต้นฉบับและแค็ตตาล็อกปลายทางที่ส่งมาซึ่งไม่บังคับ ปลายทางที่ตั้งค่าแต่ขาดเข้าคิวแปลแบบอะซิงโครนัส ไม่ต้องมีเพื่อบันทึก

  • พร็อพเพอร์ตีเพิ่มเติมobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • stepsarrayจำเป็น

    maxItems: 100

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • positioninteger

    minimum: 1 · maximum: 100

    ละส่วนที่ซ้อนลึกกว่านี้

  • kindstringจำเป็น

    enum: "email", "sms", "whatsapp", "wait", "condition", "action", "split"

    ละส่วนที่ซ้อนลึกกว่านี้

  • namestringจำเป็น

    minLength: 1 · maxLength: 200

    ละส่วนที่ซ้อนลึกกว่านี้

  • managed_contentobject

    สัญญาต้นฉบับที่ระบุชนิดและตัวตนฉบับร่าง/ฉบับเผยแพร่สำหรับขั้นตอนอีเมล

    ละส่วนที่ซ้อนลึกกว่านี้

  • configobjectจำเป็น

    ขั้นตอนรอรับ until ได้โดยไม่บังคับ โดยมี name, path, operator (equals, not_equals, contains หรือ exists) และ value พร้อม on_met ที่จำเป็น (continue หรือ end_journey) continue ข้ามอีเมลเตือนที่ตามมา ส่วน end_journey สิ้นสุดเส้นทาง ต้องมีอีเมลเตือนตามหลังทันทีในสาขาเดียวกัน ขั้นตอนรอตรวจข้อมูลลูกค้าปัจจุบันทุกนาทีจนครบ amount/unit ฟิลด์ที่ขาดถือว่าไม่ทราบค่าและจะพักอีเมลเตือนไว้ การรอทั่วไปและเงื่อนไขแยกยังทำงานตามเดิม ตั้งชื่อการตรวจตามเหตุการณ์สำคัญของลูกค้าที่ตรวจยืนยันแล้ว ขั้นตอนอีเมลที่จัดการอ้างอิงเนื้อหาที่เผยแพร่ผ่าน managed_content_id การเปิดใช้งานจะปฏิเสธการอ้างอิงที่ยังไม่เผยแพร่ ทุกขั้นตอนอีเมลกำหนด delivery_class เป็น product (อีเมลธุรกรรม เช่น ใบเสร็จและอีเมลบัญชี) หรือ broadcast (การตลาด ซึ่งมีลิงก์ยกเลิกการสมัครและต้องมีชื่อบริษัทกับที่อยู่ไปรษณีย์ในแบรนด์ของผลิตภัณฑ์) ขั้นตอนที่ไม่ระบุจะถูกปฏิเสธด้วย 400 journey_delivery_class_required ขั้นตอนอีเมลอาจกำหนด expires_after_seconds (1-604800) เพื่อยกเลิกการส่งที่เลื่อนเมื่อพ้นช่วงเวลานั้นนับจากเวลาเริ่มต้นเดิม ค่าเริ่มต้นคือเจ็ดวัน

    ละส่วนที่ซ้อนลึกกว่านี้

  • armsarray

    minItems: 2 · maxItems: 4

    ละส่วนที่ซ้อนลึกกว่านี้

  • allOf 2object
  • idstringจำเป็น

    format: "uuid"

  • statusstringจำเป็น

    enum: "draft", "discovered", "active", "paused", "archived"

  • api_keystring | null
  • content_modestring | null

    enum: "code", "managed", null

  • identitystring | null
  • identity_aliasesarray
  • แต่ละรายการstring
  • samplesarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • versionintegerจำเป็น

    minimum: 1

  • statsobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • stepStatsarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • armStatsarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • healthobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • indicatorobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • sparklinearrayจำเป็น
  • แต่ละรายการnumber
  • activated_atstring | null

    format: "date-time"

  • updated_atstring

    format: "date-time"

  • last_activity_atstring | null

    format: "date-time"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/journeys?status=draft&trigger_kind=example&testing=1&q=example' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/journeys

createJourney

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

Idempotency-Key
header · จำเป็น
  • valuestring

    minLength: 16 · maxLength: 128

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • namestringจำเป็น

    minLength: 1 · maxLength: 200

  • descriptionstring

    maxLength: 2000

  • mailbox_idstring

    ผู้ส่งที่มีอยู่ ไม่ระบุเพื่อเลือกผู้ส่งเริ่มต้นก่อน แล้วกล่องจดหมายกำหนดเองที่ใช้งาน แล้วกล่องที่โฮสต์ ผู้ส่งที่บันทึกและระบุชัดไม่เปลี่ยน

    format: "uuid"

  • from_local_partstring

    maxLength: 64 · pattern: "^[a-z0-9][a-z0-9._+-]{0,62}$"

  • triggerobjectจำเป็น
  • kindstringจำเป็น

    enum: "manual", "contact_created", "audience_joined", "event", "schedule", "inbound_email", "email_replied", "api"

  • connection_idstring

    format: "uuid"

  • configobject
  • eventstring
  • everyinteger

    สำหรับทริกเกอร์แบบตั้งเวลา เป็นช่วงตามปฏิทินนับจากวันที่เปิดใช้งานตามเวลาท้องถิ่น

    minimum: 1 · maximum: 366 · default: 1

  • unitstring

    สำหรับทริกเกอร์แบบตั้งเวลา หากวันนั้นไม่มีในเดือน จะใช้วันสุดท้ายของเดือนโดยไม่เปลี่ยนวันอ้างอิงเดิม

    default: "weeks" · enum: "days", "weeks", "months"

  • timestring

    เวลาตามนาฬิกาท้องถิ่นของกำหนดการ ครั้งแรกต้องเกิดหลังการเปิดใช้งานเท่านั้น เวลาที่ไม่มีอยู่เนื่องจาก DST จะถูกข้าม และเวลาท้องถิ่นที่ซ้ำจะทำงานเพียงครั้งเดียว

    pattern: "^([01][0-9]|2[0-3]):[0-5][0-9]$" · default: "09:00"

  • timezonestring

    เขตเวลา IANA สำหรับทริกเกอร์แบบตั้งเวลา หลังระบบหยุดทำงาน จะเรียกคืนเฉพาะครั้งล่าสุดที่ถึงกำหนด เวลาที่พลาดระหว่างหยุดชั่วคราวจะถูกข้าม เงื่อนไขทริกเกอร์ต้องว่าง ให้เลือกรายชื่อติดต่อด้วย audience กฎการตรวจทาน การระงับส่ง และการเข้าร่วมซ้ำตามปกติยังคงใช้

    default: "UTC"

  • once_per_personboolean

    แต่ละคนเข้าร่วมครั้งเดียว ตั้ง false เพื่อให้เข้าร่วมอีกหลังเสร็จ

    default: true

  • reentry_daysinteger

    เมื่อ once_per_person เป็น false จำนวนวันหลังการเข้าร่วมล่าสุดก่อนเข้าร่วมอีกได้

    minimum: 1 · maximum: 365

  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • conditionsarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • audienceobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • goalobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • kindstringจำเป็น

    enum: "none", "event", "reply", "conversion"

  • connection_idstring

    format: "uuid"

  • configobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • exitobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • on_replyboolean

    default: true

  • on_unsubscribeboolean

    default: true

  • on_suppressionboolean

    default: true

  • eventstring

    maxLength: 200

  • approval_modestring

    enum: "policy", "required"

  • apiobject
  • keystring

    maxLength: 100

  • content_modestring

    enum: "code", "managed"

  • identitystring

    maxLength: 300

  • managed_contentobject

    ทางลัดเฉพาะสร้าง: บันทึกฉบับร่างอีเมลที่จัดการต้นฉบับและเส้นทางที่ขั้นตอนอีเมลอ้างถึงแบบอะตอม ภาษาปลายทางที่ขาดเข้าคิวแปลฟรี ไม่เผยแพร่หรือเปิดเส้นทาง

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • source_localestring

    โลแคลต้นฉบับ BCP 47 ตามข้อมูลหลัก หากไม่ระบุจะสืบทอดการตั้งค่าผลิตภัณฑ์

  • configured_localesarray

    โลแคลต้นฉบับและปลายทาง เซิร์ฟเวอร์เพิ่มต้นฉบับที่ไม่ได้ระบุ

    maxItems: 100 · uniqueItems: true

  • แต่ละรายการstring
  • fallback_localestring
  • layout_idstring

    เลย์เอาต์ใช้ซ้ำที่เลือก เซิร์ฟเวอร์เก็บภาพรวมฉบับที่เผยแพร่ในฉบับเนื้อหานี้

    format: "uuid"

  • localization_policyobject

    อีเมลเส้นทางส่งเฉพาะภาษาของบุคคลนั้น รอคำแปลประมาณหนึ่งนาทีสำหรับใบเสร็จ รหัส และแจ้งความปลอดภัย และสูงสุดหนึ่งวันสำหรับอีเมลอื่น ไม่ส่งหากคำแปลยังไม่พร้อมเมื่อครบเวลา

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • manual_reviewboolean

    default: false

  • sourceobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • subjectstringจำเป็น

    minLength: 1 · maxLength: 100000

  • preheaderstring

    maxLength: 100000

  • body_textstring

    รับเพื่อรองรับต้นฉบับ ข้อความล้วนที่เรนเดอร์ได้มาจาก HTML สุดท้าย

    maxLength: 100000

  • body_htmlstringจำเป็น

    minLength: 1 · maxLength: 100000

  • layoutstring

    ต้องมีสล็อต {{ content }} หนึ่งแห่ง

    maxLength: 100000

  • variantsobject

    เวอร์ชันต้นฉบับที่ไม่บังคับ ทุกเวอร์ชันแปลอัตโนมัติในฉบับเดียวกัน

  • พร็อพเพอร์ตีเพิ่มเติมobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • subjectstringจำเป็น

    minLength: 1 · maxLength: 100000

  • preheaderstring

    maxLength: 100000

  • body_htmlstringจำเป็น

    minLength: 1 · maxLength: 100000

  • body_textstring

    maxLength: 100000

  • layoutstring

    maxLength: 100000

  • variablesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมไม่ได้ระบุ

    ตัวแปรระบุชนิดแบบเรียกซ้ำ ค่าเงินใช้ {amount_cents: integer, currency: ISO 4217 code} ค่า date เป็นวันที่ปฏิทิน ISO และค่า datetime เป็นเวลาประทับ ISO พร้อมออฟเซ็ต

  • oneOf 1object

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • typestringจำเป็น

    enum: "string", "text", "url", "image_url", "html", "date", "datetime", "number", "boolean", "money"

    ละส่วนที่ซ้อนลึกกว่านี้

  • requiredboolean

    ละส่วนที่ซ้อนลึกกว่านี้

  • descriptionstring

    maxLength: 2000

    ละส่วนที่ซ้อนลึกกว่านี้

  • defaultไม่ได้ระบุ

    ต้องตรงกับชนิดฟิลด์

    ละส่วนที่ซ้อนลึกกว่านี้

  • oneOf 2object

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • typeไม่ได้ระบุจำเป็น

    const: "object"

    ละส่วนที่ซ้อนลึกกว่านี้

  • requiredboolean

    ละส่วนที่ซ้อนลึกกว่านี้

  • descriptionstring

    maxLength: 2000

    ละส่วนที่ซ้อนลึกกว่านี้

  • defaultobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • propertiesobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • oneOf 3object

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • typeไม่ได้ระบุจำเป็น

    const: "list"

    ละส่วนที่ซ้อนลึกกว่านี้

  • requiredboolean

    ละส่วนที่ซ้อนลึกกว่านี้

  • descriptionstring

    maxLength: 2000

    ละส่วนที่ซ้อนลึกกว่านี้

  • defaultarray

    ละส่วนที่ซ้อนลึกกว่านี้

  • itemsไม่ได้ระบุจำเป็น

    ตัวแปรระบุชนิดแบบเรียกซ้ำ ค่าเงินใช้ {amount_cents: integer, currency: ISO 4217 code} ค่า date เป็นวันที่ปฏิทิน ISO และค่า datetime เป็นเวลาประทับ ISO พร้อมออฟเซ็ต

    ละส่วนที่ซ้อนลึกกว่านี้

  • samplesobject

    ชุดค่าตัวอย่างที่มีชื่อสำหรับแสดงตัวอย่างและตรวจสอบต้นฉบับ

  • พร็อพเพอร์ตีเพิ่มเติมobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • translationsobject

    แค็ตตาล็อกข้อความ ICU ต้นฉบับและแค็ตตาล็อกปลายทางที่ส่งมาซึ่งไม่บังคับ ปลายทางที่ตั้งค่าแต่ขาดเข้าคิวแปลแบบอะซิงโครนัส ไม่ต้องมีเพื่อบันทึก

  • พร็อพเพอร์ตีเพิ่มเติมobject
  • พร็อพเพอร์ตีเพิ่มเติมstring
  • stepsarrayจำเป็น

    maxItems: 100

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstring

    format: "uuid"

  • positioninteger

    minimum: 1 · maximum: 100

  • kindstringจำเป็น

    enum: "email", "sms", "whatsapp", "wait", "condition", "action", "split"

  • namestringจำเป็น

    minLength: 1 · maxLength: 200

  • managed_contentobject

    สัญญาต้นฉบับที่ระบุชนิดและตัวตนฉบับร่าง/ฉบับเผยแพร่สำหรับขั้นตอนอีเมล

  • idstring

    format: "uuid"

  • versioninteger
  • draft_revision_idstring | null

    format: "uuid"

  • published_revision_idstring | null

    format: "uuid"

  • published_publication_idstring | null

    format: "uuid"

  • source_revision_idstring | null

    format: "uuid"

  • layout_revision_idstring | null

    format: "uuid"

  • published_layout_revision_idstring | null

    format: "uuid"

  • source_localestring | null
  • configured_localesarray
  • แต่ละรายการstring
  • variablesobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • published_variablesobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • configobjectจำเป็น

    ขั้นตอนรอรับ until ได้โดยไม่บังคับ โดยมี name, path, operator (equals, not_equals, contains หรือ exists) และ value พร้อม on_met ที่จำเป็น (continue หรือ end_journey) continue ข้ามอีเมลเตือนที่ตามมา ส่วน end_journey สิ้นสุดเส้นทาง ต้องมีอีเมลเตือนตามหลังทันทีในสาขาเดียวกัน ขั้นตอนรอตรวจข้อมูลลูกค้าปัจจุบันทุกนาทีจนครบ amount/unit ฟิลด์ที่ขาดถือว่าไม่ทราบค่าและจะพักอีเมลเตือนไว้ การรอทั่วไปและเงื่อนไขแยกยังทำงานตามเดิม ตั้งชื่อการตรวจตามเหตุการณ์สำคัญของลูกค้าที่ตรวจยืนยันแล้ว ขั้นตอนอีเมลที่จัดการอ้างอิงเนื้อหาที่เผยแพร่ผ่าน managed_content_id การเปิดใช้งานจะปฏิเสธการอ้างอิงที่ยังไม่เผยแพร่ ทุกขั้นตอนอีเมลกำหนด delivery_class เป็น product (อีเมลธุรกรรม เช่น ใบเสร็จและอีเมลบัญชี) หรือ broadcast (การตลาด ซึ่งมีลิงก์ยกเลิกการสมัครและต้องมีชื่อบริษัทกับที่อยู่ไปรษณีย์ในแบรนด์ของผลิตภัณฑ์) ขั้นตอนที่ไม่ระบุจะถูกปฏิเสธด้วย 400 journey_delivery_class_required ขั้นตอนอีเมลอาจกำหนด expires_after_seconds (1-604800) เพื่อยกเลิกการส่งที่เลื่อนเมื่อพ้นช่วงเวลานั้นนับจากเวลาเริ่มต้นเดิม ค่าเริ่มต้นคือเจ็ดวัน

  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • armsarray

    minItems: 2 · maxItems: 4

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • keystringจำเป็น

    enum: "A", "B", "C", "D"

  • labelstringจำเป็น

    maxLength: 120

  • allocationnumberจำเป็น

    minimum: 0 · maximum: 100

  • stepsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

การตอบกลับสำเร็จ 201

สร้างเส้นทางแล้ว

application/json

  • valueobject
  • dataไม่ได้ระบุ
  • allOf 1object

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • namestringจำเป็น

    minLength: 1 · maxLength: 200

  • descriptionstring

    maxLength: 2000

  • mailbox_idstring

    ผู้ส่งที่มีอยู่ ไม่ระบุเพื่อเลือกผู้ส่งเริ่มต้นก่อน แล้วกล่องจดหมายกำหนดเองที่ใช้งาน แล้วกล่องที่โฮสต์ ผู้ส่งที่บันทึกและระบุชัดไม่เปลี่ยน

    format: "uuid"

  • from_local_partstring

    maxLength: 64 · pattern: "^[a-z0-9][a-z0-9._+-]{0,62}$"

  • triggerobjectจำเป็น
  • kindstringจำเป็น

    enum: "manual", "contact_created", "audience_joined", "event", "schedule", "inbound_email", "email_replied", "api"

  • connection_idstring

    format: "uuid"

  • configobject
  • eventstring
  • everyinteger

    สำหรับทริกเกอร์แบบตั้งเวลา เป็นช่วงตามปฏิทินนับจากวันที่เปิดใช้งานตามเวลาท้องถิ่น

    minimum: 1 · maximum: 366 · default: 1

  • unitstring

    สำหรับทริกเกอร์แบบตั้งเวลา หากวันนั้นไม่มีในเดือน จะใช้วันสุดท้ายของเดือนโดยไม่เปลี่ยนวันอ้างอิงเดิม

    default: "weeks" · enum: "days", "weeks", "months"

  • timestring

    เวลาตามนาฬิกาท้องถิ่นของกำหนดการ ครั้งแรกต้องเกิดหลังการเปิดใช้งานเท่านั้น เวลาที่ไม่มีอยู่เนื่องจาก DST จะถูกข้าม และเวลาท้องถิ่นที่ซ้ำจะทำงานเพียงครั้งเดียว

    pattern: "^([01][0-9]|2[0-3]):[0-5][0-9]$" · default: "09:00"

  • timezonestring

    เขตเวลา IANA สำหรับทริกเกอร์แบบตั้งเวลา หลังระบบหยุดทำงาน จะเรียกคืนเฉพาะครั้งล่าสุดที่ถึงกำหนด เวลาที่พลาดระหว่างหยุดชั่วคราวจะถูกข้าม เงื่อนไขทริกเกอร์ต้องว่าง ให้เลือกรายชื่อติดต่อด้วย audience กฎการตรวจทาน การระงับส่ง และการเข้าร่วมซ้ำตามปกติยังคงใช้

    default: "UTC"

  • once_per_personboolean

    แต่ละคนเข้าร่วมครั้งเดียว ตั้ง false เพื่อให้เข้าร่วมอีกหลังเสร็จ

    default: true

  • reentry_daysinteger

    เมื่อ once_per_person เป็น false จำนวนวันหลังการเข้าร่วมล่าสุดก่อนเข้าร่วมอีกได้

    minimum: 1 · maximum: 365

  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • conditionsarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • audienceobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • goalobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • kindstringจำเป็น

    enum: "none", "event", "reply", "conversion"

  • connection_idstring

    format: "uuid"

  • configobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • exitobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • on_replyboolean

    default: true

  • on_unsubscribeboolean

    default: true

  • on_suppressionboolean

    default: true

  • eventstring

    maxLength: 200

  • approval_modestring

    enum: "policy", "required"

  • apiobject
  • keystring

    maxLength: 100

  • content_modestring

    enum: "code", "managed"

  • identitystring

    maxLength: 300

  • managed_contentobject

    ทางลัดเฉพาะสร้าง: บันทึกฉบับร่างอีเมลที่จัดการต้นฉบับและเส้นทางที่ขั้นตอนอีเมลอ้างถึงแบบอะตอม ภาษาปลายทางที่ขาดเข้าคิวแปลฟรี ไม่เผยแพร่หรือเปิดเส้นทาง

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • source_localestring

    โลแคลต้นฉบับ BCP 47 ตามข้อมูลหลัก หากไม่ระบุจะสืบทอดการตั้งค่าผลิตภัณฑ์

  • configured_localesarray

    โลแคลต้นฉบับและปลายทาง เซิร์ฟเวอร์เพิ่มต้นฉบับที่ไม่ได้ระบุ

    maxItems: 100 · uniqueItems: true

  • แต่ละรายการstring
  • fallback_localestring
  • layout_idstring

    เลย์เอาต์ใช้ซ้ำที่เลือก เซิร์ฟเวอร์เก็บภาพรวมฉบับที่เผยแพร่ในฉบับเนื้อหานี้

    format: "uuid"

  • localization_policyobject

    อีเมลเส้นทางส่งเฉพาะภาษาของบุคคลนั้น รอคำแปลประมาณหนึ่งนาทีสำหรับใบเสร็จ รหัส และแจ้งความปลอดภัย และสูงสุดหนึ่งวันสำหรับอีเมลอื่น ไม่ส่งหากคำแปลยังไม่พร้อมเมื่อครบเวลา

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • manual_reviewboolean

    default: false

  • sourceobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • subjectstringจำเป็น

    minLength: 1 · maxLength: 100000

  • preheaderstring

    maxLength: 100000

  • body_textstring

    รับเพื่อรองรับต้นฉบับ ข้อความล้วนที่เรนเดอร์ได้มาจาก HTML สุดท้าย

    maxLength: 100000

  • body_htmlstringจำเป็น

    minLength: 1 · maxLength: 100000

  • layoutstring

    ต้องมีสล็อต {{ content }} หนึ่งแห่ง

    maxLength: 100000

  • variantsobject

    เวอร์ชันต้นฉบับที่ไม่บังคับ ทุกเวอร์ชันแปลอัตโนมัติในฉบับเดียวกัน

  • พร็อพเพอร์ตีเพิ่มเติมobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • variablesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมไม่ได้ระบุ

    ตัวแปรระบุชนิดแบบเรียกซ้ำ ค่าเงินใช้ {amount_cents: integer, currency: ISO 4217 code} ค่า date เป็นวันที่ปฏิทิน ISO และค่า datetime เป็นเวลาประทับ ISO พร้อมออฟเซ็ต

    ละส่วนที่ซ้อนลึกกว่านี้

  • samplesobject

    ชุดค่าตัวอย่างที่มีชื่อสำหรับแสดงตัวอย่างและตรวจสอบต้นฉบับ

  • พร็อพเพอร์ตีเพิ่มเติมobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • translationsobject

    แค็ตตาล็อกข้อความ ICU ต้นฉบับและแค็ตตาล็อกปลายทางที่ส่งมาซึ่งไม่บังคับ ปลายทางที่ตั้งค่าแต่ขาดเข้าคิวแปลแบบอะซิงโครนัส ไม่ต้องมีเพื่อบันทึก

  • พร็อพเพอร์ตีเพิ่มเติมobject
  • พร็อพเพอร์ตีเพิ่มเติมstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • stepsarrayจำเป็น

    maxItems: 100

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstring

    format: "uuid"

  • positioninteger

    minimum: 1 · maximum: 100

  • kindstringจำเป็น

    enum: "email", "sms", "whatsapp", "wait", "condition", "action", "split"

  • namestringจำเป็น

    minLength: 1 · maxLength: 200

  • managed_contentobject

    สัญญาต้นฉบับที่ระบุชนิดและตัวตนฉบับร่าง/ฉบับเผยแพร่สำหรับขั้นตอนอีเมล

  • idstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • versioninteger

    ละส่วนที่ซ้อนลึกกว่านี้

  • draft_revision_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • published_revision_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • published_publication_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • source_revision_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • layout_revision_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • published_layout_revision_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • source_localestring | null

    ละส่วนที่ซ้อนลึกกว่านี้

  • configured_localesarray

    ละส่วนที่ซ้อนลึกกว่านี้

  • variablesobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • published_variablesobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • configobjectจำเป็น

    ขั้นตอนรอรับ until ได้โดยไม่บังคับ โดยมี name, path, operator (equals, not_equals, contains หรือ exists) และ value พร้อม on_met ที่จำเป็น (continue หรือ end_journey) continue ข้ามอีเมลเตือนที่ตามมา ส่วน end_journey สิ้นสุดเส้นทาง ต้องมีอีเมลเตือนตามหลังทันทีในสาขาเดียวกัน ขั้นตอนรอตรวจข้อมูลลูกค้าปัจจุบันทุกนาทีจนครบ amount/unit ฟิลด์ที่ขาดถือว่าไม่ทราบค่าและจะพักอีเมลเตือนไว้ การรอทั่วไปและเงื่อนไขแยกยังทำงานตามเดิม ตั้งชื่อการตรวจตามเหตุการณ์สำคัญของลูกค้าที่ตรวจยืนยันแล้ว ขั้นตอนอีเมลที่จัดการอ้างอิงเนื้อหาที่เผยแพร่ผ่าน managed_content_id การเปิดใช้งานจะปฏิเสธการอ้างอิงที่ยังไม่เผยแพร่ ทุกขั้นตอนอีเมลกำหนด delivery_class เป็น product (อีเมลธุรกรรม เช่น ใบเสร็จและอีเมลบัญชี) หรือ broadcast (การตลาด ซึ่งมีลิงก์ยกเลิกการสมัครและต้องมีชื่อบริษัทกับที่อยู่ไปรษณีย์ในแบรนด์ของผลิตภัณฑ์) ขั้นตอนที่ไม่ระบุจะถูกปฏิเสธด้วย 400 journey_delivery_class_required ขั้นตอนอีเมลอาจกำหนด expires_after_seconds (1-604800) เพื่อยกเลิกการส่งที่เลื่อนเมื่อพ้นช่วงเวลานั้นนับจากเวลาเริ่มต้นเดิม ค่าเริ่มต้นคือเจ็ดวัน

  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • armsarray

    minItems: 2 · maxItems: 4

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • allOf 2object
  • idstringจำเป็น

    format: "uuid"

  • statusstringจำเป็น

    enum: "draft", "discovered", "active", "paused", "archived"

  • api_keystring | null
  • content_modestring | null

    enum: "code", "managed", null

  • identitystring | null
  • identity_aliasesarray
  • แต่ละรายการstring
  • samplesarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • versionintegerจำเป็น

    minimum: 1

  • statsobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • stepStatsarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • armStatsarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • healthobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • indicatorobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • sparklinearrayจำเป็น
  • แต่ละรายการnumber
  • activated_atstring | null

    format: "date-time"

  • updated_atstring

    format: "date-time"

  • last_activity_atstring | null

    format: "date-time"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/journeys' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Idempotency-Key: examplexxxxxxxxx' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "name": "example",
  "description": "example",
  "mailbox_id": "00000000-0000-4000-8000-000000000001",
  "from_local_part": "example",
  "trigger": {
    "kind": "manual",
    "connection_id": "00000000-0000-4000-8000-000000000001",
    "config": {
      "event": "example",
      "every": 1,
      "unit": "weeks",
      "time": "09:00",
      "timezone": "UTC",
      "once_per_person": true,
      "reentry_days": 1
    },
    "conditions": [
      {}
    ]
  },
  "audience": {},
  "goal": {
    "kind": "none",
    "connection_id": "00000000-0000-4000-8000-000000000001",
    "config": {}
  },
  "exit": {
    "on_reply": true,
    "on_unsubscribe": true,
    "on_suppression": true,
    "event": "example"
  },
  "approval_mode": "policy",
  "api": {
    "key": "example",
    "content_mode": "code",
    "identity": "example"
  },
  "managed_content": {
    "source_locale": "example",
    "configured_locales": [
      "example"
    ],
    "fallback_locale": "example",
    "layout_id": "00000000-0000-4000-8000-000000000001",
    "localization_policy": {
      "manual_review": false
    },
    "source": {
      "subject": "example",
      "preheader": "example",
      "body_text": "example",
      "body_html": "example",
      "layout": "example",
      "variants": {},
      "variables": {}
    },
    "samples": {},
    "translations": {}
  },
  "steps": [
    {
      "id": "00000000-0000-4000-8000-000000000001",
      "position": 1,
      "kind": "email",
      "name": "example",
      "config": {},
      "arms": [
        {
          "key": "A",
          "label": "example",
          "allocation": 0,
          "steps": [
            {
              "id": null,
              "position": null,
              "kind": null,
              "name": null,
              "config": null,
              "arms": null
            }
          ]
        }
      ]
    }
  ]
}'
GET/v1/workspaces/{workspaceId}/journeys/{journeyId}

getJourney

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

journeyId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

คำจำกัดความเส้นทาง กิจกรรมการเข้าร่วม และการทดสอบ

application/json

  • valueobject
  • dataไม่ได้ระบุ
  • allOf 1object

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • namestringจำเป็น

    minLength: 1 · maxLength: 200

  • descriptionstring

    maxLength: 2000

  • mailbox_idstring

    ผู้ส่งที่มีอยู่ ไม่ระบุเพื่อเลือกผู้ส่งเริ่มต้นก่อน แล้วกล่องจดหมายกำหนดเองที่ใช้งาน แล้วกล่องที่โฮสต์ ผู้ส่งที่บันทึกและระบุชัดไม่เปลี่ยน

    format: "uuid"

  • from_local_partstring

    maxLength: 64 · pattern: "^[a-z0-9][a-z0-9._+-]{0,62}$"

  • triggerobjectจำเป็น
  • kindstringจำเป็น

    enum: "manual", "contact_created", "audience_joined", "event", "schedule", "inbound_email", "email_replied", "api"

  • connection_idstring

    format: "uuid"

  • configobject
  • eventstring
  • everyinteger

    สำหรับทริกเกอร์แบบตั้งเวลา เป็นช่วงตามปฏิทินนับจากวันที่เปิดใช้งานตามเวลาท้องถิ่น

    minimum: 1 · maximum: 366 · default: 1

  • unitstring

    สำหรับทริกเกอร์แบบตั้งเวลา หากวันนั้นไม่มีในเดือน จะใช้วันสุดท้ายของเดือนโดยไม่เปลี่ยนวันอ้างอิงเดิม

    default: "weeks" · enum: "days", "weeks", "months"

  • timestring

    เวลาตามนาฬิกาท้องถิ่นของกำหนดการ ครั้งแรกต้องเกิดหลังการเปิดใช้งานเท่านั้น เวลาที่ไม่มีอยู่เนื่องจาก DST จะถูกข้าม และเวลาท้องถิ่นที่ซ้ำจะทำงานเพียงครั้งเดียว

    pattern: "^([01][0-9]|2[0-3]):[0-5][0-9]$" · default: "09:00"

  • timezonestring

    เขตเวลา IANA สำหรับทริกเกอร์แบบตั้งเวลา หลังระบบหยุดทำงาน จะเรียกคืนเฉพาะครั้งล่าสุดที่ถึงกำหนด เวลาที่พลาดระหว่างหยุดชั่วคราวจะถูกข้าม เงื่อนไขทริกเกอร์ต้องว่าง ให้เลือกรายชื่อติดต่อด้วย audience กฎการตรวจทาน การระงับส่ง และการเข้าร่วมซ้ำตามปกติยังคงใช้

    default: "UTC"

  • once_per_personboolean

    แต่ละคนเข้าร่วมครั้งเดียว ตั้ง false เพื่อให้เข้าร่วมอีกหลังเสร็จ

    default: true

  • reentry_daysinteger

    เมื่อ once_per_person เป็น false จำนวนวันหลังการเข้าร่วมล่าสุดก่อนเข้าร่วมอีกได้

    minimum: 1 · maximum: 365

  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • conditionsarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • audienceobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • goalobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • kindstringจำเป็น

    enum: "none", "event", "reply", "conversion"

  • connection_idstring

    format: "uuid"

  • configobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • exitobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • on_replyboolean

    default: true

  • on_unsubscribeboolean

    default: true

  • on_suppressionboolean

    default: true

  • eventstring

    maxLength: 200

  • approval_modestring

    enum: "policy", "required"

  • apiobject
  • keystring

    maxLength: 100

  • content_modestring

    enum: "code", "managed"

  • identitystring

    maxLength: 300

  • managed_contentobject

    ทางลัดเฉพาะสร้าง: บันทึกฉบับร่างอีเมลที่จัดการต้นฉบับและเส้นทางที่ขั้นตอนอีเมลอ้างถึงแบบอะตอม ภาษาปลายทางที่ขาดเข้าคิวแปลฟรี ไม่เผยแพร่หรือเปิดเส้นทาง

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • source_localestring

    โลแคลต้นฉบับ BCP 47 ตามข้อมูลหลัก หากไม่ระบุจะสืบทอดการตั้งค่าผลิตภัณฑ์

  • configured_localesarray

    โลแคลต้นฉบับและปลายทาง เซิร์ฟเวอร์เพิ่มต้นฉบับที่ไม่ได้ระบุ

    maxItems: 100 · uniqueItems: true

  • แต่ละรายการstring
  • fallback_localestring
  • layout_idstring

    เลย์เอาต์ใช้ซ้ำที่เลือก เซิร์ฟเวอร์เก็บภาพรวมฉบับที่เผยแพร่ในฉบับเนื้อหานี้

    format: "uuid"

  • localization_policyobject

    อีเมลเส้นทางส่งเฉพาะภาษาของบุคคลนั้น รอคำแปลประมาณหนึ่งนาทีสำหรับใบเสร็จ รหัส และแจ้งความปลอดภัย และสูงสุดหนึ่งวันสำหรับอีเมลอื่น ไม่ส่งหากคำแปลยังไม่พร้อมเมื่อครบเวลา

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • manual_reviewboolean

    default: false

  • sourceobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • subjectstringจำเป็น

    minLength: 1 · maxLength: 100000

  • preheaderstring

    maxLength: 100000

  • body_textstring

    รับเพื่อรองรับต้นฉบับ ข้อความล้วนที่เรนเดอร์ได้มาจาก HTML สุดท้าย

    maxLength: 100000

  • body_htmlstringจำเป็น

    minLength: 1 · maxLength: 100000

  • layoutstring

    ต้องมีสล็อต {{ content }} หนึ่งแห่ง

    maxLength: 100000

  • variantsobject

    เวอร์ชันต้นฉบับที่ไม่บังคับ ทุกเวอร์ชันแปลอัตโนมัติในฉบับเดียวกัน

  • พร็อพเพอร์ตีเพิ่มเติมobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • variablesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมไม่ได้ระบุ

    ตัวแปรระบุชนิดแบบเรียกซ้ำ ค่าเงินใช้ {amount_cents: integer, currency: ISO 4217 code} ค่า date เป็นวันที่ปฏิทิน ISO และค่า datetime เป็นเวลาประทับ ISO พร้อมออฟเซ็ต

    ละส่วนที่ซ้อนลึกกว่านี้

  • samplesobject

    ชุดค่าตัวอย่างที่มีชื่อสำหรับแสดงตัวอย่างและตรวจสอบต้นฉบับ

  • พร็อพเพอร์ตีเพิ่มเติมobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • translationsobject

    แค็ตตาล็อกข้อความ ICU ต้นฉบับและแค็ตตาล็อกปลายทางที่ส่งมาซึ่งไม่บังคับ ปลายทางที่ตั้งค่าแต่ขาดเข้าคิวแปลแบบอะซิงโครนัส ไม่ต้องมีเพื่อบันทึก

  • พร็อพเพอร์ตีเพิ่มเติมobject
  • พร็อพเพอร์ตีเพิ่มเติมstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • stepsarrayจำเป็น

    maxItems: 100

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstring

    format: "uuid"

  • positioninteger

    minimum: 1 · maximum: 100

  • kindstringจำเป็น

    enum: "email", "sms", "whatsapp", "wait", "condition", "action", "split"

  • namestringจำเป็น

    minLength: 1 · maxLength: 200

  • managed_contentobject

    สัญญาต้นฉบับที่ระบุชนิดและตัวตนฉบับร่าง/ฉบับเผยแพร่สำหรับขั้นตอนอีเมล

  • idstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • versioninteger

    ละส่วนที่ซ้อนลึกกว่านี้

  • draft_revision_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • published_revision_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • published_publication_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • source_revision_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • layout_revision_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • published_layout_revision_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • source_localestring | null

    ละส่วนที่ซ้อนลึกกว่านี้

  • configured_localesarray

    ละส่วนที่ซ้อนลึกกว่านี้

  • variablesobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • published_variablesobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • configobjectจำเป็น

    ขั้นตอนรอรับ until ได้โดยไม่บังคับ โดยมี name, path, operator (equals, not_equals, contains หรือ exists) และ value พร้อม on_met ที่จำเป็น (continue หรือ end_journey) continue ข้ามอีเมลเตือนที่ตามมา ส่วน end_journey สิ้นสุดเส้นทาง ต้องมีอีเมลเตือนตามหลังทันทีในสาขาเดียวกัน ขั้นตอนรอตรวจข้อมูลลูกค้าปัจจุบันทุกนาทีจนครบ amount/unit ฟิลด์ที่ขาดถือว่าไม่ทราบค่าและจะพักอีเมลเตือนไว้ การรอทั่วไปและเงื่อนไขแยกยังทำงานตามเดิม ตั้งชื่อการตรวจตามเหตุการณ์สำคัญของลูกค้าที่ตรวจยืนยันแล้ว ขั้นตอนอีเมลที่จัดการอ้างอิงเนื้อหาที่เผยแพร่ผ่าน managed_content_id การเปิดใช้งานจะปฏิเสธการอ้างอิงที่ยังไม่เผยแพร่ ทุกขั้นตอนอีเมลกำหนด delivery_class เป็น product (อีเมลธุรกรรม เช่น ใบเสร็จและอีเมลบัญชี) หรือ broadcast (การตลาด ซึ่งมีลิงก์ยกเลิกการสมัครและต้องมีชื่อบริษัทกับที่อยู่ไปรษณีย์ในแบรนด์ของผลิตภัณฑ์) ขั้นตอนที่ไม่ระบุจะถูกปฏิเสธด้วย 400 journey_delivery_class_required ขั้นตอนอีเมลอาจกำหนด expires_after_seconds (1-604800) เพื่อยกเลิกการส่งที่เลื่อนเมื่อพ้นช่วงเวลานั้นนับจากเวลาเริ่มต้นเดิม ค่าเริ่มต้นคือเจ็ดวัน

  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • armsarray

    minItems: 2 · maxItems: 4

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • allOf 2object
  • idstringจำเป็น

    format: "uuid"

  • statusstringจำเป็น

    enum: "draft", "discovered", "active", "paused", "archived"

  • api_keystring | null
  • content_modestring | null

    enum: "code", "managed", null

  • identitystring | null
  • identity_aliasesarray
  • แต่ละรายการstring
  • samplesarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • versionintegerจำเป็น

    minimum: 1

  • statsobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • stepStatsarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • armStatsarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • healthobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • indicatorobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • sparklinearrayจำเป็น
  • แต่ละรายการnumber
  • activated_atstring | null

    format: "date-time"

  • updated_atstring

    format: "date-time"

  • last_activity_atstring | null

    format: "date-time"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/journeys/{journeyId}' \
  --header "Authorization: Bearer $BANGER_API_KEY"
PUT/v1/workspaces/{workspaceId}/journeys/{journeyId}

updateJourney

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

journeyId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • namestringจำเป็น

    minLength: 1 · maxLength: 200

  • descriptionstring

    maxLength: 2000

  • mailbox_idstring

    ผู้ส่งที่มีอยู่ ไม่ระบุเพื่อเลือกผู้ส่งเริ่มต้นก่อน แล้วกล่องจดหมายกำหนดเองที่ใช้งาน แล้วกล่องที่โฮสต์ ผู้ส่งที่บันทึกและระบุชัดไม่เปลี่ยน

    format: "uuid"

  • from_local_partstring

    maxLength: 64 · pattern: "^[a-z0-9][a-z0-9._+-]{0,62}$"

  • triggerobjectจำเป็น
  • kindstringจำเป็น

    enum: "manual", "contact_created", "audience_joined", "event", "schedule", "inbound_email", "email_replied", "api"

  • connection_idstring

    format: "uuid"

  • configobject
  • eventstring
  • everyinteger

    สำหรับทริกเกอร์แบบตั้งเวลา เป็นช่วงตามปฏิทินนับจากวันที่เปิดใช้งานตามเวลาท้องถิ่น

    minimum: 1 · maximum: 366 · default: 1

  • unitstring

    สำหรับทริกเกอร์แบบตั้งเวลา หากวันนั้นไม่มีในเดือน จะใช้วันสุดท้ายของเดือนโดยไม่เปลี่ยนวันอ้างอิงเดิม

    default: "weeks" · enum: "days", "weeks", "months"

  • timestring

    เวลาตามนาฬิกาท้องถิ่นของกำหนดการ ครั้งแรกต้องเกิดหลังการเปิดใช้งานเท่านั้น เวลาที่ไม่มีอยู่เนื่องจาก DST จะถูกข้าม และเวลาท้องถิ่นที่ซ้ำจะทำงานเพียงครั้งเดียว

    pattern: "^([01][0-9]|2[0-3]):[0-5][0-9]$" · default: "09:00"

  • timezonestring

    เขตเวลา IANA สำหรับทริกเกอร์แบบตั้งเวลา หลังระบบหยุดทำงาน จะเรียกคืนเฉพาะครั้งล่าสุดที่ถึงกำหนด เวลาที่พลาดระหว่างหยุดชั่วคราวจะถูกข้าม เงื่อนไขทริกเกอร์ต้องว่าง ให้เลือกรายชื่อติดต่อด้วย audience กฎการตรวจทาน การระงับส่ง และการเข้าร่วมซ้ำตามปกติยังคงใช้

    default: "UTC"

  • once_per_personboolean

    แต่ละคนเข้าร่วมครั้งเดียว ตั้ง false เพื่อให้เข้าร่วมอีกหลังเสร็จ

    default: true

  • reentry_daysinteger

    เมื่อ once_per_person เป็น false จำนวนวันหลังการเข้าร่วมล่าสุดก่อนเข้าร่วมอีกได้

    minimum: 1 · maximum: 365

  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • conditionsarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • audienceobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • goalobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • kindstringจำเป็น

    enum: "none", "event", "reply", "conversion"

  • connection_idstring

    format: "uuid"

  • configobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • exitobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • on_replyboolean

    default: true

  • on_unsubscribeboolean

    default: true

  • on_suppressionboolean

    default: true

  • eventstring

    maxLength: 200

  • approval_modestring

    enum: "policy", "required"

  • apiobject
  • keystring

    maxLength: 100

  • content_modestring

    enum: "code", "managed"

  • identitystring

    maxLength: 300

  • managed_contentobject

    ทางลัดเฉพาะสร้าง: บันทึกฉบับร่างอีเมลที่จัดการต้นฉบับและเส้นทางที่ขั้นตอนอีเมลอ้างถึงแบบอะตอม ภาษาปลายทางที่ขาดเข้าคิวแปลฟรี ไม่เผยแพร่หรือเปิดเส้นทาง

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • source_localestring

    โลแคลต้นฉบับ BCP 47 ตามข้อมูลหลัก หากไม่ระบุจะสืบทอดการตั้งค่าผลิตภัณฑ์

  • configured_localesarray

    โลแคลต้นฉบับและปลายทาง เซิร์ฟเวอร์เพิ่มต้นฉบับที่ไม่ได้ระบุ

    maxItems: 100 · uniqueItems: true

  • แต่ละรายการstring
  • fallback_localestring
  • layout_idstring

    เลย์เอาต์ใช้ซ้ำที่เลือก เซิร์ฟเวอร์เก็บภาพรวมฉบับที่เผยแพร่ในฉบับเนื้อหานี้

    format: "uuid"

  • localization_policyobject

    อีเมลเส้นทางส่งเฉพาะภาษาของบุคคลนั้น รอคำแปลประมาณหนึ่งนาทีสำหรับใบเสร็จ รหัส และแจ้งความปลอดภัย และสูงสุดหนึ่งวันสำหรับอีเมลอื่น ไม่ส่งหากคำแปลยังไม่พร้อมเมื่อครบเวลา

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • manual_reviewboolean

    default: false

  • sourceobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • subjectstringจำเป็น

    minLength: 1 · maxLength: 100000

  • preheaderstring

    maxLength: 100000

  • body_textstring

    รับเพื่อรองรับต้นฉบับ ข้อความล้วนที่เรนเดอร์ได้มาจาก HTML สุดท้าย

    maxLength: 100000

  • body_htmlstringจำเป็น

    minLength: 1 · maxLength: 100000

  • layoutstring

    ต้องมีสล็อต {{ content }} หนึ่งแห่ง

    maxLength: 100000

  • variantsobject

    เวอร์ชันต้นฉบับที่ไม่บังคับ ทุกเวอร์ชันแปลอัตโนมัติในฉบับเดียวกัน

  • พร็อพเพอร์ตีเพิ่มเติมobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • subjectstringจำเป็น

    minLength: 1 · maxLength: 100000

  • preheaderstring

    maxLength: 100000

  • body_htmlstringจำเป็น

    minLength: 1 · maxLength: 100000

  • body_textstring

    maxLength: 100000

  • layoutstring

    maxLength: 100000

  • variablesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมไม่ได้ระบุ

    ตัวแปรระบุชนิดแบบเรียกซ้ำ ค่าเงินใช้ {amount_cents: integer, currency: ISO 4217 code} ค่า date เป็นวันที่ปฏิทิน ISO และค่า datetime เป็นเวลาประทับ ISO พร้อมออฟเซ็ต

  • oneOf 1object

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • typestringจำเป็น

    enum: "string", "text", "url", "image_url", "html", "date", "datetime", "number", "boolean", "money"

    ละส่วนที่ซ้อนลึกกว่านี้

  • requiredboolean

    ละส่วนที่ซ้อนลึกกว่านี้

  • descriptionstring

    maxLength: 2000

    ละส่วนที่ซ้อนลึกกว่านี้

  • defaultไม่ได้ระบุ

    ต้องตรงกับชนิดฟิลด์

    ละส่วนที่ซ้อนลึกกว่านี้

  • oneOf 2object

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • typeไม่ได้ระบุจำเป็น

    const: "object"

    ละส่วนที่ซ้อนลึกกว่านี้

  • requiredboolean

    ละส่วนที่ซ้อนลึกกว่านี้

  • descriptionstring

    maxLength: 2000

    ละส่วนที่ซ้อนลึกกว่านี้

  • defaultobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • propertiesobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • oneOf 3object

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • typeไม่ได้ระบุจำเป็น

    const: "list"

    ละส่วนที่ซ้อนลึกกว่านี้

  • requiredboolean

    ละส่วนที่ซ้อนลึกกว่านี้

  • descriptionstring

    maxLength: 2000

    ละส่วนที่ซ้อนลึกกว่านี้

  • defaultarray

    ละส่วนที่ซ้อนลึกกว่านี้

  • itemsไม่ได้ระบุจำเป็น

    ตัวแปรระบุชนิดแบบเรียกซ้ำ ค่าเงินใช้ {amount_cents: integer, currency: ISO 4217 code} ค่า date เป็นวันที่ปฏิทิน ISO และค่า datetime เป็นเวลาประทับ ISO พร้อมออฟเซ็ต

    ละส่วนที่ซ้อนลึกกว่านี้

  • samplesobject

    ชุดค่าตัวอย่างที่มีชื่อสำหรับแสดงตัวอย่างและตรวจสอบต้นฉบับ

  • พร็อพเพอร์ตีเพิ่มเติมobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • translationsobject

    แค็ตตาล็อกข้อความ ICU ต้นฉบับและแค็ตตาล็อกปลายทางที่ส่งมาซึ่งไม่บังคับ ปลายทางที่ตั้งค่าแต่ขาดเข้าคิวแปลแบบอะซิงโครนัส ไม่ต้องมีเพื่อบันทึก

  • พร็อพเพอร์ตีเพิ่มเติมobject
  • พร็อพเพอร์ตีเพิ่มเติมstring
  • stepsarrayจำเป็น

    maxItems: 100

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstring

    format: "uuid"

  • positioninteger

    minimum: 1 · maximum: 100

  • kindstringจำเป็น

    enum: "email", "sms", "whatsapp", "wait", "condition", "action", "split"

  • namestringจำเป็น

    minLength: 1 · maxLength: 200

  • managed_contentobject

    สัญญาต้นฉบับที่ระบุชนิดและตัวตนฉบับร่าง/ฉบับเผยแพร่สำหรับขั้นตอนอีเมล

  • idstring

    format: "uuid"

  • versioninteger
  • draft_revision_idstring | null

    format: "uuid"

  • published_revision_idstring | null

    format: "uuid"

  • published_publication_idstring | null

    format: "uuid"

  • source_revision_idstring | null

    format: "uuid"

  • layout_revision_idstring | null

    format: "uuid"

  • published_layout_revision_idstring | null

    format: "uuid"

  • source_localestring | null
  • configured_localesarray
  • แต่ละรายการstring
  • variablesobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • published_variablesobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • configobjectจำเป็น

    ขั้นตอนรอรับ until ได้โดยไม่บังคับ โดยมี name, path, operator (equals, not_equals, contains หรือ exists) และ value พร้อม on_met ที่จำเป็น (continue หรือ end_journey) continue ข้ามอีเมลเตือนที่ตามมา ส่วน end_journey สิ้นสุดเส้นทาง ต้องมีอีเมลเตือนตามหลังทันทีในสาขาเดียวกัน ขั้นตอนรอตรวจข้อมูลลูกค้าปัจจุบันทุกนาทีจนครบ amount/unit ฟิลด์ที่ขาดถือว่าไม่ทราบค่าและจะพักอีเมลเตือนไว้ การรอทั่วไปและเงื่อนไขแยกยังทำงานตามเดิม ตั้งชื่อการตรวจตามเหตุการณ์สำคัญของลูกค้าที่ตรวจยืนยันแล้ว ขั้นตอนอีเมลที่จัดการอ้างอิงเนื้อหาที่เผยแพร่ผ่าน managed_content_id การเปิดใช้งานจะปฏิเสธการอ้างอิงที่ยังไม่เผยแพร่ ทุกขั้นตอนอีเมลกำหนด delivery_class เป็น product (อีเมลธุรกรรม เช่น ใบเสร็จและอีเมลบัญชี) หรือ broadcast (การตลาด ซึ่งมีลิงก์ยกเลิกการสมัครและต้องมีชื่อบริษัทกับที่อยู่ไปรษณีย์ในแบรนด์ของผลิตภัณฑ์) ขั้นตอนที่ไม่ระบุจะถูกปฏิเสธด้วย 400 journey_delivery_class_required ขั้นตอนอีเมลอาจกำหนด expires_after_seconds (1-604800) เพื่อยกเลิกการส่งที่เลื่อนเมื่อพ้นช่วงเวลานั้นนับจากเวลาเริ่มต้นเดิม ค่าเริ่มต้นคือเจ็ดวัน

  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • armsarray

    minItems: 2 · maxItems: 4

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • keystringจำเป็น

    enum: "A", "B", "C", "D"

  • labelstringจำเป็น

    maxLength: 120

  • allocationnumberจำเป็น

    minimum: 0 · maximum: 100

  • stepsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

การตอบกลับสำเร็จ 200

อัปเดตเส้นทางแล้ว

application/json

  • valueobject
  • dataไม่ได้ระบุ
  • allOf 1object

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • namestringจำเป็น

    minLength: 1 · maxLength: 200

  • descriptionstring

    maxLength: 2000

  • mailbox_idstring

    ผู้ส่งที่มีอยู่ ไม่ระบุเพื่อเลือกผู้ส่งเริ่มต้นก่อน แล้วกล่องจดหมายกำหนดเองที่ใช้งาน แล้วกล่องที่โฮสต์ ผู้ส่งที่บันทึกและระบุชัดไม่เปลี่ยน

    format: "uuid"

  • from_local_partstring

    maxLength: 64 · pattern: "^[a-z0-9][a-z0-9._+-]{0,62}$"

  • triggerobjectจำเป็น
  • kindstringจำเป็น

    enum: "manual", "contact_created", "audience_joined", "event", "schedule", "inbound_email", "email_replied", "api"

  • connection_idstring

    format: "uuid"

  • configobject
  • eventstring
  • everyinteger

    สำหรับทริกเกอร์แบบตั้งเวลา เป็นช่วงตามปฏิทินนับจากวันที่เปิดใช้งานตามเวลาท้องถิ่น

    minimum: 1 · maximum: 366 · default: 1

  • unitstring

    สำหรับทริกเกอร์แบบตั้งเวลา หากวันนั้นไม่มีในเดือน จะใช้วันสุดท้ายของเดือนโดยไม่เปลี่ยนวันอ้างอิงเดิม

    default: "weeks" · enum: "days", "weeks", "months"

  • timestring

    เวลาตามนาฬิกาท้องถิ่นของกำหนดการ ครั้งแรกต้องเกิดหลังการเปิดใช้งานเท่านั้น เวลาที่ไม่มีอยู่เนื่องจาก DST จะถูกข้าม และเวลาท้องถิ่นที่ซ้ำจะทำงานเพียงครั้งเดียว

    pattern: "^([01][0-9]|2[0-3]):[0-5][0-9]$" · default: "09:00"

  • timezonestring

    เขตเวลา IANA สำหรับทริกเกอร์แบบตั้งเวลา หลังระบบหยุดทำงาน จะเรียกคืนเฉพาะครั้งล่าสุดที่ถึงกำหนด เวลาที่พลาดระหว่างหยุดชั่วคราวจะถูกข้าม เงื่อนไขทริกเกอร์ต้องว่าง ให้เลือกรายชื่อติดต่อด้วย audience กฎการตรวจทาน การระงับส่ง และการเข้าร่วมซ้ำตามปกติยังคงใช้

    default: "UTC"

  • once_per_personboolean

    แต่ละคนเข้าร่วมครั้งเดียว ตั้ง false เพื่อให้เข้าร่วมอีกหลังเสร็จ

    default: true

  • reentry_daysinteger

    เมื่อ once_per_person เป็น false จำนวนวันหลังการเข้าร่วมล่าสุดก่อนเข้าร่วมอีกได้

    minimum: 1 · maximum: 365

  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • conditionsarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • audienceobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • goalobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • kindstringจำเป็น

    enum: "none", "event", "reply", "conversion"

  • connection_idstring

    format: "uuid"

  • configobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • exitobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • on_replyboolean

    default: true

  • on_unsubscribeboolean

    default: true

  • on_suppressionboolean

    default: true

  • eventstring

    maxLength: 200

  • approval_modestring

    enum: "policy", "required"

  • apiobject
  • keystring

    maxLength: 100

  • content_modestring

    enum: "code", "managed"

  • identitystring

    maxLength: 300

  • managed_contentobject

    ทางลัดเฉพาะสร้าง: บันทึกฉบับร่างอีเมลที่จัดการต้นฉบับและเส้นทางที่ขั้นตอนอีเมลอ้างถึงแบบอะตอม ภาษาปลายทางที่ขาดเข้าคิวแปลฟรี ไม่เผยแพร่หรือเปิดเส้นทาง

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • source_localestring

    โลแคลต้นฉบับ BCP 47 ตามข้อมูลหลัก หากไม่ระบุจะสืบทอดการตั้งค่าผลิตภัณฑ์

  • configured_localesarray

    โลแคลต้นฉบับและปลายทาง เซิร์ฟเวอร์เพิ่มต้นฉบับที่ไม่ได้ระบุ

    maxItems: 100 · uniqueItems: true

  • แต่ละรายการstring
  • fallback_localestring
  • layout_idstring

    เลย์เอาต์ใช้ซ้ำที่เลือก เซิร์ฟเวอร์เก็บภาพรวมฉบับที่เผยแพร่ในฉบับเนื้อหานี้

    format: "uuid"

  • localization_policyobject

    อีเมลเส้นทางส่งเฉพาะภาษาของบุคคลนั้น รอคำแปลประมาณหนึ่งนาทีสำหรับใบเสร็จ รหัส และแจ้งความปลอดภัย และสูงสุดหนึ่งวันสำหรับอีเมลอื่น ไม่ส่งหากคำแปลยังไม่พร้อมเมื่อครบเวลา

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • manual_reviewboolean

    default: false

  • sourceobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • subjectstringจำเป็น

    minLength: 1 · maxLength: 100000

  • preheaderstring

    maxLength: 100000

  • body_textstring

    รับเพื่อรองรับต้นฉบับ ข้อความล้วนที่เรนเดอร์ได้มาจาก HTML สุดท้าย

    maxLength: 100000

  • body_htmlstringจำเป็น

    minLength: 1 · maxLength: 100000

  • layoutstring

    ต้องมีสล็อต {{ content }} หนึ่งแห่ง

    maxLength: 100000

  • variantsobject

    เวอร์ชันต้นฉบับที่ไม่บังคับ ทุกเวอร์ชันแปลอัตโนมัติในฉบับเดียวกัน

  • พร็อพเพอร์ตีเพิ่มเติมobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • variablesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมไม่ได้ระบุ

    ตัวแปรระบุชนิดแบบเรียกซ้ำ ค่าเงินใช้ {amount_cents: integer, currency: ISO 4217 code} ค่า date เป็นวันที่ปฏิทิน ISO และค่า datetime เป็นเวลาประทับ ISO พร้อมออฟเซ็ต

    ละส่วนที่ซ้อนลึกกว่านี้

  • samplesobject

    ชุดค่าตัวอย่างที่มีชื่อสำหรับแสดงตัวอย่างและตรวจสอบต้นฉบับ

  • พร็อพเพอร์ตีเพิ่มเติมobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • translationsobject

    แค็ตตาล็อกข้อความ ICU ต้นฉบับและแค็ตตาล็อกปลายทางที่ส่งมาซึ่งไม่บังคับ ปลายทางที่ตั้งค่าแต่ขาดเข้าคิวแปลแบบอะซิงโครนัส ไม่ต้องมีเพื่อบันทึก

  • พร็อพเพอร์ตีเพิ่มเติมobject
  • พร็อพเพอร์ตีเพิ่มเติมstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • stepsarrayจำเป็น

    maxItems: 100

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstring

    format: "uuid"

  • positioninteger

    minimum: 1 · maximum: 100

  • kindstringจำเป็น

    enum: "email", "sms", "whatsapp", "wait", "condition", "action", "split"

  • namestringจำเป็น

    minLength: 1 · maxLength: 200

  • managed_contentobject

    สัญญาต้นฉบับที่ระบุชนิดและตัวตนฉบับร่าง/ฉบับเผยแพร่สำหรับขั้นตอนอีเมล

  • idstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • versioninteger

    ละส่วนที่ซ้อนลึกกว่านี้

  • draft_revision_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • published_revision_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • published_publication_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • source_revision_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • layout_revision_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • published_layout_revision_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • source_localestring | null

    ละส่วนที่ซ้อนลึกกว่านี้

  • configured_localesarray

    ละส่วนที่ซ้อนลึกกว่านี้

  • variablesobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • published_variablesobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • configobjectจำเป็น

    ขั้นตอนรอรับ until ได้โดยไม่บังคับ โดยมี name, path, operator (equals, not_equals, contains หรือ exists) และ value พร้อม on_met ที่จำเป็น (continue หรือ end_journey) continue ข้ามอีเมลเตือนที่ตามมา ส่วน end_journey สิ้นสุดเส้นทาง ต้องมีอีเมลเตือนตามหลังทันทีในสาขาเดียวกัน ขั้นตอนรอตรวจข้อมูลลูกค้าปัจจุบันทุกนาทีจนครบ amount/unit ฟิลด์ที่ขาดถือว่าไม่ทราบค่าและจะพักอีเมลเตือนไว้ การรอทั่วไปและเงื่อนไขแยกยังทำงานตามเดิม ตั้งชื่อการตรวจตามเหตุการณ์สำคัญของลูกค้าที่ตรวจยืนยันแล้ว ขั้นตอนอีเมลที่จัดการอ้างอิงเนื้อหาที่เผยแพร่ผ่าน managed_content_id การเปิดใช้งานจะปฏิเสธการอ้างอิงที่ยังไม่เผยแพร่ ทุกขั้นตอนอีเมลกำหนด delivery_class เป็น product (อีเมลธุรกรรม เช่น ใบเสร็จและอีเมลบัญชี) หรือ broadcast (การตลาด ซึ่งมีลิงก์ยกเลิกการสมัครและต้องมีชื่อบริษัทกับที่อยู่ไปรษณีย์ในแบรนด์ของผลิตภัณฑ์) ขั้นตอนที่ไม่ระบุจะถูกปฏิเสธด้วย 400 journey_delivery_class_required ขั้นตอนอีเมลอาจกำหนด expires_after_seconds (1-604800) เพื่อยกเลิกการส่งที่เลื่อนเมื่อพ้นช่วงเวลานั้นนับจากเวลาเริ่มต้นเดิม ค่าเริ่มต้นคือเจ็ดวัน

  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • armsarray

    minItems: 2 · maxItems: 4

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • allOf 2object
  • idstringจำเป็น

    format: "uuid"

  • statusstringจำเป็น

    enum: "draft", "discovered", "active", "paused", "archived"

  • api_keystring | null
  • content_modestring | null

    enum: "code", "managed", null

  • identitystring | null
  • identity_aliasesarray
  • แต่ละรายการstring
  • samplesarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • versionintegerจำเป็น

    minimum: 1

  • statsobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • stepStatsarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • armStatsarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • healthobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • indicatorobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • sparklinearrayจำเป็น
  • แต่ละรายการnumber
  • activated_atstring | null

    format: "date-time"

  • updated_atstring

    format: "date-time"

  • last_activity_atstring | null

    format: "date-time"

ตัวอย่าง curl

curl --request PUT --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/journeys/{journeyId}' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "name": "example",
  "description": "example",
  "mailbox_id": "00000000-0000-4000-8000-000000000001",
  "from_local_part": "example",
  "trigger": {
    "kind": "manual",
    "connection_id": "00000000-0000-4000-8000-000000000001",
    "config": {
      "event": "example",
      "every": 1,
      "unit": "weeks",
      "time": "09:00",
      "timezone": "UTC",
      "once_per_person": true,
      "reentry_days": 1
    },
    "conditions": [
      {}
    ]
  },
  "audience": {},
  "goal": {
    "kind": "none",
    "connection_id": "00000000-0000-4000-8000-000000000001",
    "config": {}
  },
  "exit": {
    "on_reply": true,
    "on_unsubscribe": true,
    "on_suppression": true,
    "event": "example"
  },
  "approval_mode": "policy",
  "api": {
    "key": "example",
    "content_mode": "code",
    "identity": "example"
  },
  "managed_content": {
    "source_locale": "example",
    "configured_locales": [
      "example"
    ],
    "fallback_locale": "example",
    "layout_id": "00000000-0000-4000-8000-000000000001",
    "localization_policy": {
      "manual_review": false
    },
    "source": {
      "subject": "example",
      "preheader": "example",
      "body_text": "example",
      "body_html": "example",
      "layout": "example",
      "variants": {},
      "variables": {}
    },
    "samples": {},
    "translations": {}
  },
  "steps": [
    {
      "id": "00000000-0000-4000-8000-000000000001",
      "position": 1,
      "kind": "email",
      "name": "example",
      "config": {},
      "arms": [
        {
          "key": "A",
          "label": "example",
          "allocation": 0,
          "steps": [
            {
              "id": null,
              "position": null,
              "kind": null,
              "name": null,
              "config": null,
              "arms": null
            }
          ]
        }
      ]
    }
  ]
}'
PATCH/v1/workspaces/{workspaceId}/journeys/{journeyId}

อัปเดตฟิลด์เส้นทางที่เลือกโดยคงฟิลด์คำจำกัดความอื่น

รองรับ name, description, mailbox_id, from_local_part, trigger, audience, goal, exit, approval_mode, api และ steps ออบเจ็กต์ trigger, goal, api และ exit รวมหนึ่งระดับ steps แทนโครงต้นไม้ที่ส่ง ใส่ expected_version เพื่อปฏิเสธการแก้ที่ล้าสมัย

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

journeyId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • expected_versioninteger

    minimum: 1

  • namestring
  • descriptionstring
  • mailbox_idstring

    format: "uuid"

  • from_local_partstring
  • triggerobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • audienceobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • goalobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • exitobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • approval_modestring

    enum: "policy", "required"

  • apiobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • stepsarray
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstring

    format: "uuid"

  • positioninteger

    minimum: 1 · maximum: 100

  • kindstringจำเป็น

    enum: "email", "sms", "whatsapp", "wait", "condition", "action", "split"

  • namestringจำเป็น

    minLength: 1 · maxLength: 200

  • managed_contentobject

    สัญญาต้นฉบับที่ระบุชนิดและตัวตนฉบับร่าง/ฉบับเผยแพร่สำหรับขั้นตอนอีเมล

  • idstring

    format: "uuid"

  • versioninteger
  • draft_revision_idstring | null

    format: "uuid"

  • published_revision_idstring | null

    format: "uuid"

  • published_publication_idstring | null

    format: "uuid"

  • source_revision_idstring | null

    format: "uuid"

  • layout_revision_idstring | null

    format: "uuid"

  • published_layout_revision_idstring | null

    format: "uuid"

  • source_localestring | null
  • configured_localesarray
  • แต่ละรายการstring
  • variablesobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • published_variablesobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • configobjectจำเป็น

    ขั้นตอนรอรับ until ได้โดยไม่บังคับ โดยมี name, path, operator (equals, not_equals, contains หรือ exists) และ value พร้อม on_met ที่จำเป็น (continue หรือ end_journey) continue ข้ามอีเมลเตือนที่ตามมา ส่วน end_journey สิ้นสุดเส้นทาง ต้องมีอีเมลเตือนตามหลังทันทีในสาขาเดียวกัน ขั้นตอนรอตรวจข้อมูลลูกค้าปัจจุบันทุกนาทีจนครบ amount/unit ฟิลด์ที่ขาดถือว่าไม่ทราบค่าและจะพักอีเมลเตือนไว้ การรอทั่วไปและเงื่อนไขแยกยังทำงานตามเดิม ตั้งชื่อการตรวจตามเหตุการณ์สำคัญของลูกค้าที่ตรวจยืนยันแล้ว ขั้นตอนอีเมลที่จัดการอ้างอิงเนื้อหาที่เผยแพร่ผ่าน managed_content_id การเปิดใช้งานจะปฏิเสธการอ้างอิงที่ยังไม่เผยแพร่ ทุกขั้นตอนอีเมลกำหนด delivery_class เป็น product (อีเมลธุรกรรม เช่น ใบเสร็จและอีเมลบัญชี) หรือ broadcast (การตลาด ซึ่งมีลิงก์ยกเลิกการสมัครและต้องมีชื่อบริษัทกับที่อยู่ไปรษณีย์ในแบรนด์ของผลิตภัณฑ์) ขั้นตอนที่ไม่ระบุจะถูกปฏิเสธด้วย 400 journey_delivery_class_required ขั้นตอนอีเมลอาจกำหนด expires_after_seconds (1-604800) เพื่อยกเลิกการส่งที่เลื่อนเมื่อพ้นช่วงเวลานั้นนับจากเวลาเริ่มต้นเดิม ค่าเริ่มต้นคือเจ็ดวัน

  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • armsarray

    minItems: 2 · maxItems: 4

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • keystringจำเป็น

    enum: "A", "B", "C", "D"

  • labelstringจำเป็น

    maxLength: 120

  • allocationnumberจำเป็น

    minimum: 0 · maximum: 100

  • stepsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

การตอบกลับสำเร็จ 200

อัปเดตเส้นทางแล้ว

application/json

  • valueobject
  • dataไม่ได้ระบุจำเป็น
  • allOf 1object

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • namestringจำเป็น

    minLength: 1 · maxLength: 200

  • descriptionstring

    maxLength: 2000

  • mailbox_idstring

    ผู้ส่งที่มีอยู่ ไม่ระบุเพื่อเลือกผู้ส่งเริ่มต้นก่อน แล้วกล่องจดหมายกำหนดเองที่ใช้งาน แล้วกล่องที่โฮสต์ ผู้ส่งที่บันทึกและระบุชัดไม่เปลี่ยน

    format: "uuid"

  • from_local_partstring

    maxLength: 64 · pattern: "^[a-z0-9][a-z0-9._+-]{0,62}$"

  • triggerobjectจำเป็น
  • kindstringจำเป็น

    enum: "manual", "contact_created", "audience_joined", "event", "schedule", "inbound_email", "email_replied", "api"

  • connection_idstring

    format: "uuid"

  • configobject
  • eventstring
  • everyinteger

    สำหรับทริกเกอร์แบบตั้งเวลา เป็นช่วงตามปฏิทินนับจากวันที่เปิดใช้งานตามเวลาท้องถิ่น

    minimum: 1 · maximum: 366 · default: 1

  • unitstring

    สำหรับทริกเกอร์แบบตั้งเวลา หากวันนั้นไม่มีในเดือน จะใช้วันสุดท้ายของเดือนโดยไม่เปลี่ยนวันอ้างอิงเดิม

    default: "weeks" · enum: "days", "weeks", "months"

  • timestring

    เวลาตามนาฬิกาท้องถิ่นของกำหนดการ ครั้งแรกต้องเกิดหลังการเปิดใช้งานเท่านั้น เวลาที่ไม่มีอยู่เนื่องจาก DST จะถูกข้าม และเวลาท้องถิ่นที่ซ้ำจะทำงานเพียงครั้งเดียว

    pattern: "^([01][0-9]|2[0-3]):[0-5][0-9]$" · default: "09:00"

  • timezonestring

    เขตเวลา IANA สำหรับทริกเกอร์แบบตั้งเวลา หลังระบบหยุดทำงาน จะเรียกคืนเฉพาะครั้งล่าสุดที่ถึงกำหนด เวลาที่พลาดระหว่างหยุดชั่วคราวจะถูกข้าม เงื่อนไขทริกเกอร์ต้องว่าง ให้เลือกรายชื่อติดต่อด้วย audience กฎการตรวจทาน การระงับส่ง และการเข้าร่วมซ้ำตามปกติยังคงใช้

    default: "UTC"

  • once_per_personboolean

    แต่ละคนเข้าร่วมครั้งเดียว ตั้ง false เพื่อให้เข้าร่วมอีกหลังเสร็จ

    default: true

  • reentry_daysinteger

    เมื่อ once_per_person เป็น false จำนวนวันหลังการเข้าร่วมล่าสุดก่อนเข้าร่วมอีกได้

    minimum: 1 · maximum: 365

  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • conditionsarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • audienceobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • goalobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • kindstringจำเป็น

    enum: "none", "event", "reply", "conversion"

  • connection_idstring

    format: "uuid"

  • configobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • exitobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • on_replyboolean

    default: true

  • on_unsubscribeboolean

    default: true

  • on_suppressionboolean

    default: true

  • eventstring

    maxLength: 200

  • approval_modestring

    enum: "policy", "required"

  • apiobject
  • keystring

    maxLength: 100

  • content_modestring

    enum: "code", "managed"

  • identitystring

    maxLength: 300

  • managed_contentobject

    ทางลัดเฉพาะสร้าง: บันทึกฉบับร่างอีเมลที่จัดการต้นฉบับและเส้นทางที่ขั้นตอนอีเมลอ้างถึงแบบอะตอม ภาษาปลายทางที่ขาดเข้าคิวแปลฟรี ไม่เผยแพร่หรือเปิดเส้นทาง

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • source_localestring

    โลแคลต้นฉบับ BCP 47 ตามข้อมูลหลัก หากไม่ระบุจะสืบทอดการตั้งค่าผลิตภัณฑ์

  • configured_localesarray

    โลแคลต้นฉบับและปลายทาง เซิร์ฟเวอร์เพิ่มต้นฉบับที่ไม่ได้ระบุ

    maxItems: 100 · uniqueItems: true

  • แต่ละรายการstring
  • fallback_localestring
  • layout_idstring

    เลย์เอาต์ใช้ซ้ำที่เลือก เซิร์ฟเวอร์เก็บภาพรวมฉบับที่เผยแพร่ในฉบับเนื้อหานี้

    format: "uuid"

  • localization_policyobject

    อีเมลเส้นทางส่งเฉพาะภาษาของบุคคลนั้น รอคำแปลประมาณหนึ่งนาทีสำหรับใบเสร็จ รหัส และแจ้งความปลอดภัย และสูงสุดหนึ่งวันสำหรับอีเมลอื่น ไม่ส่งหากคำแปลยังไม่พร้อมเมื่อครบเวลา

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • manual_reviewboolean

    default: false

  • sourceobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • subjectstringจำเป็น

    minLength: 1 · maxLength: 100000

  • preheaderstring

    maxLength: 100000

  • body_textstring

    รับเพื่อรองรับต้นฉบับ ข้อความล้วนที่เรนเดอร์ได้มาจาก HTML สุดท้าย

    maxLength: 100000

  • body_htmlstringจำเป็น

    minLength: 1 · maxLength: 100000

  • layoutstring

    ต้องมีสล็อต {{ content }} หนึ่งแห่ง

    maxLength: 100000

  • variantsobject

    เวอร์ชันต้นฉบับที่ไม่บังคับ ทุกเวอร์ชันแปลอัตโนมัติในฉบับเดียวกัน

  • พร็อพเพอร์ตีเพิ่มเติมobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • variablesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมไม่ได้ระบุ

    ตัวแปรระบุชนิดแบบเรียกซ้ำ ค่าเงินใช้ {amount_cents: integer, currency: ISO 4217 code} ค่า date เป็นวันที่ปฏิทิน ISO และค่า datetime เป็นเวลาประทับ ISO พร้อมออฟเซ็ต

    ละส่วนที่ซ้อนลึกกว่านี้

  • samplesobject

    ชุดค่าตัวอย่างที่มีชื่อสำหรับแสดงตัวอย่างและตรวจสอบต้นฉบับ

  • พร็อพเพอร์ตีเพิ่มเติมobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • translationsobject

    แค็ตตาล็อกข้อความ ICU ต้นฉบับและแค็ตตาล็อกปลายทางที่ส่งมาซึ่งไม่บังคับ ปลายทางที่ตั้งค่าแต่ขาดเข้าคิวแปลแบบอะซิงโครนัส ไม่ต้องมีเพื่อบันทึก

  • พร็อพเพอร์ตีเพิ่มเติมobject
  • พร็อพเพอร์ตีเพิ่มเติมstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • stepsarrayจำเป็น

    maxItems: 100

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstring

    format: "uuid"

  • positioninteger

    minimum: 1 · maximum: 100

  • kindstringจำเป็น

    enum: "email", "sms", "whatsapp", "wait", "condition", "action", "split"

  • namestringจำเป็น

    minLength: 1 · maxLength: 200

  • managed_contentobject

    สัญญาต้นฉบับที่ระบุชนิดและตัวตนฉบับร่าง/ฉบับเผยแพร่สำหรับขั้นตอนอีเมล

  • idstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • versioninteger

    ละส่วนที่ซ้อนลึกกว่านี้

  • draft_revision_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • published_revision_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • published_publication_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • source_revision_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • layout_revision_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • published_layout_revision_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • source_localestring | null

    ละส่วนที่ซ้อนลึกกว่านี้

  • configured_localesarray

    ละส่วนที่ซ้อนลึกกว่านี้

  • variablesobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • published_variablesobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • configobjectจำเป็น

    ขั้นตอนรอรับ until ได้โดยไม่บังคับ โดยมี name, path, operator (equals, not_equals, contains หรือ exists) และ value พร้อม on_met ที่จำเป็น (continue หรือ end_journey) continue ข้ามอีเมลเตือนที่ตามมา ส่วน end_journey สิ้นสุดเส้นทาง ต้องมีอีเมลเตือนตามหลังทันทีในสาขาเดียวกัน ขั้นตอนรอตรวจข้อมูลลูกค้าปัจจุบันทุกนาทีจนครบ amount/unit ฟิลด์ที่ขาดถือว่าไม่ทราบค่าและจะพักอีเมลเตือนไว้ การรอทั่วไปและเงื่อนไขแยกยังทำงานตามเดิม ตั้งชื่อการตรวจตามเหตุการณ์สำคัญของลูกค้าที่ตรวจยืนยันแล้ว ขั้นตอนอีเมลที่จัดการอ้างอิงเนื้อหาที่เผยแพร่ผ่าน managed_content_id การเปิดใช้งานจะปฏิเสธการอ้างอิงที่ยังไม่เผยแพร่ ทุกขั้นตอนอีเมลกำหนด delivery_class เป็น product (อีเมลธุรกรรม เช่น ใบเสร็จและอีเมลบัญชี) หรือ broadcast (การตลาด ซึ่งมีลิงก์ยกเลิกการสมัครและต้องมีชื่อบริษัทกับที่อยู่ไปรษณีย์ในแบรนด์ของผลิตภัณฑ์) ขั้นตอนที่ไม่ระบุจะถูกปฏิเสธด้วย 400 journey_delivery_class_required ขั้นตอนอีเมลอาจกำหนด expires_after_seconds (1-604800) เพื่อยกเลิกการส่งที่เลื่อนเมื่อพ้นช่วงเวลานั้นนับจากเวลาเริ่มต้นเดิม ค่าเริ่มต้นคือเจ็ดวัน

  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • armsarray

    minItems: 2 · maxItems: 4

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • allOf 2object
  • idstringจำเป็น

    format: "uuid"

  • statusstringจำเป็น

    enum: "draft", "discovered", "active", "paused", "archived"

  • api_keystring | null
  • content_modestring | null

    enum: "code", "managed", null

  • identitystring | null
  • identity_aliasesarray
  • แต่ละรายการstring
  • samplesarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • versionintegerจำเป็น

    minimum: 1

  • statsobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • stepStatsarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • armStatsarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • healthobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • indicatorobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • sparklinearrayจำเป็น
  • แต่ละรายการnumber
  • activated_atstring | null

    format: "date-time"

  • updated_atstring

    format: "date-time"

  • last_activity_atstring | null

    format: "date-time"

ตัวอย่าง curl

curl --request PATCH --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/journeys/{journeyId}' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "expected_version": 1,
  "name": "example",
  "description": "example",
  "mailbox_id": "00000000-0000-4000-8000-000000000001",
  "from_local_part": "example",
  "trigger": {},
  "audience": {},
  "goal": {},
  "exit": {},
  "approval_mode": "policy",
  "api": {},
  "steps": [
    {
      "id": "00000000-0000-4000-8000-000000000001",
      "position": 1,
      "kind": "email",
      "name": "example",
      "config": {},
      "arms": [
        {
          "key": "A",
          "label": "example",
          "allocation": 0,
          "steps": [
            {
              "id": null,
              "position": null,
              "kind": null,
              "name": null,
              "config": null,
              "arms": null
            }
          ]
        }
      ]
    }
  ]
}'
DELETE/v1/workspaces/{workspaceId}/journeys/{journeyId}

deleteJourney

เก็บเส้นทางถาวร นำออกจากรายการเริ่มต้นและหยุดการเข้าร่วมที่ใช้งาน เก็บประวัติการส่งไว้

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

journeyId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 204

นำเส้นทางออกแล้ว

ไม่มีเนื้อหาการตอบกลับ

ตัวอย่าง curl

curl --request DELETE --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/journeys/{journeyId}' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/journeys/{journeyId}/convert-managed

แปลงเส้นทางรุ่นเก่าที่หยุดชั่วคราวหรือเป็นฉบับร่างเป็นเนื้อหาที่จัดการซึ่งเตรียมแล้ว

การแปลงทางเดียว เส้นทางที่มีหนึ่งขั้นตอนอีเมลให้ส่ง contract หลายอีเมลรวมแขนงแยกให้ส่ง step_contents พร้อม step_id ที่บันทึกหนึ่งรายการพอดีและสัญญา HTML/Liquid ที่เตรียมต่ออีเมล การแปลงเป็นอะตอมและเปลี่ยนเส้นทางเป็น draft ทุกฉบับเนื้อหาที่จัดการใหม่รับการตรวจทานเผยแพร่ที่ควบคุมของตนเอง ไม่ส่งหรือเผยแพร่อีเมลระหว่างแปลง Banger ไม่เคยนำเข้าหรือรันซอร์สโค้ด

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

journeyId
path · จำเป็น
  • valuestring

    format: "uuid"

Idempotency-Key
header · จำเป็น
  • valuestring

    minLength: 16 · maxLength: 128

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • expected_versionintegerจำเป็น

    minimum: 1

  • contractobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • source_localestring

    โลแคลต้นฉบับ BCP 47 ตามข้อมูลหลัก หากไม่ระบุจะสืบทอดการตั้งค่าผลิตภัณฑ์

  • configured_localesarray

    โลแคลต้นฉบับและปลายทาง เซิร์ฟเวอร์เพิ่มต้นฉบับที่ไม่ได้ระบุ

    maxItems: 100 · uniqueItems: true

  • แต่ละรายการstring
  • fallback_localestring
  • layout_idstring

    เลย์เอาต์ใช้ซ้ำที่เลือก เซิร์ฟเวอร์เก็บภาพรวมฉบับที่เผยแพร่ในฉบับเนื้อหานี้

    format: "uuid"

  • localization_policyobject

    อีเมลเส้นทางส่งเฉพาะภาษาของบุคคลนั้น รอคำแปลประมาณหนึ่งนาทีสำหรับใบเสร็จ รหัส และแจ้งความปลอดภัย และสูงสุดหนึ่งวันสำหรับอีเมลอื่น ไม่ส่งหากคำแปลยังไม่พร้อมเมื่อครบเวลา

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • manual_reviewboolean

    default: false

  • sourceobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • subjectstringจำเป็น

    minLength: 1 · maxLength: 100000

  • preheaderstring

    maxLength: 100000

  • body_textstring

    รับเพื่อรองรับต้นฉบับ ข้อความล้วนที่เรนเดอร์ได้มาจาก HTML สุดท้าย

    maxLength: 100000

  • body_htmlstringจำเป็น

    minLength: 1 · maxLength: 100000

  • layoutstring

    ต้องมีสล็อต {{ content }} หนึ่งแห่ง

    maxLength: 100000

  • variantsobject

    เวอร์ชันต้นฉบับที่ไม่บังคับ ทุกเวอร์ชันแปลอัตโนมัติในฉบับเดียวกัน

  • พร็อพเพอร์ตีเพิ่มเติมobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • subjectstringจำเป็น

    minLength: 1 · maxLength: 100000

  • preheaderstring

    maxLength: 100000

  • body_htmlstringจำเป็น

    minLength: 1 · maxLength: 100000

  • body_textstring

    maxLength: 100000

  • layoutstring

    maxLength: 100000

  • variablesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมไม่ได้ระบุ

    ตัวแปรระบุชนิดแบบเรียกซ้ำ ค่าเงินใช้ {amount_cents: integer, currency: ISO 4217 code} ค่า date เป็นวันที่ปฏิทิน ISO และค่า datetime เป็นเวลาประทับ ISO พร้อมออฟเซ็ต

  • oneOf 1object

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • typestringจำเป็น

    enum: "string", "text", "url", "image_url", "html", "date", "datetime", "number", "boolean", "money"

    ละส่วนที่ซ้อนลึกกว่านี้

  • requiredboolean

    ละส่วนที่ซ้อนลึกกว่านี้

  • descriptionstring

    maxLength: 2000

    ละส่วนที่ซ้อนลึกกว่านี้

  • defaultไม่ได้ระบุ

    ต้องตรงกับชนิดฟิลด์

    ละส่วนที่ซ้อนลึกกว่านี้

  • oneOf 2object

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • typeไม่ได้ระบุจำเป็น

    const: "object"

    ละส่วนที่ซ้อนลึกกว่านี้

  • requiredboolean

    ละส่วนที่ซ้อนลึกกว่านี้

  • descriptionstring

    maxLength: 2000

    ละส่วนที่ซ้อนลึกกว่านี้

  • defaultobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • propertiesobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • oneOf 3object

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • typeไม่ได้ระบุจำเป็น

    const: "list"

    ละส่วนที่ซ้อนลึกกว่านี้

  • requiredboolean

    ละส่วนที่ซ้อนลึกกว่านี้

  • descriptionstring

    maxLength: 2000

    ละส่วนที่ซ้อนลึกกว่านี้

  • defaultarray

    ละส่วนที่ซ้อนลึกกว่านี้

  • itemsไม่ได้ระบุจำเป็น

    ตัวแปรระบุชนิดแบบเรียกซ้ำ ค่าเงินใช้ {amount_cents: integer, currency: ISO 4217 code} ค่า date เป็นวันที่ปฏิทิน ISO และค่า datetime เป็นเวลาประทับ ISO พร้อมออฟเซ็ต

    ละส่วนที่ซ้อนลึกกว่านี้

  • samplesobject

    ชุดค่าตัวอย่างที่มีชื่อสำหรับแสดงตัวอย่างและตรวจสอบต้นฉบับ

  • พร็อพเพอร์ตีเพิ่มเติมobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • translationsobject

    แค็ตตาล็อกข้อความ ICU ต้นฉบับและแค็ตตาล็อกปลายทางที่ส่งมาซึ่งไม่บังคับ ปลายทางที่ตั้งค่าแต่ขาดเข้าคิวแปลแบบอะซิงโครนัส ไม่ต้องมีเพื่อบันทึก

  • พร็อพเพอร์ตีเพิ่มเติมobject
  • พร็อพเพอร์ตีเพิ่มเติมstring
  • step_contentsarray

    minItems: 1

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • step_idstringจำเป็น

    format: "uuid"

  • contractobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • source_localestring

    โลแคลต้นฉบับ BCP 47 ตามข้อมูลหลัก หากไม่ระบุจะสืบทอดการตั้งค่าผลิตภัณฑ์

  • configured_localesarray

    โลแคลต้นฉบับและปลายทาง เซิร์ฟเวอร์เพิ่มต้นฉบับที่ไม่ได้ระบุ

    maxItems: 100 · uniqueItems: true

  • แต่ละรายการstring
  • fallback_localestring
  • layout_idstring

    เลย์เอาต์ใช้ซ้ำที่เลือก เซิร์ฟเวอร์เก็บภาพรวมฉบับที่เผยแพร่ในฉบับเนื้อหานี้

    format: "uuid"

  • localization_policyobject

    อีเมลเส้นทางส่งเฉพาะภาษาของบุคคลนั้น รอคำแปลประมาณหนึ่งนาทีสำหรับใบเสร็จ รหัส และแจ้งความปลอดภัย และสูงสุดหนึ่งวันสำหรับอีเมลอื่น ไม่ส่งหากคำแปลยังไม่พร้อมเมื่อครบเวลา

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • manual_reviewboolean

    default: false

  • sourceobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • subjectstringจำเป็น

    minLength: 1 · maxLength: 100000

  • preheaderstring

    maxLength: 100000

  • body_textstring

    รับเพื่อรองรับต้นฉบับ ข้อความล้วนที่เรนเดอร์ได้มาจาก HTML สุดท้าย

    maxLength: 100000

  • body_htmlstringจำเป็น

    minLength: 1 · maxLength: 100000

  • layoutstring

    ต้องมีสล็อต {{ content }} หนึ่งแห่ง

    maxLength: 100000

  • variantsobject

    เวอร์ชันต้นฉบับที่ไม่บังคับ ทุกเวอร์ชันแปลอัตโนมัติในฉบับเดียวกัน

  • พร็อพเพอร์ตีเพิ่มเติมobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • variablesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมไม่ได้ระบุ

    ตัวแปรระบุชนิดแบบเรียกซ้ำ ค่าเงินใช้ {amount_cents: integer, currency: ISO 4217 code} ค่า date เป็นวันที่ปฏิทิน ISO และค่า datetime เป็นเวลาประทับ ISO พร้อมออฟเซ็ต

    ละส่วนที่ซ้อนลึกกว่านี้

  • samplesobject

    ชุดค่าตัวอย่างที่มีชื่อสำหรับแสดงตัวอย่างและตรวจสอบต้นฉบับ

  • พร็อพเพอร์ตีเพิ่มเติมobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • translationsobject

    แค็ตตาล็อกข้อความ ICU ต้นฉบับและแค็ตตาล็อกปลายทางที่ส่งมาซึ่งไม่บังคับ ปลายทางที่ตั้งค่าแต่ขาดเข้าคิวแปลแบบอะซิงโครนัส ไม่ต้องมีเพื่อบันทึก

  • พร็อพเพอร์ตีเพิ่มเติมobject
  • พร็อพเพอร์ตีเพิ่มเติมstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • oneOf 1ไม่ได้ระบุ
  • oneOf 2ไม่ได้ระบุ

การตอบกลับสำเร็จ 200

การเรียกซ้ำแบบ idempotent สำหรับการแปลงเดิม

application/json

  • valueobject
  • dataobjectจำเป็น
  • journey_idstringจำเป็น

    format: "uuid"

  • statusstringจำเป็น

    enum: "draft"

  • review_requiredbooleanจำเป็น

    const: true

  • managed_content_stepsarrayจำเป็น
  • แต่ละรายการobject
  • step_idstringจำเป็น

    format: "uuid"

  • managed_content_idstringจำเป็น

    format: "uuid"

  • content_versionintegerจำเป็น
  • source_revision_idstring | nullจำเป็น

    format: "uuid"

  • previewobjectจำเป็น
  • subjectstringจำเป็น
  • preheaderstring
  • htmlstringจำเป็น
  • textstringจำเป็น
  • localestringจำเป็น
  • directionstringจำเป็น

    enum: "ltr", "rtl"

  • warningsarray
  • แต่ละรายการstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • translation_jobsarrayจำเป็น
  • แต่ละรายการstring

    format: "uuid"

  • managed_content_idstring

    format: "uuid"

  • content_versioninteger
  • source_revision_idstring | null

    format: "uuid"

  • previewobject
  • subjectstringจำเป็น
  • preheaderstring
  • htmlstringจำเป็น
  • textstringจำเป็น
  • localestringจำเป็น
  • directionstringจำเป็น

    enum: "ltr", "rtl"

  • warningsarray
  • แต่ละรายการstring
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • replayedbooleanจำเป็น
  • approvalsarrayจำเป็น
  • แต่ละรายการobject
  • step_idstringจำเป็น

    format: "uuid"

  • approvalobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • requested_by_actor_idstringจำเป็น
  • action_kindstringจำเป็น
  • summarystringจำเป็น
  • capability_scopesarrayจำเป็น
  • แต่ละรายการstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • resource_scopeobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมarray

    ละส่วนที่ซ้อนลึกกว่านี้

  • payloadobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • payload_sha256stringจำเป็น

    pattern: "^[0-9a-f]{64}$"

  • statusstringจำเป็น

    enum: "pending", "approved", "rejected", "cancelled", "expired"

  • missedbooleanจำเป็น
  • expires_atstringจำเป็น

    format: "date-time"

  • qa_automationobject | null

    หลักฐานแหล่งที่มาของระบบอัตโนมัติ QA โดยเฉพาะที่เซิร์ฟเวอร์บันทึกไว้ ไม่ถือเป็นหลักฐานว่ามีคนตรวจทานเพย์โหลด ระบบจะตรวจสอบการทำงานและสิทธิ์อนุญาตส่วนกลางอีกครั้งขณะดำเนินการ

  • kindstring

    enum: "dedicated_qa_automation"

    ละส่วนที่ซ้อนลึกกว่านี้

  • authorization_referencestring

    ละส่วนที่ซ้อนลึกกว่านี้

  • run_idstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • operation_keystring

    ละส่วนที่ซ้อนลึกกว่านี้

  • recipientsarray

    ละส่วนที่ซ้อนลึกกว่านี้

  • approval_sha256string

    ละส่วนที่ซ้อนลึกกว่านี้

  • resource_sha256string

    ละส่วนที่ซ้อนลึกกว่านี้

  • decided_by_actor_idstring | null
  • decision_reasonstring | null
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • decided_atstring | null

    format: "date-time"

  • execution_job_idstring

    format: "uuid"

  • reviewobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • dispositionstringจำเป็น

    enum: "automatic", "human_required"

    ละส่วนที่ซ้อนลึกกว่านี้

  • recipient_countinteger | nullจำเป็น

    minimum: 0

    ละส่วนที่ซ้อนลึกกว่านี้

  • reasonsarrayจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • checksarrayจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • approvalobject
  • idstringจำเป็น

    format: "uuid"

  • requested_by_actor_idstringจำเป็น
  • action_kindstringจำเป็น
  • summarystringจำเป็น
  • capability_scopesarrayจำเป็น
  • แต่ละรายการstring
  • resource_scopeobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมarray
  • แต่ละรายการstring
  • payloadobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • payload_sha256stringจำเป็น

    pattern: "^[0-9a-f]{64}$"

  • statusstringจำเป็น

    enum: "pending", "approved", "rejected", "cancelled", "expired"

  • missedbooleanจำเป็น
  • expires_atstringจำเป็น

    format: "date-time"

  • qa_automationobject | null

    หลักฐานแหล่งที่มาของระบบอัตโนมัติ QA โดยเฉพาะที่เซิร์ฟเวอร์บันทึกไว้ ไม่ถือเป็นหลักฐานว่ามีคนตรวจทานเพย์โหลด ระบบจะตรวจสอบการทำงานและสิทธิ์อนุญาตส่วนกลางอีกครั้งขณะดำเนินการ

  • kindstring

    enum: "dedicated_qa_automation"

  • authorization_referencestring
  • run_idstring
  • operation_keystring
  • recipientsarray
  • แต่ละรายการstring

    format: "email"

  • approval_sha256string
  • resource_sha256string
  • decided_by_actor_idstring | null
  • decision_reasonstring | null
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • decided_atstring | null

    format: "date-time"

  • execution_job_idstring

    format: "uuid"

  • reviewobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • dispositionstringจำเป็น

    enum: "automatic", "human_required"

  • recipient_countinteger | nullจำเป็น

    minimum: 0

  • reasonsarrayจำเป็น
  • แต่ละรายการstring
  • checksarrayจำเป็น
  • แต่ละรายการstring

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/journeys/{journeyId}/convert-managed' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001' \
  --header 'Idempotency-Key: examplexxxxxxxxx' \
  --header 'Content-Type: application/json' \
  --data-raw '"example"'
POST/v1/workspaces/{workspaceId}/journeys/{journeyId}/render

เรนเดอร์หนึ่งขั้นตอนอีเมลเส้นทางที่บันทึกโดยไม่ส่ง

ระบุ step_id เมื่อเส้นทางมีหลายขั้นตอนอีเมล รวมแขนงแยก ใช้ฉบับเนื้อหาที่เปลี่ยนไม่ได้ของฉบับร่างหรือฉบับเผยแพร่ที่เลือก

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

journeyId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • step_idstring

    format: "uuid"

  • content_statestring

    default: "draft" · enum: "draft", "published"

  • localestring
  • timezonestring
  • sample_setstring
  • variablesobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้

การตอบกลับสำเร็จ 200

หัวเรื่อง HTML ข้อความล้วน โลแคล ID ฉบับ และคำเตือนการดึงข้อมูลที่เรนเดอร์

application/json

  • valueobject
  • dataไม่ได้ระบุจำเป็น
  • allOf 1object
  • subjectstringจำเป็น
  • preheaderstring
  • htmlstringจำเป็น
  • textstringจำเป็น
  • localestringจำเป็น
  • directionstringจำเป็น

    enum: "ltr", "rtl"

  • warningsarray
  • แต่ละรายการstring
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • allOf 2object
  • source_revision_idstringจำเป็น

    format: "uuid"

  • layout_revision_idstring | nullจำเป็น

    format: "uuid"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/journeys/{journeyId}/render' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "step_id": "00000000-0000-4000-8000-000000000001",
  "content_state": "draft",
  "locale": "example",
  "timezone": "example",
  "sample_set": "example",
  "variables": {}
}'
POST/v1/workspaces/{workspaceId}/journeys/{journeyId}/status

setJourneyStatus

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

journeyId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • statusstringจำเป็น

    enum: "draft", "active", "paused", "archived"

การตอบกลับสำเร็จ 200

อัปเดตสถานะเส้นทางแล้ว

application/json

  • valueobject
  • dataไม่ได้ระบุจำเป็น
  • allOf 1object

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • namestringจำเป็น

    minLength: 1 · maxLength: 200

  • descriptionstring

    maxLength: 2000

  • mailbox_idstring

    ผู้ส่งที่มีอยู่ ไม่ระบุเพื่อเลือกผู้ส่งเริ่มต้นก่อน แล้วกล่องจดหมายกำหนดเองที่ใช้งาน แล้วกล่องที่โฮสต์ ผู้ส่งที่บันทึกและระบุชัดไม่เปลี่ยน

    format: "uuid"

  • from_local_partstring

    maxLength: 64 · pattern: "^[a-z0-9][a-z0-9._+-]{0,62}$"

  • triggerobjectจำเป็น
  • kindstringจำเป็น

    enum: "manual", "contact_created", "audience_joined", "event", "schedule", "inbound_email", "email_replied", "api"

  • connection_idstring

    format: "uuid"

  • configobject
  • eventstring
  • everyinteger

    สำหรับทริกเกอร์แบบตั้งเวลา เป็นช่วงตามปฏิทินนับจากวันที่เปิดใช้งานตามเวลาท้องถิ่น

    minimum: 1 · maximum: 366 · default: 1

  • unitstring

    สำหรับทริกเกอร์แบบตั้งเวลา หากวันนั้นไม่มีในเดือน จะใช้วันสุดท้ายของเดือนโดยไม่เปลี่ยนวันอ้างอิงเดิม

    default: "weeks" · enum: "days", "weeks", "months"

  • timestring

    เวลาตามนาฬิกาท้องถิ่นของกำหนดการ ครั้งแรกต้องเกิดหลังการเปิดใช้งานเท่านั้น เวลาที่ไม่มีอยู่เนื่องจาก DST จะถูกข้าม และเวลาท้องถิ่นที่ซ้ำจะทำงานเพียงครั้งเดียว

    pattern: "^([01][0-9]|2[0-3]):[0-5][0-9]$" · default: "09:00"

  • timezonestring

    เขตเวลา IANA สำหรับทริกเกอร์แบบตั้งเวลา หลังระบบหยุดทำงาน จะเรียกคืนเฉพาะครั้งล่าสุดที่ถึงกำหนด เวลาที่พลาดระหว่างหยุดชั่วคราวจะถูกข้าม เงื่อนไขทริกเกอร์ต้องว่าง ให้เลือกรายชื่อติดต่อด้วย audience กฎการตรวจทาน การระงับส่ง และการเข้าร่วมซ้ำตามปกติยังคงใช้

    default: "UTC"

  • once_per_personboolean

    แต่ละคนเข้าร่วมครั้งเดียว ตั้ง false เพื่อให้เข้าร่วมอีกหลังเสร็จ

    default: true

  • reentry_daysinteger

    เมื่อ once_per_person เป็น false จำนวนวันหลังการเข้าร่วมล่าสุดก่อนเข้าร่วมอีกได้

    minimum: 1 · maximum: 365

  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • conditionsarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • audienceobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • goalobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • kindstringจำเป็น

    enum: "none", "event", "reply", "conversion"

  • connection_idstring

    format: "uuid"

  • configobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • exitobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • on_replyboolean

    default: true

  • on_unsubscribeboolean

    default: true

  • on_suppressionboolean

    default: true

  • eventstring

    maxLength: 200

  • approval_modestring

    enum: "policy", "required"

  • apiobject
  • keystring

    maxLength: 100

  • content_modestring

    enum: "code", "managed"

  • identitystring

    maxLength: 300

  • managed_contentobject

    ทางลัดเฉพาะสร้าง: บันทึกฉบับร่างอีเมลที่จัดการต้นฉบับและเส้นทางที่ขั้นตอนอีเมลอ้างถึงแบบอะตอม ภาษาปลายทางที่ขาดเข้าคิวแปลฟรี ไม่เผยแพร่หรือเปิดเส้นทาง

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • source_localestring

    โลแคลต้นฉบับ BCP 47 ตามข้อมูลหลัก หากไม่ระบุจะสืบทอดการตั้งค่าผลิตภัณฑ์

  • configured_localesarray

    โลแคลต้นฉบับและปลายทาง เซิร์ฟเวอร์เพิ่มต้นฉบับที่ไม่ได้ระบุ

    maxItems: 100 · uniqueItems: true

  • แต่ละรายการstring
  • fallback_localestring
  • layout_idstring

    เลย์เอาต์ใช้ซ้ำที่เลือก เซิร์ฟเวอร์เก็บภาพรวมฉบับที่เผยแพร่ในฉบับเนื้อหานี้

    format: "uuid"

  • localization_policyobject

    อีเมลเส้นทางส่งเฉพาะภาษาของบุคคลนั้น รอคำแปลประมาณหนึ่งนาทีสำหรับใบเสร็จ รหัส และแจ้งความปลอดภัย และสูงสุดหนึ่งวันสำหรับอีเมลอื่น ไม่ส่งหากคำแปลยังไม่พร้อมเมื่อครบเวลา

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • manual_reviewboolean

    default: false

  • sourceobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • subjectstringจำเป็น

    minLength: 1 · maxLength: 100000

  • preheaderstring

    maxLength: 100000

  • body_textstring

    รับเพื่อรองรับต้นฉบับ ข้อความล้วนที่เรนเดอร์ได้มาจาก HTML สุดท้าย

    maxLength: 100000

  • body_htmlstringจำเป็น

    minLength: 1 · maxLength: 100000

  • layoutstring

    ต้องมีสล็อต {{ content }} หนึ่งแห่ง

    maxLength: 100000

  • variantsobject

    เวอร์ชันต้นฉบับที่ไม่บังคับ ทุกเวอร์ชันแปลอัตโนมัติในฉบับเดียวกัน

  • พร็อพเพอร์ตีเพิ่มเติมobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • variablesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมไม่ได้ระบุ

    ตัวแปรระบุชนิดแบบเรียกซ้ำ ค่าเงินใช้ {amount_cents: integer, currency: ISO 4217 code} ค่า date เป็นวันที่ปฏิทิน ISO และค่า datetime เป็นเวลาประทับ ISO พร้อมออฟเซ็ต

    ละส่วนที่ซ้อนลึกกว่านี้

  • samplesobject

    ชุดค่าตัวอย่างที่มีชื่อสำหรับแสดงตัวอย่างและตรวจสอบต้นฉบับ

  • พร็อพเพอร์ตีเพิ่มเติมobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • translationsobject

    แค็ตตาล็อกข้อความ ICU ต้นฉบับและแค็ตตาล็อกปลายทางที่ส่งมาซึ่งไม่บังคับ ปลายทางที่ตั้งค่าแต่ขาดเข้าคิวแปลแบบอะซิงโครนัส ไม่ต้องมีเพื่อบันทึก

  • พร็อพเพอร์ตีเพิ่มเติมobject
  • พร็อพเพอร์ตีเพิ่มเติมstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • stepsarrayจำเป็น

    maxItems: 100

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstring

    format: "uuid"

  • positioninteger

    minimum: 1 · maximum: 100

  • kindstringจำเป็น

    enum: "email", "sms", "whatsapp", "wait", "condition", "action", "split"

  • namestringจำเป็น

    minLength: 1 · maxLength: 200

  • managed_contentobject

    สัญญาต้นฉบับที่ระบุชนิดและตัวตนฉบับร่าง/ฉบับเผยแพร่สำหรับขั้นตอนอีเมล

  • idstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • versioninteger

    ละส่วนที่ซ้อนลึกกว่านี้

  • draft_revision_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • published_revision_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • published_publication_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • source_revision_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • layout_revision_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • published_layout_revision_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • source_localestring | null

    ละส่วนที่ซ้อนลึกกว่านี้

  • configured_localesarray

    ละส่วนที่ซ้อนลึกกว่านี้

  • variablesobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • published_variablesobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • configobjectจำเป็น

    ขั้นตอนรอรับ until ได้โดยไม่บังคับ โดยมี name, path, operator (equals, not_equals, contains หรือ exists) และ value พร้อม on_met ที่จำเป็น (continue หรือ end_journey) continue ข้ามอีเมลเตือนที่ตามมา ส่วน end_journey สิ้นสุดเส้นทาง ต้องมีอีเมลเตือนตามหลังทันทีในสาขาเดียวกัน ขั้นตอนรอตรวจข้อมูลลูกค้าปัจจุบันทุกนาทีจนครบ amount/unit ฟิลด์ที่ขาดถือว่าไม่ทราบค่าและจะพักอีเมลเตือนไว้ การรอทั่วไปและเงื่อนไขแยกยังทำงานตามเดิม ตั้งชื่อการตรวจตามเหตุการณ์สำคัญของลูกค้าที่ตรวจยืนยันแล้ว ขั้นตอนอีเมลที่จัดการอ้างอิงเนื้อหาที่เผยแพร่ผ่าน managed_content_id การเปิดใช้งานจะปฏิเสธการอ้างอิงที่ยังไม่เผยแพร่ ทุกขั้นตอนอีเมลกำหนด delivery_class เป็น product (อีเมลธุรกรรม เช่น ใบเสร็จและอีเมลบัญชี) หรือ broadcast (การตลาด ซึ่งมีลิงก์ยกเลิกการสมัครและต้องมีชื่อบริษัทกับที่อยู่ไปรษณีย์ในแบรนด์ของผลิตภัณฑ์) ขั้นตอนที่ไม่ระบุจะถูกปฏิเสธด้วย 400 journey_delivery_class_required ขั้นตอนอีเมลอาจกำหนด expires_after_seconds (1-604800) เพื่อยกเลิกการส่งที่เลื่อนเมื่อพ้นช่วงเวลานั้นนับจากเวลาเริ่มต้นเดิม ค่าเริ่มต้นคือเจ็ดวัน

  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • armsarray

    minItems: 2 · maxItems: 4

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • allOf 2object
  • idstringจำเป็น

    format: "uuid"

  • statusstringจำเป็น

    enum: "draft", "discovered", "active", "paused", "archived"

  • api_keystring | null
  • content_modestring | null

    enum: "code", "managed", null

  • identitystring | null
  • identity_aliasesarray
  • แต่ละรายการstring
  • samplesarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • versionintegerจำเป็น

    minimum: 1

  • statsobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • stepStatsarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • armStatsarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • healthobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • indicatorobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • sparklinearrayจำเป็น
  • แต่ละรายการnumber
  • activated_atstring | null

    format: "date-time"

  • updated_atstring

    format: "date-time"

  • last_activity_atstring | null

    format: "date-time"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/journeys/{journeyId}/status' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "status": "draft"
}'
POST/v1/workspaces/{workspaceId}/journeys/{journeyId}/preview

previewJourney

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

journeyId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

ตัวอย่างผู้รับและความพร้อมของเส้นทาง

application/json

  • valueobject
  • dataobjectจำเป็น
  • sequence_idstringจำเป็น

    format: "uuid"

  • recipient_countintegerจำเป็น
  • sample_recipientsarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • emailstringจำเป็น
  • display_namestring | nullจำเป็น
  • stepsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstring

    format: "uuid"

  • positioninteger

    minimum: 1 · maximum: 100

  • kindstringจำเป็น

    enum: "email", "sms", "whatsapp", "wait", "condition", "action", "split"

  • namestringจำเป็น

    minLength: 1 · maxLength: 200

  • managed_contentobject

    สัญญาต้นฉบับที่ระบุชนิดและตัวตนฉบับร่าง/ฉบับเผยแพร่สำหรับขั้นตอนอีเมล

  • idstring

    format: "uuid"

  • versioninteger
  • draft_revision_idstring | null

    format: "uuid"

  • published_revision_idstring | null

    format: "uuid"

  • published_publication_idstring | null

    format: "uuid"

  • source_revision_idstring | null

    format: "uuid"

  • layout_revision_idstring | null

    format: "uuid"

  • published_layout_revision_idstring | null

    format: "uuid"

  • source_localestring | null
  • configured_localesarray
  • แต่ละรายการstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • variablesobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • published_variablesobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • configobjectจำเป็น

    ขั้นตอนรอรับ until ได้โดยไม่บังคับ โดยมี name, path, operator (equals, not_equals, contains หรือ exists) และ value พร้อม on_met ที่จำเป็น (continue หรือ end_journey) continue ข้ามอีเมลเตือนที่ตามมา ส่วน end_journey สิ้นสุดเส้นทาง ต้องมีอีเมลเตือนตามหลังทันทีในสาขาเดียวกัน ขั้นตอนรอตรวจข้อมูลลูกค้าปัจจุบันทุกนาทีจนครบ amount/unit ฟิลด์ที่ขาดถือว่าไม่ทราบค่าและจะพักอีเมลเตือนไว้ การรอทั่วไปและเงื่อนไขแยกยังทำงานตามเดิม ตั้งชื่อการตรวจตามเหตุการณ์สำคัญของลูกค้าที่ตรวจยืนยันแล้ว ขั้นตอนอีเมลที่จัดการอ้างอิงเนื้อหาที่เผยแพร่ผ่าน managed_content_id การเปิดใช้งานจะปฏิเสธการอ้างอิงที่ยังไม่เผยแพร่ ทุกขั้นตอนอีเมลกำหนด delivery_class เป็น product (อีเมลธุรกรรม เช่น ใบเสร็จและอีเมลบัญชี) หรือ broadcast (การตลาด ซึ่งมีลิงก์ยกเลิกการสมัครและต้องมีชื่อบริษัทกับที่อยู่ไปรษณีย์ในแบรนด์ของผลิตภัณฑ์) ขั้นตอนที่ไม่ระบุจะถูกปฏิเสธด้วย 400 journey_delivery_class_required ขั้นตอนอีเมลอาจกำหนด expires_after_seconds (1-604800) เพื่อยกเลิกการส่งที่เลื่อนเมื่อพ้นช่วงเวลานั้นนับจากเวลาเริ่มต้นเดิม ค่าเริ่มต้นคือเจ็ดวัน

  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • armsarray

    minItems: 2 · maxItems: 4

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • keystringจำเป็น

    enum: "A", "B", "C", "D"

    ละส่วนที่ซ้อนลึกกว่านี้

  • labelstringจำเป็น

    maxLength: 120

    ละส่วนที่ซ้อนลึกกว่านี้

  • allocationnumberจำเป็น

    minimum: 0 · maximum: 100

    ละส่วนที่ซ้อนลึกกว่านี้

  • stepsarrayจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • readybooleanจำเป็น
  • exit_configobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • on_replyboolean

    default: true

  • on_unsubscribeboolean

    default: true

  • on_suppressionboolean

    default: true

  • eventstring

    maxLength: 200

  • emailsarrayจำเป็น
  • แต่ละรายการobject
  • step_idstring | nullจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • armobject
  • split_step_idstring

    format: "uuid"

  • keystringจำเป็น
  • labelstringจำเป็น
  • sourcestringจำเป็น

    enum: "managed", "design", "inline", "empty"

  • template_idstring

    format: "uuid"

  • managed_content_idstring

    format: "uuid"

  • subjectstringจำเป็น
  • previewstringจำเป็น
  • blockersarrayจำเป็น
  • แต่ละรายการobject
  • codestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • messagestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • blockersarrayจำเป็น
  • แต่ละรายการobject
  • codestringจำเป็น
  • messagestringจำเป็น
  • step_idstring | nullจำเป็น

    format: "uuid"

  • step_namestringจำเป็น
  • armstring

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/journeys/{journeyId}/preview' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/journeys/{journeyId}/enroll

เพิ่มรายชื่อติดต่อที่ระบุเข้าเส้นทางผ่านการอนุมัติที่ควบคุม

นามแฝงของ POST /approvals พร้อม action_kind sequence.enroll และเพย์โหลด {sequence_id, contact_ids, sequence_version?, sequence_definition_sha256?} ใช้ Idempotency-Key เดียวกัน คีย์เดิมจึงคืนการอนุมัติเดิมจากทั้งสองเส้นทาง ต้องมี campaigns:send และผลิตภัณฑ์

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

journeyId
path · จำเป็น
  • valuestring

    format: "uuid"

Idempotency-Key
header · จำเป็น
  • valuestring

    minLength: 16 · maxLength: 128

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • contact_idsarrayจำเป็น

    minItems: 1 · maxItems: 2000

  • แต่ละรายการstring

    format: "uuid"

  • sequence_versioninteger

    minimum: 1

  • sequence_definition_sha256string

    pattern: "^[a-f0-9]{64}$"

การตอบกลับสำเร็จ 200

Idempotency-Key เดิมเรียกการอนุมัติที่มีอยู่ซ้ำ

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • requested_by_actor_idstringจำเป็น
  • action_kindstringจำเป็น
  • summarystringจำเป็น
  • capability_scopesarrayจำเป็น
  • แต่ละรายการstring
  • resource_scopeobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมarray
  • แต่ละรายการstring
  • payloadobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • payload_sha256stringจำเป็น

    pattern: "^[0-9a-f]{64}$"

  • statusstringจำเป็น

    enum: "pending", "approved", "rejected", "cancelled", "expired"

  • missedbooleanจำเป็น
  • expires_atstringจำเป็น

    format: "date-time"

  • qa_automationobject | null

    หลักฐานแหล่งที่มาของระบบอัตโนมัติ QA โดยเฉพาะที่เซิร์ฟเวอร์บันทึกไว้ ไม่ถือเป็นหลักฐานว่ามีคนตรวจทานเพย์โหลด ระบบจะตรวจสอบการทำงานและสิทธิ์อนุญาตส่วนกลางอีกครั้งขณะดำเนินการ

  • kindstring

    enum: "dedicated_qa_automation"

  • authorization_referencestring
  • run_idstring
  • operation_keystring
  • recipientsarray
  • แต่ละรายการstring

    format: "email"

  • approval_sha256string
  • resource_sha256string
  • decided_by_actor_idstring | null
  • decision_reasonstring | null
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • decided_atstring | null

    format: "date-time"

  • execution_job_idstring

    format: "uuid"

  • reviewobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • dispositionstringจำเป็น

    enum: "automatic", "human_required"

  • recipient_countinteger | nullจำเป็น

    minimum: 0

  • reasonsarrayจำเป็น
  • แต่ละรายการstring
  • checksarrayจำเป็น
  • แต่ละรายการstring

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/journeys/{journeyId}/enroll' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Idempotency-Key: examplexxxxxxxxx' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "contact_ids": [
    "00000000-0000-4000-8000-000000000001"
  ],
  "sequence_version": 1,
  "sequence_definition_sha256": "example"
}'
GET/v1/workspaces/{workspaceId}/journeys/{journeyId}/executions

listJourneyExecutions

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

journeyId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การทำงานขั้นตอนเส้นทาง

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject
  • enrollment_idstringจำเป็น

    format: "uuid"

  • step_idstringจำเป็น

    format: "uuid"

  • positionintegerจำเป็น
  • kindstringจำเป็น
  • namestringจำเป็น
  • statusstringจำเป็น
  • attempt_countintegerจำเป็น
  • send_intent_idstring | nullจำเป็น

    format: "uuid"

  • error_codestring | nullจำเป็น
  • started_atstring | nullจำเป็น

    format: "date-time"

  • completed_atstring | nullจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/journeys/{journeyId}/executions' \
  --header "Authorization: Bearer $BANGER_API_KEY"
GET/v1/workspaces/{workspaceId}/journeys/{journeyId}/people

listJourneyPeople

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

journeyId
path · จำเป็น
  • valuestring

    format: "uuid"

cursor
query
  • valuestring

    maxLength: 1024

limit
query
  • valueinteger

    minimum: 1 · maximum: 200 · default: 50

state
query
  • valuestring

    enum: "in_progress", "finished", "goal_reached", "exited", "failed"

query
query
  • valuestring

    maxLength: 320

step_id
query
  • valuestring

    format: "uuid"

at
query
  • valuestring

    default: "now" · enum: "now", "received"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

บุคคลในเส้นทาง เรียงการเข้าร่วมล่าสุดก่อน พร้อมผลลัพธ์แต่ละขั้นตอนอีเมล

application/json

  • valueobject
  • dataobjectจำเป็น
  • stepsobjectจำเป็น

    ใช้ ID ขั้นตอนเป็นคีย์ สำหรับทุกขั้นตอนที่มีผู้ไปถึง

  • พร็อพเพอร์ตีเพิ่มเติมobject
  • receivedintegerจำเป็น
  • skippedintegerจำเป็น
  • failedintegerจำเป็น
  • nowintegerจำเป็น
  • emailsarrayจำเป็น
  • แต่ละรายการobject
  • step_idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • subjectstringจำเป็น
  • split_step_idstring

    format: "uuid"

  • arm_keystring
  • countsobjectจำเป็น
  • allintegerจำเป็น
  • in_progressintegerจำเป็น
  • finishedintegerจำเป็น
  • goal_reachedintegerจำเป็น
  • exitedintegerจำเป็น
  • failedintegerจำเป็น
  • peoplearrayจำเป็น
  • แต่ละรายการobject
  • enrollment_idstringจำเป็น

    format: "uuid"

  • contact_idstringจำเป็น

    format: "uuid"

  • emailstringจำเป็น
  • display_namestringจำเป็น
  • statestringจำเป็น

    enum: "in_progress", "finished", "goal_reached", "exited", "failed"

  • stop_reasonstring
  • error_codestring
  • current_stepobject
  • idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • kindstringจำเป็น
  • next_action_atstring

    format: "date-time"

  • enrolled_atstringจำเป็น

    format: "date-time"

  • completed_atstring

    format: "date-time"

  • pathsobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมstring
  • emailsobjectจำเป็น

    ใช้ ID ขั้นตอนอีเมลเป็นคีย์ ขั้นตอนที่ไม่มีรายการยังไม่มีผู้ไปถึง

  • พร็อพเพอร์ตีเพิ่มเติมobject
  • statestringจำเป็น

    translating หมายถึงอีเมลรอคำแปลของบุคคล skipped มี error_code translation_failed, translation_awaiting_review หรือ translation_still_preparing (เหตุผลที่คำแปลไม่พร้อมทันเวลา) และ none เมื่อถึงหมุดหมายก่อน

    enum: "pending", "translating", "skipped", "failed", "queued", "sent", "delivered", "opened", "clicked", "replied", "bounced", "complained"

    ละส่วนที่ซ้อนลึกกว่านี้

  • atstringจำเป็น

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • send_intent_idstring

    อ่านข้อความที่บุคคลนี้ได้รับจริงด้วย GET /transactional-sends/{send_intent_id}

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • error_codestring

    ละส่วนที่ซ้อนลึกกว่านี้

  • languageไม่ได้ระบุ

    ภาษาที่บุคคลได้รับอีเมลนี้ หรือขณะแปลเป็นภาษาที่รออยู่

    ละส่วนที่ซ้อนลึกกว่านี้

  • variant_keystring

    ตัวแปรการทดลองของอีเมลที่บุคคลได้รับ เมื่อขั้นตอนมีการทดลอง

    ละส่วนที่ซ้อนลึกกว่านี้

  • pageobjectจำเป็น
  • has_morebooleanจำเป็น
  • next_cursorstring

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/journeys/{journeyId}/people?cursor=example&limit=50&state=in_progress&query=example&step_id=00000000-0000-4000-8000-000000000001&at=now' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/journeys/{journeyKey}/send

sendJourney

ส่งอีเมลหนึ่งฉบับผ่านเส้นทาง คีย์ที่ Banger ยังไม่เคยพบจะบันทึกเส้นทางใหม่จากอีเมลนี้แล้วส่งอีเมล คีย์ของเส้นทางที่คุณสร้างจะส่งเมื่อเส้นทางนั้นได้รับอนุมัติและเปิดใช้งานแล้ว reply_to ใช้กล่องจดหมายของเส้นทางเป็นค่าเริ่มต้น รายการว่างก็หมายถึงค่าเริ่มต้นเช่นกัน การปฏิเสธ (4xx) จะไม่ตรึงรายการใดไว้สำหรับผู้รับ จึงส่งได้เมื่อแก้ไขคำขอและใช้คีย์ idempotency ใหม่

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

journeyKey
path · จำเป็น
  • valuestring

    minLength: 1 · maxLength: 100

Idempotency-Key
header · จำเป็น
  • valuestring

    minLength: 16 · maxLength: 128

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • toไม่ได้ระบุ

    ผู้รับสำหรับ to, cc, bcc และ reply_to: ที่อยู่ ("a@example.com" หรือ "Pat <a@example.com>") ออบเจ็กต์ { email, name } หรือรายการที่ผสมทั้งสอง Banger เก็บเป็นออบเจ็กต์ { email, name } โดยอีเมลเป็นตัวพิมพ์เล็ก แฮช idempotency ครอบคลุมเนื้อหาตามที่ส่ง จึงต้องลองซ้ำด้วยรูปแบบเดิม

  • oneOf 1string

    minLength: 3 · maxLength: 1000

  • oneOf 2object
  • namestring
  • emailstringจำเป็น

    format: "email"

  • oneOf 3array

    maxItems: 500

  • แต่ละรายการไม่ได้ระบุ
  • oneOf 1string

    minLength: 3 · maxLength: 1000

  • oneOf 2object
  • namestring
  • emailstringจำเป็น

    format: "email"

  • reply_toไม่ได้ระบุ

    ผู้รับสำหรับ to, cc, bcc และ reply_to: ที่อยู่ ("a@example.com" หรือ "Pat <a@example.com>") ออบเจ็กต์ { email, name } หรือรายการที่ผสมทั้งสอง Banger เก็บเป็นออบเจ็กต์ { email, name } โดยอีเมลเป็นตัวพิมพ์เล็ก แฮช idempotency ครอบคลุมเนื้อหาตามที่ส่ง จึงต้องลองซ้ำด้วยรูปแบบเดิม

  • oneOf 1string

    minLength: 3 · maxLength: 1000

  • oneOf 2object
  • namestring
  • emailstringจำเป็น

    format: "email"

  • oneOf 3array

    maxItems: 500

  • แต่ละรายการไม่ได้ระบุ
  • oneOf 1string

    minLength: 3 · maxLength: 1000

  • oneOf 2object
  • namestring
  • emailstringจำเป็น

    format: "email"

  • expires_atstring

    format: "date-time"

  • expires_after_secondsinteger

    minimum: 1 · maximum: 604800

  • attachmentsarray

    ไฟล์ที่ส่งพร้อมอีเมล เนื้อหา base64 รวมได้ไม่เกิน 10 MiB

    maxItems: 20

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • filenamestringจำเป็น

    ชื่อที่ผู้รับเห็น ในบรรทัดเดียว

    minLength: 1 · maxLength: 500

  • contentstringจำเป็น

    ไฟล์ที่เข้ารหัสเป็น base64 โดยไม่สนใจช่องว่าง

    minLength: 4

  • content_typestring

    ชนิดสื่อ เช่น application/pdf โดยไม่มีพารามิเตอร์ ค่าเริ่มต้นคือ application/octet-stream

    maxLength: 255

  • content_idstring

    Content-ID ที่เนื้อหา HTML อ้างอิงได้ด้วย cid:<content_id>

    minLength: 1 · maxLength: 500

  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้

การตอบกลับสำเร็จ 202

รับอีเมลเส้นทางแล้ว

application/json

  • valueobject
  • dataobjectจำเป็น
  • action_kindstringจำเป็น

    enum: "transactional.send"

  • idstring

    format: "uuid"

  • send_intent_idstring

    format: "uuid"

  • provider_attempt_idstring

    format: "uuid"

  • statusstringจำเป็น

    สถานะ sent/queued จากการส่งถึง หรือสำหรับคำขอที่ตรึงไว้: deferred (ตั้งเวลาตามนโยบายหรือรอแปล), processing (กำลังส่ง), discarded

  • replayedboolean
  • journeyไม่ได้ระบุจำเป็น
  • anyOf 1object
  • journey_idstringจำเป็น

    format: "uuid"

  • enrollment_idstringจำเป็น

    format: "uuid"

  • step_idstringจำเป็น

    format: "uuid"

  • step_positionintegerจำเป็น
  • originstring

    enum: "journey"

  • journey_identitystring
  • anyOf 2null
  • ignored_variablesarrayจำเป็น
  • แต่ละรายการstring
  • scheduled_atstring

    format: "date-time"

  • reasonstring
  • communication_reservation_idstring

    format: "uuid"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/journeys/{journeyKey}/send' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Idempotency-Key: examplexxxxxxxxx' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "to": "example",
  "reply_to": "example",
  "expires_at": "2026-01-01T00:00:00Z",
  "expires_after_seconds": 1,
  "attachments": [
    {
      "filename": "example",
      "content": "example",
      "content_type": "example",
      "content_id": "example"
    }
  ]
}'
POST/v1/workspaces/{workspaceId}/journeys/{journeyId}/claim

claimJourney

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

journeyId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • namestringจำเป็น

    minLength: 1 · maxLength: 200

  • mailbox_idstringจำเป็น

    format: "uuid"

  • delivery_classstringจำเป็น

    enum: "product", "broadcast"

  • content_modestringจำเป็น

    enum: "code", "managed"

  • template_idstring

    format: "uuid"

  • from_sampleboolean
  • variablesarray

    maxItems: 50

  • แต่ละรายการobject
  • literalstringจำเป็น

    minLength: 1 · maxLength: 10000

  • namestringจำเป็น

    pattern: "^[a-z][a-z0-9_]{0,63}$"

  • activateboolean

การตอบกลับสำเร็จ 200

รับเส้นทางที่ค้นพบแล้ว

application/json

  • valueobject
  • dataไม่ได้ระบุจำเป็น
  • allOf 1object

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • namestringจำเป็น

    minLength: 1 · maxLength: 200

  • descriptionstring

    maxLength: 2000

  • mailbox_idstring

    ผู้ส่งที่มีอยู่ ไม่ระบุเพื่อเลือกผู้ส่งเริ่มต้นก่อน แล้วกล่องจดหมายกำหนดเองที่ใช้งาน แล้วกล่องที่โฮสต์ ผู้ส่งที่บันทึกและระบุชัดไม่เปลี่ยน

    format: "uuid"

  • from_local_partstring

    maxLength: 64 · pattern: "^[a-z0-9][a-z0-9._+-]{0,62}$"

  • triggerobjectจำเป็น
  • kindstringจำเป็น

    enum: "manual", "contact_created", "audience_joined", "event", "schedule", "inbound_email", "email_replied", "api"

  • connection_idstring

    format: "uuid"

  • configobject
  • eventstring
  • everyinteger

    สำหรับทริกเกอร์แบบตั้งเวลา เป็นช่วงตามปฏิทินนับจากวันที่เปิดใช้งานตามเวลาท้องถิ่น

    minimum: 1 · maximum: 366 · default: 1

  • unitstring

    สำหรับทริกเกอร์แบบตั้งเวลา หากวันนั้นไม่มีในเดือน จะใช้วันสุดท้ายของเดือนโดยไม่เปลี่ยนวันอ้างอิงเดิม

    default: "weeks" · enum: "days", "weeks", "months"

  • timestring

    เวลาตามนาฬิกาท้องถิ่นของกำหนดการ ครั้งแรกต้องเกิดหลังการเปิดใช้งานเท่านั้น เวลาที่ไม่มีอยู่เนื่องจาก DST จะถูกข้าม และเวลาท้องถิ่นที่ซ้ำจะทำงานเพียงครั้งเดียว

    pattern: "^([01][0-9]|2[0-3]):[0-5][0-9]$" · default: "09:00"

  • timezonestring

    เขตเวลา IANA สำหรับทริกเกอร์แบบตั้งเวลา หลังระบบหยุดทำงาน จะเรียกคืนเฉพาะครั้งล่าสุดที่ถึงกำหนด เวลาที่พลาดระหว่างหยุดชั่วคราวจะถูกข้าม เงื่อนไขทริกเกอร์ต้องว่าง ให้เลือกรายชื่อติดต่อด้วย audience กฎการตรวจทาน การระงับส่ง และการเข้าร่วมซ้ำตามปกติยังคงใช้

    default: "UTC"

  • once_per_personboolean

    แต่ละคนเข้าร่วมครั้งเดียว ตั้ง false เพื่อให้เข้าร่วมอีกหลังเสร็จ

    default: true

  • reentry_daysinteger

    เมื่อ once_per_person เป็น false จำนวนวันหลังการเข้าร่วมล่าสุดก่อนเข้าร่วมอีกได้

    minimum: 1 · maximum: 365

  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • conditionsarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • audienceobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • goalobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • kindstringจำเป็น

    enum: "none", "event", "reply", "conversion"

  • connection_idstring

    format: "uuid"

  • configobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • exitobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • on_replyboolean

    default: true

  • on_unsubscribeboolean

    default: true

  • on_suppressionboolean

    default: true

  • eventstring

    maxLength: 200

  • approval_modestring

    enum: "policy", "required"

  • apiobject
  • keystring

    maxLength: 100

  • content_modestring

    enum: "code", "managed"

  • identitystring

    maxLength: 300

  • managed_contentobject

    ทางลัดเฉพาะสร้าง: บันทึกฉบับร่างอีเมลที่จัดการต้นฉบับและเส้นทางที่ขั้นตอนอีเมลอ้างถึงแบบอะตอม ภาษาปลายทางที่ขาดเข้าคิวแปลฟรี ไม่เผยแพร่หรือเปิดเส้นทาง

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • source_localestring

    โลแคลต้นฉบับ BCP 47 ตามข้อมูลหลัก หากไม่ระบุจะสืบทอดการตั้งค่าผลิตภัณฑ์

  • configured_localesarray

    โลแคลต้นฉบับและปลายทาง เซิร์ฟเวอร์เพิ่มต้นฉบับที่ไม่ได้ระบุ

    maxItems: 100 · uniqueItems: true

  • แต่ละรายการstring
  • fallback_localestring
  • layout_idstring

    เลย์เอาต์ใช้ซ้ำที่เลือก เซิร์ฟเวอร์เก็บภาพรวมฉบับที่เผยแพร่ในฉบับเนื้อหานี้

    format: "uuid"

  • localization_policyobject

    อีเมลเส้นทางส่งเฉพาะภาษาของบุคคลนั้น รอคำแปลประมาณหนึ่งนาทีสำหรับใบเสร็จ รหัส และแจ้งความปลอดภัย และสูงสุดหนึ่งวันสำหรับอีเมลอื่น ไม่ส่งหากคำแปลยังไม่พร้อมเมื่อครบเวลา

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • manual_reviewboolean

    default: false

  • sourceobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • subjectstringจำเป็น

    minLength: 1 · maxLength: 100000

  • preheaderstring

    maxLength: 100000

  • body_textstring

    รับเพื่อรองรับต้นฉบับ ข้อความล้วนที่เรนเดอร์ได้มาจาก HTML สุดท้าย

    maxLength: 100000

  • body_htmlstringจำเป็น

    minLength: 1 · maxLength: 100000

  • layoutstring

    ต้องมีสล็อต {{ content }} หนึ่งแห่ง

    maxLength: 100000

  • variantsobject

    เวอร์ชันต้นฉบับที่ไม่บังคับ ทุกเวอร์ชันแปลอัตโนมัติในฉบับเดียวกัน

  • พร็อพเพอร์ตีเพิ่มเติมobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • variablesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมไม่ได้ระบุ

    ตัวแปรระบุชนิดแบบเรียกซ้ำ ค่าเงินใช้ {amount_cents: integer, currency: ISO 4217 code} ค่า date เป็นวันที่ปฏิทิน ISO และค่า datetime เป็นเวลาประทับ ISO พร้อมออฟเซ็ต

    ละส่วนที่ซ้อนลึกกว่านี้

  • samplesobject

    ชุดค่าตัวอย่างที่มีชื่อสำหรับแสดงตัวอย่างและตรวจสอบต้นฉบับ

  • พร็อพเพอร์ตีเพิ่มเติมobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • translationsobject

    แค็ตตาล็อกข้อความ ICU ต้นฉบับและแค็ตตาล็อกปลายทางที่ส่งมาซึ่งไม่บังคับ ปลายทางที่ตั้งค่าแต่ขาดเข้าคิวแปลแบบอะซิงโครนัส ไม่ต้องมีเพื่อบันทึก

  • พร็อพเพอร์ตีเพิ่มเติมobject
  • พร็อพเพอร์ตีเพิ่มเติมstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • stepsarrayจำเป็น

    maxItems: 100

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstring

    format: "uuid"

  • positioninteger

    minimum: 1 · maximum: 100

  • kindstringจำเป็น

    enum: "email", "sms", "whatsapp", "wait", "condition", "action", "split"

  • namestringจำเป็น

    minLength: 1 · maxLength: 200

  • managed_contentobject

    สัญญาต้นฉบับที่ระบุชนิดและตัวตนฉบับร่าง/ฉบับเผยแพร่สำหรับขั้นตอนอีเมล

  • idstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • versioninteger

    ละส่วนที่ซ้อนลึกกว่านี้

  • draft_revision_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • published_revision_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • published_publication_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • source_revision_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • layout_revision_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • published_layout_revision_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • source_localestring | null

    ละส่วนที่ซ้อนลึกกว่านี้

  • configured_localesarray

    ละส่วนที่ซ้อนลึกกว่านี้

  • variablesobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • published_variablesobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • configobjectจำเป็น

    ขั้นตอนรอรับ until ได้โดยไม่บังคับ โดยมี name, path, operator (equals, not_equals, contains หรือ exists) และ value พร้อม on_met ที่จำเป็น (continue หรือ end_journey) continue ข้ามอีเมลเตือนที่ตามมา ส่วน end_journey สิ้นสุดเส้นทาง ต้องมีอีเมลเตือนตามหลังทันทีในสาขาเดียวกัน ขั้นตอนรอตรวจข้อมูลลูกค้าปัจจุบันทุกนาทีจนครบ amount/unit ฟิลด์ที่ขาดถือว่าไม่ทราบค่าและจะพักอีเมลเตือนไว้ การรอทั่วไปและเงื่อนไขแยกยังทำงานตามเดิม ตั้งชื่อการตรวจตามเหตุการณ์สำคัญของลูกค้าที่ตรวจยืนยันแล้ว ขั้นตอนอีเมลที่จัดการอ้างอิงเนื้อหาที่เผยแพร่ผ่าน managed_content_id การเปิดใช้งานจะปฏิเสธการอ้างอิงที่ยังไม่เผยแพร่ ทุกขั้นตอนอีเมลกำหนด delivery_class เป็น product (อีเมลธุรกรรม เช่น ใบเสร็จและอีเมลบัญชี) หรือ broadcast (การตลาด ซึ่งมีลิงก์ยกเลิกการสมัครและต้องมีชื่อบริษัทกับที่อยู่ไปรษณีย์ในแบรนด์ของผลิตภัณฑ์) ขั้นตอนที่ไม่ระบุจะถูกปฏิเสธด้วย 400 journey_delivery_class_required ขั้นตอนอีเมลอาจกำหนด expires_after_seconds (1-604800) เพื่อยกเลิกการส่งที่เลื่อนเมื่อพ้นช่วงเวลานั้นนับจากเวลาเริ่มต้นเดิม ค่าเริ่มต้นคือเจ็ดวัน

  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • armsarray

    minItems: 2 · maxItems: 4

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • allOf 2object
  • idstringจำเป็น

    format: "uuid"

  • statusstringจำเป็น

    enum: "draft", "discovered", "active", "paused", "archived"

  • api_keystring | null
  • content_modestring | null

    enum: "code", "managed", null

  • identitystring | null
  • identity_aliasesarray
  • แต่ละรายการstring
  • samplesarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • versionintegerจำเป็น

    minimum: 1

  • statsobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • stepStatsarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • armStatsarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • healthobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • indicatorobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • sparklinearrayจำเป็น
  • แต่ละรายการnumber
  • activated_atstring | null

    format: "date-time"

  • updated_atstring

    format: "date-time"

  • last_activity_atstring | null

    format: "date-time"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/journeys/{journeyId}/claim' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "name": "example",
  "mailbox_id": "00000000-0000-4000-8000-000000000001",
  "delivery_class": "product",
  "content_mode": "code",
  "template_id": "00000000-0000-4000-8000-000000000001",
  "from_sample": true,
  "variables": [
    {
      "literal": "example",
      "name": "example"
    }
  ],
  "activate": true
}'
POST/v1/workspaces/{workspaceId}/journeys/{journeyId}/merge

mergeJourneys

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

journeyId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • loser_idstringจำเป็น

    format: "uuid"

การตอบกลับสำเร็จ 200

รวมเส้นทางแล้ว

application/json

  • valueobject
  • dataไม่ได้ระบุจำเป็น
  • allOf 1object

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • namestringจำเป็น

    minLength: 1 · maxLength: 200

  • descriptionstring

    maxLength: 2000

  • mailbox_idstring

    ผู้ส่งที่มีอยู่ ไม่ระบุเพื่อเลือกผู้ส่งเริ่มต้นก่อน แล้วกล่องจดหมายกำหนดเองที่ใช้งาน แล้วกล่องที่โฮสต์ ผู้ส่งที่บันทึกและระบุชัดไม่เปลี่ยน

    format: "uuid"

  • from_local_partstring

    maxLength: 64 · pattern: "^[a-z0-9][a-z0-9._+-]{0,62}$"

  • triggerobjectจำเป็น
  • kindstringจำเป็น

    enum: "manual", "contact_created", "audience_joined", "event", "schedule", "inbound_email", "email_replied", "api"

  • connection_idstring

    format: "uuid"

  • configobject
  • eventstring
  • everyinteger

    สำหรับทริกเกอร์แบบตั้งเวลา เป็นช่วงตามปฏิทินนับจากวันที่เปิดใช้งานตามเวลาท้องถิ่น

    minimum: 1 · maximum: 366 · default: 1

  • unitstring

    สำหรับทริกเกอร์แบบตั้งเวลา หากวันนั้นไม่มีในเดือน จะใช้วันสุดท้ายของเดือนโดยไม่เปลี่ยนวันอ้างอิงเดิม

    default: "weeks" · enum: "days", "weeks", "months"

  • timestring

    เวลาตามนาฬิกาท้องถิ่นของกำหนดการ ครั้งแรกต้องเกิดหลังการเปิดใช้งานเท่านั้น เวลาที่ไม่มีอยู่เนื่องจาก DST จะถูกข้าม และเวลาท้องถิ่นที่ซ้ำจะทำงานเพียงครั้งเดียว

    pattern: "^([01][0-9]|2[0-3]):[0-5][0-9]$" · default: "09:00"

  • timezonestring

    เขตเวลา IANA สำหรับทริกเกอร์แบบตั้งเวลา หลังระบบหยุดทำงาน จะเรียกคืนเฉพาะครั้งล่าสุดที่ถึงกำหนด เวลาที่พลาดระหว่างหยุดชั่วคราวจะถูกข้าม เงื่อนไขทริกเกอร์ต้องว่าง ให้เลือกรายชื่อติดต่อด้วย audience กฎการตรวจทาน การระงับส่ง และการเข้าร่วมซ้ำตามปกติยังคงใช้

    default: "UTC"

  • once_per_personboolean

    แต่ละคนเข้าร่วมครั้งเดียว ตั้ง false เพื่อให้เข้าร่วมอีกหลังเสร็จ

    default: true

  • reentry_daysinteger

    เมื่อ once_per_person เป็น false จำนวนวันหลังการเข้าร่วมล่าสุดก่อนเข้าร่วมอีกได้

    minimum: 1 · maximum: 365

  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • conditionsarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • audienceobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • goalobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • kindstringจำเป็น

    enum: "none", "event", "reply", "conversion"

  • connection_idstring

    format: "uuid"

  • configobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • exitobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • on_replyboolean

    default: true

  • on_unsubscribeboolean

    default: true

  • on_suppressionboolean

    default: true

  • eventstring

    maxLength: 200

  • approval_modestring

    enum: "policy", "required"

  • apiobject
  • keystring

    maxLength: 100

  • content_modestring

    enum: "code", "managed"

  • identitystring

    maxLength: 300

  • managed_contentobject

    ทางลัดเฉพาะสร้าง: บันทึกฉบับร่างอีเมลที่จัดการต้นฉบับและเส้นทางที่ขั้นตอนอีเมลอ้างถึงแบบอะตอม ภาษาปลายทางที่ขาดเข้าคิวแปลฟรี ไม่เผยแพร่หรือเปิดเส้นทาง

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • source_localestring

    โลแคลต้นฉบับ BCP 47 ตามข้อมูลหลัก หากไม่ระบุจะสืบทอดการตั้งค่าผลิตภัณฑ์

  • configured_localesarray

    โลแคลต้นฉบับและปลายทาง เซิร์ฟเวอร์เพิ่มต้นฉบับที่ไม่ได้ระบุ

    maxItems: 100 · uniqueItems: true

  • แต่ละรายการstring
  • fallback_localestring
  • layout_idstring

    เลย์เอาต์ใช้ซ้ำที่เลือก เซิร์ฟเวอร์เก็บภาพรวมฉบับที่เผยแพร่ในฉบับเนื้อหานี้

    format: "uuid"

  • localization_policyobject

    อีเมลเส้นทางส่งเฉพาะภาษาของบุคคลนั้น รอคำแปลประมาณหนึ่งนาทีสำหรับใบเสร็จ รหัส และแจ้งความปลอดภัย และสูงสุดหนึ่งวันสำหรับอีเมลอื่น ไม่ส่งหากคำแปลยังไม่พร้อมเมื่อครบเวลา

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • manual_reviewboolean

    default: false

  • sourceobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • subjectstringจำเป็น

    minLength: 1 · maxLength: 100000

  • preheaderstring

    maxLength: 100000

  • body_textstring

    รับเพื่อรองรับต้นฉบับ ข้อความล้วนที่เรนเดอร์ได้มาจาก HTML สุดท้าย

    maxLength: 100000

  • body_htmlstringจำเป็น

    minLength: 1 · maxLength: 100000

  • layoutstring

    ต้องมีสล็อต {{ content }} หนึ่งแห่ง

    maxLength: 100000

  • variantsobject

    เวอร์ชันต้นฉบับที่ไม่บังคับ ทุกเวอร์ชันแปลอัตโนมัติในฉบับเดียวกัน

  • พร็อพเพอร์ตีเพิ่มเติมobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • variablesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมไม่ได้ระบุ

    ตัวแปรระบุชนิดแบบเรียกซ้ำ ค่าเงินใช้ {amount_cents: integer, currency: ISO 4217 code} ค่า date เป็นวันที่ปฏิทิน ISO และค่า datetime เป็นเวลาประทับ ISO พร้อมออฟเซ็ต

    ละส่วนที่ซ้อนลึกกว่านี้

  • samplesobject

    ชุดค่าตัวอย่างที่มีชื่อสำหรับแสดงตัวอย่างและตรวจสอบต้นฉบับ

  • พร็อพเพอร์ตีเพิ่มเติมobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • translationsobject

    แค็ตตาล็อกข้อความ ICU ต้นฉบับและแค็ตตาล็อกปลายทางที่ส่งมาซึ่งไม่บังคับ ปลายทางที่ตั้งค่าแต่ขาดเข้าคิวแปลแบบอะซิงโครนัส ไม่ต้องมีเพื่อบันทึก

  • พร็อพเพอร์ตีเพิ่มเติมobject
  • พร็อพเพอร์ตีเพิ่มเติมstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • stepsarrayจำเป็น

    maxItems: 100

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstring

    format: "uuid"

  • positioninteger

    minimum: 1 · maximum: 100

  • kindstringจำเป็น

    enum: "email", "sms", "whatsapp", "wait", "condition", "action", "split"

  • namestringจำเป็น

    minLength: 1 · maxLength: 200

  • managed_contentobject

    สัญญาต้นฉบับที่ระบุชนิดและตัวตนฉบับร่าง/ฉบับเผยแพร่สำหรับขั้นตอนอีเมล

  • idstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • versioninteger

    ละส่วนที่ซ้อนลึกกว่านี้

  • draft_revision_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • published_revision_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • published_publication_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • source_revision_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • layout_revision_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • published_layout_revision_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • source_localestring | null

    ละส่วนที่ซ้อนลึกกว่านี้

  • configured_localesarray

    ละส่วนที่ซ้อนลึกกว่านี้

  • variablesobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • published_variablesobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • configobjectจำเป็น

    ขั้นตอนรอรับ until ได้โดยไม่บังคับ โดยมี name, path, operator (equals, not_equals, contains หรือ exists) และ value พร้อม on_met ที่จำเป็น (continue หรือ end_journey) continue ข้ามอีเมลเตือนที่ตามมา ส่วน end_journey สิ้นสุดเส้นทาง ต้องมีอีเมลเตือนตามหลังทันทีในสาขาเดียวกัน ขั้นตอนรอตรวจข้อมูลลูกค้าปัจจุบันทุกนาทีจนครบ amount/unit ฟิลด์ที่ขาดถือว่าไม่ทราบค่าและจะพักอีเมลเตือนไว้ การรอทั่วไปและเงื่อนไขแยกยังทำงานตามเดิม ตั้งชื่อการตรวจตามเหตุการณ์สำคัญของลูกค้าที่ตรวจยืนยันแล้ว ขั้นตอนอีเมลที่จัดการอ้างอิงเนื้อหาที่เผยแพร่ผ่าน managed_content_id การเปิดใช้งานจะปฏิเสธการอ้างอิงที่ยังไม่เผยแพร่ ทุกขั้นตอนอีเมลกำหนด delivery_class เป็น product (อีเมลธุรกรรม เช่น ใบเสร็จและอีเมลบัญชี) หรือ broadcast (การตลาด ซึ่งมีลิงก์ยกเลิกการสมัครและต้องมีชื่อบริษัทกับที่อยู่ไปรษณีย์ในแบรนด์ของผลิตภัณฑ์) ขั้นตอนที่ไม่ระบุจะถูกปฏิเสธด้วย 400 journey_delivery_class_required ขั้นตอนอีเมลอาจกำหนด expires_after_seconds (1-604800) เพื่อยกเลิกการส่งที่เลื่อนเมื่อพ้นช่วงเวลานั้นนับจากเวลาเริ่มต้นเดิม ค่าเริ่มต้นคือเจ็ดวัน

  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • armsarray

    minItems: 2 · maxItems: 4

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • allOf 2object
  • idstringจำเป็น

    format: "uuid"

  • statusstringจำเป็น

    enum: "draft", "discovered", "active", "paused", "archived"

  • api_keystring | null
  • content_modestring | null

    enum: "code", "managed", null

  • identitystring | null
  • identity_aliasesarray
  • แต่ละรายการstring
  • samplesarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • versionintegerจำเป็น

    minimum: 1

  • statsobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • stepStatsarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • armStatsarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • healthobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • indicatorobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • sparklinearrayจำเป็น
  • แต่ละรายการnumber
  • activated_atstring | null

    format: "date-time"

  • updated_atstring

    format: "date-time"

  • last_activity_atstring | null

    format: "date-time"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/journeys/{journeyId}/merge' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "loser_id": "00000000-0000-4000-8000-000000000001"
}'
POST/v1/workspaces/{workspaceId}/journeys/{journeyId}/splits/{stepId}/decide

decideJourneySplit

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

journeyId
path · จำเป็น
  • valuestring

    format: "uuid"

stepId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • arm_keystringจำเป็น

การตอบกลับสำเร็จ 200

เลื่อนตัวแปรที่ชนะแล้ว

application/json

  • valueobject
  • dataไม่ได้ระบุจำเป็น
  • allOf 1object

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • namestringจำเป็น

    minLength: 1 · maxLength: 200

  • descriptionstring

    maxLength: 2000

  • mailbox_idstring

    ผู้ส่งที่มีอยู่ ไม่ระบุเพื่อเลือกผู้ส่งเริ่มต้นก่อน แล้วกล่องจดหมายกำหนดเองที่ใช้งาน แล้วกล่องที่โฮสต์ ผู้ส่งที่บันทึกและระบุชัดไม่เปลี่ยน

    format: "uuid"

  • from_local_partstring

    maxLength: 64 · pattern: "^[a-z0-9][a-z0-9._+-]{0,62}$"

  • triggerobjectจำเป็น
  • kindstringจำเป็น

    enum: "manual", "contact_created", "audience_joined", "event", "schedule", "inbound_email", "email_replied", "api"

  • connection_idstring

    format: "uuid"

  • configobject
  • eventstring
  • everyinteger

    สำหรับทริกเกอร์แบบตั้งเวลา เป็นช่วงตามปฏิทินนับจากวันที่เปิดใช้งานตามเวลาท้องถิ่น

    minimum: 1 · maximum: 366 · default: 1

  • unitstring

    สำหรับทริกเกอร์แบบตั้งเวลา หากวันนั้นไม่มีในเดือน จะใช้วันสุดท้ายของเดือนโดยไม่เปลี่ยนวันอ้างอิงเดิม

    default: "weeks" · enum: "days", "weeks", "months"

  • timestring

    เวลาตามนาฬิกาท้องถิ่นของกำหนดการ ครั้งแรกต้องเกิดหลังการเปิดใช้งานเท่านั้น เวลาที่ไม่มีอยู่เนื่องจาก DST จะถูกข้าม และเวลาท้องถิ่นที่ซ้ำจะทำงานเพียงครั้งเดียว

    pattern: "^([01][0-9]|2[0-3]):[0-5][0-9]$" · default: "09:00"

  • timezonestring

    เขตเวลา IANA สำหรับทริกเกอร์แบบตั้งเวลา หลังระบบหยุดทำงาน จะเรียกคืนเฉพาะครั้งล่าสุดที่ถึงกำหนด เวลาที่พลาดระหว่างหยุดชั่วคราวจะถูกข้าม เงื่อนไขทริกเกอร์ต้องว่าง ให้เลือกรายชื่อติดต่อด้วย audience กฎการตรวจทาน การระงับส่ง และการเข้าร่วมซ้ำตามปกติยังคงใช้

    default: "UTC"

  • once_per_personboolean

    แต่ละคนเข้าร่วมครั้งเดียว ตั้ง false เพื่อให้เข้าร่วมอีกหลังเสร็จ

    default: true

  • reentry_daysinteger

    เมื่อ once_per_person เป็น false จำนวนวันหลังการเข้าร่วมล่าสุดก่อนเข้าร่วมอีกได้

    minimum: 1 · maximum: 365

  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • conditionsarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • audienceobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • goalobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • kindstringจำเป็น

    enum: "none", "event", "reply", "conversion"

  • connection_idstring

    format: "uuid"

  • configobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • exitobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • on_replyboolean

    default: true

  • on_unsubscribeboolean

    default: true

  • on_suppressionboolean

    default: true

  • eventstring

    maxLength: 200

  • approval_modestring

    enum: "policy", "required"

  • apiobject
  • keystring

    maxLength: 100

  • content_modestring

    enum: "code", "managed"

  • identitystring

    maxLength: 300

  • managed_contentobject

    ทางลัดเฉพาะสร้าง: บันทึกฉบับร่างอีเมลที่จัดการต้นฉบับและเส้นทางที่ขั้นตอนอีเมลอ้างถึงแบบอะตอม ภาษาปลายทางที่ขาดเข้าคิวแปลฟรี ไม่เผยแพร่หรือเปิดเส้นทาง

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • source_localestring

    โลแคลต้นฉบับ BCP 47 ตามข้อมูลหลัก หากไม่ระบุจะสืบทอดการตั้งค่าผลิตภัณฑ์

  • configured_localesarray

    โลแคลต้นฉบับและปลายทาง เซิร์ฟเวอร์เพิ่มต้นฉบับที่ไม่ได้ระบุ

    maxItems: 100 · uniqueItems: true

  • แต่ละรายการstring
  • fallback_localestring
  • layout_idstring

    เลย์เอาต์ใช้ซ้ำที่เลือก เซิร์ฟเวอร์เก็บภาพรวมฉบับที่เผยแพร่ในฉบับเนื้อหานี้

    format: "uuid"

  • localization_policyobject

    อีเมลเส้นทางส่งเฉพาะภาษาของบุคคลนั้น รอคำแปลประมาณหนึ่งนาทีสำหรับใบเสร็จ รหัส และแจ้งความปลอดภัย และสูงสุดหนึ่งวันสำหรับอีเมลอื่น ไม่ส่งหากคำแปลยังไม่พร้อมเมื่อครบเวลา

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • manual_reviewboolean

    default: false

  • sourceobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • subjectstringจำเป็น

    minLength: 1 · maxLength: 100000

  • preheaderstring

    maxLength: 100000

  • body_textstring

    รับเพื่อรองรับต้นฉบับ ข้อความล้วนที่เรนเดอร์ได้มาจาก HTML สุดท้าย

    maxLength: 100000

  • body_htmlstringจำเป็น

    minLength: 1 · maxLength: 100000

  • layoutstring

    ต้องมีสล็อต {{ content }} หนึ่งแห่ง

    maxLength: 100000

  • variantsobject

    เวอร์ชันต้นฉบับที่ไม่บังคับ ทุกเวอร์ชันแปลอัตโนมัติในฉบับเดียวกัน

  • พร็อพเพอร์ตีเพิ่มเติมobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • variablesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมไม่ได้ระบุ

    ตัวแปรระบุชนิดแบบเรียกซ้ำ ค่าเงินใช้ {amount_cents: integer, currency: ISO 4217 code} ค่า date เป็นวันที่ปฏิทิน ISO และค่า datetime เป็นเวลาประทับ ISO พร้อมออฟเซ็ต

    ละส่วนที่ซ้อนลึกกว่านี้

  • samplesobject

    ชุดค่าตัวอย่างที่มีชื่อสำหรับแสดงตัวอย่างและตรวจสอบต้นฉบับ

  • พร็อพเพอร์ตีเพิ่มเติมobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • translationsobject

    แค็ตตาล็อกข้อความ ICU ต้นฉบับและแค็ตตาล็อกปลายทางที่ส่งมาซึ่งไม่บังคับ ปลายทางที่ตั้งค่าแต่ขาดเข้าคิวแปลแบบอะซิงโครนัส ไม่ต้องมีเพื่อบันทึก

  • พร็อพเพอร์ตีเพิ่มเติมobject
  • พร็อพเพอร์ตีเพิ่มเติมstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • stepsarrayจำเป็น

    maxItems: 100

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstring

    format: "uuid"

  • positioninteger

    minimum: 1 · maximum: 100

  • kindstringจำเป็น

    enum: "email", "sms", "whatsapp", "wait", "condition", "action", "split"

  • namestringจำเป็น

    minLength: 1 · maxLength: 200

  • managed_contentobject

    สัญญาต้นฉบับที่ระบุชนิดและตัวตนฉบับร่าง/ฉบับเผยแพร่สำหรับขั้นตอนอีเมล

  • idstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • versioninteger

    ละส่วนที่ซ้อนลึกกว่านี้

  • draft_revision_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • published_revision_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • published_publication_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • source_revision_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • layout_revision_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • published_layout_revision_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • source_localestring | null

    ละส่วนที่ซ้อนลึกกว่านี้

  • configured_localesarray

    ละส่วนที่ซ้อนลึกกว่านี้

  • variablesobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • published_variablesobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • configobjectจำเป็น

    ขั้นตอนรอรับ until ได้โดยไม่บังคับ โดยมี name, path, operator (equals, not_equals, contains หรือ exists) และ value พร้อม on_met ที่จำเป็น (continue หรือ end_journey) continue ข้ามอีเมลเตือนที่ตามมา ส่วน end_journey สิ้นสุดเส้นทาง ต้องมีอีเมลเตือนตามหลังทันทีในสาขาเดียวกัน ขั้นตอนรอตรวจข้อมูลลูกค้าปัจจุบันทุกนาทีจนครบ amount/unit ฟิลด์ที่ขาดถือว่าไม่ทราบค่าและจะพักอีเมลเตือนไว้ การรอทั่วไปและเงื่อนไขแยกยังทำงานตามเดิม ตั้งชื่อการตรวจตามเหตุการณ์สำคัญของลูกค้าที่ตรวจยืนยันแล้ว ขั้นตอนอีเมลที่จัดการอ้างอิงเนื้อหาที่เผยแพร่ผ่าน managed_content_id การเปิดใช้งานจะปฏิเสธการอ้างอิงที่ยังไม่เผยแพร่ ทุกขั้นตอนอีเมลกำหนด delivery_class เป็น product (อีเมลธุรกรรม เช่น ใบเสร็จและอีเมลบัญชี) หรือ broadcast (การตลาด ซึ่งมีลิงก์ยกเลิกการสมัครและต้องมีชื่อบริษัทกับที่อยู่ไปรษณีย์ในแบรนด์ของผลิตภัณฑ์) ขั้นตอนที่ไม่ระบุจะถูกปฏิเสธด้วย 400 journey_delivery_class_required ขั้นตอนอีเมลอาจกำหนด expires_after_seconds (1-604800) เพื่อยกเลิกการส่งที่เลื่อนเมื่อพ้นช่วงเวลานั้นนับจากเวลาเริ่มต้นเดิม ค่าเริ่มต้นคือเจ็ดวัน

  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • armsarray

    minItems: 2 · maxItems: 4

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • allOf 2object
  • idstringจำเป็น

    format: "uuid"

  • statusstringจำเป็น

    enum: "draft", "discovered", "active", "paused", "archived"

  • api_keystring | null
  • content_modestring | null

    enum: "code", "managed", null

  • identitystring | null
  • identity_aliasesarray
  • แต่ละรายการstring
  • samplesarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • versionintegerจำเป็น

    minimum: 1

  • statsobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • stepStatsarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • armStatsarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • healthobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • indicatorobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • sparklinearrayจำเป็น
  • แต่ละรายการnumber
  • activated_atstring | null

    format: "date-time"

  • updated_atstring

    format: "date-time"

  • last_activity_atstring | null

    format: "date-time"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/journeys/{journeyId}/splits/{stepId}/decide' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "arm_key": "example"
}'
GET/v1/workspaces/{workspaceId}/journeys/{journeyId}/splits/recommend

recommendJourneyArms

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

journeyId
path · จำเป็น
  • valuestring

    format: "uuid"

position
query
  • valueinteger

    minimum: 1 · maximum: 100

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

จำนวนตัวแปรทดสอบและเวลาตัดสินที่แนะนำ

application/json

  • valueobject
  • dataobjectจำเป็น
  • arms_maxintegerจำเป็น
  • weekly_arrivalsintegerจำเป็น
  • per_arm_eta_daysobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมnumber

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/journeys/{journeyId}/splits/recommend?position=1' \
  --header "Authorization: Bearer $BANGER_API_KEY"

การอนุมัติ

GET/v1/workspaces/{workspaceId}/approvals/{approvalId}/managed-layout-preview/{contentId}

อ่านการเรนเดอร์ก่อน/หลังเต็มในภาษาต้นฉบับสำหรับเนื้อหาที่ผูกกับการอนุมัติเลย์เอาต์หนึ่งรายการ

สร้างใหม่จากฉบับที่เปลี่ยนไม่ได้และตรวจแฮชต้นฉบับทั้งสองกับภาพรวมการอนุมัติ ไม่ยอมรับการเปลี่ยนโลแคล

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

approvalId
path · จำเป็น
  • valuestring

    format: "uuid"

contentId
path · จำเป็น
  • valuestring

    format: "uuid"

sample
query
  • valuestring

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

หัวเรื่อง HTML และข้อความล้วนก่อนและหลังทั้งหมดที่ตรวจสอบแฮชแล้ว

application/json

  • valueobject
  • dataobjectจำเป็น
  • content_idstringจำเป็น

    format: "uuid"

  • sample_namestring | nullจำเป็น
  • localestringจำเป็น
  • old_source_hashstringจำเป็น
  • new_source_hashstringจำเป็น
  • beforeobjectจำเป็น
  • subjectstringจำเป็น
  • htmlstringจำเป็น
  • textstringจำเป็น
  • afterobjectจำเป็น
  • subjectstringจำเป็น
  • htmlstringจำเป็น
  • textstringจำเป็น

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/approvals/{approvalId}/managed-layout-preview/{contentId}?sample=example' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001'
GET/v1/workspaces/{workspaceId}/approvals/{approvalId}/journey-preview

เรนเดอร์ทุกอีเมลของการอนุมัติเปิดเส้นทางหรือเข้าร่วมจากภาพรวมตรวจทานที่ผูกไว้

เรนเดอร์อีเมลด้วยการปรับเฉพาะบุคคลตัวอย่างจากคำจำกัดความที่ตรวจทานจริง (ดีไซน์ที่บันทึกผ่านคีย์ HTML ที่เปลี่ยนไม่ได้ ฉบับที่จัดการซึ่งตรึงไว้) ไม่ใช้เส้นทางปัจจุบัน ระบุชื่อรายการผู้รับ กลุ่ม และการเชื่อมต่อทริกเกอร์/เป้าหมายที่ภาพรวมอ้างด้วย

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

approvalId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

อีเมลที่เรนเดอร์ใช้ตำแหน่งขั้นตอนเป็นคีย์ (ขั้นตอนแขนงเป็น parent.arm.position) พร้อมชื่อผู้รับและการเชื่อมต่อ

application/json

  • valueobject
  • dataobjectจำเป็น
  • approval_idstringจำเป็น

    format: "uuid"

  • sequence_idstring | null

    format: "uuid"

  • emailsarrayจำเป็น
  • แต่ละรายการobject
  • keystringจำเป็น
  • positionintegerจำเป็น
  • parent_positioninteger | nullจำเป็น
  • arm_keystring | nullจำเป็น
  • sourcestringจำเป็น

    enum: "managed", "design", "inline", "empty"

  • subjectstringจำเป็น
  • preview_textstringจำเป็น
  • body_htmlstring
  • body_textstringจำเป็น
  • publishedboolean
  • errorstring
  • textsarray

    The Journey's SMS and WhatsApp steps, keyed as emails are, each as it goes out with sample values.

  • แต่ละรายการobject
  • keystringจำเป็น
  • positionintegerจำเป็น
  • parent_positioninteger | nullจำเป็น
  • arm_keystring | nullจำเป็น
  • channelstringจำเป็น

    enum: "sms", "whatsapp"

  • inboxobject | nullจำเป็น

    The inbox the text leaves from; null when it is no longer one of the project's on that channel.

  • idstring

    format: "uuid"

  • addressstring
  • delivery_classstringจำเป็น

    broadcast is marketing. A WhatsApp step's follows Meta's category for its template.

    enum: "product", "broadcast"

  • body_textstringจำเป็น

    An SMS as it goes out, ending with its opt-out line when it is marketing; a WhatsApp template's text.

  • segmentsinteger

    An SMS's carrier segments.

  • templateobject
  • idstring

    format: "uuid"

  • namestring
  • languagestring
  • categorystring

    enum: "marketing", "utility"

  • statusstring
  • buttonsarray
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • errorstring
  • text_consent_noticestring | null

    What a person approving texts is told, that they need each person's consent; null for a Journey of emails.

  • listsarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น
  • namestringจำเป็น
  • member_countintegerจำเป็น
  • segmentsarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น
  • namestringจำเป็น
  • connectionsarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น
  • namestringจำเป็น
  • image_assetsobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมstring
  • sample_valuesbooleanจำเป็น

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/approvals/{approvalId}/journey-preview' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001'
GET/v1/workspaces/{workspaceId}/approvals

listApprovalRequests

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

status
query
  • valuestring

    enum: "undecided", "pending", "approved", "rejected", "cancelled", "expired"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

กล่องจดหมายเข้าตรวจสอบการตรวจทานอัตโนมัติและโดยคนสำหรับพื้นที่ทำงาน

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • requested_by_actor_idstringจำเป็น
  • action_kindstringจำเป็น
  • summarystringจำเป็น
  • capability_scopesarrayจำเป็น
  • แต่ละรายการstring
  • resource_scopeobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมarray
  • แต่ละรายการstring
  • payloadobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • payload_sha256stringจำเป็น

    pattern: "^[0-9a-f]{64}$"

  • statusstringจำเป็น

    enum: "pending", "approved", "rejected", "cancelled", "expired"

  • missedbooleanจำเป็น
  • expires_atstringจำเป็น

    format: "date-time"

  • qa_automationobject | null

    หลักฐานแหล่งที่มาของระบบอัตโนมัติ QA โดยเฉพาะที่เซิร์ฟเวอร์บันทึกไว้ ไม่ถือเป็นหลักฐานว่ามีคนตรวจทานเพย์โหลด ระบบจะตรวจสอบการทำงานและสิทธิ์อนุญาตส่วนกลางอีกครั้งขณะดำเนินการ

  • kindstring

    enum: "dedicated_qa_automation"

  • authorization_referencestring
  • run_idstring
  • operation_keystring
  • recipientsarray
  • แต่ละรายการstring

    format: "email"

  • approval_sha256string
  • resource_sha256string
  • decided_by_actor_idstring | null
  • decision_reasonstring | null
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • decided_atstring | null

    format: "date-time"

  • execution_job_idstring

    format: "uuid"

  • reviewobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • dispositionstringจำเป็น

    enum: "automatic", "human_required"

  • recipient_countinteger | nullจำเป็น

    minimum: 0

  • reasonsarrayจำเป็น
  • แต่ละรายการstring
  • checksarrayจำเป็น
  • แต่ละรายการstring

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/approvals?status=undecided' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/approvals

createApprovalRequest

สำหรับการดำเนินการ Banger ตามข้อมูลหลัก Banger กำหนดขอบเขตที่ตรง ใช้นโยบายตรวจทานพื้นที่ทำงาน บันทึกคำขอตรวจสอบที่เปลี่ยนไม่ได้ และเข้าคิวอัตโนมัติให้การดำเนินการในขีดจำกัดที่ตั้งไว้ เผยแพร่ต้นฉบับอีเมลที่จัดการด้วย action_kind managed_email.publish และเพย์โหลด {content_id, expected_version} Banger ผูกฉบับ/แฮชต้นฉบับและบังคับตรวจทานโดยคนเมื่อจำเป็น ชนิดอนุมัติทั่วไปยังรอเสมอและต้องส่ง summary, capabilities และ resources ในเพย์โหลด mail.draft และ transactional.send ฟิลด์ to, cc, bcc และ reply_to รับ RecipientInput ทุกรูปแบบและเก็บเป็นออบเจ็กต์ { email, name }

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

Idempotency-Key
header

จำเป็นสำหรับการดำเนินการ Banger ที่รู้จัก คำขออนุมัติที่กำหนดเองไม่ใช้ส่วนหัวนี้

  • valuestring

    minLength: 16 · maxLength: 128

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • action_kindstringจำเป็น

    minLength: 1 · maxLength: 100

  • summarystring

    minLength: 1 · maxLength: 500

  • capabilitiesarray

    minItems: 1 · maxItems: 50

  • แต่ละรายการstring

    maxLength: 100

  • resourcesobject
  • พร็อพเพอร์ตีเพิ่มเติมarray

    maxItems: 500

  • แต่ละรายการstring

    maxLength: 200

  • payloadobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • expires_in_secondsinteger

    minimum: 60 · maximum: 86400 · default: 3600

  • approve_as_launcherboolean

    สำหรับ sequence.activate คนที่กดเปิดใช้งานอนุมัติคำขอนี้จริงเมื่อนโยบายตรวจทานต้องใช้คน ละเว้นสำหรับคีย์ API และเอเจนต์ที่รอในส่วนการอนุมัติ

การตอบกลับสำเร็จ 201

สร้างคำขอที่ควบคุมแล้ว อาจอนุมัติอัตโนมัติและเข้าคิวแล้ว

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • requested_by_actor_idstringจำเป็น
  • action_kindstringจำเป็น
  • summarystringจำเป็น
  • capability_scopesarrayจำเป็น
  • แต่ละรายการstring
  • resource_scopeobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมarray
  • แต่ละรายการstring
  • payloadobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • payload_sha256stringจำเป็น

    pattern: "^[0-9a-f]{64}$"

  • statusstringจำเป็น

    enum: "pending", "approved", "rejected", "cancelled", "expired"

  • missedbooleanจำเป็น
  • expires_atstringจำเป็น

    format: "date-time"

  • qa_automationobject | null

    หลักฐานแหล่งที่มาของระบบอัตโนมัติ QA โดยเฉพาะที่เซิร์ฟเวอร์บันทึกไว้ ไม่ถือเป็นหลักฐานว่ามีคนตรวจทานเพย์โหลด ระบบจะตรวจสอบการทำงานและสิทธิ์อนุญาตส่วนกลางอีกครั้งขณะดำเนินการ

  • kindstring

    enum: "dedicated_qa_automation"

  • authorization_referencestring
  • run_idstring
  • operation_keystring
  • recipientsarray
  • แต่ละรายการstring

    format: "email"

  • approval_sha256string
  • resource_sha256string
  • decided_by_actor_idstring | null
  • decision_reasonstring | null
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • decided_atstring | null

    format: "date-time"

  • execution_job_idstring

    format: "uuid"

  • reviewobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • dispositionstringจำเป็น

    enum: "automatic", "human_required"

  • recipient_countinteger | nullจำเป็น

    minimum: 0

  • reasonsarrayจำเป็น
  • แต่ละรายการstring
  • checksarrayจำเป็น
  • แต่ละรายการstring

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/approvals' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Idempotency-Key: examplexxxxxxxxx' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "action_kind": "example",
  "summary": "example",
  "capabilities": [
    "example"
  ],
  "resources": {},
  "payload": {},
  "expires_in_seconds": 3600,
  "approve_as_launcher": true
}'
GET/v1/workspaces/{workspaceId}/approvals/count

นับการอนุมัติที่รอหรือเลยกำหนดก่อนมีคำตัดสิน

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

จำนวนการอนุมัติที่ยังไม่ตัดสินตามขอบเขตผลิตภัณฑ์

application/json

  • valueobject
  • dataobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • pendingintegerจำเป็น

    minimum: 0

  • missedintegerจำเป็น

    minimum: 0

  • totalintegerจำเป็น

    minimum: 0

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/approvals/count' \
  --header "Authorization: Bearer $BANGER_API_KEY"
GET/v1/workspaces/{workspaceId}/approvals/{approvalId}

getApprovalRequest

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

approvalId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

คำขออนุมัติและเพย์โหลดการดำเนินการที่ผูกไว้ตรงตามจริง

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • requested_by_actor_idstringจำเป็น
  • action_kindstringจำเป็น
  • summarystringจำเป็น
  • capability_scopesarrayจำเป็น
  • แต่ละรายการstring
  • resource_scopeobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมarray
  • แต่ละรายการstring
  • payloadobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • payload_sha256stringจำเป็น

    pattern: "^[0-9a-f]{64}$"

  • statusstringจำเป็น

    enum: "pending", "approved", "rejected", "cancelled", "expired"

  • missedbooleanจำเป็น
  • expires_atstringจำเป็น

    format: "date-time"

  • qa_automationobject | null

    หลักฐานแหล่งที่มาของระบบอัตโนมัติ QA โดยเฉพาะที่เซิร์ฟเวอร์บันทึกไว้ ไม่ถือเป็นหลักฐานว่ามีคนตรวจทานเพย์โหลด ระบบจะตรวจสอบการทำงานและสิทธิ์อนุญาตส่วนกลางอีกครั้งขณะดำเนินการ

  • kindstring

    enum: "dedicated_qa_automation"

  • authorization_referencestring
  • run_idstring
  • operation_keystring
  • recipientsarray
  • แต่ละรายการstring

    format: "email"

  • approval_sha256string
  • resource_sha256string
  • decided_by_actor_idstring | null
  • decision_reasonstring | null
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • decided_atstring | null

    format: "date-time"

  • execution_job_idstring

    format: "uuid"

  • reviewobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • dispositionstringจำเป็น

    enum: "automatic", "human_required"

  • recipient_countinteger | nullจำเป็น

    minimum: 0

  • reasonsarrayจำเป็น
  • แต่ละรายการstring
  • checksarrayจำเป็น
  • แต่ละรายการstring

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/approvals/{approvalId}' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/approvals/{approvalId}/decision

decideApprovalRequest

เฉพาะเซสชันเบราว์เซอร์ของคน คีย์ API พื้นที่ทำงานตัดสินการอนุมัติไม่ได้

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

approvalId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • decisionstringจำเป็น

    enum: "approved", "rejected"

  • reasonstring

    maxLength: 500

  • expected_payload_sha256string

    แฮชเพย์โหลดอนุมัติที่แสดงต่อผู้ตรวจทาน หากไม่ตรงคืน 409

    pattern: "^[a-f0-9]{64}$"

การตอบกลับสำเร็จ 200

บันทึกคำตัดสินอนุมัติแล้ว

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • requested_by_actor_idstringจำเป็น
  • action_kindstringจำเป็น
  • summarystringจำเป็น
  • capability_scopesarrayจำเป็น
  • แต่ละรายการstring
  • resource_scopeobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมarray
  • แต่ละรายการstring
  • payloadobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • payload_sha256stringจำเป็น

    pattern: "^[0-9a-f]{64}$"

  • statusstringจำเป็น

    enum: "pending", "approved", "rejected", "cancelled", "expired"

  • missedbooleanจำเป็น
  • expires_atstringจำเป็น

    format: "date-time"

  • qa_automationobject | null

    หลักฐานแหล่งที่มาของระบบอัตโนมัติ QA โดยเฉพาะที่เซิร์ฟเวอร์บันทึกไว้ ไม่ถือเป็นหลักฐานว่ามีคนตรวจทานเพย์โหลด ระบบจะตรวจสอบการทำงานและสิทธิ์อนุญาตส่วนกลางอีกครั้งขณะดำเนินการ

  • kindstring

    enum: "dedicated_qa_automation"

  • authorization_referencestring
  • run_idstring
  • operation_keystring
  • recipientsarray
  • แต่ละรายการstring

    format: "email"

  • approval_sha256string
  • resource_sha256string
  • decided_by_actor_idstring | null
  • decision_reasonstring | null
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • decided_atstring | null

    format: "date-time"

  • execution_job_idstring

    format: "uuid"

  • reviewobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • dispositionstringจำเป็น

    enum: "automatic", "human_required"

  • recipient_countinteger | nullจำเป็น

    minimum: 0

  • reasonsarrayจำเป็น
  • แต่ละรายการstring
  • checksarrayจำเป็น
  • แต่ละรายการstring

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/approvals/{approvalId}/decision' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "decision": "approved",
  "reason": "example",
  "expected_payload_sha256": "example"
}'
POST/v1/workspaces/{workspaceId}/approvals/{approvalId}/cancel

cancelApprovalRequest

ยกเลิกการอนุมัติที่ยังรอโดยไม่ดำเนินการ เฉพาะเซสชันเบราว์เซอร์ของคน

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

approvalId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • reasonstring

    maxLength: 500

การตอบกลับสำเร็จ 200

ยกเลิกการอนุมัติและให้การทำงานของเอเจนต์ที่รอดำเนินต่อโดยไม่ทำการดำเนินการนั้น

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • requested_by_actor_idstringจำเป็น
  • action_kindstringจำเป็น
  • summarystringจำเป็น
  • capability_scopesarrayจำเป็น
  • แต่ละรายการstring
  • resource_scopeobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมarray
  • แต่ละรายการstring
  • payloadobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • payload_sha256stringจำเป็น

    pattern: "^[0-9a-f]{64}$"

  • statusstringจำเป็น

    enum: "pending", "approved", "rejected", "cancelled", "expired"

  • missedbooleanจำเป็น
  • expires_atstringจำเป็น

    format: "date-time"

  • qa_automationobject | null

    หลักฐานแหล่งที่มาของระบบอัตโนมัติ QA โดยเฉพาะที่เซิร์ฟเวอร์บันทึกไว้ ไม่ถือเป็นหลักฐานว่ามีคนตรวจทานเพย์โหลด ระบบจะตรวจสอบการทำงานและสิทธิ์อนุญาตส่วนกลางอีกครั้งขณะดำเนินการ

  • kindstring

    enum: "dedicated_qa_automation"

  • authorization_referencestring
  • run_idstring
  • operation_keystring
  • recipientsarray
  • แต่ละรายการstring

    format: "email"

  • approval_sha256string
  • resource_sha256string
  • decided_by_actor_idstring | null
  • decision_reasonstring | null
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • decided_atstring | null

    format: "date-time"

  • execution_job_idstring

    format: "uuid"

  • reviewobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • dispositionstringจำเป็น

    enum: "automatic", "human_required"

  • recipient_countinteger | nullจำเป็น

    minimum: 0

  • reasonsarrayจำเป็น
  • แต่ละรายการstring
  • checksarrayจำเป็น
  • แต่ละรายการstring

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/approvals/{approvalId}/cancel' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "reason": "example"
}'
POST/v1/workspaces/{workspaceId}/approvals/{approvalId}/dismiss

dismissApprovalRequest

ปิดการอนุมัติที่เลยช่วงตัดสิน เฉพาะเซสชันเบราว์เซอร์ของคน

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

approvalId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

ปิดการอนุมัติที่เลยกำหนดและบันทึกว่ายกเลิก

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • requested_by_actor_idstringจำเป็น
  • action_kindstringจำเป็น
  • summarystringจำเป็น
  • capability_scopesarrayจำเป็น
  • แต่ละรายการstring
  • resource_scopeobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมarray
  • แต่ละรายการstring
  • payloadobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • payload_sha256stringจำเป็น

    pattern: "^[0-9a-f]{64}$"

  • statusstringจำเป็น

    enum: "pending", "approved", "rejected", "cancelled", "expired"

  • missedbooleanจำเป็น
  • expires_atstringจำเป็น

    format: "date-time"

  • qa_automationobject | null

    หลักฐานแหล่งที่มาของระบบอัตโนมัติ QA โดยเฉพาะที่เซิร์ฟเวอร์บันทึกไว้ ไม่ถือเป็นหลักฐานว่ามีคนตรวจทานเพย์โหลด ระบบจะตรวจสอบการทำงานและสิทธิ์อนุญาตส่วนกลางอีกครั้งขณะดำเนินการ

  • kindstring

    enum: "dedicated_qa_automation"

  • authorization_referencestring
  • run_idstring
  • operation_keystring
  • recipientsarray
  • แต่ละรายการstring

    format: "email"

  • approval_sha256string
  • resource_sha256string
  • decided_by_actor_idstring | null
  • decision_reasonstring | null
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • decided_atstring | null

    format: "date-time"

  • execution_job_idstring

    format: "uuid"

  • reviewobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • dispositionstringจำเป็น

    enum: "automatic", "human_required"

  • recipient_countinteger | nullจำเป็น

    minimum: 0

  • reasonsarrayจำเป็น
  • แต่ละรายการstring
  • checksarrayจำเป็น
  • แต่ละรายการstring

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/approvals/{approvalId}/dismiss' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/approvals/{approvalId}/rerequest

rerequestApprovalRequest

คัดลอกการอนุมัติที่เลยกำหนดพร้อมช่วงตัดสินใหม่และยกเลิกคำขอเก่า เฉพาะเซสชันเบราว์เซอร์ของคน

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

approvalId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 201

สร้างคำขออนุมัติใหม่แล้ว

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • requested_by_actor_idstringจำเป็น
  • action_kindstringจำเป็น
  • summarystringจำเป็น
  • capability_scopesarrayจำเป็น
  • แต่ละรายการstring
  • resource_scopeobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมarray
  • แต่ละรายการstring
  • payloadobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • payload_sha256stringจำเป็น

    pattern: "^[0-9a-f]{64}$"

  • statusstringจำเป็น

    enum: "pending", "approved", "rejected", "cancelled", "expired"

  • missedbooleanจำเป็น
  • expires_atstringจำเป็น

    format: "date-time"

  • qa_automationobject | null

    หลักฐานแหล่งที่มาของระบบอัตโนมัติ QA โดยเฉพาะที่เซิร์ฟเวอร์บันทึกไว้ ไม่ถือเป็นหลักฐานว่ามีคนตรวจทานเพย์โหลด ระบบจะตรวจสอบการทำงานและสิทธิ์อนุญาตส่วนกลางอีกครั้งขณะดำเนินการ

  • kindstring

    enum: "dedicated_qa_automation"

  • authorization_referencestring
  • run_idstring
  • operation_keystring
  • recipientsarray
  • แต่ละรายการstring

    format: "email"

  • approval_sha256string
  • resource_sha256string
  • decided_by_actor_idstring | null
  • decision_reasonstring | null
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • decided_atstring | null

    format: "date-time"

  • execution_job_idstring

    format: "uuid"

  • reviewobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • dispositionstringจำเป็น

    enum: "automatic", "human_required"

  • recipient_countinteger | nullจำเป็น

    minimum: 0

  • reasonsarrayจำเป็น
  • แต่ละรายการstring
  • checksarrayจำเป็น
  • แต่ละรายการstring

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/approvals/{approvalId}/rerequest' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/approvals/{approvalId}/revise

reviseApprovalRequest

แทนการดำเนินการ Banger ที่ควบคุมและรออยู่ด้วยการอนุมัติที่ปรับเป็นรูปแบบหลักใหม่ คำขอเดิมคงในประวัติเป็นยกเลิก

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

approvalId
path · จำเป็น
  • valuestring

    format: "uuid"

Idempotency-Key
header · จำเป็น
  • valuestring

    minLength: 16 · maxLength: 128

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • payloadobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้

การตอบกลับสำเร็จ 201

สร้างการอนุมัติทดแทนให้คนตรวจทานแล้ว

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • requested_by_actor_idstringจำเป็น
  • action_kindstringจำเป็น
  • summarystringจำเป็น
  • capability_scopesarrayจำเป็น
  • แต่ละรายการstring
  • resource_scopeobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมarray
  • แต่ละรายการstring
  • payloadobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • payload_sha256stringจำเป็น

    pattern: "^[0-9a-f]{64}$"

  • statusstringจำเป็น

    enum: "pending", "approved", "rejected", "cancelled", "expired"

  • missedbooleanจำเป็น
  • expires_atstringจำเป็น

    format: "date-time"

  • qa_automationobject | null

    หลักฐานแหล่งที่มาของระบบอัตโนมัติ QA โดยเฉพาะที่เซิร์ฟเวอร์บันทึกไว้ ไม่ถือเป็นหลักฐานว่ามีคนตรวจทานเพย์โหลด ระบบจะตรวจสอบการทำงานและสิทธิ์อนุญาตส่วนกลางอีกครั้งขณะดำเนินการ

  • kindstring

    enum: "dedicated_qa_automation"

  • authorization_referencestring
  • run_idstring
  • operation_keystring
  • recipientsarray
  • แต่ละรายการstring

    format: "email"

  • approval_sha256string
  • resource_sha256string
  • decided_by_actor_idstring | null
  • decision_reasonstring | null
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • decided_atstring | null

    format: "date-time"

  • execution_job_idstring

    format: "uuid"

  • reviewobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • dispositionstringจำเป็น

    enum: "automatic", "human_required"

  • recipient_countinteger | nullจำเป็น

    minimum: 0

  • reasonsarrayจำเป็น
  • แต่ละรายการstring
  • checksarrayจำเป็น
  • แต่ละรายการstring

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/approvals/{approvalId}/revise' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Idempotency-Key: examplexxxxxxxxx' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "payload": {}
}'

การทำงานของเอเจนต์

GET/v1/workspaces/{workspaceId}/agent-runs

แสดงการทำงานของเอเจนต์ภายในล่าสุดสำหรับพื้นที่ทำงาน

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

limit
query
  • valueinteger

    minimum: 1 · maximum: 100 · default: 50

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การทำงานล่าสุดเรียงจากใหม่ไปเก่า

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • execution_job_idstring

    format: "uuid"

  • requested_by_actor_idstringจำเป็น
  • taskstringจำเป็น
  • modelstringจำเป็น
  • capability_scopesarrayจำเป็น
  • แต่ละรายการstring
  • resource_scopeobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมarray
  • แต่ละรายการstring
  • statusstringจำเป็น

    enum: "queued", "running", "waiting_approval", "waiting_external", "succeeded", "failed", "cancelled"

  • max_stepsintegerจำเป็น
  • max_runtime_secondsintegerจำเป็น
  • current_generationintegerจำเป็น
  • latest_checkpointobject | null
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • latest_checkpoint_sequenceintegerจำเป็น
  • resultobject | null
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • error_codestring | null
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • started_atstring | null

    format: "date-time"

  • completed_atstring | null

    format: "date-time"

  • replayedbooleanจำเป็น
  • stepsarray
  • แต่ละรายการobject
  • sequenceintegerจำเป็น

    minimum: 1

  • attempt_generationintegerจำเป็น

    minimum: 1

  • kindstringจำเป็น

    enum: "model", "tool", "checkpoint", "approval", "output", "system"

  • statusstringจำเป็น

    enum: "started", "succeeded", "failed", "waiting_approval", "waiting_external"

  • namestring | null
  • inputไม่ได้ระบุ
  • outputไม่ได้ระบุ
  • error_codestring | null
  • input_tokensinteger | null

    minimum: 0

  • output_tokensinteger | null

    minimum: 0

  • created_atstringจำเป็น

    format: "date-time"

  • completed_atstring | null

    format: "date-time"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/agent-runs?limit=50' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/agent-runs

เริ่มการทำงานของเอเจนต์ภายใน Banger แบบแยก

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

Idempotency-Key
header · จำเป็น
  • valuestring

    minLength: 16 · maxLength: 128

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • taskstringจำเป็น

    minLength: 1 · maxLength: 32000

  • modelstring

    minLength: 1 · maxLength: 200

  • max_stepsinteger

    minimum: 1 · maximum: 50 · default: 12

  • max_runtime_secondsinteger

    minimum: 30 · maximum: 3600 · default: 900

  • connection_toolsarray

    maxItems: 20

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • connection_idstringจำเป็น

    format: "uuid"

  • adapter_keystringจำเป็น

    minLength: 1 · maxLength: 63

  • operationsarrayจำเป็น

    minItems: 1 · maxItems: 20 · uniqueItems: true

  • แต่ละรายการstring

    minLength: 1 · maxLength: 100

  • action_toolsarray

    maxItems: 6 · uniqueItems: true

  • แต่ละรายการstring

    enum: "mailbox.create", "mail.draft", "transactional.send", "template.update", "campaign.draft", "campaign.schedule"

การตอบกลับสำเร็จ 200

การเรียกซ้ำแบบ idempotent สำหรับการทำงานที่มีอยู่

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • execution_job_idstring

    format: "uuid"

  • requested_by_actor_idstringจำเป็น
  • taskstringจำเป็น
  • modelstringจำเป็น
  • capability_scopesarrayจำเป็น
  • แต่ละรายการstring
  • resource_scopeobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมarray
  • แต่ละรายการstring
  • statusstringจำเป็น

    enum: "queued", "running", "waiting_approval", "waiting_external", "succeeded", "failed", "cancelled"

  • max_stepsintegerจำเป็น
  • max_runtime_secondsintegerจำเป็น
  • current_generationintegerจำเป็น
  • latest_checkpointobject | null
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • latest_checkpoint_sequenceintegerจำเป็น
  • resultobject | null
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • error_codestring | null
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • started_atstring | null

    format: "date-time"

  • completed_atstring | null

    format: "date-time"

  • replayedbooleanจำเป็น
  • stepsarray
  • แต่ละรายการobject
  • sequenceintegerจำเป็น

    minimum: 1

  • attempt_generationintegerจำเป็น

    minimum: 1

  • kindstringจำเป็น

    enum: "model", "tool", "checkpoint", "approval", "output", "system"

  • statusstringจำเป็น

    enum: "started", "succeeded", "failed", "waiting_approval", "waiting_external"

  • namestring | null
  • inputไม่ได้ระบุ
  • outputไม่ได้ระบุ
  • error_codestring | null
  • input_tokensinteger | null

    minimum: 0

  • output_tokensinteger | null

    minimum: 0

  • created_atstringจำเป็น

    format: "date-time"

  • completed_atstring | null

    format: "date-time"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/agent-runs' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Idempotency-Key: examplexxxxxxxxx' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "task": "example",
  "model": "example",
  "max_steps": 12,
  "max_runtime_seconds": 900,
  "connection_tools": [
    {
      "connection_id": "00000000-0000-4000-8000-000000000001",
      "adapter_key": "example",
      "operations": [
        "example"
      ]
    }
  ],
  "action_tools": [
    "mailbox.create"
  ]
}'
GET/v1/workspaces/{workspaceId}/agent-runs/{runId}

getAgentRun

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

runId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การทำงาน จุดตรวจ ผลสุดท้าย และขั้นตอนเรียงลำดับตามข้อมูลหลัก

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • execution_job_idstring

    format: "uuid"

  • requested_by_actor_idstringจำเป็น
  • taskstringจำเป็น
  • modelstringจำเป็น
  • capability_scopesarrayจำเป็น
  • แต่ละรายการstring
  • resource_scopeobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมarray
  • แต่ละรายการstring
  • statusstringจำเป็น

    enum: "queued", "running", "waiting_approval", "waiting_external", "succeeded", "failed", "cancelled"

  • max_stepsintegerจำเป็น
  • max_runtime_secondsintegerจำเป็น
  • current_generationintegerจำเป็น
  • latest_checkpointobject | null
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • latest_checkpoint_sequenceintegerจำเป็น
  • resultobject | null
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • error_codestring | null
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • started_atstring | null

    format: "date-time"

  • completed_atstring | null

    format: "date-time"

  • replayedbooleanจำเป็น
  • stepsarray
  • แต่ละรายการobject
  • sequenceintegerจำเป็น

    minimum: 1

  • attempt_generationintegerจำเป็น

    minimum: 1

  • kindstringจำเป็น

    enum: "model", "tool", "checkpoint", "approval", "output", "system"

  • statusstringจำเป็น

    enum: "started", "succeeded", "failed", "waiting_approval", "waiting_external"

  • namestring | null
  • inputไม่ได้ระบุ
  • outputไม่ได้ระบุ
  • error_codestring | null
  • input_tokensinteger | null

    minimum: 0

  • output_tokensinteger | null

    minimum: 0

  • created_atstringจำเป็น

    format: "date-time"

  • completed_atstring | null

    format: "date-time"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/agent-runs/{runId}' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/agent-runs/{runId}/cancel

cancelAgentRun

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

runId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

ยกเลิกการทำงานของเอเจนต์แล้ว

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • execution_job_idstring

    format: "uuid"

  • requested_by_actor_idstringจำเป็น
  • taskstringจำเป็น
  • modelstringจำเป็น
  • capability_scopesarrayจำเป็น
  • แต่ละรายการstring
  • resource_scopeobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมarray
  • แต่ละรายการstring
  • statusstringจำเป็น

    enum: "queued", "running", "waiting_approval", "waiting_external", "succeeded", "failed", "cancelled"

  • max_stepsintegerจำเป็น
  • max_runtime_secondsintegerจำเป็น
  • current_generationintegerจำเป็น
  • latest_checkpointobject | null
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • latest_checkpoint_sequenceintegerจำเป็น
  • resultobject | null
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • error_codestring | null
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • started_atstring | null

    format: "date-time"

  • completed_atstring | null

    format: "date-time"

  • replayedbooleanจำเป็น
  • stepsarray
  • แต่ละรายการobject
  • sequenceintegerจำเป็น

    minimum: 1

  • attempt_generationintegerจำเป็น

    minimum: 1

  • kindstringจำเป็น

    enum: "model", "tool", "checkpoint", "approval", "output", "system"

  • statusstringจำเป็น

    enum: "started", "succeeded", "failed", "waiting_approval", "waiting_external"

  • namestring | null
  • inputไม่ได้ระบุ
  • outputไม่ได้ระบุ
  • error_codestring | null
  • input_tokensinteger | null

    minimum: 0

  • output_tokensinteger | null

    minimum: 0

  • created_atstringจำเป็น

    format: "date-time"

  • completed_atstring | null

    format: "date-time"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/agent-runs/{runId}/cancel' \
  --header "Authorization: Bearer $BANGER_API_KEY"

เอเจนต์

GET/v1/workspaces/{workspaceId}/agents

แสดงเอเจนต์ AI (ไคลเอนต์ MCP) ที่ทำงานแทนพื้นที่ทำงานนี้ได้

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การเชื่อมต่อเอเจนต์ที่ใช้งาน ล่าสุดก่อน

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • client_namestringจำเป็น
  • client_surfacestringจำเป็น

    แพลตฟอร์มเอเจนต์ของการเชื่อมต่อ OAuth จากชื่อไคลเอนต์และ URI เปลี่ยนเส้นทาง

    enum: "codex", "chatgpt", "claude", "grok", "gemini", "other_agent"

  • scopesarrayจำเป็น
  • แต่ละรายการstring
  • connected_atstringจำเป็น

    format: "date-time"

  • last_active_atstringจำเป็น

    format: "date-time"

  • connected_by_youbooleanจำเป็น

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/agents' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/agents/{agentId}/revoke

เพิกถอนสิทธิ์หนึ่งเอเจนต์ จะหยุดทำงานภายในประมาณ 30 วินาที

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

agentId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

เพิกถอนสิทธิ์เอเจนต์แล้ว

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • revokedbooleanจำเป็น

    const: true

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/agents/{agentId}/revoke' \
  --header "Authorization: Bearer $BANGER_API_KEY"

คำสั่ง AI

POST/v1/workspaces/{workspaceId}/ai/command-runs

เริ่มคำสั่งผู้ช่วยจดหมายที่อ่านข้อมูลและเสนอการดำเนินการซึ่งต้องยืนยันเท่านั้น

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

Idempotency-Key
header · จำเป็น
  • valuestring

    minLength: 1 · maxLength: 256

X-Banger-Product-Id
header
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • commandTextstringจำเป็น

    minLength: 1 · maxLength: 8000

การตอบกลับสำเร็จ 200

คำขออ่าน คำตอบ หรือการดำเนินการที่ต้องยืนยัน

application/json

  • valueobject
  • runIdstringจำเป็น

    format: "uuid"

  • statusstringจำเป็น

    enum: "requires_tool_results", "completed", "requires_confirmation"

  • assistantMessagestringจำเป็น
  • toolCallsarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • toolNamestringจำเป็น
  • argumentsobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • reasonstringจำเป็น
  • proposedActionsarrayจำเป็น
  • แต่ละรายการไม่ได้ระบุ
  • allOf 1object
  • idstringจำเป็น

    format: "uuid"

  • toolNamestringจำเป็น
  • argumentsobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • reasonstringจำเป็น
  • allOf 2object
  • confirmationRequiredbooleanจำเป็น

    const: true

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/ai/command-runs' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Idempotency-Key: example' \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "commandText": "example"
}'
POST/v1/workspaces/{workspaceId}/ai/command-runs/{runId}/tool-results

ดำเนินคำสั่งของผู้ดำเนินการต่อในขอบเขตผลิตภัณฑ์เดิม

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

runId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • toolResultsarrayจำเป็น

    minItems: 1 · maxItems: 8

  • แต่ละรายการobject
  • toolCallIdstringจำเป็น

    format: "uuid"

  • toolNamestringจำเป็น

    enum: "list_mailboxes", "search_mail", "list_unread", "list_work_items", "get_thread"

  • okbooleanจำเป็น
  • resultไม่ได้ระบุ
  • errorstring

การตอบกลับสำเร็จ 200

การตอบกลับคำสั่งถัดไป ผลที่ซ้ำแสดงอีกโดยไม่เรียกอนุมานใหม่

application/json

  • valueobject
  • runIdstringจำเป็น

    format: "uuid"

  • statusstringจำเป็น

    enum: "requires_tool_results", "completed", "requires_confirmation"

  • assistantMessagestringจำเป็น
  • toolCallsarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • toolNamestringจำเป็น
  • argumentsobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • reasonstringจำเป็น
  • proposedActionsarrayจำเป็น
  • แต่ละรายการไม่ได้ระบุ
  • allOf 1object
  • idstringจำเป็น

    format: "uuid"

  • toolNamestringจำเป็น
  • argumentsobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • reasonstringจำเป็น
  • allOf 2object
  • confirmationRequiredbooleanจำเป็น

    const: true

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/ai/command-runs/{runId}/tool-results' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "toolResults": [
    {
      "toolCallId": "00000000-0000-4000-8000-000000000001",
      "toolName": "list_mailboxes",
      "ok": true,
      "result": "example",
      "error": "example"
    }
  ]
}'
POST/v1/workspaces/{workspaceId}/ai/email/revise

สร้างฉบับอีเมลที่ตรวจทานได้โดยไม่บันทึกหรือส่ง

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

Idempotency-Key
header · จำเป็น
  • valuestring

    minLength: 16 · maxLength: 128

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • connection_idstringจำเป็น

    format: "uuid"

  • providerstringจำเป็น

    enum: "openai", "anthropic"

  • modelstring

    maxLength: 200

  • instructionstringจำเป็น

    minLength: 1 · maxLength: 40000

  • currentobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • subjectstringจำเป็น

    maxLength: 998

  • body_textstringจำเป็น

    maxLength: 100000

  • body_htmlstringจำเป็น

    maxLength: 200000

การตอบกลับสำเร็จ 200

ข้อเสนอฉบับแบบมีโครงสร้างจากการเชื่อมต่อ AI ของลูกค้าที่เลือก

application/json

  • valueobject
  • dataobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • dataobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • subjectstringจำเป็น
  • subject_optionsarrayจำเป็น
  • แต่ละรายการstring
  • body_textstringจำเป็น
  • body_htmlstringจำเป็น
  • change_summarystringจำเป็น
  • provider_response_idstring
  • modelstringจำเป็น
  • usageobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/ai/email/revise' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Idempotency-Key: examplexxxxxxxxx' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "connection_id": "00000000-0000-4000-8000-000000000001",
  "provider": "openai",
  "model": "example",
  "instruction": "example",
  "current": {
    "subject": "example",
    "body_text": "example",
    "body_html": "example"
  }
}'
GET/v1/workspaces/{workspaceId}/ai/email/capabilities

getAiEmailCapabilities

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • categorizationobjectจำเป็น
  • availablebooleanจำเป็น

    const: false

  • enabledbooleanจำเป็น

    const: false

  • reasonstringจำเป็น

    enum: "not_configured"

  • managedไม่ได้ระบุจำเป็น
  • oneOf 1object
  • availablebooleanจำเป็น

    const: false

  • oneOf 2object
  • availablebooleanจำเป็น

    const: true

  • providerstringจำเป็น

    enum: "openai", "anthropic"

  • modelstringจำเป็น

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/ai/email/capabilities' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/ai/email/generate

generateEmailWithAi

สร้างดีไซน์อีเมลสมบูรณ์ตามแบรนด์จากบรีฟ เป็นข้อเสนอเท่านั้น

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

Idempotency-Key
header · จำเป็น
  • valuestring

    minLength: 16 · maxLength: 128

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • briefstringจำเป็น

    minLength: 1 · maxLength: 40000

  • audiencestring

    maxLength: 4000

  • starterobject
  • subjectstring

    maxLength: 998

  • body_textstring

    maxLength: 100000

  • body_htmlstring

    maxLength: 200000

  • connection_idstring

    format: "uuid"

  • providerstring

    enum: "openai", "anthropic"

  • modelstring

    maxLength: 200

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • dataobjectจำเป็น
  • subjectstringจำเป็น
  • subject_optionsarrayจำเป็น
  • แต่ละรายการstring
  • body_textstringจำเป็น
  • body_htmlstringจำเป็น
  • change_summarystringจำเป็น
  • provider_response_idstring
  • modelstringจำเป็น
  • usageobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • managedbooleanจำเป็น

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/ai/email/generate' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Idempotency-Key: examplexxxxxxxxx' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "brief": "example",
  "audience": "example",
  "starter": {
    "subject": "example",
    "body_text": "example",
    "body_html": "example"
  },
  "connection_id": "00000000-0000-4000-8000-000000000001",
  "provider": "openai",
  "model": "example"
}'

การวิเคราะห์

POST/v1/workspaces/{workspaceId}/analytics/visitor

เชื่อมการเข้าชมเว็บไซต์กับบุคคลที่เข้าสู่ระบบ

ต้องมีเซสชันคนที่เข้าสู่ระบบ ปฏิเสธคีย์ API

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • visitor_idstringจำเป็น

    pattern: "^[A-Za-z0-9-]{8,64}$"

การตอบกลับสำเร็จ 204

การตอบกลับสำเร็จ

ไม่มีเนื้อหาการตอบกลับ

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/analytics/visitor' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "visitor_id": "example"
}'
POST/v1/workspaces/{workspaceId}/analytics/ad-click

รายงานคลิกโฆษณาที่นำผู้ลงชื่อเข้าใช้เข้ามา

เว็บแอปส่ง ID คลิกโฆษณาที่นำบุคคลเข้ามาหนึ่งครั้งหลังลงชื่อเข้าใช้ คลิกแรกจะถูกบันทึกในบัญชี หากเป็นบัญชีใหม่ จะรายงานการสมัครไปยัง Google Ads และ Meta ต้องใช้เซสชันของคนที่ลงชื่อเข้าใช้ คีย์ API จะถูกปฏิเสธ

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • gclidstring

    maxLength: 500

  • gbraidstring

    maxLength: 500

  • wbraidstring

    maxLength: 500

  • fbclidstring

    maxLength: 500

  • fbcstring

    ค่าคุกกี้คลิกของ Meta คือ fb.1.<ms>.<fbclid>

    maxLength: 600

  • fbpstring

    ค่าคุกกี้เบราว์เซอร์ของ Meta คือ fb.1.<ms>.<random>

    maxLength: 100

  • utm_sourcestring

    maxLength: 100

  • utm_mediumstring

    maxLength: 100

  • utm_campaignstring

    maxLength: 100

  • utm_termstring

    maxLength: 100

  • utm_contentstring

    maxLength: 100

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • statusstringจำเป็น

    enum: "reported", "recorded", "already_recorded"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/analytics/ad-click' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "gclid": "example",
  "gbraid": "example",
  "wbraid": "example",
  "fbclid": "example",
  "fbc": "example",
  "fbp": "example",
  "utm_source": "example",
  "utm_medium": "example",
  "utm_campaign": "example",
  "utm_term": "example",
  "utm_content": "example"
}'

เอเจนต์ตอบคำถาม

GET/v1/workspaces/{workspaceId}/answer-agents

listAnswerAgents

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

เอเจนต์ตอบคำถามของพื้นที่ทำงาน

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • identityIdstringจำเป็น

    format: "uuid"

  • workspaceIdstringจำเป็น

    format: "uuid"

  • originstringจำเป็น

    const: "internal"

  • namestringจำเป็น
  • systemPromptstring
  • enabledbooleanจำเป็น
  • sendPolicystringจำเป็น

    enum: "draft_only", "reviewed_send", "direct_send"

  • mailboxIdsarrayจำเป็น
  • แต่ละรายการstring

    format: "uuid"

  • createdAtstringจำเป็น

    format: "date-time"

  • updatedAtstringจำเป็น

    format: "date-time"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/answer-agents' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/answer-agents

createAnswerAgent

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • namestringจำเป็น

    minLength: 1 · maxLength: 100

  • system_promptstring

    maxLength: 32000

  • enabledboolean

    default: true

  • send_policystring

    default: "draft_only" · enum: "draft_only", "reviewed_send", "direct_send"

  • mailbox_idsarray

    maxItems: 250

  • แต่ละรายการstring

    format: "uuid"

การตอบกลับสำเร็จ 201

สร้างเอเจนต์ตอบคำถามแล้ว

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • identityIdstringจำเป็น

    format: "uuid"

  • workspaceIdstringจำเป็น

    format: "uuid"

  • originstringจำเป็น

    const: "internal"

  • namestringจำเป็น
  • systemPromptstring
  • enabledbooleanจำเป็น
  • sendPolicystringจำเป็น

    enum: "draft_only", "reviewed_send", "direct_send"

  • mailboxIdsarrayจำเป็น
  • แต่ละรายการstring

    format: "uuid"

  • createdAtstringจำเป็น

    format: "date-time"

  • updatedAtstringจำเป็น

    format: "date-time"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/answer-agents' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "name": "example",
  "system_prompt": "example",
  "enabled": true,
  "send_policy": "draft_only",
  "mailbox_ids": [
    "00000000-0000-4000-8000-000000000001"
  ]
}'

แอสเซ็ต

GET/v1/workspaces/{workspaceId}/assets

แสดงรูปภาพอีเมลผลิตภัณฑ์และ URL สาธารณะที่เปลี่ยนไม่ได้

Needs mail:read or campaigns:read.

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

รูปภาพอีเมลผลิตภัณฑ์ล่าสุดสูงสุด 100 ภาพ

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

  • product_idstringจำเป็น

    format: "uuid"

  • filenamestringจำเป็น
  • mime_typestringจำเป็น

    enum: "image/png", "image/jpeg", "image/gif", "image/webp"

  • size_bytesintegerจำเป็น

    minimum: 1 · maximum: 2097152

  • sha256stringจำเป็น

    pattern: "^[a-f0-9]{64}$"

  • created_atstringจำเป็น

    format: "date-time"

  • public_urlstringจำเป็น

    format: "uri"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/assets' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001'
POST/v1/workspaces/{workspaceId}/assets

จัดเก็บรูปภาพที่เปลี่ยนไม่ได้สำหรับเนื้อหาอีเมลที่จัดการ

Send raw PNG, JPEG, GIF or WebP bytes with the matching Content-Type and optional X-File-Name, or JSON with base64, mime_type and filename. Both forms allow up to 2 MiB decoded image bytes. The response URL can be used directly in HTML; no localized destination registry is created. Needs mail:write or campaigns:write.

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

image/png

  • valuestring

    format: "binary"

image/jpeg

  • valuestring

    format: "binary"

image/gif

  • valuestring

    format: "binary"

image/webp

  • valuestring

    format: "binary"

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • base64stringจำเป็น

    ไบต์รูปภาพ

  • mime_typestringจำเป็น

    enum: "image/png", "image/jpeg", "image/gif", "image/webp"

  • filenamestring

    maxLength: 200

การตอบกลับสำเร็จ 201

รูปภาพที่ลงทะเบียนพร้อม URL สาธารณะที่เปลี่ยนไม่ได้

application/json

  • valueobject
  • dataobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

  • product_idstringจำเป็น

    format: "uuid"

  • filenamestringจำเป็น
  • mime_typestringจำเป็น

    enum: "image/png", "image/jpeg", "image/gif", "image/webp"

  • size_bytesintegerจำเป็น

    minimum: 1 · maximum: 2097152

  • sha256stringจำเป็น

    pattern: "^[a-f0-9]{64}$"

  • created_atstringจำเป็น

    format: "date-time"

  • public_urlstringจำเป็น

    format: "uri"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/assets' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "base64": "example",
  "mime_type": "image/png",
  "filename": "example"
}'
GET/v1/workspaces/{workspaceId}/assets/{assetId}

อ่านเมทาดาทาและ URL สาธารณะของรูปภาพอีเมลผลิตภัณฑ์หนึ่งภาพ

Needs mail:read or campaigns:read.

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

assetId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

เมทาดาทารูปภาพผลิตภัณฑ์

application/json

  • valueobject
  • dataobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

  • product_idstringจำเป็น

    format: "uuid"

  • filenamestringจำเป็น
  • mime_typestringจำเป็น

    enum: "image/png", "image/jpeg", "image/gif", "image/webp"

  • size_bytesintegerจำเป็น

    minimum: 1 · maximum: 2097152

  • sha256stringจำเป็น

    pattern: "^[a-f0-9]{64}$"

  • created_atstringจำเป็น

    format: "date-time"

  • public_urlstringจำเป็น

    format: "uri"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/assets/{assetId}' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001'

ระบบอัตโนมัติ

POST/v1/workspaces/{workspaceId}/automation/jobs

createExecutionJob

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

Idempotency-Key
header · จำเป็น
  • valuestring

    minLength: 16 · maxLength: 128

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • kindstringจำเป็น

    minLength: 1 · maxLength: 100

  • approval_idstring

    format: "uuid"

  • capabilitiesarrayจำเป็น

    คีย์ API มอบสิทธิ์ได้เฉพาะความสามารถที่คีย์นั้นมีอยู่แล้ว

    minItems: 1 · maxItems: 50

  • แต่ละรายการstring

    maxLength: 100

  • resourcesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมarray

    maxItems: 500

  • แต่ละรายการstring

    maxLength: 200

  • inputobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้

การตอบกลับสำเร็จ 200

การเรียกซ้ำแบบ idempotent ของงานดำเนินการแยกที่มีอยู่

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • placement_idstringจำเป็น

    format: "uuid"

  • placement_generationintegerจำเป็น

    format: "int64"

  • kindstringจำเป็น
  • requested_by_actor_idstringจำเป็น
  • approval_idstring | null

    format: "uuid"

  • capability_scopesarrayจำเป็น
  • แต่ละรายการstring
  • resource_scopeobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมarray
  • แต่ละรายการstring
  • statusstringจำเป็น

    enum: "queued", "leased", "succeeded", "failed", "cancelled"

  • attempt_countintegerจำเป็น
  • resultไม่ได้ระบุ
  • error_codestring | null
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • completed_atstring | null

    format: "date-time"

  • replayedbooleanจำเป็น

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/automation/jobs' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Idempotency-Key: examplexxxxxxxxx' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "kind": "example",
  "approval_id": "00000000-0000-4000-8000-000000000001",
  "capabilities": [
    "example"
  ],
  "resources": {},
  "input": {}
}'
GET/v1/workspaces/{workspaceId}/automation/jobs/{jobId}

getExecutionJob

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

jobId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

สถานะการทำงานปัจจุบันตามข้อมูลหลัก

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • placement_idstringจำเป็น

    format: "uuid"

  • placement_generationintegerจำเป็น

    format: "int64"

  • kindstringจำเป็น
  • requested_by_actor_idstringจำเป็น
  • approval_idstring | null

    format: "uuid"

  • capability_scopesarrayจำเป็น
  • แต่ละรายการstring
  • resource_scopeobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมarray
  • แต่ละรายการstring
  • statusstringจำเป็น

    enum: "queued", "leased", "succeeded", "failed", "cancelled"

  • attempt_countintegerจำเป็น
  • resultไม่ได้ระบุ
  • error_codestring | null
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • completed_atstring | null

    format: "date-time"

  • replayedbooleanจำเป็น

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/automation/jobs/{jobId}' \
  --header "Authorization: Bearer $BANGER_API_KEY"

แบรนด์

POST/v1/workspaces/{workspaceId}/brand/discover

discoverProductBrand

อ่านเว็บไซต์ผลิตภัณฑ์และบันทึกแบรนด์ที่แนะนำซึ่งค้นพบโดยไม่ทับค่าแบรนด์ที่ระบุชัด ต้องมีขอบเขตเขียนแคมเปญ

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

product_id
query · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • brandobjectจำเป็น
  • company_namestring

    maxLength: 160

  • logo_urlstring

    ไอคอน: สัญลักษณ์เดี่ยว ใช้ขนาดเล็ก (ส่วนท้ายอีเมล แบบฟอร์มเลื่อนเข้า) และใช้เป็นส่วนหัวเมื่อไม่มีโลโก้ตัวอักษร

    maxLength: 2000

  • wordmark_urlstring

    โลโก้ตัวอักษร: ชื่อบริษัทตามที่ออกแบบ แสดงเดี่ยวที่ด้านบนของทุกอีเมล

    maxLength: 2000

  • wordmark_inkstring

    สีที่ใช้วาดโลโก้ตัวอักษร วัดจากภาพเมื่อบันทึก หากโลโก้อ่านไม่ชัดบนส่วนหัว จะมีแผ่นพื้นหลังรองไว้ ไม่มีค่านี้สำหรับภาพทึบแสง

    maxLength: 7

  • logo_inkstring

    สีที่ใช้วาดไอคอน วัดจากภาพเมื่อบันทึก

    maxLength: 7

  • website_urlstring

    maxLength: 2000

  • primary_colorstring

    maxLength: 7

  • accent_colorstring

    maxLength: 7

  • background_colorstring

    maxLength: 7

  • surface_colorstring

    maxLength: 7

  • text_colorstring

    maxLength: 7

  • muted_text_colorstring

    maxLength: 7

  • heading_font_familystring

    maxLength: 200

  • body_font_familystring

    maxLength: 200

  • tonestring

    maxLength: 1000

  • footer_addressstring

    maxLength: 500

  • email_stylestring

    maxLength: 20

  • sourcesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมstring

    enum: "product", "discovery", "default"

  • discovery_domainstring | nullจำเป็น
  • missingarrayจำเป็น
  • แต่ละรายการstring
  • product_kindstringจำเป็น

    enum: "product", "store", "brand", "newsletter", "company", "other"

  • discovery_statusstring | null
  • product_idstringจำเป็น

    format: "uuid"

  • product_domainstring | nullจำเป็น
  • reviewed_atstring | null

    format: "date-time"

  • discovery_attempted_atstring | null

    format: "date-time"

  • logo_candidatesarray

    รูปโลโก้ที่ค้นพบในเว็บไซต์ผลิตภัณฑ์ (ส่วนหัว ส่วนท้าย โลโก้ที่ประกาศ) เพื่อสลับในคลิกเดียว

  • แต่ละรายการstring
  • mediaobjectจำเป็น
  • art_base_urlstringจำเป็น
  • hero_image_urlstring
  • email_fontsobjectจำเป็น
  • headingobjectจำเป็น
  • stackstringจำเป็น
  • fontstringจำเป็น
  • web_fontbooleanจำเป็น
  • clientsarrayจำเป็น
  • แต่ละรายการobject
  • clientstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • labelstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • fontstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • web_fontbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • fallbackbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • bodyobjectจำเป็น
  • stackstringจำเป็น
  • fontstringจำเป็น
  • web_fontbooleanจำเป็น
  • clientsarrayจำเป็น
  • แต่ละรายการobject
  • clientstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • labelstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • fontstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • web_fontbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • fallbackbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/brand/discover?product_id=00000000-0000-4000-8000-000000000001' \
  --header "Authorization: Bearer $BANGER_API_KEY"
GET/v1/workspaces/{workspaceId}/brand

getBrand

ชุดแบรนด์ผลิตภัณฑ์ที่ประมวลผลแล้วพร้อมแหล่งที่มาแต่ละฟิลด์

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • brandobjectจำเป็น
  • company_namestring

    maxLength: 160

  • logo_urlstring

    ไอคอน: สัญลักษณ์เดี่ยว ใช้ขนาดเล็ก (ส่วนท้ายอีเมล แบบฟอร์มเลื่อนเข้า) และใช้เป็นส่วนหัวเมื่อไม่มีโลโก้ตัวอักษร

    maxLength: 2000

  • wordmark_urlstring

    โลโก้ตัวอักษร: ชื่อบริษัทตามที่ออกแบบ แสดงเดี่ยวที่ด้านบนของทุกอีเมล

    maxLength: 2000

  • wordmark_inkstring

    สีที่ใช้วาดโลโก้ตัวอักษร วัดจากภาพเมื่อบันทึก หากโลโก้อ่านไม่ชัดบนส่วนหัว จะมีแผ่นพื้นหลังรองไว้ ไม่มีค่านี้สำหรับภาพทึบแสง

    maxLength: 7

  • logo_inkstring

    สีที่ใช้วาดไอคอน วัดจากภาพเมื่อบันทึก

    maxLength: 7

  • website_urlstring

    maxLength: 2000

  • primary_colorstring

    maxLength: 7

  • accent_colorstring

    maxLength: 7

  • background_colorstring

    maxLength: 7

  • surface_colorstring

    maxLength: 7

  • text_colorstring

    maxLength: 7

  • muted_text_colorstring

    maxLength: 7

  • heading_font_familystring

    maxLength: 200

  • body_font_familystring

    maxLength: 200

  • tonestring

    maxLength: 1000

  • footer_addressstring

    maxLength: 500

  • email_stylestring

    maxLength: 20

  • sourcesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมstring

    enum: "product", "discovery", "default"

  • discovery_domainstring | nullจำเป็น
  • missingarrayจำเป็น
  • แต่ละรายการstring
  • product_kindstringจำเป็น

    enum: "product", "store", "brand", "newsletter", "company", "other"

  • discovery_statusstring | null
  • product_idstringจำเป็น

    format: "uuid"

  • product_domainstring | nullจำเป็น
  • reviewed_atstring | null

    format: "date-time"

  • discovery_attempted_atstring | null

    format: "date-time"

  • logo_candidatesarray

    รูปโลโก้ที่ค้นพบในเว็บไซต์ผลิตภัณฑ์ (ส่วนหัว ส่วนท้าย โลโก้ที่ประกาศ) เพื่อสลับในคลิกเดียว

  • แต่ละรายการstring
  • mediaobjectจำเป็น
  • art_base_urlstringจำเป็น
  • hero_image_urlstring
  • email_fontsobjectจำเป็น
  • headingobjectจำเป็น
  • stackstringจำเป็น
  • fontstringจำเป็น
  • web_fontbooleanจำเป็น
  • clientsarrayจำเป็น
  • แต่ละรายการobject
  • clientstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • labelstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • fontstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • web_fontbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • fallbackbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • bodyobjectจำเป็น
  • stackstringจำเป็น
  • fontstringจำเป็น
  • web_fontbooleanจำเป็น
  • clientsarrayจำเป็น
  • แต่ละรายการobject
  • clientstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • labelstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • fontstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • web_fontbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • fallbackbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/brand' \
  --header "Authorization: Bearer $BANGER_API_KEY"
PUT/v1/workspaces/{workspaceId}/brand

updateBrand

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueไม่ได้ระบุ
  • anyOf 1object
  • company_namestring

    maxLength: 160

  • logo_urlstring

    ไอคอน: สัญลักษณ์เดี่ยว ใช้ขนาดเล็ก (ส่วนท้ายอีเมล แบบฟอร์มเลื่อนเข้า) และใช้เป็นส่วนหัวเมื่อไม่มีโลโก้ตัวอักษร

    maxLength: 2000

  • wordmark_urlstring

    โลโก้ตัวอักษร: ชื่อบริษัทตามที่ออกแบบ แสดงเดี่ยวที่ด้านบนของทุกอีเมล

    maxLength: 2000

  • wordmark_inkstring

    สีที่ใช้วาดโลโก้ตัวอักษร วัดจากภาพเมื่อบันทึก หากโลโก้อ่านไม่ชัดบนส่วนหัว จะมีแผ่นพื้นหลังรองไว้ ไม่มีค่านี้สำหรับภาพทึบแสง

    maxLength: 7

  • logo_inkstring

    สีที่ใช้วาดไอคอน วัดจากภาพเมื่อบันทึก

    maxLength: 7

  • website_urlstring

    maxLength: 2000

  • primary_colorstring

    maxLength: 7

  • accent_colorstring

    maxLength: 7

  • background_colorstring

    maxLength: 7

  • surface_colorstring

    maxLength: 7

  • text_colorstring

    maxLength: 7

  • muted_text_colorstring

    maxLength: 7

  • heading_font_familystring

    maxLength: 200

  • body_font_familystring

    maxLength: 200

  • tonestring

    maxLength: 1000

  • footer_addressstring

    maxLength: 500

  • email_stylestring

    maxLength: 20

  • anyOf 2object
  • brandobjectจำเป็น
  • company_namestring

    maxLength: 160

  • logo_urlstring

    ไอคอน: สัญลักษณ์เดี่ยว ใช้ขนาดเล็ก (ส่วนท้ายอีเมล แบบฟอร์มเลื่อนเข้า) และใช้เป็นส่วนหัวเมื่อไม่มีโลโก้ตัวอักษร

    maxLength: 2000

  • wordmark_urlstring

    โลโก้ตัวอักษร: ชื่อบริษัทตามที่ออกแบบ แสดงเดี่ยวที่ด้านบนของทุกอีเมล

    maxLength: 2000

  • wordmark_inkstring

    สีที่ใช้วาดโลโก้ตัวอักษร วัดจากภาพเมื่อบันทึก หากโลโก้อ่านไม่ชัดบนส่วนหัว จะมีแผ่นพื้นหลังรองไว้ ไม่มีค่านี้สำหรับภาพทึบแสง

    maxLength: 7

  • logo_inkstring

    สีที่ใช้วาดไอคอน วัดจากภาพเมื่อบันทึก

    maxLength: 7

  • website_urlstring

    maxLength: 2000

  • primary_colorstring

    maxLength: 7

  • accent_colorstring

    maxLength: 7

  • background_colorstring

    maxLength: 7

  • surface_colorstring

    maxLength: 7

  • text_colorstring

    maxLength: 7

  • muted_text_colorstring

    maxLength: 7

  • heading_font_familystring

    maxLength: 200

  • body_font_familystring

    maxLength: 200

  • tonestring

    maxLength: 1000

  • footer_addressstring

    maxLength: 500

  • email_stylestring

    maxLength: 20

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • brandobjectจำเป็น
  • company_namestring

    maxLength: 160

  • logo_urlstring

    ไอคอน: สัญลักษณ์เดี่ยว ใช้ขนาดเล็ก (ส่วนท้ายอีเมล แบบฟอร์มเลื่อนเข้า) และใช้เป็นส่วนหัวเมื่อไม่มีโลโก้ตัวอักษร

    maxLength: 2000

  • wordmark_urlstring

    โลโก้ตัวอักษร: ชื่อบริษัทตามที่ออกแบบ แสดงเดี่ยวที่ด้านบนของทุกอีเมล

    maxLength: 2000

  • wordmark_inkstring

    สีที่ใช้วาดโลโก้ตัวอักษร วัดจากภาพเมื่อบันทึก หากโลโก้อ่านไม่ชัดบนส่วนหัว จะมีแผ่นพื้นหลังรองไว้ ไม่มีค่านี้สำหรับภาพทึบแสง

    maxLength: 7

  • logo_inkstring

    สีที่ใช้วาดไอคอน วัดจากภาพเมื่อบันทึก

    maxLength: 7

  • website_urlstring

    maxLength: 2000

  • primary_colorstring

    maxLength: 7

  • accent_colorstring

    maxLength: 7

  • background_colorstring

    maxLength: 7

  • surface_colorstring

    maxLength: 7

  • text_colorstring

    maxLength: 7

  • muted_text_colorstring

    maxLength: 7

  • heading_font_familystring

    maxLength: 200

  • body_font_familystring

    maxLength: 200

  • tonestring

    maxLength: 1000

  • footer_addressstring

    maxLength: 500

  • email_stylestring

    maxLength: 20

  • sourcesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมstring

    enum: "product", "discovery", "default"

  • discovery_domainstring | nullจำเป็น
  • missingarrayจำเป็น
  • แต่ละรายการstring
  • product_kindstringจำเป็น

    enum: "product", "store", "brand", "newsletter", "company", "other"

  • discovery_statusstring | null
  • product_idstringจำเป็น

    format: "uuid"

  • product_domainstring | nullจำเป็น
  • reviewed_atstring | null

    format: "date-time"

  • discovery_attempted_atstring | null

    format: "date-time"

  • logo_candidatesarray

    รูปโลโก้ที่ค้นพบในเว็บไซต์ผลิตภัณฑ์ (ส่วนหัว ส่วนท้าย โลโก้ที่ประกาศ) เพื่อสลับในคลิกเดียว

  • แต่ละรายการstring
  • mediaobjectจำเป็น
  • art_base_urlstringจำเป็น
  • hero_image_urlstring
  • email_fontsobjectจำเป็น
  • headingobjectจำเป็น
  • stackstringจำเป็น
  • fontstringจำเป็น
  • web_fontbooleanจำเป็น
  • clientsarrayจำเป็น
  • แต่ละรายการobject
  • clientstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • labelstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • fontstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • web_fontbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • fallbackbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • bodyobjectจำเป็น
  • stackstringจำเป็น
  • fontstringจำเป็น
  • web_fontbooleanจำเป็น
  • clientsarrayจำเป็น
  • แต่ละรายการobject
  • clientstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • labelstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • fontstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • web_fontbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • fallbackbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

ตัวอย่าง curl

curl --request PUT --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/brand' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "company_name": "example",
  "logo_url": "example",
  "wordmark_url": "example",
  "website_url": "example",
  "primary_color": "example",
  "accent_color": "example",
  "background_color": "example",
  "surface_color": "example",
  "text_color": "example",
  "muted_text_color": "example",
  "heading_font_family": "example",
  "body_font_family": "example",
  "tone": "example",
  "footer_address": "example",
  "email_style": "example"
}'
PATCH/v1/workspaces/{workspaceId}/brand/patch

patchProductBrandFooter

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

Idempotency-Key
header · จำเป็น
  • valuestring

    minLength: 1 · maxLength: 256

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • brandobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • company_namestring

    minLength: 0 · maxLength: 2000

  • logo_urlstring

    minLength: 0 · maxLength: 2000

  • wordmark_urlstring

    minLength: 0 · maxLength: 2000

  • website_urlstring

    minLength: 0 · maxLength: 2000

  • primary_colorstring

    minLength: 0 · maxLength: 2000

  • accent_colorstring

    minLength: 0 · maxLength: 2000

  • background_colorstring

    minLength: 0 · maxLength: 2000

  • surface_colorstring

    minLength: 0 · maxLength: 2000

  • text_colorstring

    minLength: 0 · maxLength: 2000

  • muted_text_colorstring

    minLength: 0 · maxLength: 2000

  • heading_font_familystring

    minLength: 0 · maxLength: 2000

  • body_font_familystring

    minLength: 0 · maxLength: 2000

  • tonestring

    minLength: 0 · maxLength: 2000

  • footer_addressstring

    minLength: 0 · maxLength: 2000

การตอบกลับสำเร็จ 200

ข้อมูลหลักที่อ่านกลับหรือใบรับแบบ idempotent ผู้ให้บริการรับแล้วคือ sent ส่วน delivered ต้องมีเหตุการณ์ส่งถึงและไม่ยืนยันว่าเข้ากล่องจดหมายเข้า

application/json

  • valueobject
  • dataobjectจำเป็น
  • brandobjectจำเป็น
  • company_namestring

    maxLength: 160

  • logo_urlstring

    ไอคอน: สัญลักษณ์เดี่ยว ใช้ขนาดเล็ก (ส่วนท้ายอีเมล แบบฟอร์มเลื่อนเข้า) และใช้เป็นส่วนหัวเมื่อไม่มีโลโก้ตัวอักษร

    maxLength: 2000

  • wordmark_urlstring

    โลโก้ตัวอักษร: ชื่อบริษัทตามที่ออกแบบ แสดงเดี่ยวที่ด้านบนของทุกอีเมล

    maxLength: 2000

  • wordmark_inkstring

    สีที่ใช้วาดโลโก้ตัวอักษร วัดจากภาพเมื่อบันทึก หากโลโก้อ่านไม่ชัดบนส่วนหัว จะมีแผ่นพื้นหลังรองไว้ ไม่มีค่านี้สำหรับภาพทึบแสง

    maxLength: 7

  • logo_inkstring

    สีที่ใช้วาดไอคอน วัดจากภาพเมื่อบันทึก

    maxLength: 7

  • website_urlstring

    maxLength: 2000

  • primary_colorstring

    maxLength: 7

  • accent_colorstring

    maxLength: 7

  • background_colorstring

    maxLength: 7

  • surface_colorstring

    maxLength: 7

  • text_colorstring

    maxLength: 7

  • muted_text_colorstring

    maxLength: 7

  • heading_font_familystring

    maxLength: 200

  • body_font_familystring

    maxLength: 200

  • tonestring

    maxLength: 1000

  • footer_addressstring

    maxLength: 500

  • email_stylestring

    maxLength: 20

  • sourcesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมstring

    enum: "product", "discovery", "default"

  • discovery_domainstring | nullจำเป็น
  • missingarrayจำเป็น
  • แต่ละรายการstring
  • product_kindstring

    enum: "product", "store", "brand", "newsletter", "company", "other"

  • discovery_statusstring | null
  • product_idstringจำเป็น

    format: "uuid"

  • product_domainstring | null
  • reviewed_atstring | null

    format: "date-time"

  • discovery_attempted_atstring | null

    format: "date-time"

  • hero_image_urlstring | null
  • replayedbooleanจำเป็น

ตัวอย่าง curl

curl --request PATCH --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/brand/patch' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001' \
  --header 'Idempotency-Key: example' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "brand": {
    "company_name": "example",
    "logo_url": "example",
    "wordmark_url": "example",
    "website_url": "example",
    "primary_color": "example",
    "accent_color": "example",
    "background_color": "example",
    "surface_color": "example",
    "text_color": "example",
    "muted_text_color": "example",
    "heading_font_family": "example",
    "body_font_family": "example",
    "tone": "example",
    "footer_address": "example"
  }
}'

การเปลี่ยนแปลง

GET/v1/workspaces/{workspaceId}/changes

listChanges

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

after_revision
query · จำเป็น
  • valueinteger

    format: "int64" · minimum: 0

limit
query
  • valueinteger

    minimum: 1 · maximum: 500 · default: 200

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การทำให้ไม่ใช้ได้เรียงลำดับหลังฉบับไคลเอนต์

application/json

  • valueobject
  • dataobjectจำเป็น
  • current_revisionintegerจำเป็น

    format: "int64"

  • changesarrayจำเป็น
  • แต่ละรายการobject
  • revisionintegerจำเป็น

    format: "int64"

  • topicsarrayจำเป็น
  • แต่ละรายการstring

    enum: "mailboxes", "threads", "messages", "work", "drafts", "contacts", "campaigns", "deliverability"

  • mailbox_idsarray
  • แต่ละรายการstring

    format: "uuid"

  • created_atstringจำเป็น

    format: "date-time"

  • has_morebooleanจำเป็น

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/changes?after_revision=0&limit=200' \
  --header "Authorization: Bearer $BANGER_API_KEY"

คำสั่ง

POST/v1/workspaces/{workspaceId}/commands

createCommand

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

Idempotency-Key
header · จำเป็น
  • valuestring

    minLength: 16 · maxLength: 128

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • typestringจำเป็น

    enum: "mark_read", "mark_unread", "archive", "unarchive", "trash", "restore", "spam", "not_spam", "star", "unstar", "add_label", "remove_label", "move", "assign", "set_work_status"

  • targetobjectจำเป็น
  • thread_idstringจำเป็น

    format: "uuid"

  • parametersobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้

การตอบกลับสำเร็จ 202

บันทึกคำสั่งและเข้าคิวให้ผู้ให้บริการดำเนินการแล้ว

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • typestringจำเป็น
  • statusstringจำเป็น

    enum: "accepted", "executing", "succeeded", "failed"

  • workspace_revisionintegerจำเป็น

    format: "int64"

  • created_atstringจำเป็น

    format: "date-time"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/commands' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Idempotency-Key: examplexxxxxxxxx' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "type": "mark_read",
  "target": {
    "thread_id": "00000000-0000-4000-8000-000000000001"
  },
  "parameters": {}
}'
GET/v1/workspaces/{workspaceId}/commands/{commandId}

getCommand

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

commandId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

สถานะคำสั่งผู้ให้บริการที่จัดเก็บถาวร

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • typestringจำเป็น
  • statusstringจำเป็น

    enum: "accepted", "executing", "succeeded", "failed"

  • workspace_revisionintegerจำเป็น

    format: "int64"

  • created_atstringจำเป็น

    format: "date-time"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/commands/{commandId}' \
  --header "Authorization: Bearer $BANGER_API_KEY"

นโยบายการสื่อสาร

GET/v1/workspaces/{workspaceId}/communication-policy

อ่านนโยบายความขัดแย้งผู้รับ ความถี่ และช่วงส่งถึงของทั้งผลิตภัณฑ์

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

นโยบายการสื่อสารที่มีเวอร์ชัน

application/json

  • valueobject
  • dataobjectจำเป็น
  • versionintegerจำเป็น
  • policyobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • conflictstringจำเป็น

    enum: "defer", "discard"

  • minimumIntervalSecondsinteger

    minimum: 0 · maximum: 604800

  • capsarray

    maxItems: 8

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • countintegerจำเป็น

    minimum: 1

  • windowSecondsintegerจำเป็น

    minimum: 1 · maximum: 2592000

  • windowobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • startstringจำเป็น

    pattern: "^([01][0-9]|2[0-3]):[0-5][0-9]$"

  • endstringจำเป็น

    pattern: "^([01][0-9]|2[0-3]):[0-5][0-9]$"

  • timeZonestringจำเป็น
  • weekdaysarray

    maxItems: 7

  • แต่ละรายการinteger

    minimum: 0 · maximum: 6

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/communication-policy' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001'
PUT/v1/workspaces/{workspaceId}/communication-policy

บันทึกนโยบายการสื่อสารผลิตภัณฑ์พร้อมตรวจเวอร์ชันแบบ optimistic

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • expected_versionintegerจำเป็น

    minimum: 1

  • policyobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • conflictstringจำเป็น

    enum: "defer", "discard"

  • minimumIntervalSecondsinteger

    minimum: 0 · maximum: 604800

  • capsarray

    maxItems: 8

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • countintegerจำเป็น

    minimum: 1

  • windowSecondsintegerจำเป็น

    minimum: 1 · maximum: 2592000

  • windowobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • startstringจำเป็น

    pattern: "^([01][0-9]|2[0-3]):[0-5][0-9]$"

  • endstringจำเป็น

    pattern: "^([01][0-9]|2[0-3]):[0-5][0-9]$"

  • timeZonestringจำเป็น
  • weekdaysarray

    maxItems: 7

  • แต่ละรายการinteger

    minimum: 0 · maximum: 6

การตอบกลับสำเร็จ 200

อัปเดตนโยบายที่มีเวอร์ชันแล้ว

application/json

  • valueobject
  • dataobjectจำเป็น
  • versionintegerจำเป็น
  • policyobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • conflictstringจำเป็น

    enum: "defer", "discard"

  • minimumIntervalSecondsinteger

    minimum: 0 · maximum: 604800

  • capsarray

    maxItems: 8

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • countintegerจำเป็น

    minimum: 1

  • windowSecondsintegerจำเป็น

    minimum: 1 · maximum: 2592000

  • windowobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • startstringจำเป็น

    pattern: "^([01][0-9]|2[0-3]):[0-5][0-9]$"

  • endstringจำเป็น

    pattern: "^([01][0-9]|2[0-3]):[0-5][0-9]$"

  • timeZonestringจำเป็น
  • weekdaysarray

    maxItems: 7

  • แต่ละรายการinteger

    minimum: 0 · maximum: 6

ตัวอย่าง curl

curl --request PUT --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/communication-policy' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "expected_version": 1,
  "policy": {
    "conflict": "defer",
    "minimumIntervalSeconds": 0,
    "caps": [
      {
        "count": 1,
        "windowSeconds": 1
      }
    ],
    "window": {
      "start": "example",
      "end": "example",
      "timeZone": "example",
      "weekdays": [
        0
      ]
    }
  }
}'
POST/v1/workspaces/{workspaceId}/communication-policy/simulate

จำลองนโยบายแบบอ่านอย่างเดียวสำหรับคำขอส่งคงที่ไปยังผู้รับหนึ่งคน

ไม่เปลี่ยนการจองหรือย้ายขั้นตอนเส้นทางที่พึ่งพา

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • policyobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • conflictstringจำเป็น

    enum: "defer", "discard"

  • minimumIntervalSecondsinteger

    minimum: 0 · maximum: 604800

  • capsarray

    maxItems: 8

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • countintegerจำเป็น

    minimum: 1

  • windowSecondsintegerจำเป็น

    minimum: 1 · maximum: 2592000

  • windowobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • startstringจำเป็น

    pattern: "^([01][0-9]|2[0-3]):[0-5][0-9]$"

  • endstringจำเป็น

    pattern: "^([01][0-9]|2[0-3]):[0-5][0-9]$"

  • timeZonestringจำเป็น
  • weekdaysarray

    maxItems: 7

  • แต่ละรายการinteger

    minimum: 0 · maximum: 6

  • historyarray

    maxItems: 10000

  • แต่ละรายการstring

    format: "date-time"

  • requestsarrayจำเป็น

    maxItems: 1000

  • แต่ละรายการobject
  • idstringจำเป็น
  • atstringจำเป็น

    format: "date-time"

  • categorystringจำเป็น

    enum: "urgent", "product", "promotional"

  • source_kindstringจำเป็น

    enum: "journey", "broadcast"

  • expiresAtstring

    format: "date-time"

  • deliveryBlockedboolean

การตอบกลับสำเร็จ 200

ไทม์ไลน์คำตัดสินส่ง เลื่อน หรือยกเลิกในแต่ละคำขอพร้อมเหตุผล

application/json

  • valueobject
  • dataobjectจำเป็น
  • policyobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • conflictstringจำเป็น

    enum: "defer", "discard"

  • minimumIntervalSecondsinteger

    minimum: 0 · maximum: 604800

  • capsarray

    maxItems: 8

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • countintegerจำเป็น

    minimum: 1

  • windowSecondsintegerจำเป็น

    minimum: 1 · maximum: 2592000

  • windowobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • startstringจำเป็น

    pattern: "^([01][0-9]|2[0-3]):[0-5][0-9]$"

  • endstringจำเป็น

    pattern: "^([01][0-9]|2[0-3]):[0-5][0-9]$"

  • timeZonestringจำเป็น
  • weekdaysarray

    maxItems: 7

  • แต่ละรายการinteger

    minimum: 0 · maximum: 6

  • policy_versioninteger | nullจำเป็น
  • timelinearrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น
  • source_kindstringจำเป็น

    enum: "journey", "broadcast"

  • requested_atstringจำเป็น

    format: "date-time"

  • actionstringจำเป็น

    enum: "send", "defer", "discard"

  • atstringจำเป็น

    format: "date-time"

  • reasonstringจำเป็น
  • scopestringจำเป็น

    enum: "one_recipient_fixed_send_requests"

  • warningsarrayจำเป็น
  • แต่ละรายการstring

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/communication-policy/simulate' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "policy": {
    "conflict": "defer",
    "minimumIntervalSeconds": 0,
    "caps": [
      {
        "count": 1,
        "windowSeconds": 1
      }
    ],
    "window": {
      "start": "example",
      "end": "example",
      "timeZone": "example",
      "weekdays": [
        0
      ]
    }
  },
  "history": [
    "2026-01-01T00:00:00Z"
  ],
  "requests": [
    {
      "id": "example",
      "at": "2026-01-01T00:00:00Z",
      "category": "urgent",
      "source_kind": "journey",
      "expiresAt": "2026-01-01T00:00:00Z",
      "deliveryBlocked": true
    }
  ]
}'

การตั้งค่าเนื้อหา

GET/v1/workspaces/{workspaceId}/content-settings

อ่านการตั้งค่าโลแคล ภาษาสำรอง เขตเวลา อภิธานศัพท์ และการตรวจทานระดับผลิตภัณฑ์

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตั้งค่าเนื้อหาปัจจุบัน

application/json

  • valueobject
  • dataobjectจำเป็น
  • source_localestringจำเป็น
  • configured_localesarrayจำเป็น
  • แต่ละรายการstring
  • fallback_chainarrayจำเป็น
  • แต่ละรายการstring
  • timezonestringจำเป็น
  • glossaryobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมstring
  • manual_translation_reviewbooleanจำเป็น
  • versionintegerจำเป็น

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/content-settings' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001'
PUT/v1/workspaces/{workspaceId}/content-settings

บันทึกการตั้งค่าเนื้อหาระดับผลิตภัณฑ์พร้อมตรวจเวอร์ชันแบบ optimistic

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • source_localestringจำเป็น
  • configured_localesarrayจำเป็น
  • แต่ละรายการstring
  • fallback_chainarrayจำเป็น
  • แต่ละรายการstring
  • timezonestringจำเป็น
  • glossaryobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมstring
  • manual_translation_reviewbooleanจำเป็น
  • expected_versionintegerจำเป็น

    minimum: 0

การตอบกลับสำเร็จ 200

การตั้งค่าเนื้อหาที่บันทึก

application/json

  • valueobject
  • dataobjectจำเป็น
  • source_localestringจำเป็น
  • configured_localesarrayจำเป็น
  • แต่ละรายการstring
  • fallback_chainarrayจำเป็น
  • แต่ละรายการstring
  • timezonestringจำเป็น
  • glossaryobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมstring
  • manual_translation_reviewbooleanจำเป็น
  • versionintegerจำเป็น

ตัวอย่าง curl

curl --request PUT --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/content-settings' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "source_locale": "example",
  "configured_locales": [
    "example"
  ],
  "fallback_chain": [
    "example"
  ],
  "timezone": "example",
  "glossary": {},
  "manual_translation_review": true,
  "expected_version": 0
}'

สรุปรายวัน

GET/v1/workspaces/{workspaceId}/daily-summary

อ่านการตั้งค่าอีเมลสรุปรายวันของคุณสำหรับผลิตภัณฑ์ที่เลือก

สรุปรายวันคืออีเมลหนึ่งฉบับที่ส่งทุกเช้าไปยังที่อยู่ที่คุณใช้ลงชื่อเข้าใช้ โดยมีสรุปของเมื่อวานจากหน้าหลัก พร้อมรายการอนุมัติหรือการแจ้งเตือนที่ต้องดำเนินการ เปิดไว้จนกว่าคุณจะปิด หากไม่มีอีเมลใหม่ในวันนั้นจะไม่ส่ง การตั้งค่านี้เป็นของคุณเอง

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

x-banger-product-id
header

ผลิตภัณฑ์ที่เลือก จำเป็นเมื่อมีหลายผลิตภัณฑ์ใช้งาน

  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตั้งค่าของคุณ โดยใช้ค่าเริ่มต้นสำหรับรายการที่ไม่เคยเปลี่ยน

application/json

  • valueobject
  • dataobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • enabledbooleanจำเป็น
  • send_hourintegerจำเป็น

    ชั่วโมงตามเวลาท้องถิ่นที่ส่ง

    minimum: 0 · maximum: 23

  • time_zonestringจำเป็น

    เขตเวลาที่ใช้ ได้แก่ เขตเวลาที่เลือกไว้ มิฉะนั้นใช้ของเบราว์เซอร์ และหากไม่มีจะใช้ UTC

  • time_zone_sourcestringจำเป็น

    enum: "chosen", "browser", "default"

  • weekdays_onlybooleanจำเป็น
  • include_unlabeledbooleanจำเป็น
  • excluded_labelsarrayจำเป็น

    ชื่อป้ายกำกับที่ไม่รวมในอีเมล

  • แต่ละรายการstring
  • send_tostring | nullจำเป็น

    ที่อยู่ที่คุณใช้ลงชื่อเข้าใช้

  • last_sent_onstring | nullจำเป็น

    format: "date"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/daily-summary' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'x-banger-product-id: 00000000-0000-4000-8000-000000000001'
PUT/v1/workspaces/{workspaceId}/daily-summary

เปลี่ยนการตั้งค่าอีเมลสรุปรายวันของคุณ

เปลี่ยนเฉพาะฟิลด์ที่ระบุ หาก time_zone เป็น null จะกลับไปใช้เขตเวลาของเบราว์เซอร์

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

x-banger-product-id
header

ผลิตภัณฑ์ที่เลือก จำเป็นเมื่อมีหลายผลิตภัณฑ์ใช้งาน

  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • enabledboolean
  • send_hourinteger

    minimum: 0 · maximum: 23

  • time_zonestring | null

    เขตเวลา IANA เช่น Europe/Lisbon หากเป็น null จะใช้ของเบราว์เซอร์

    maxLength: 64

  • weekdays_onlyboolean
  • include_unlabeledboolean
  • excluded_labelsarray

    maxItems: 200

  • แต่ละรายการstring

    minLength: 1 · maxLength: 200

การตอบกลับสำเร็จ 200

การตั้งค่าของคุณหลังเปลี่ยน

application/json

  • valueobject
  • dataobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • enabledbooleanจำเป็น
  • send_hourintegerจำเป็น

    ชั่วโมงตามเวลาท้องถิ่นที่ส่ง

    minimum: 0 · maximum: 23

  • time_zonestringจำเป็น

    เขตเวลาที่ใช้ ได้แก่ เขตเวลาที่เลือกไว้ มิฉะนั้นใช้ของเบราว์เซอร์ และหากไม่มีจะใช้ UTC

  • time_zone_sourcestringจำเป็น

    enum: "chosen", "browser", "default"

  • weekdays_onlybooleanจำเป็น
  • include_unlabeledbooleanจำเป็น
  • excluded_labelsarrayจำเป็น

    ชื่อป้ายกำกับที่ไม่รวมในอีเมล

  • แต่ละรายการstring
  • send_tostring | nullจำเป็น

    ที่อยู่ที่คุณใช้ลงชื่อเข้าใช้

  • last_sent_onstring | nullจำเป็น

    format: "date"

ตัวอย่าง curl

curl --request PUT --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/daily-summary' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'x-banger-product-id: 00000000-0000-4000-8000-000000000001' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "enabled": true,
  "send_hour": 0,
  "time_zone": "example",
  "weekdays_only": true,
  "include_unlabeled": true,
  "excluded_labels": [
    "example"
  ]
}'
POST/v1/workspaces/{workspaceId}/daily-summary/send

ส่งสรุปรายวันของเมื่อวานให้ตัวคุณเองตอนนี้

ส่งสรุปของเมื่อวานตามเขตเวลาของคุณไปยังที่อยู่ที่ใช้ลงชื่อเข้าใช้ แม้วันนั้นไม่มีกิจกรรมและแม้ปิดอีเมลรายวันไว้ อีเมลตอนเช้ายังคงส่งตามปกติ

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

x-banger-product-id
header

ผลิตภัณฑ์ที่เลือก จำเป็นเมื่อมีหลายผลิตภัณฑ์ใช้งาน

  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

สิ่งที่เกิดขึ้น

application/json

  • valueobject
  • dataobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • outcomestringจำเป็น

    enum: "sent", "quiet", "already_sent", "unavailable", "skipped_test_address"

  • sent_tostringจำเป็น
  • daystringจำเป็น

    format: "date"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/daily-summary/send' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'x-banger-product-id: 00000000-0000-4000-8000-000000000001'

อัตราการส่งถึง

GET/v1/workspaces/{workspaceId}/deliverability

getDeliverabilitySummary

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

since
query
  • valuestring

    format: "date-time"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • counting_basisstring

    enum: "recipients", "events"

  • simulator_eventsinteger
  • sincestringจำเป็น

    format: "date-time"

  • generated_atstringจำเป็น

    format: "date-time"

  • totalsobjectจำเป็น
  • sent_countinteger

    format: "int64"

  • delivered_countinteger

    format: "int64"

  • deferred_countinteger

    format: "int64"

  • bounced_countinteger

    format: "int64"

  • complained_countinteger

    format: "int64"

  • opened_countinteger

    format: "int64"

  • clicked_countinteger

    format: "int64"

  • unsubscribed_countinteger

    format: "int64"

  • failed_countinteger

    format: "int64"

  • suppressed_countinteger

    format: "int64"

  • last_event_atstring | null

    format: "date-time"

  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • time_seriesarrayจำเป็น
  • แต่ละรายการไม่ได้ระบุ
  • allOf 1object
  • sent_countinteger

    format: "int64"

  • delivered_countinteger

    format: "int64"

  • deferred_countinteger

    format: "int64"

  • bounced_countinteger

    format: "int64"

  • complained_countinteger

    format: "int64"

  • opened_countinteger

    format: "int64"

  • clicked_countinteger

    format: "int64"

  • unsubscribed_countinteger

    format: "int64"

  • failed_countinteger

    format: "int64"

  • suppressed_countinteger

    format: "int64"

  • last_event_atstring | null

    format: "date-time"

  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • allOf 2object
  • bucketstringจำเป็น

    format: "date"

  • providersarrayจำเป็น
  • แต่ละรายการไม่ได้ระบุ
  • allOf 1object
  • sent_countinteger

    format: "int64"

  • delivered_countinteger

    format: "int64"

  • deferred_countinteger

    format: "int64"

  • bounced_countinteger

    format: "int64"

  • complained_countinteger

    format: "int64"

  • opened_countinteger

    format: "int64"

  • clicked_countinteger

    format: "int64"

  • unsubscribed_countinteger

    format: "int64"

  • failed_countinteger

    format: "int64"

  • suppressed_countinteger

    format: "int64"

  • last_event_atstring | null

    format: "date-time"

  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • allOf 2object
  • provider_connection_idstring | null

    format: "uuid"

  • providerstringจำเป็น
  • display_namestringจำเป็น
  • ownershipstringจำเป็น
  • statusstringจำเป็น
  • recipient_domainsarrayจำเป็น
  • แต่ละรายการไม่ได้ระบุ
  • allOf 1object
  • sent_countinteger

    format: "int64"

  • delivered_countinteger

    format: "int64"

  • deferred_countinteger

    format: "int64"

  • bounced_countinteger

    format: "int64"

  • complained_countinteger

    format: "int64"

  • opened_countinteger

    format: "int64"

  • clicked_countinteger

    format: "int64"

  • unsubscribed_countinteger

    format: "int64"

  • failed_countinteger

    format: "int64"

  • suppressed_countinteger

    format: "int64"

  • last_event_atstring | null

    format: "date-time"

  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • allOf 2object
  • recipient_domainstringจำเป็น
  • sending_streamsarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • domainstringจำเป็น
  • stream_kindstringจำเป็น
  • display_namestringจำเป็น
  • statusstringจำเป็น
  • status_reasonstring | null
  • provider_statusstring | null
  • required_recordsintegerจำเป็น

    format: "int64"

  • verified_recordsintegerจำเป็น

    format: "int64"

  • pending_recordsintegerจำเป็น

    format: "int64"

  • error_recordsintegerจำเป็น

    format: "int64"

  • last_checked_atstring | null

    format: "date-time"

  • feedback_pipelineobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • statusstringจำเป็น

    enum: "healthy", "degraded", "unproven"

  • eligible_attemptsintegerจำเป็น

    format: "int64"

  • unmatched_attemptsintegerจำเป็น

    format: "int64"

  • last_receipt_atstring | null

    format: "date-time"

  • issuesarrayจำเป็น
  • แต่ละรายการobject
  • severitystringจำเป็น

    enum: "warning", "critical"

  • codestringจำเป็น
  • titlestringจำเป็น
  • detailstringจำเป็น
  • resource_kindstringจำเป็น
  • resource_idstringจำเป็น

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/deliverability?since=2026-01-01T00%3A00%3A00Z' \
  --header "Authorization: Bearer $BANGER_API_KEY"
GET/v1/workspaces/{workspaceId}/deliverability/bounces

listDeliverabilityBounces

ผู้รับที่อีเมลตีกลับหรือรายงานสแปมจากการส่งที่สร้างตั้งแต่ `since` เรียงล่าสุดก่อน สูงสุด 100 ราย `email` เป็น null เมื่อ Banger ระบุที่อยู่ไม่ได้ แต่มีโดเมนเสมอ `suppressed` หมายถึงการส่งครั้งต่อไปข้ามที่อยู่นี้อยู่แล้ว

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

since
query
  • valuestring

    format: "date-time"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject
  • send_intent_idstringจำเป็น

    format: "uuid"

  • emailstring | nullจำเป็น
  • recipient_domainstringจำเป็น
  • outcomestringจำเป็น

    enum: "hard_bounce", "soft_bounce", "complaint"

  • occurred_atstringจำเป็น

    format: "date-time"

  • subjectstringจำเป็น
  • origin_namestring | nullจำเป็น
  • suppressedbooleanจำเป็น

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/deliverability/bounces?since=2026-01-01T00%3A00%3A00Z' \
  --header "Authorization: Bearer $BANGER_API_KEY"
GET/v1/workspaces/{workspaceId}/deliverability/resolutions

listDeliverabilityResolutions

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

since
query
  • valuestring

    format: "date-time"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น
  • reasonstringจำเป็น

    enum: "complaint", "hard_bounce"

  • countintegerจำเป็น
  • domainsarrayจำเป็น
  • แต่ละรายการstring
  • statusstringจำเป็น
  • decidedAtstring | null

    format: "date-time"

  • titlestringจำเป็น
  • explanationstringจำเป็น
  • impactstringจำเป็น

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/deliverability/resolutions?since=2026-01-01T00%3A00%3A00Z' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/deliverability/resolutions

decideDeliverabilityResolution

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

since
query
  • valuestring

    format: "date-time"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • idstringจำเป็น

    minLength: 64 · maxLength: 64

  • decisionstringจำเป็น

    enum: "approved", "rejected"

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • statusstringจำเป็น

    enum: "approved", "rejected"

  • approvalIdstringจำเป็น

    format: "uuid"

  • replayedboolean
  • countinteger

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/deliverability/resolutions?since=2026-01-01T00%3A00%3A00Z' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "id": "examplexxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "decision": "approved"
}'

เอกสาร

GET/v1/workspaces/{workspaceId}/documents

listDocuments

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

cursor
query
  • valuestring

    maxLength: 1024

limit
query
  • valueinteger

    minimum: 1 · maximum: 100 · default: 50

mailbox_id
query
  • valuestring

    format: "uuid"

q
query
  • valuestring

    maxLength: 512

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • message_idstringจำเป็น

    format: "uuid"

  • mailbox_idstringจำเป็น

    format: "uuid"

  • thread_idstringจำเป็น

    format: "uuid"

  • filenamestringจำเป็น
  • content_typestringจำเป็น
  • size_bytesintegerจำเป็น
  • sent_atstringจำเป็น

    format: "date-time"

  • subjectstringจำเป็น
  • pageobjectจำเป็น
  • next_cursorstring
  • has_morebooleanจำเป็น

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/documents?cursor=example&limit=50&mailbox_id=00000000-0000-4000-8000-000000000001&q=example' \
  --header "Authorization: Bearer $BANGER_API_KEY"

ตัวอย่างอีเมล

GET/v1/workspaces/{workspaceId}/email-preview

เรนเดอร์อีเมลที่บันทึกเพื่อปรับภาพโดยไม่ส่ง

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

kind
query · จำเป็น
  • valuestring

    enum: "template", "broadcast", "journey"

id
query · จำเป็น
  • valuestring

    format: "uuid"

locale
query

โลแคล BCP 47 ที่ไม่บังคับสำหรับตัวอย่างแคมเปญที่จัดการ

  • valuestring

    maxLength: 64

variant
query

คีย์ตัวแปรการทดลองแคมเปญที่จัดการซึ่งไม่บังคับ

  • valuestring

    maxLength: 40

x-banger-product-id
header · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

เนื้อหาอีเมลและลำดับเส้นทางที่บันทึก

application/json

  • valueobject
  • dataobjectจำเป็น
  • resource_kindstringจำเป็น

    enum: "template", "broadcast", "journey"

  • resource_idstringจำเป็น

    format: "uuid"

  • product_idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • statusstringจำเป็น
  • selected_email_keystring
  • itemsarrayจำเป็น
  • แต่ละรายการobject
  • keystringจำเป็น
  • step_idstring

    ขั้นตอนเส้นทางที่รายการนี้แสดง เป็น steps[].id ในเส้นทางที่บันทึก

    format: "uuid"

  • kindstringจำเป็น
  • namestringจำเป็น
  • subjectstring
  • preview_textstring
  • body_htmlstring
  • body_textstring
  • detailstring
  • revision_idstring

    ฉบับต้นฉบับแคมเปญที่จัดการซึ่งเรนเดอร์ตามจริง

    format: "uuid"

  • revision_statusstring

    ระบุว่าฉบับที่เรนเดอร์เป็นเนื้อหาที่บันทึกแต่ยังไม่เผยแพร่หรือเผยแพร่แล้ว

    enum: "draft", "published"

  • sample_valuesbooleanจำเป็น
  • image_assetsobject
  • พร็อพเพอร์ตีเพิ่มเติมstring

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/email-preview?kind=template&id=00000000-0000-4000-8000-000000000001&locale=example&variant=example' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'x-banger-product-id: 00000000-0000-4000-8000-000000000001'

เหตุการณ์

POST/v1/workspaces/{workspaceId}/events

ส่งเหตุการณ์ที่กำหนดเองเข้าเส้นทางของผลิตภัณฑ์

ต้องมี automation:execute เหตุการณ์มาถึงเว็บฮุกขาเข้าโดยปริยาย "Banger API events" ของผลิตภัณฑ์ ซึ่งสร้างเมื่อเหตุการณ์แรกและแสดงร่วมเว็บฮุกอื่นให้เส้นทางใช้ connection_id ได้ หรือมาถึง connection_id ซึ่งเป็นเว็บฮุกขาเข้าอื่นที่ใช้งานของผลิตภัณฑ์เดียวกัน จากนั้นประมวลผลเหมือนโพสต์เหตุการณ์ไป URL เว็บฮุกนั้นทุกประการ เส้นทางที่ใช้งานและทริกเกอร์ระบุชนิดเหตุการณ์และการเชื่อมต่อจะเพิ่มบุคคลที่ email (หรือผู้รับที่กำหนด) เส้นทางที่เป้าหมายระบุเหตุการณ์นั้นจะหยุดการทำงานของบุคคล เหตุการณ์เริ่มเส้นทางที่อนุมัติแล้วซึ่งส่งอีเมลได้ id เหตุการณ์ทำให้คำขอเป็น idempotent เรียกซ้ำด้วยเนื้อหาเดิมคืน duplicate true ใช้ซ้ำกับเนื้อหาต่างคืน 409 webhook_event_id_reused

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

x-banger-product-id
header

จำเป็นในพื้นที่ทำงานที่มีหลายผลิตภัณฑ์ใช้งาน เว้นแต่คีย์ API ผูกผลิตภัณฑ์แล้ว

  • valuestring

    format: "uuid"

Idempotency-Key
header

ID เหตุการณ์เมื่อเนื้อหาไม่มี id ต้องมีอย่างใดอย่างหนึ่ง

  • valuestring

    minLength: 1 · maxLength: 500

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • typestringจำเป็น

    ชื่อเหตุการณ์ที่ทริกเกอร์และเป้าหมายเส้นทางจับคู่ เช่น signup

    pattern: "^[A-Za-z0-9_.:-]{1,120}$"

  • idไม่ได้ระบุ

    ตัวระบุเหตุการณ์ที่คงที่ในระบบผู้เรียก หากไม่มี ใช้ส่วนหัว Idempotency-Key เป็น id

  • oneOf 1string

    minLength: 1 · maxLength: 500

  • oneOf 2number
  • emailstring

    บุคคลที่เหตุการณ์กล่าวถึง

    format: "email" · maxLength: 320

  • namestring

    ชื่อแสดงของบุคคล

    maxLength: 200

  • occurred_atstring

    เวลาเกิดเหตุการณ์ ค่าเริ่มต้นคือเวลาที่ Banger ได้รับ

    format: "date-time"

  • attributesobject

    ค่าที่เงื่อนไขเส้นทางและเนื้อหาอีเมลอ่านได้ ค่าข้อความยาวสูงสุด 500 อักขระ

  • พร็อพเพอร์ตีเพิ่มเติมไม่ได้ระบุ
  • oneOf 1string

    maxLength: 500

  • oneOf 2number
  • oneOf 3boolean
  • connection_idstring

    การเชื่อมต่อเว็บฮุกขาเข้าที่ใช้งานของผลิตภัณฑ์เดียวกัน ค่าเริ่มต้นคือเว็บฮุก Banger API events

    format: "uuid"

การตอบกลับสำเร็จ 202

รับเหตุการณ์แล้ว หรือรับภายใต้ id นี้แล้ว

application/json

  • valueobject
  • dataobjectจำเป็น
  • acceptedbooleanจำเป็น

    const: true

  • duplicatebooleanจำเป็น

    True เมื่อรับ id นี้แล้ว ไม่มีการรันซ้ำ

  • connection_idstringจำเป็น

    การเชื่อมต่อที่รับเหตุการณ์

    format: "uuid"

  • sequence_enrollments_createdintegerจำเป็น

    minimum: 0

  • sequence_enrollments_stoppedintegerจำเป็น

    การทำงานที่หยุดด้วยเป้าหมายเส้นทาง

    minimum: 0

  • sequence_matches_ignoredintegerจำเป็น

    เส้นทางที่ตรงแต่ใช้เหตุการณ์ไม่ได้ เช่น เส้นทางที่เพิ่มบุคคลเมื่อเหตุการณ์ไม่มีอีเมล

    minimum: 0

  • sequence_goals_predating_enrollmentintegerจำเป็น

    เป้าหมายที่เกิดก่อนการทำงานซึ่งควรหยุดได้เริ่ม

    minimum: 0

  • sequence_enrollments_rejectedarray

    เส้นทางที่ไม่เพิ่มบุคคลนี้เพราะข้อมูลเหตุการณ์เติมอีเมลไม่ได้

  • แต่ละรายการobject
  • journey_idstringจำเป็น

    format: "uuid"

  • journey_namestringจำเป็น
  • fieldsarrayจำเป็น
  • แต่ละรายการobject
  • namestringจำเป็น

    ฟิลด์รายชื่อติดต่อที่อีเมลต้องใช้

    ละส่วนที่ซ้อนลึกกว่านี้

  • problemstringจำเป็น

    enum: "missing", "not_https"

    ละส่วนที่ซ้อนลึกกว่านี้

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/events' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'x-banger-product-id: 00000000-0000-4000-8000-000000000001' \
  --header 'Idempotency-Key: example' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "type": "example",
  "id": "example",
  "email": "person@example.com",
  "name": "example",
  "occurred_at": "2026-01-01T00:00:00Z",
  "attributes": {},
  "connection_id": "00000000-0000-4000-8000-000000000001"
}'

การทดลอง

GET/v1/workspaces/{workspaceId}/experiments

listExperiments

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject
  • namestringจำเป็น

    minLength: 1 · maxLength: 200

  • subject_kindstringจำเป็น

    enum: "campaign", "sequence_step", "automation_rule"

  • subject_idstringจำเป็น

    minLength: 1 · maxLength: 200

  • dimensionstringจำเป็น

    enum: "subject", "design", "content", "from_name"

  • variantsarrayจำเป็น

    minItems: 2 · maxItems: 4

  • แต่ละรายการobject
  • keystring

    pattern: "^[a-z0-9][a-z0-9_-]{0,39}$"

  • labelstring

    maxLength: 120

  • subjectstring

    minLength: 1 · maxLength: 998

  • template_idstring

    format: "uuid"

  • contentobject
  • พร็อพเพอร์ตีเพิ่มเติมstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • from_namestring

    minLength: 1 · maxLength: 200

  • allocationarray
  • แต่ละรายการinteger

    minimum: 1 · maximum: 100

  • sample_percentinteger

    minimum: 5 · maximum: 100 · default: 100

  • primary_metricstring

    default: "human_click" · enum: "human_open", "human_click", "reply", "conversion"

  • min_sample_per_arminteger

    minimum: 10 · maximum: 100000 · default: 100

  • decisionobject
  • modestring

    enum: "manual", "auto"

  • after_hoursinteger

    minimum: 1 · maximum: 336

  • confidencenumber

    minimum: 0.8 · maximum: 0.99

  • guardrailsobject
  • max_complaint_ratenumber

    maximum: 1 · exclusiveMinimum: 0

  • max_unsubscribe_ratenumber

    maximum: 1 · exclusiveMinimum: 0

  • idstringจำเป็น

    format: "uuid"

  • product_idstring

    format: "uuid"

  • statusstringจำเป็น

    enum: "running", "decided", "stopped"

  • winner_keystring | null
  • decided_bystring | null
  • decision_basisstring | null

    enum: "confident", "deadline", "guardrail", "manual", null

  • decision_confidencenumber | null
  • decision_reasonstring | null
  • started_atstring

    format: "date-time"

  • decided_atstring | null

    format: "date-time"

  • created_by_actor_idstring
  • created_atstring

    format: "date-time"

  • updated_atstring

    format: "date-time"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/experiments' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/experiments

createExperiment

เริ่มทดสอบ A/B ในแคมเปญ ขั้นตอนเส้นทาง หรือกฎอัตโนมัติ

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    เพย์โหลดตัวแปรต้องตรง dimension: subject, template_id (ดีไซน์), content หรือ from_name คีย์ต้องไม่ซ้ำและไม่เป็น holdback Allocation ต้องมีหนึ่งเปอร์เซ็นต์ต่อตัวแปรรวมเป็น 100 หากไม่ระบุ allocation จะแบ่งเท่ากัน

  • namestringจำเป็น

    minLength: 1 · maxLength: 200

  • subject_kindstringจำเป็น

    enum: "campaign", "sequence_step", "automation_rule"

  • subject_idstringจำเป็น

    minLength: 1 · maxLength: 200

  • dimensionstringจำเป็น

    enum: "subject", "design", "content", "from_name"

  • variantsarrayจำเป็น

    minItems: 2 · maxItems: 4

  • แต่ละรายการobject
  • keystring

    pattern: "^[a-z0-9][a-z0-9_-]{0,39}$"

  • labelstring

    maxLength: 120

  • subjectstring

    minLength: 1 · maxLength: 998

  • template_idstring

    format: "uuid"

  • contentobject
  • พร็อพเพอร์ตีเพิ่มเติมstring
  • from_namestring

    minLength: 1 · maxLength: 200

  • allocationarray
  • แต่ละรายการinteger

    minimum: 1 · maximum: 100

  • sample_percentinteger

    minimum: 5 · maximum: 100 · default: 100

  • primary_metricstring

    default: "human_click" · enum: "human_open", "human_click", "reply", "conversion"

  • min_sample_per_arminteger

    minimum: 10 · maximum: 100000 · default: 100

  • decisionobject
  • modestring

    enum: "manual", "auto"

  • after_hoursinteger

    minimum: 1 · maximum: 336

  • confidencenumber

    minimum: 0.8 · maximum: 0.99

  • guardrailsobject
  • max_complaint_ratenumber

    maximum: 1 · exclusiveMinimum: 0

  • max_unsubscribe_ratenumber

    maximum: 1 · exclusiveMinimum: 0

การตอบกลับสำเร็จ 201

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • namestringจำเป็น

    minLength: 1 · maxLength: 200

  • subject_kindstringจำเป็น

    enum: "campaign", "sequence_step", "automation_rule"

  • subject_idstringจำเป็น

    minLength: 1 · maxLength: 200

  • dimensionstringจำเป็น

    enum: "subject", "design", "content", "from_name"

  • variantsarrayจำเป็น

    minItems: 2 · maxItems: 4

  • แต่ละรายการobject
  • keystring

    pattern: "^[a-z0-9][a-z0-9_-]{0,39}$"

  • labelstring

    maxLength: 120

  • subjectstring

    minLength: 1 · maxLength: 998

  • template_idstring

    format: "uuid"

  • contentobject
  • พร็อพเพอร์ตีเพิ่มเติมstring
  • from_namestring

    minLength: 1 · maxLength: 200

  • allocationarray
  • แต่ละรายการinteger

    minimum: 1 · maximum: 100

  • sample_percentinteger

    minimum: 5 · maximum: 100 · default: 100

  • primary_metricstring

    default: "human_click" · enum: "human_open", "human_click", "reply", "conversion"

  • min_sample_per_arminteger

    minimum: 10 · maximum: 100000 · default: 100

  • decisionobject
  • modestring

    enum: "manual", "auto"

  • after_hoursinteger

    minimum: 1 · maximum: 336

  • confidencenumber

    minimum: 0.8 · maximum: 0.99

  • guardrailsobject
  • max_complaint_ratenumber

    maximum: 1 · exclusiveMinimum: 0

  • max_unsubscribe_ratenumber

    maximum: 1 · exclusiveMinimum: 0

  • idstringจำเป็น

    format: "uuid"

  • product_idstring

    format: "uuid"

  • statusstringจำเป็น

    enum: "running", "decided", "stopped"

  • winner_keystring | null
  • decided_bystring | null
  • decision_basisstring | null

    enum: "confident", "deadline", "guardrail", "manual", null

  • decision_confidencenumber | null
  • decision_reasonstring | null
  • started_atstring

    format: "date-time"

  • decided_atstring | null

    format: "date-time"

  • created_by_actor_idstring
  • created_atstring

    format: "date-time"

  • updated_atstring

    format: "date-time"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/experiments' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "name": "example",
  "subject_kind": "campaign",
  "subject_id": "example",
  "dimension": "subject",
  "variants": [
    {
      "key": "example",
      "label": "example",
      "subject": "example",
      "template_id": "00000000-0000-4000-8000-000000000001",
      "content": {},
      "from_name": "example"
    }
  ],
  "allocation": [
    1
  ],
  "sample_percent": 100,
  "primary_metric": "human_click",
  "min_sample_per_arm": 100,
  "decision": {
    "mode": "manual",
    "after_hours": 1,
    "confidence": 0.8
  },
  "guardrails": {
    "max_complaint_rate": 1,
    "max_unsubscribe_rate": 1
  }
}'
GET/v1/workspaces/{workspaceId}/experiments/{experimentId}

getExperiment

การทดลองพร้อมผลแต่ละตัวแปรและตัวที่ชนะที่แนะนำ

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

experimentId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataไม่ได้ระบุจำเป็น
  • allOf 1object
  • namestringจำเป็น

    minLength: 1 · maxLength: 200

  • subject_kindstringจำเป็น

    enum: "campaign", "sequence_step", "automation_rule"

  • subject_idstringจำเป็น

    minLength: 1 · maxLength: 200

  • dimensionstringจำเป็น

    enum: "subject", "design", "content", "from_name"

  • variantsarrayจำเป็น

    minItems: 2 · maxItems: 4

  • แต่ละรายการobject
  • keystring

    pattern: "^[a-z0-9][a-z0-9_-]{0,39}$"

  • labelstring

    maxLength: 120

  • subjectstring

    minLength: 1 · maxLength: 998

  • template_idstring

    format: "uuid"

  • contentobject
  • พร็อพเพอร์ตีเพิ่มเติมstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • from_namestring

    minLength: 1 · maxLength: 200

  • allocationarray
  • แต่ละรายการinteger

    minimum: 1 · maximum: 100

  • sample_percentinteger

    minimum: 5 · maximum: 100 · default: 100

  • primary_metricstring

    default: "human_click" · enum: "human_open", "human_click", "reply", "conversion"

  • min_sample_per_arminteger

    minimum: 10 · maximum: 100000 · default: 100

  • decisionobject
  • modestring

    enum: "manual", "auto"

  • after_hoursinteger

    minimum: 1 · maximum: 336

  • confidencenumber

    minimum: 0.8 · maximum: 0.99

  • guardrailsobject
  • max_complaint_ratenumber

    maximum: 1 · exclusiveMinimum: 0

  • max_unsubscribe_ratenumber

    maximum: 1 · exclusiveMinimum: 0

  • idstringจำเป็น

    format: "uuid"

  • product_idstring

    format: "uuid"

  • statusstringจำเป็น

    enum: "running", "decided", "stopped"

  • winner_keystring | null
  • decided_bystring | null
  • decision_basisstring | null

    enum: "confident", "deadline", "guardrail", "manual", null

  • decision_confidencenumber | null
  • decision_reasonstring | null
  • started_atstring

    format: "date-time"

  • decided_atstring | null

    format: "date-time"

  • created_by_actor_idstring
  • created_atstring

    format: "date-time"

  • updated_atstring

    format: "date-time"

  • allOf 2object
  • resultsarrayจำเป็น
  • แต่ละรายการobject
  • keystring
  • labelstring
  • sendsinteger
  • deliveredinteger
  • human_opensinteger
  • human_clicksinteger
  • repliesinteger
  • conversionsinteger
  • unsubscribesinteger
  • complaintsinteger
  • ratenumber
  • lift_vs_firstnumber | null
  • confidence_vs_firstnumber | null
  • sample_okboolean
  • guardrail_trippedboolean
  • suggested_winnerobject
  • keystringจำเป็น
  • reasonstringจำเป็น
  • basisstringจำเป็น

    enum: "confident", "deadline", "guardrail"

  • confidencenumber | nullจำเป็น
  • sample_okbooleanจำเป็น

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/experiments/{experimentId}' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/experiments/{experimentId}/decide

decideExperiment

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

experimentId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • winner_keystringจำเป็น

    minLength: 1 · maxLength: 40

  • reasonstring

    maxLength: 500

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • namestringจำเป็น

    minLength: 1 · maxLength: 200

  • subject_kindstringจำเป็น

    enum: "campaign", "sequence_step", "automation_rule"

  • subject_idstringจำเป็น

    minLength: 1 · maxLength: 200

  • dimensionstringจำเป็น

    enum: "subject", "design", "content", "from_name"

  • variantsarrayจำเป็น

    minItems: 2 · maxItems: 4

  • แต่ละรายการobject
  • keystring

    pattern: "^[a-z0-9][a-z0-9_-]{0,39}$"

  • labelstring

    maxLength: 120

  • subjectstring

    minLength: 1 · maxLength: 998

  • template_idstring

    format: "uuid"

  • contentobject
  • พร็อพเพอร์ตีเพิ่มเติมstring
  • from_namestring

    minLength: 1 · maxLength: 200

  • allocationarray
  • แต่ละรายการinteger

    minimum: 1 · maximum: 100

  • sample_percentinteger

    minimum: 5 · maximum: 100 · default: 100

  • primary_metricstring

    default: "human_click" · enum: "human_open", "human_click", "reply", "conversion"

  • min_sample_per_arminteger

    minimum: 10 · maximum: 100000 · default: 100

  • decisionobject
  • modestring

    enum: "manual", "auto"

  • after_hoursinteger

    minimum: 1 · maximum: 336

  • confidencenumber

    minimum: 0.8 · maximum: 0.99

  • guardrailsobject
  • max_complaint_ratenumber

    maximum: 1 · exclusiveMinimum: 0

  • max_unsubscribe_ratenumber

    maximum: 1 · exclusiveMinimum: 0

  • idstringจำเป็น

    format: "uuid"

  • product_idstring

    format: "uuid"

  • statusstringจำเป็น

    enum: "running", "decided", "stopped"

  • winner_keystring | null
  • decided_bystring | null
  • decision_basisstring | null

    enum: "confident", "deadline", "guardrail", "manual", null

  • decision_confidencenumber | null
  • decision_reasonstring | null
  • started_atstring

    format: "date-time"

  • decided_atstring | null

    format: "date-time"

  • created_by_actor_idstring
  • created_atstring

    format: "date-time"

  • updated_atstring

    format: "date-time"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/experiments/{experimentId}/decide' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "winner_key": "example",
  "reason": "example"
}'
POST/v1/workspaces/{workspaceId}/experiments/{experimentId}/stop

stopExperiment

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

experimentId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • namestringจำเป็น

    minLength: 1 · maxLength: 200

  • subject_kindstringจำเป็น

    enum: "campaign", "sequence_step", "automation_rule"

  • subject_idstringจำเป็น

    minLength: 1 · maxLength: 200

  • dimensionstringจำเป็น

    enum: "subject", "design", "content", "from_name"

  • variantsarrayจำเป็น

    minItems: 2 · maxItems: 4

  • แต่ละรายการobject
  • keystring

    pattern: "^[a-z0-9][a-z0-9_-]{0,39}$"

  • labelstring

    maxLength: 120

  • subjectstring

    minLength: 1 · maxLength: 998

  • template_idstring

    format: "uuid"

  • contentobject
  • พร็อพเพอร์ตีเพิ่มเติมstring
  • from_namestring

    minLength: 1 · maxLength: 200

  • allocationarray
  • แต่ละรายการinteger

    minimum: 1 · maximum: 100

  • sample_percentinteger

    minimum: 5 · maximum: 100 · default: 100

  • primary_metricstring

    default: "human_click" · enum: "human_open", "human_click", "reply", "conversion"

  • min_sample_per_arminteger

    minimum: 10 · maximum: 100000 · default: 100

  • decisionobject
  • modestring

    enum: "manual", "auto"

  • after_hoursinteger

    minimum: 1 · maximum: 336

  • confidencenumber

    minimum: 0.8 · maximum: 0.99

  • guardrailsobject
  • max_complaint_ratenumber

    maximum: 1 · exclusiveMinimum: 0

  • max_unsubscribe_ratenumber

    maximum: 1 · exclusiveMinimum: 0

  • idstringจำเป็น

    format: "uuid"

  • product_idstring

    format: "uuid"

  • statusstringจำเป็น

    enum: "running", "decided", "stopped"

  • winner_keystring | null
  • decided_bystring | null
  • decision_basisstring | null

    enum: "confident", "deadline", "guardrail", "manual", null

  • decision_confidencenumber | null
  • decision_reasonstring | null
  • started_atstring

    format: "date-time"

  • decided_atstring | null

    format: "date-time"

  • created_by_actor_idstring
  • created_atstring

    format: "date-time"

  • updated_atstring

    format: "date-time"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/experiments/{experimentId}/stop' \
  --header "Authorization: Bearer $BANGER_API_KEY"

ความคิดเห็น

GET/v1/workspaces/{workspaceId}/feedback

ตรวจสอบว่าส่งความคิดเห็นลูกค้าได้หรือไม่

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

ความพร้อมส่งความคิดเห็นของพื้นที่ทำงานที่ยืนยันตัวตน

application/json

  • valueobject
  • dataobject
  • availablebooleanจำเป็น

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/feedback' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/feedback

รายงานบั๊ก ส่งความคิดเห็น หรือเสนอฟีเจอร์

สร้างหนึ่งปัญหาภายในใน Linear และแจ้งทีมผ่าน Slack ลองส่งที่ขัดจังหวะอีกด้วย submission_id เดิม

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

x-banger-product-id
header
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • kindstringจำเป็น

    enum: "bug", "feedback", "feature"

  • titlestringจำเป็น

    minLength: 1 · maxLength: 160

  • descriptionstringจำเป็น

    minLength: 1 · maxLength: 10000

  • submission_idstringจำเป็น

    format: "uuid"

  • attachment_idsarray

    การอัปโหลดส่วนตัวที่เสร็จของผู้รายงานและพื้นที่ทำงานนี้ การอัปโหลดที่ยังไม่ส่งหมดอายุหลัง 24 ชั่วโมง ไฟล์อยู่ได้ในรายงานเดียว

    maxItems: 5 · uniqueItems: true

  • แต่ละรายการstring

    format: "uuid"

การตอบกลับสำเร็จ 201

สร้างปัญหา Linear และแจ้ง Slack เสร็จ รวมการเรียกซ้ำแบบ idempotent

application/json

  • valueobject
  • dataobject
  • idstringจำเป็น

    format: "uuid"

  • statusstringจำเป็น

    enum: "submitted"

  • linearIssueIdentifierstring | null
  • linearIssueUrlstring | null

    format: "uri"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/feedback' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'x-banger-product-id: 00000000-0000-4000-8000-000000000001' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "kind": "bug",
  "title": "example",
  "description": "example",
  "submission_id": "00000000-0000-4000-8000-000000000001",
  "attachment_ids": [
    "00000000-0000-4000-8000-000000000001"
  ]
}'
POST/v1/workspaces/{workspaceId}/feedback/attachments

อัปโหลดภาพหน้าจอหรือวิดีโอไปยังที่จัดเก็บส่วนตัวของ Linear

อัปโหลดไบนารีรองรับสูงสุด 25 MiB อัปโหลด JSON base64 สูงสุด 2 MiB ใช้ attachment_id เดิมเมื่อลองไฟล์เดิมอีก คีย์ API ต้องมี automation:execute

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

attachment_id
query

จำเป็นสำหรับอัปโหลดไบนารี UUID ต่อไฟล์

  • valuestring

    format: "uuid"

x-banger-filename
header

ชื่อไฟล์เข้ารหัส URI จำเป็นสำหรับอัปโหลดไบนารี

  • valuestring

เนื้อหาคำขอ จำเป็น

image/png

  • valuestring

    format: "binary"

image/jpeg

  • valuestring

    format: "binary"

image/gif

  • valuestring

    format: "binary"

image/webp

  • valuestring

    format: "binary"

video/mp4

  • valuestring

    format: "binary"

video/webm

  • valuestring

    format: "binary"

video/quicktime

  • valuestring

    format: "binary"

application/json

  • valueobject
  • attachment_idstringจำเป็น

    format: "uuid"

  • filenamestringจำเป็น

    minLength: 1 · maxLength: 200

  • mime_typestringจำเป็น

    enum: "image/png", "image/jpeg", "image/gif", "image/webp", "video/mp4", "video/webm", "video/quicktime"

  • base64stringจำเป็น

    minLength: 4 · maxLength: 2796204

การตอบกลับสำเร็จ 200

ไฟล์แนบที่เสร็จแล้วและมีอยู่

application/json

  • valueobject
  • dataobjectจำเป็น
  • attachment_idstringจำเป็น

    format: "uuid"

  • statusstringจำเป็น

    enum: "ready"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/feedback/attachments?attachment_id=00000000-0000-4000-8000-000000000001' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'x-banger-filename: example' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "attachment_id": "00000000-0000-4000-8000-000000000001",
  "filename": "example",
  "mime_type": "image/png",
  "base64": "example"
}'
POST/v1/workspaces/{workspaceId}/feedback/attachments/prepare

เตรียมอัปโหลดสื่อโดยตรงจากเอเจนต์หรือเซิร์ฟเวอร์

คืน URL PUT ลงลายเซ็นชั่วคราวและส่วนหัวอัปโหลดที่จำเป็น ส่งไบต์ไฟล์พร้อมส่วนหัวเหล่านั้นโดยไม่ใช้ข้อมูลรับรอง Banger แล้วทำอัปโหลดให้เสร็จ ห้ามอัปโหลดตรงจากเบราว์เซอร์ ใช้พร็อกซีไบนารีที่ยืนยันตัวตน สูงสุด 30 การอัปโหลดและ 250 MiB ต่อผู้รายงานต่อวัน

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • attachment_idstringจำเป็น

    format: "uuid"

  • filenamestringจำเป็น

    minLength: 1 · maxLength: 200

  • mime_typestringจำเป็น

    enum: "image/png", "image/jpeg", "image/gif", "image/webp", "video/mp4", "video/webm", "video/quicktime"

  • size_bytesintegerจำเป็น

    minimum: 1 · maximum: 26214400

การตอบกลับสำเร็จ 201

data มี attachment_id, status และ upload พร้อม url ลงลายเซ็น method PUT และ headers ขณะอัปโหลด หาก ready ไม่ต้องอัปโหลด

application/json

  • valueobject
  • dataobjectจำเป็น
  • attachment_idstringจำเป็น

    format: "uuid"

  • filenamestringจำเป็น
  • mime_typestringจำเป็น
  • size_bytesintegerจำเป็น
  • statusstringจำเป็น

    enum: "ready", "uploading"

  • uploadobject
  • urlstringจำเป็น
  • methodstringจำเป็น

    enum: "PUT"

  • headersobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมstring

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/feedback/attachments/prepare' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "attachment_id": "00000000-0000-4000-8000-000000000001",
  "filename": "example",
  "mime_type": "image/png",
  "size_bytes": 1
}'
POST/v1/workspaces/{workspaceId}/feedback/attachments/{attachmentId}/complete

ตรวจสอบการอัปโหลดสื่อโดยตรงก่อนแนบกับความคิดเห็น

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

attachmentId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

data มี attachment_id และ status ready การทำให้เสร็จเป็น idempotent

application/json

  • valueobject
  • dataobjectจำเป็น
  • attachment_idstringจำเป็น

    format: "uuid"

  • statusstringจำเป็น

    enum: "ready"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/feedback/attachments/{attachmentId}/complete' \
  --header "Authorization: Bearer $BANGER_API_KEY"

หน้าหลัก

GET/v1/workspaces/{workspaceId}/home

โหลดหน้าหลักตั้งค่าหรือดำเนินงานของผลิตภัณฑ์ที่เลือก

อ่านสมาชิก ความถูกต้องผลิตภัณฑ์ ภาพการตั้งค่า สรุปดำเนินงาน และกิจกรรมล่าสุดในคำสั่งฐานข้อมูลที่แยกผู้เช่าเพียงคำสั่งเดียว

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

หน้าหลักของผลิตภัณฑ์ที่เลือก

application/json

  • valueobject
  • dataobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • setupobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • stagestringจำเป็น

    enum: "domain", "mailboxes", "journeys", "broadcast", "complete"

  • domainobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • statusstringจำเป็น

    enum: "todo", "in_progress", "complete", "not_relevant"

  • detailstringจำเป็น
  • mailboxesobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • statusstringจำเป็น

    enum: "todo", "in_progress", "complete", "not_relevant"

  • detailstringจำเป็น
  • journeysobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • statusstringจำเป็น

    enum: "todo", "in_progress", "complete", "not_relevant"

  • detailstringจำเป็น
  • broadcastobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • statusstringจำเป็น

    enum: "todo", "in_progress", "complete", "not_relevant"

  • detailstringจำเป็น
  • needsYouobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • undecidedApprovalsintegerจำเป็น

    minimum: 0

  • oldestApprovalsarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • summarystringจำเป็น
  • actionKindstringจำเป็น
  • createdAtstringจำเป็น

    format: "date-time"

  • failedSteps24harrayจำเป็น
  • แต่ละรายการobject
  • journeyIdstringจำเป็น

    format: "uuid"

  • journeyNamestringจำเป็น
  • countintegerจำเป็น

    minimum: 0

  • deliverabilityAlertsarrayจำเป็น
  • แต่ละรายการobject
  • kindstringจำเป็น

    enum: "bounce_rate", "complaint_rate", "dns_drift", "lane_paused"

  • detailstringจำเป็น
  • destinationstringจำเป็น

    enum: "deliverability", "domains"

  • unreadInboundarrayจำเป็น
  • แต่ละรายการobject
  • mailboxIdstringจำเป็น

    format: "uuid"

  • addressstringจำเป็น
  • countintegerจำเป็น

    minimum: 0

  • splitsReadyToDecidearrayจำเป็น
  • แต่ละรายการobject
  • journeyIdstringจำเป็น

    format: "uuid"

  • journeyNamestringจำเป็น
  • unclaimedJourneysintegerจำเป็น

    minimum: 0

  • journeysobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • activeintegerจำเป็น

    minimum: 0

  • entered30dintegerจำเป็น

    minimum: 0

  • sent30dintegerจำเป็น

    minimum: 0

  • toparrayจำเป็น
  • แต่ละรายการไม่ได้ระบุ
  • allOf 1object

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • namestringจำเป็น

    minLength: 1 · maxLength: 200

    ละส่วนที่ซ้อนลึกกว่านี้

  • descriptionstring

    maxLength: 2000

    ละส่วนที่ซ้อนลึกกว่านี้

  • mailbox_idstring

    ผู้ส่งที่มีอยู่ ไม่ระบุเพื่อเลือกผู้ส่งเริ่มต้นก่อน แล้วกล่องจดหมายกำหนดเองที่ใช้งาน แล้วกล่องที่โฮสต์ ผู้ส่งที่บันทึกและระบุชัดไม่เปลี่ยน

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • from_local_partstring

    maxLength: 64 · pattern: "^[a-z0-9][a-z0-9._+-]{0,62}$"

    ละส่วนที่ซ้อนลึกกว่านี้

  • triggerobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • audienceobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • goalobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • exitobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • approval_modestring

    enum: "policy", "required"

    ละส่วนที่ซ้อนลึกกว่านี้

  • apiobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • managed_contentobject

    ทางลัดเฉพาะสร้าง: บันทึกฉบับร่างอีเมลที่จัดการต้นฉบับและเส้นทางที่ขั้นตอนอีเมลอ้างถึงแบบอะตอม ภาษาปลายทางที่ขาดเข้าคิวแปลฟรี ไม่เผยแพร่หรือเปิดเส้นทาง

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • stepsarrayจำเป็น

    maxItems: 100

    ละส่วนที่ซ้อนลึกกว่านี้

  • allOf 2object
  • idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • statusstringจำเป็น

    enum: "draft", "discovered", "active", "paused", "archived"

    ละส่วนที่ซ้อนลึกกว่านี้

  • api_keystring | null

    ละส่วนที่ซ้อนลึกกว่านี้

  • content_modestring | null

    enum: "code", "managed", null

    ละส่วนที่ซ้อนลึกกว่านี้

  • identitystring | null

    ละส่วนที่ซ้อนลึกกว่านี้

  • identity_aliasesarray

    ละส่วนที่ซ้อนลึกกว่านี้

  • samplesarray

    ละส่วนที่ซ้อนลึกกว่านี้

  • versionintegerจำเป็น

    minimum: 1

    ละส่วนที่ซ้อนลึกกว่านี้

  • statsobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • stepStatsarray

    ละส่วนที่ซ้อนลึกกว่านี้

  • armStatsarray

    ละส่วนที่ซ้อนลึกกว่านี้

  • healthobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • indicatorobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • sparklinearrayจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • activated_atstring | null

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • updated_atstring

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • last_activity_atstring | null

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • broadcastobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • nextobject
  • idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • scheduledAtstringจำเป็น

    format: "date-time"

  • recipientsintegerจำเป็น

    minimum: 0

  • lastobject
  • idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • sentAtstringจำเป็น

    format: "date-time"

  • deliveredintegerจำเป็น

    minimum: 0

  • humanOpenedintegerจำเป็น

    minimum: 0

  • repliedintegerจำเป็น

    minimum: 0

  • recentLogsarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • directionstringจำเป็น

    enum: "out", "in"

  • atstringจำเป็น

    format: "date-time"

  • mailbox_idstring | nullจำเป็น

    Null สำหรับการส่งที่ไม่ผ่านกล่องจดหมาย เช่น API และ SMTP

    format: "uuid"

  • thread_idstring

    format: "uuid"

  • send_intent_idstring

    format: "uuid"

  • traffic_classstring

    enum: "mailbox", "product", "broadcast"

  • fromstringจำเป็น
  • toarrayจำเป็น
  • แต่ละรายการstring
  • recipient_countintegerจำเป็น

    minimum: 0

  • subjectstringจำเป็น
  • originobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • kindstringจำเป็น

    enum: "journey", "broadcast", "mailbox", "api", "agent", "smtp"

  • idstring
  • namestring
  • statusstringจำเป็น

    enum: "queued", "sent", "delivered", "bounced", "complained", "opened", "clicked", "replied", "received", "failed", "rejected"

  • rejectionobject

    เหตุผลที่ Banger ปฏิเสธความพยายาม SMTP และการตอบกลับที่ไคลเอนต์ได้รับ

  • refstringจำเป็น

    pattern: "^smtp_[0-9a-z]{16}$"

  • kindstringจำเป็น

    enum: "login_failed", "recipient_refused", "message_rejected"

  • replystringจำเป็น

    การตอบกลับ SMTP เต็ม เช่น `550 5.7.1 ...`

  • reply_codeintegerจำเป็น

    minimum: 400 · maximum: 599

  • enhanced_codestringจำเป็น
  • reasonstringจำเป็น
  • messagestringจำเป็น
  • key_prefixstringจำเป็น

    คำนำหน้า `bgr_` สาธารณะของคีย์ API ที่ไคลเอนต์ใช้

  • client_ipstring
  • portinteger
  • tlsstring
  • attemptsintegerจำเป็น

    การเข้าสู่ระบบล้มเหลวด้วยหนึ่งคีย์รวมเป็นหนึ่งแถวต่อสิบนาที

    minimum: 1

  • last_atstringจำเป็น

    format: "date-time"

  • detailobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • volumeobjectจำเป็น
  • sentPeriodintegerจำเป็น

    minimum: 0

  • limitintegerจำเป็น

    minimum: 0

  • deliveredRatenumber

    minimum: 0 · maximum: 1

  • mailboxesintegerจำเป็น

    minimum: 0

  • verifiedDomainsintegerจำเป็น

    minimum: 0

  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • agentobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • connectedbooleanจำเป็น
  • clientNamestring

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/home' \
  --header "Authorization: Bearer $BANGER_API_KEY"
GET/v1/workspaces/{workspaceId}/home/feed

อ่านหน้าหลักเป็นฟีดรายวันของผู้อ่าน

สิ่งที่เข้ากล่องจดหมายของผลิตภัณฑ์ในแต่ละวันตามเวลาท้องถิ่นของผู้อ่าน จัดกลุ่มตามป้ายกำกับ โดยนับใบเสร็จและจดหมายข่าวแยกกัน พร้อมสิ่งที่ส่งออก นับเฉพาะกล่องจดหมายที่ผู้อ่านเปิดได้

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

x-banger-product-id
header

ผลิตภัณฑ์ที่เลือก จำเป็นเมื่อมีหลายผลิตภัณฑ์ใช้งาน

  • valuestring

    format: "uuid"

time_zone
query

เขตเวลา IANA ที่ใช้กำหนดวันของผู้อ่าน เขตเวลาที่ไม่รู้จักจะใช้ UTC

  • valuestring

    maxLength: 64

days
query
  • valueinteger

    minimum: 1 · maximum: 14 · default: 7

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

ฟีดของผู้อ่าน

application/json

  • valueobject
  • dataobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • timeZonestringจำเป็น
  • seenThroughstring

    วันล่าสุดที่ผู้อ่านดูสรุปแล้ว ไม่มีค่านี้ก่อนดูครั้งแรก

    format: "date"

  • daysarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • datestringจำเป็น

    วันที่ตามเวลาท้องถิ่นของผู้อ่าน

    format: "date"

  • inboundintegerจำเป็น
  • unreadintegerจำเป็น
  • mailboxesintegerจำเป็น
  • labelsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • labelstring

    ชื่อป้ายกำกับ ไม่มีค่านี้สำหรับอีเมลที่ไม่มีป้ายกำกับ

    ละส่วนที่ซ้อนลึกกว่านี้

  • colorstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • countintegerจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • unreadintegerจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • mailboxesarrayจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • recentarrayจำเป็น

    maxItems: 3

    ละส่วนที่ซ้อนลึกกว่านี้

  • unlabeledobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • labelstring

    ชื่อป้ายกำกับ ไม่มีค่านี้สำหรับอีเมลที่ไม่มีป้ายกำกับ

  • colorstring
  • countintegerจำเป็น
  • unreadintegerจำเป็น
  • mailboxesarrayจำเป็น
  • แต่ละรายการstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • recentarrayจำเป็น

    maxItems: 3

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • routineintegerจำเป็น

    ใบเสร็จ จดหมายข่าว และการแจ้งเตือน แสดงเป็นจำนวนโดยไม่แสดงรายการ

  • sendingobject

    อีเมลทุกฉบับที่ผลิตภัณฑ์ส่งในวันนั้นและผลการส่งถึง ไม่มีค่านี้เมื่อไม่มีการส่งออก

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • sentintegerจำเป็น
  • deliveredintegerจำเป็น
  • bouncedintegerจำเป็น
  • complainedintegerจำเป็น
  • broadcastsarrayจำเป็น

    แคมเปญที่ส่งออกในวันนั้น

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • namestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • atstringจำเป็น

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • deliveredintegerจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • openedintegerจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • repliedintegerจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • journeysarrayจำเป็น

    เส้นทางที่มีกิจกรรมในวันนั้น ได้แก่ ผู้ที่เริ่มเข้าร่วม อีเมลที่ส่ง และคำตอบของอีเมลเหล่านั้น

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • namestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • enteredintegerจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • sentintegerจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • repliedintegerจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • signupsintegerจำเป็น

    ผู้ที่ยืนยันแบบฟอร์มสมัครในวันนั้น

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/home/feed?time_zone=example&days=7' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'x-banger-product-id: 00000000-0000-4000-8000-000000000001'
POST/v1/workspaces/{workspaceId}/home/seen

บันทึกวันล่าสุดที่ผู้อ่านดูสรุปในหน้าหลักแล้ว

หน้าหลักเปิดที่วันแรกถัดจากวันนี้และยุบวันก่อนหน้ารวมถึงวันนี้ ตำแหน่งจะไม่ย้อนกลับ สถานะการอ่านอีเมลไม่เปลี่ยน

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

x-banger-product-id
header

ผลิตภัณฑ์ที่เลือก จำเป็นเมื่อมีหลายผลิตภัณฑ์ใช้งาน

  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • seen_throughstringจำเป็น

    วันที่ผ่านมาแล้วตามเขตเวลาของผู้อ่าน

    format: "date"

การตอบกลับสำเร็จ 200

ตำแหน่งของผู้อ่านหลังเลื่อน

application/json

  • valueobject
  • dataobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • seen_throughstringจำเป็น

    format: "date"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/home/seen' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'x-banger-product-id: 00000000-0000-4000-8000-000000000001' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "seen_through": "2026-01-01"
}'

ป้ายกำกับที่แนะนำ

GET/v1/workspaces/{workspaceId}/label-suggestions

listLabelSuggestions

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

mailbox_id
query · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น
  • namestringจำเป็น
  • emojistringจำเป็น
  • colorstringจำเป็น
  • descriptionstringจำเป็น
  • already_addedbooleanจำเป็น

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/label-suggestions?mailbox_id=00000000-0000-4000-8000-000000000001' \
  --header "Authorization: Bearer $BANGER_API_KEY"

ป้ายกำกับ

GET/v1/workspaces/{workspaceId}/labels

listLabels

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

mailbox_id
query
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • mailbox_idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • colorstring | nullจำเป็น
  • kindstringจำเป็น
  • emojistring | nullจำเป็น
  • descriptionstring | nullจำเป็น
  • suggestion_idstring | nullจำเป็น
  • sourcestringจำเป็น

    enum: "banger", "provider"

  • updated_atstringจำเป็น

    format: "date-time"

  • auto_setไม่ได้ระบุจำเป็น
  • anyOf 1object
  • rule_idstringจำเป็น

    format: "uuid"

  • enabledbooleanจำเป็น
  • descriptionstring | nullจำเป็น
  • exact_conditionsobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • fromarray

    maxItems: 50

    ละส่วนที่ซ้อนลึกกว่านี้

  • toarray

    maxItems: 50

    ละส่วนที่ซ้อนลึกกว่านี้

  • subject_containsarray

    maxItems: 50

    ละส่วนที่ซ้อนลึกกว่านี้

  • has_wordsarray

    maxItems: 50

    ละส่วนที่ซ้อนลึกกว่านี้

  • excludes_wordsarray

    maxItems: 50

    ละส่วนที่ซ้อนลึกกว่านี้

  • has_attachmentboolean

    ละส่วนที่ซ้อนลึกกว่านี้

  • anyOf 2null
  • applied_by_rule_countintegerจำเป็น

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/labels?mailbox_id=00000000-0000-4000-8000-000000000001' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/labels

createLabel

สร้างป้าย Banger ในหนึ่งกล่องจดหมาย ส่ง suggestion_id เพื่อสร้างป้ายที่แนะนำ หากชื่อมีอยู่คืนป้ายเดิม (200) ป้าย Banger ไม่เคยซิงค์ไป Gmail

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

Idempotency-Key
header

คีย์ลองซ้ำที่ไม่บังคับ ใช้เมื่อเลือกผลิตภัณฑ์

  • valuestring

    minLength: 1 · maxLength: 256

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • mailbox_idstringจำเป็น

    format: "uuid"

  • namestring

    maxLength: 120

  • colorstring

    maxLength: 32

  • emojistring

    อีโมจิหนึ่งตัวก่อนชื่อ

    maxLength: 16

  • descriptionstring

    maxLength: 2000

  • suggestion_idstring

    maxLength: 64

  • auto_setobject
  • enabledbooleanจำเป็น
  • descriptionstring | null

    maxLength: 2000

  • exact_conditionsobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • fromarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

  • toarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

  • subject_containsarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

  • has_wordsarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

  • excludes_wordsarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

  • has_attachmentboolean

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • mailbox_idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • colorstring | nullจำเป็น
  • kindstringจำเป็น
  • emojistring | nullจำเป็น
  • descriptionstring | nullจำเป็น
  • suggestion_idstring | nullจำเป็น
  • sourcestringจำเป็น

    enum: "banger", "provider"

  • updated_atstringจำเป็น

    format: "date-time"

  • auto_setไม่ได้ระบุจำเป็น
  • anyOf 1object
  • rule_idstringจำเป็น

    format: "uuid"

  • enabledbooleanจำเป็น
  • descriptionstring | nullจำเป็น
  • exact_conditionsobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • fromarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

    ละส่วนที่ซ้อนลึกกว่านี้

  • toarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

    ละส่วนที่ซ้อนลึกกว่านี้

  • subject_containsarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

    ละส่วนที่ซ้อนลึกกว่านี้

  • has_wordsarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

    ละส่วนที่ซ้อนลึกกว่านี้

  • excludes_wordsarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

    ละส่วนที่ซ้อนลึกกว่านี้

  • has_attachmentboolean
  • anyOf 2null
  • applied_by_rule_countintegerจำเป็น

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/labels' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Idempotency-Key: example' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "mailbox_id": "00000000-0000-4000-8000-000000000001",
  "name": "example",
  "color": "example",
  "emoji": "example",
  "description": "example",
  "suggestion_id": "example",
  "auto_set": {
    "enabled": true,
    "description": "example",
    "exact_conditions": {
      "from": [
        "example"
      ],
      "to": [
        "example"
      ],
      "subject_contains": [
        "example"
      ],
      "has_words": [
        "example"
      ],
      "excludes_words": [
        "example"
      ],
      "has_attachment": true
    }
  }
}'
PATCH/v1/workspaces/{workspaceId}/labels/{labelId}

updateLabel

เปลี่ยนชื่อป้าย Banger เปลี่ยนสี อีโมจิ หรือคำอธิบาย หรือเปิด/ปิดกฎติดป้ายอัตโนมัติ ป้าย Gmail และระบบอ่านอย่างเดียว

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

labelId
path · จำเป็น
  • valuestring

    format: "uuid"

Idempotency-Key
header

คีย์ลองซ้ำที่ไม่บังคับ ใช้เมื่อเลือกผลิตภัณฑ์

  • valuestring

    minLength: 1 · maxLength: 256

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • namestring

    maxLength: 120

  • colorstring | null

    maxLength: 32

  • emojistring | null

    maxLength: 16

  • descriptionstring | null

    maxLength: 2000

  • auto_setobject
  • enabledbooleanจำเป็น
  • descriptionstring | null

    maxLength: 2000

  • exact_conditionsobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • fromarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

  • toarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

  • subject_containsarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

  • has_wordsarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

  • excludes_wordsarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

  • has_attachmentboolean

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • mailbox_idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • colorstring | nullจำเป็น
  • kindstringจำเป็น
  • emojistring | nullจำเป็น
  • descriptionstring | nullจำเป็น
  • suggestion_idstring | nullจำเป็น
  • sourcestringจำเป็น

    enum: "banger", "provider"

  • updated_atstringจำเป็น

    format: "date-time"

  • auto_setไม่ได้ระบุจำเป็น
  • anyOf 1object
  • rule_idstringจำเป็น

    format: "uuid"

  • enabledbooleanจำเป็น
  • descriptionstring | nullจำเป็น
  • exact_conditionsobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • fromarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

    ละส่วนที่ซ้อนลึกกว่านี้

  • toarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

    ละส่วนที่ซ้อนลึกกว่านี้

  • subject_containsarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

    ละส่วนที่ซ้อนลึกกว่านี้

  • has_wordsarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

    ละส่วนที่ซ้อนลึกกว่านี้

  • excludes_wordsarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

    ละส่วนที่ซ้อนลึกกว่านี้

  • has_attachmentboolean
  • anyOf 2null
  • applied_by_rule_countintegerจำเป็น

ตัวอย่าง curl

curl --request PATCH --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/labels/{labelId}' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Idempotency-Key: example' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "name": "example",
  "color": "example",
  "emoji": "example",
  "description": "example",
  "auto_set": {
    "enabled": true,
    "description": "example",
    "exact_conditions": {
      "from": [
        "example"
      ],
      "to": [
        "example"
      ],
      "subject_contains": [
        "example"
      ],
      "has_words": [
        "example"
      ],
      "excludes_words": [
        "example"
      ],
      "has_attachment": true
    }
  }
}'
DELETE/v1/workspaces/{workspaceId}/labels/{labelId}

deleteLabel

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

labelId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 204

ลบป้ายกำกับแล้ว

ไม่มีเนื้อหาการตอบกลับ

ตัวอย่าง curl

curl --request DELETE --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/labels/{labelId}' \
  --header "Authorization: Bearer $BANGER_API_KEY"

บันทึก

GET/v1/workspaces/{workspaceId}/logs

listLogs

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

cursor
query
  • valuestring

    maxLength: 1024

limit
query
  • valueinteger

    minimum: 1 · maximum: 100 · default: 50

direction
query
  • valuestring

    enum: "all", "out", "in"

origin
query
  • valuestring

    enum: "journey", "broadcast", "mailbox", "api", "agent", "smtp"

mailbox_id
query
  • valuestring

    format: "uuid"

status
query
  • valuestring

    enum: "queued", "sent", "delivered", "bounced", "complained", "opened", "clicked", "replied", "received", "failed", "rejected"

from
query
  • valuestring

    format: "date"

to
query
  • valuestring

    format: "date"

query
query
  • valuestring

    maxLength: 512

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

หน้าเคอร์เซอร์จากไทม์ไลน์ส่งและรับรวม มีความพยายาม SMTP ที่ Banger ปฏิเสธเป็นแถว `rejected` และ `query` ค้นหาการปฏิเสธด้วยรหัส `smtp_` หรือคำนำหน้าคีย์ `bgr_` ที่ใช้ได้

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • directionstringจำเป็น

    enum: "out", "in"

  • atstringจำเป็น

    format: "date-time"

  • mailbox_idstring | nullจำเป็น

    Null สำหรับการส่งที่ไม่ผ่านกล่องจดหมาย เช่น API และ SMTP

    format: "uuid"

  • thread_idstring

    format: "uuid"

  • send_intent_idstring

    format: "uuid"

  • traffic_classstring

    enum: "mailbox", "product", "broadcast"

  • fromstringจำเป็น
  • toarrayจำเป็น
  • แต่ละรายการstring
  • recipient_countintegerจำเป็น

    minimum: 0

  • subjectstringจำเป็น
  • originobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • kindstringจำเป็น

    enum: "journey", "broadcast", "mailbox", "api", "agent", "smtp"

  • idstring
  • namestring
  • statusstringจำเป็น

    enum: "queued", "sent", "delivered", "bounced", "complained", "opened", "clicked", "replied", "received", "failed", "rejected"

  • rejectionobject

    เหตุผลที่ Banger ปฏิเสธความพยายาม SMTP และการตอบกลับที่ไคลเอนต์ได้รับ

  • refstringจำเป็น

    pattern: "^smtp_[0-9a-z]{16}$"

  • kindstringจำเป็น

    enum: "login_failed", "recipient_refused", "message_rejected"

  • replystringจำเป็น

    การตอบกลับ SMTP เต็ม เช่น `550 5.7.1 ...`

  • reply_codeintegerจำเป็น

    minimum: 400 · maximum: 599

  • enhanced_codestringจำเป็น
  • reasonstringจำเป็น
  • messagestringจำเป็น
  • key_prefixstringจำเป็น

    คำนำหน้า `bgr_` สาธารณะของคีย์ API ที่ไคลเอนต์ใช้

  • client_ipstring
  • portinteger
  • tlsstring
  • attemptsintegerจำเป็น

    การเข้าสู่ระบบล้มเหลวด้วยหนึ่งคีย์รวมเป็นหนึ่งแถวต่อสิบนาที

    minimum: 1

  • last_atstringจำเป็น

    format: "date-time"

  • detailobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • pageobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • has_morebooleanจำเป็น
  • next_cursorstring

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/logs?cursor=example&limit=50&direction=all&origin=journey&mailbox_id=00000000-0000-4000-8000-000000000001&status=queued&from=2026-01-01&to=2026-01-01&query=example' \
  --header "Authorization: Bearer $BANGER_API_KEY"
GET/v1/workspaces/{workspaceId}/logs/{entryId}

getLogEntry

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

entryId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataไม่ได้ระบุจำเป็น
  • allOf 1object
  • idstringจำเป็น

    format: "uuid"

  • directionstringจำเป็น

    enum: "out", "in"

  • atstringจำเป็น

    format: "date-time"

  • mailbox_idstring | nullจำเป็น

    Null สำหรับการส่งที่ไม่ผ่านกล่องจดหมาย เช่น API และ SMTP

    format: "uuid"

  • thread_idstring

    format: "uuid"

  • send_intent_idstring

    format: "uuid"

  • traffic_classstring

    enum: "mailbox", "product", "broadcast"

  • fromstringจำเป็น
  • toarrayจำเป็น
  • แต่ละรายการstring
  • recipient_countintegerจำเป็น

    minimum: 0

  • subjectstringจำเป็น
  • originobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • kindstringจำเป็น

    enum: "journey", "broadcast", "mailbox", "api", "agent", "smtp"

  • idstring
  • namestring
  • statusstringจำเป็น

    enum: "queued", "sent", "delivered", "bounced", "complained", "opened", "clicked", "replied", "received", "failed", "rejected"

  • rejectionobject

    เหตุผลที่ Banger ปฏิเสธความพยายาม SMTP และการตอบกลับที่ไคลเอนต์ได้รับ

  • refstringจำเป็น

    pattern: "^smtp_[0-9a-z]{16}$"

  • kindstringจำเป็น

    enum: "login_failed", "recipient_refused", "message_rejected"

  • replystringจำเป็น

    การตอบกลับ SMTP เต็ม เช่น `550 5.7.1 ...`

  • reply_codeintegerจำเป็น

    minimum: 400 · maximum: 599

  • enhanced_codestringจำเป็น
  • reasonstringจำเป็น
  • messagestringจำเป็น
  • key_prefixstringจำเป็น

    คำนำหน้า `bgr_` สาธารณะของคีย์ API ที่ไคลเอนต์ใช้

  • client_ipstring
  • portinteger
  • tlsstring
  • attemptsintegerจำเป็น

    การเข้าสู่ระบบล้มเหลวด้วยหนึ่งคีย์รวมเป็นหนึ่งแถวต่อสิบนาที

    minimum: 1

  • last_atstringจำเป็น

    format: "date-time"

  • detailobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • allOf 2object
  • detailไม่ได้ระบุจำเป็น
  • oneOf 1object
  • kindstringจำเป็น

    enum: "inbound"

  • threadไม่ได้ระบุจำเป็น
  • allOf 1object

    ละส่วนที่ซ้อนลึกกว่านี้

  • allOf 2object

    ละส่วนที่ซ้อนลึกกว่านี้

  • oneOf 2object
  • kindstringจำเป็น

    enum: "broadcast", "outbound"

  • sendobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • mailbox_idstring | nullจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • command_idstring | nullจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • statusstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • command_statusstring | nullจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • subjectstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • recipientsarray

    ละส่วนที่ซ้อนลึกกว่านี้

  • recipient_countintegerจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • error_codestring | null

    ละส่วนที่ซ้อนลึกกว่านี้

  • send_intent_idstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • providerstring | null

    ละส่วนที่ซ้อนลึกกว่านี้

  • route_kindstring | null

    ละส่วนที่ซ้อนลึกกว่านี้

  • sourcestring

    ละส่วนที่ซ้อนลึกกว่านี้

  • from_addressstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • recipient_statesobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_message_idstring | null

    ละส่วนที่ซ้อนลึกกว่านี้

  • languageไม่ได้ระบุ

    ภาษาที่ส่งอีเมลนี้ เป็น null หากไม่ได้แปล

    ละส่วนที่ซ้อนลึกกว่านี้

  • journeyobject | null

    ขั้นตอนเส้นทางและการเข้าร่วมที่ส่งอีเมลนี้ เป็น null สำหรับการส่งอื่น

    ละส่วนที่ซ้อนลึกกว่านี้

  • experimentobject | null

    ตัวแปรการทดลองของอีเมลนี้ เป็น null หากไม่มี

    ละส่วนที่ซ้อนลึกกว่านี้

  • created_atstringจำเป็น

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • updated_atstringจำเป็น

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • completed_atstring | nullจำเป็น

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • template_idstring | null

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • template_versioninteger | null

    ละส่วนที่ซ้อนลึกกว่านี้

  • workspace_revisioninteger | null

    ละส่วนที่ซ้อนลึกกว่านี้

  • command_resultobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • command_started_atstring | null

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • command_completed_atstring | null

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • body_textstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • body_htmlstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • reply_toarray

    ละส่วนที่ซ้อนลึกกว่านี้

  • headersobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • tagsarray

    ละส่วนที่ซ้อนลึกกว่านี้

  • timelinearrayจำเป็น
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/logs/{entryId}' \
  --header "Authorization: Bearer $BANGER_API_KEY"

หน้าจดหมาย

GET/v1/workspaces/{workspaceId}/mail-page

getMailPage

คืนเพย์โหลดจดหมายสำหรับแสดงครั้งแรกทั้งหมดในคำขอเดียว: กล่องจดหมายที่มองเห็น กล่องที่เลือก ป้าย จำนวนกล่องจดหมาย ฉบับพื้นที่ทำงาน และหน้าเธรดแรกของกล่องที่เลือก

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

limit
query
  • valueinteger

    minimum: 1 · maximum: 100 · default: 50

mailbox_id
query

กล่องจดหมายที่ต้องการ หากใช้ไม่ได้จะเลือกกล่องที่มองเห็นแรก

  • valuestring

    format: "uuid"

label_id
query

คืนเฉพาะเธรดในกล่องจดหมายที่เลือกซึ่งมีป้ายนี้

  • valuestring

    format: "uuid"

view
query
  • valuestring

    default: "inbox" · enum: "inbox", "sent", "drafts", "archive", "trash", "spam", "all"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

ข้อมูลจดหมายสำหรับแสดงครั้งแรกของพื้นที่ทำงาน

application/json

  • valueobject
  • dataobjectจำเป็น
  • mailboxesarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • workspace_idstringจำเป็น

    format: "uuid"

  • product_idstring | null

    ผลิตภัณฑ์ (โปรเจกต์) ที่กล่องจดหมายเป็นของ ไคลเอนต์ใช้จัดกลุ่มกล่องจดหมายและสร้างลิงก์เว็บแอป

    format: "uuid"

  • domain_idstring | null

    format: "uuid"

  • addressstringจำเป็น

    ที่อยู่อีเมล หรือหมายเลขโทรศัพท์ในรูปแบบ E.164 (+15551234567) สำหรับกล่องจดหมายเข้า SMS

  • display_namestringจำเป็น
  • providerstringจำเป็น

    enum: "gmail", "smtp", "twilio"

  • channelstring

    email; sms สำหรับกล่องจดหมายเข้า SMS บน Twilio; whatsapp สำหรับกล่องจดหมายเข้า WhatsApp ซึ่งเป็นผู้ส่ง WhatsApp บน Twilio สำหรับบัญชี WhatsApp Business ของธุรกิจ

    enum: "email", "sms", "whatsapp"

  • sms_verificationobject | null

    สำหรับหมายเลขจาก Banger เป็นคำตอบของผู้ให้บริการเครือข่ายต่อการยืนยันหมายเลขโทรฟรี ส่งได้เมื่ออนุมัติแล้ว เป็น null สำหรับกล่องจดหมายอื่นทั้งหมด

  • statusstring

    enum: "pending_review", "in_review", "approved", "rejected"

  • reasonstring | null

    เหตุผลของผู้ให้บริการเครือข่ายเมื่อปฏิเสธ

  • statusstringจำเป็น

    enum: "pending", "active", "suspended", "reconnect_required", "disabled"

  • status_reasonstring | null
  • suspended_atstring | null
  • mailbox_kindstringจำเป็น

    enum: "domain", "starter"

  • domainsarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • product_idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • statusstringจำเป็น

    enum: "pending", "verified", "failed", "disabled", "deleting", "deleted"

  • selected_mailbox_idstring

    format: "uuid"

  • labelsarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • mailbox_idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • colorstring | null
  • kindstringจำเป็น
  • updated_atstringจำเป็น

    format: "date-time"

  • threadsarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • mailbox_idstringจำเป็น

    format: "uuid"

  • subjectstringจำเป็น
  • snippetstringจำเป็น
  • last_message_atstringจำเป็น

    format: "date-time"

  • message_countintegerจำเป็น
  • unread_countintegerจำเป็น
  • is_archivedbooleanจำเป็น
  • is_trashbooleanจำเป็น
  • is_spambooleanจำเป็น
  • is_starredbooleanจำเป็น
  • is_sentbooleanจำเป็น
  • has_attachmentsbooleanจำเป็น
  • sender_unverifiedboolean

    เป็น true เมื่อผู้ส่งข้อความล่าสุดไม่ผ่านทั้ง SPF และ DKIM สำหรับโดเมน From จึงอาจมีการปลอมที่อยู่ From

  • labelsarrayจำเป็น
  • แต่ละรายการstring
  • participantsarray
  • แต่ละรายการobject
  • namestring

    ละส่วนที่ซ้อนลึกกว่านี้

  • emailstringจำเป็น

    format: "email"

    ละส่วนที่ซ้อนลึกกว่านี้

  • recipientsarray

    The To list of the mailbox's latest sent message in this thread; empty when the mailbox sent none. Sent views show these instead of the sender.

  • แต่ละรายการobject
  • namestring

    ละส่วนที่ซ้อนลึกกว่านี้

  • emailstringจำเป็น

    format: "email"

    ละส่วนที่ซ้อนลึกกว่านี้

  • pageobjectจำเป็น
  • next_cursorstring
  • has_morebooleanจำเป็น
  • mailbox_thread_countsobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมinteger
  • revisionintegerจำเป็น

    format: "int64"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/mail-page?limit=50&mailbox_id=00000000-0000-4000-8000-000000000001&label_id=00000000-0000-4000-8000-000000000001&view=inbox' \
  --header "Authorization: Bearer $BANGER_API_KEY"

การย้ายจาก Mailchimp

GET/v1/workspaces/{workspaceId}/mailchimp-migration

อ่านความคืบหน้าและรายงานการย้ายจาก Mailchimp

เรียกดูเป็นระยะเพื่อแสดงความคืบหน้าแบบสด อ่านสถานะการย้ายของการเชื่อมต่อที่คีย์ใช้ไม่ได้แล้ว (phase เป็น needs_new_key) หรือถูกตัดการเชื่อมต่อ (phase เป็น disconnected) ได้ด้วย เพื่อแสดงข้อมูลที่ย้ายมาแล้ว หากไม่มี connection_id จะใช้การเชื่อมต่อ Mailchimp หนึ่งรายการของผลิตภัณฑ์ที่ทำงานอยู่หรือมีข้อผิดพลาด มิฉะนั้นใช้รายการที่ตัดการเชื่อมต่อซึ่งมีการย้ายข้อมูลล่าสุด

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

connection_id
query
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

รายงานการย้ายปัจจุบัน

application/json

  • valueobject
  • dataobjectจำเป็น

    การย้ายจากหนึ่งการเชื่อมต่อ Mailchimp เข้าผลิตภัณฑ์ โพล GET /mailchimp-migration เพื่อติดตามสด: `phase` ระบุขั้นตอนปัจจุบัน `counts`, `audiences`, `segments`, `templates` และ `campaigns` เพิ่มระหว่างดำเนินการ

  • migration_idstringจำเป็น

    format: "uuid"

  • connection_idstringจำเป็น

    format: "uuid"

  • product_idstringจำเป็น

    format: "uuid"

  • statusstringจำเป็น

    enum: "importing", "completed"

  • phasestringจำเป็น

    importing (กำลังอ่าน Mailchimp), copying_designs (แม่แบบและแคมเปญ), finishing, completed, needs_new_key (Mailchimp ปฏิเสธคีย์ API การย้ายหยุดชั่วคราวจนกว่าจะบันทึกคีย์ใหม่ด้วย rotateConnectionCredential) หรือ disconnected (นำการเชื่อมต่อออกแล้ว ข้อมูลทั้งหมดที่ย้ายมาแล้วยังคงอยู่ใน Banger และยังอ่านจำนวนได้)

    enum: "importing", "copying_designs", "finishing", "completed", "needs_new_key", "disconnected"

  • started_atstringจำเป็น

    format: "date-time"

  • completed_atstring | nullจำเป็น

    format: "date-time"

  • connectionobjectจำเป็น
  • display_namestringจำเป็น
  • account_namestring | nullจำเป็น
  • statusstringจำเป็น

    enum: "pending_validation", "active", "error", "disabled"

  • last_error_codestring | nullจำเป็น
  • needs_new_keybooleanจำเป็น
  • messagestring

    มีค่านี้เมื่อเป็น needs_new_key หรือ disconnected พร้อมแสดงผล

  • progressobjectจำเป็น
  • import_streamsintegerจำเป็น
  • import_streams_doneintegerจำเป็น
  • failing_streamsarrayจำเป็น
  • แต่ละรายการobject
  • streamstringจำเป็น
  • refstringจำเป็น
  • error_codestring | nullจำเป็น
  • designs_waitingintegerจำเป็น
  • notestringจำเป็น
  • countsobjectจำเป็น
  • contactsintegerจำเป็น
  • subscribedintegerจำเป็น
  • unsubscribedintegerจำเป็น
  • bouncedintegerจำเป็น
  • contact_listsintegerจำเป็น
  • contact_fieldsintegerจำเป็น
  • segments_convertedintegerจำเป็น
  • segments_kept_as_listsintegerจำเป็น
  • templates_importedintegerจำเป็น
  • templates_to_rebuildintegerจำเป็น
  • campaigns_imported_as_designsintegerจำเป็น
  • automations_importedintegerจำเป็น
  • audiencesarrayจำเป็น
  • แต่ละรายการobject
  • mailchimp_idstringจำเป็น
  • namestringจำเป็น
  • list_idstring | nullจำเป็น

    format: "uuid"

  • list_namestring | nullจำเป็น
  • members_in_bangerintegerจำเป็น
  • subscribedintegerจำเป็น
  • unsubscribedintegerจำเป็น
  • bouncedintegerจำเป็น
  • members_in_mailchimpintegerจำเป็น
  • contact_fieldsarrayจำเป็น
  • แต่ละรายการobject
  • mailchimp_tagstringจำเป็น
  • namestringจำเป็น
  • field_keystringจำเป็น
  • typestringจำเป็น

    enum: "text", "number", "boolean", "date", "choice", "choices"

  • consentstringจำเป็น
  • segmentsarrayจำเป็น
  • แต่ละรายการobject

    ผลลัพธ์ของหนึ่งกลุ่ม เทมเพลต หรือแคมเปญ Mailchimp

  • mailchimp_idstringจำเป็น

    กลุ่ม: <audience id>:<segment id> เทมเพลตและแคมเปญ: id ของ Mailchimp

  • becamestringจำเป็น

    enum: "segment", "contact_list", "template", "needs_rebuild"

  • idstring

    กลุ่ม Banger

    format: "uuid"

  • namestringจำเป็น
  • reasonstring

    เหตุผลที่กลุ่มยังเป็นรายการคงที่

  • dropped_merge_tagsarray

    แท็กผสาน Mailchimp ที่ไม่มีสิ่งเทียบเท่าใน Banger ซึ่งนำออกจากดีไซน์ (เงื่อนไขฟิลด์ผสานคงแขนงแรกและแสดงที่นี่)

  • แต่ละรายการstring
  • replaced_footerboolean

    ส่วนท้าย Mailchimp (ดูในเบราว์เซอร์ การตั้งค่า ที่อยู่ ตราสัญลักษณ์) เปลี่ยนเป็นส่วนท้ายแบรนด์ผลิตภัณฑ์

  • removed_linksarray

    ลิงก์นอกส่วนท้ายไปหน้าที่มีเฉพาะ Mailchimp (เช่น ดูในเบราว์เซอร์) ที่นำออก แสดงตามข้อความลิงก์

  • แต่ละรายการstring
  • links_to_fillarray

    ลิงก์ที่ว่างใน Mailchimp แต่ละลิงก์เป็นสล็อต URL ของดีไซน์ที่ต้องเติมก่อนส่ง

  • แต่ละรายการobject
  • keystringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • labelstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • kept_editsboolean

    การรันซ้ำพบดีไซน์ที่แก้ใน Banger จึงคงไว้ตามเดิม

  • templatesarrayจำเป็น
  • แต่ละรายการobject

    ผลลัพธ์ของหนึ่งกลุ่ม เทมเพลต หรือแคมเปญ Mailchimp

  • mailchimp_idstringจำเป็น

    กลุ่ม: <audience id>:<segment id> เทมเพลตและแคมเปญ: id ของ Mailchimp

  • becamestringจำเป็น

    enum: "segment", "contact_list", "template", "needs_rebuild"

  • idstring

    กลุ่ม Banger

    format: "uuid"

  • namestringจำเป็น
  • reasonstring

    เหตุผลที่กลุ่มยังเป็นรายการคงที่

  • dropped_merge_tagsarray

    แท็กผสาน Mailchimp ที่ไม่มีสิ่งเทียบเท่าใน Banger ซึ่งนำออกจากดีไซน์ (เงื่อนไขฟิลด์ผสานคงแขนงแรกและแสดงที่นี่)

  • แต่ละรายการstring
  • replaced_footerboolean

    ส่วนท้าย Mailchimp (ดูในเบราว์เซอร์ การตั้งค่า ที่อยู่ ตราสัญลักษณ์) เปลี่ยนเป็นส่วนท้ายแบรนด์ผลิตภัณฑ์

  • removed_linksarray

    ลิงก์นอกส่วนท้ายไปหน้าที่มีเฉพาะ Mailchimp (เช่น ดูในเบราว์เซอร์) ที่นำออก แสดงตามข้อความลิงก์

  • แต่ละรายการstring
  • links_to_fillarray

    ลิงก์ที่ว่างใน Mailchimp แต่ละลิงก์เป็นสล็อต URL ของดีไซน์ที่ต้องเติมก่อนส่ง

  • แต่ละรายการobject
  • keystringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • labelstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • kept_editsboolean

    การรันซ้ำพบดีไซน์ที่แก้ใน Banger จึงคงไว้ตามเดิม

  • campaignsarrayจำเป็น
  • แต่ละรายการobject

    ผลลัพธ์ของหนึ่งกลุ่ม เทมเพลต หรือแคมเปญ Mailchimp

  • mailchimp_idstringจำเป็น

    กลุ่ม: <audience id>:<segment id> เทมเพลตและแคมเปญ: id ของ Mailchimp

  • becamestringจำเป็น

    enum: "segment", "contact_list", "template", "needs_rebuild"

  • idstring

    กลุ่ม Banger

    format: "uuid"

  • namestringจำเป็น
  • reasonstring

    เหตุผลที่กลุ่มยังเป็นรายการคงที่

  • dropped_merge_tagsarray

    แท็กผสาน Mailchimp ที่ไม่มีสิ่งเทียบเท่าใน Banger ซึ่งนำออกจากดีไซน์ (เงื่อนไขฟิลด์ผสานคงแขนงแรกและแสดงที่นี่)

  • แต่ละรายการstring
  • replaced_footerboolean

    ส่วนท้าย Mailchimp (ดูในเบราว์เซอร์ การตั้งค่า ที่อยู่ ตราสัญลักษณ์) เปลี่ยนเป็นส่วนท้ายแบรนด์ผลิตภัณฑ์

  • removed_linksarray

    ลิงก์นอกส่วนท้ายไปหน้าที่มีเฉพาะ Mailchimp (เช่น ดูในเบราว์เซอร์) ที่นำออก แสดงตามข้อความลิงก์

  • แต่ละรายการstring
  • links_to_fillarray

    ลิงก์ที่ว่างใน Mailchimp แต่ละลิงก์เป็นสล็อต URL ของดีไซน์ที่ต้องเติมก่อนส่ง

  • แต่ละรายการobject
  • keystringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • labelstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • kept_editsboolean

    การรันซ้ำพบดีไซน์ที่แก้ใน Banger จึงคงไว้ตามเดิม

  • automationsobjectจำเป็น
  • importedbooleanจำเป็น

    const: false

  • whystringจำเป็น
  • next_stepsarrayจำเป็น
  • แต่ละรายการstring
  • help_call_urlstringจำเป็น

    format: "uri"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/mailchimp-migration?connection_id=00000000-0000-4000-8000-000000000001' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/mailchimp-migration

เริ่มหรือรันการย้ายจาก Mailchimp มาผลิตภัณฑ์นี้อีกครั้ง

เชื่อมต่อ Mailchimp เริ่มอยู่แล้ว รันซ้ำจะซิงค์อีกและเพิ่มเฉพาะสิ่งใหม่ ต้องมี contacts:write และ campaigns:write คนที่เข้าสู่ระบบต้องเป็นเจ้าของหรือผู้ดูแล ไม่ต้องมีสิทธิ์การเชื่อมต่อ

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • connection_idstring

    format: "uuid"

  • recent_campaignsinteger

    minimum: 0 · maximum: 50 · default: 10

การตอบกลับสำเร็จ 202

การย้ายทำงานในเบื้องหลัง

application/json

  • valueobject
  • dataไม่ได้ระบุจำเป็น
  • allOf 1object

    การย้ายจากหนึ่งการเชื่อมต่อ Mailchimp เข้าผลิตภัณฑ์ โพล GET /mailchimp-migration เพื่อติดตามสด: `phase` ระบุขั้นตอนปัจจุบัน `counts`, `audiences`, `segments`, `templates` และ `campaigns` เพิ่มระหว่างดำเนินการ

  • migration_idstringจำเป็น

    format: "uuid"

  • connection_idstringจำเป็น

    format: "uuid"

  • product_idstringจำเป็น

    format: "uuid"

  • statusstringจำเป็น

    enum: "importing", "completed"

  • phasestringจำเป็น

    importing (กำลังอ่าน Mailchimp), copying_designs (แม่แบบและแคมเปญ), finishing, completed, needs_new_key (Mailchimp ปฏิเสธคีย์ API การย้ายหยุดชั่วคราวจนกว่าจะบันทึกคีย์ใหม่ด้วย rotateConnectionCredential) หรือ disconnected (นำการเชื่อมต่อออกแล้ว ข้อมูลทั้งหมดที่ย้ายมาแล้วยังคงอยู่ใน Banger และยังอ่านจำนวนได้)

    enum: "importing", "copying_designs", "finishing", "completed", "needs_new_key", "disconnected"

  • started_atstringจำเป็น

    format: "date-time"

  • completed_atstring | nullจำเป็น

    format: "date-time"

  • connectionobjectจำเป็น
  • display_namestringจำเป็น
  • account_namestring | nullจำเป็น
  • statusstringจำเป็น

    enum: "pending_validation", "active", "error", "disabled"

  • last_error_codestring | nullจำเป็น
  • needs_new_keybooleanจำเป็น
  • messagestring

    มีค่านี้เมื่อเป็น needs_new_key หรือ disconnected พร้อมแสดงผล

  • progressobjectจำเป็น
  • import_streamsintegerจำเป็น
  • import_streams_doneintegerจำเป็น
  • failing_streamsarrayจำเป็น
  • แต่ละรายการobject
  • streamstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • refstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • error_codestring | nullจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • designs_waitingintegerจำเป็น
  • notestringจำเป็น
  • countsobjectจำเป็น
  • contactsintegerจำเป็น
  • subscribedintegerจำเป็น
  • unsubscribedintegerจำเป็น
  • bouncedintegerจำเป็น
  • contact_listsintegerจำเป็น
  • contact_fieldsintegerจำเป็น
  • segments_convertedintegerจำเป็น
  • segments_kept_as_listsintegerจำเป็น
  • templates_importedintegerจำเป็น
  • templates_to_rebuildintegerจำเป็น
  • campaigns_imported_as_designsintegerจำเป็น
  • automations_importedintegerจำเป็น
  • audiencesarrayจำเป็น
  • แต่ละรายการobject
  • mailchimp_idstringจำเป็น
  • namestringจำเป็น
  • list_idstring | nullจำเป็น

    format: "uuid"

  • list_namestring | nullจำเป็น
  • members_in_bangerintegerจำเป็น
  • subscribedintegerจำเป็น
  • unsubscribedintegerจำเป็น
  • bouncedintegerจำเป็น
  • members_in_mailchimpintegerจำเป็น
  • contact_fieldsarrayจำเป็น
  • แต่ละรายการobject
  • mailchimp_tagstringจำเป็น
  • namestringจำเป็น
  • field_keystringจำเป็น
  • typestringจำเป็น

    enum: "text", "number", "boolean", "date", "choice", "choices"

  • consentstringจำเป็น
  • segmentsarrayจำเป็น
  • แต่ละรายการobject

    ผลลัพธ์ของหนึ่งกลุ่ม เทมเพลต หรือแคมเปญ Mailchimp

  • mailchimp_idstringจำเป็น

    กลุ่ม: <audience id>:<segment id> เทมเพลตและแคมเปญ: id ของ Mailchimp

  • becamestringจำเป็น

    enum: "segment", "contact_list", "template", "needs_rebuild"

  • idstring

    กลุ่ม Banger

    format: "uuid"

  • namestringจำเป็น
  • reasonstring

    เหตุผลที่กลุ่มยังเป็นรายการคงที่

  • dropped_merge_tagsarray

    แท็กผสาน Mailchimp ที่ไม่มีสิ่งเทียบเท่าใน Banger ซึ่งนำออกจากดีไซน์ (เงื่อนไขฟิลด์ผสานคงแขนงแรกและแสดงที่นี่)

  • แต่ละรายการstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • replaced_footerboolean

    ส่วนท้าย Mailchimp (ดูในเบราว์เซอร์ การตั้งค่า ที่อยู่ ตราสัญลักษณ์) เปลี่ยนเป็นส่วนท้ายแบรนด์ผลิตภัณฑ์

  • removed_linksarray

    ลิงก์นอกส่วนท้ายไปหน้าที่มีเฉพาะ Mailchimp (เช่น ดูในเบราว์เซอร์) ที่นำออก แสดงตามข้อความลิงก์

  • แต่ละรายการstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • links_to_fillarray

    ลิงก์ที่ว่างใน Mailchimp แต่ละลิงก์เป็นสล็อต URL ของดีไซน์ที่ต้องเติมก่อนส่ง

  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • kept_editsboolean

    การรันซ้ำพบดีไซน์ที่แก้ใน Banger จึงคงไว้ตามเดิม

  • templatesarrayจำเป็น
  • แต่ละรายการobject

    ผลลัพธ์ของหนึ่งกลุ่ม เทมเพลต หรือแคมเปญ Mailchimp

  • mailchimp_idstringจำเป็น

    กลุ่ม: <audience id>:<segment id> เทมเพลตและแคมเปญ: id ของ Mailchimp

  • becamestringจำเป็น

    enum: "segment", "contact_list", "template", "needs_rebuild"

  • idstring

    กลุ่ม Banger

    format: "uuid"

  • namestringจำเป็น
  • reasonstring

    เหตุผลที่กลุ่มยังเป็นรายการคงที่

  • dropped_merge_tagsarray

    แท็กผสาน Mailchimp ที่ไม่มีสิ่งเทียบเท่าใน Banger ซึ่งนำออกจากดีไซน์ (เงื่อนไขฟิลด์ผสานคงแขนงแรกและแสดงที่นี่)

  • แต่ละรายการstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • replaced_footerboolean

    ส่วนท้าย Mailchimp (ดูในเบราว์เซอร์ การตั้งค่า ที่อยู่ ตราสัญลักษณ์) เปลี่ยนเป็นส่วนท้ายแบรนด์ผลิตภัณฑ์

  • removed_linksarray

    ลิงก์นอกส่วนท้ายไปหน้าที่มีเฉพาะ Mailchimp (เช่น ดูในเบราว์เซอร์) ที่นำออก แสดงตามข้อความลิงก์

  • แต่ละรายการstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • links_to_fillarray

    ลิงก์ที่ว่างใน Mailchimp แต่ละลิงก์เป็นสล็อต URL ของดีไซน์ที่ต้องเติมก่อนส่ง

  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • kept_editsboolean

    การรันซ้ำพบดีไซน์ที่แก้ใน Banger จึงคงไว้ตามเดิม

  • campaignsarrayจำเป็น
  • แต่ละรายการobject

    ผลลัพธ์ของหนึ่งกลุ่ม เทมเพลต หรือแคมเปญ Mailchimp

  • mailchimp_idstringจำเป็น

    กลุ่ม: <audience id>:<segment id> เทมเพลตและแคมเปญ: id ของ Mailchimp

  • becamestringจำเป็น

    enum: "segment", "contact_list", "template", "needs_rebuild"

  • idstring

    กลุ่ม Banger

    format: "uuid"

  • namestringจำเป็น
  • reasonstring

    เหตุผลที่กลุ่มยังเป็นรายการคงที่

  • dropped_merge_tagsarray

    แท็กผสาน Mailchimp ที่ไม่มีสิ่งเทียบเท่าใน Banger ซึ่งนำออกจากดีไซน์ (เงื่อนไขฟิลด์ผสานคงแขนงแรกและแสดงที่นี่)

  • แต่ละรายการstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • replaced_footerboolean

    ส่วนท้าย Mailchimp (ดูในเบราว์เซอร์ การตั้งค่า ที่อยู่ ตราสัญลักษณ์) เปลี่ยนเป็นส่วนท้ายแบรนด์ผลิตภัณฑ์

  • removed_linksarray

    ลิงก์นอกส่วนท้ายไปหน้าที่มีเฉพาะ Mailchimp (เช่น ดูในเบราว์เซอร์) ที่นำออก แสดงตามข้อความลิงก์

  • แต่ละรายการstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • links_to_fillarray

    ลิงก์ที่ว่างใน Mailchimp แต่ละลิงก์เป็นสล็อต URL ของดีไซน์ที่ต้องเติมก่อนส่ง

  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • kept_editsboolean

    การรันซ้ำพบดีไซน์ที่แก้ใน Banger จึงคงไว้ตามเดิม

  • automationsobjectจำเป็น
  • importedbooleanจำเป็น

    const: false

  • whystringจำเป็น
  • next_stepsarrayจำเป็น
  • แต่ละรายการstring
  • help_call_urlstringจำเป็น

    format: "uri"

  • allOf 2object
  • messagestring

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/mailchimp-migration' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "connection_id": "00000000-0000-4000-8000-000000000001",
  "recent_campaigns": 10
}'

เนื้อหาที่จัดการ

GET/v1/workspaces/{workspaceId}/managed-content

แสดงเนื้อหาอีเมลผลิตภัณฑ์ที่จัดการในลำดับคงที่เรียง id ใหม่ก่อน

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

limit
query
  • valueinteger

    minimum: 1 · maximum: 100 · default: 50

cursor
query
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

รายการเนื้อหาผลิตภัณฑ์และเคอร์เซอร์ถัดไปที่ไม่บังคับ

application/json

  • valueobject
  • dataobjectจำเป็น
  • itemsarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • versionintegerจำเป็น

    minimum: 1

  • review_requiredbooleanจำเป็น
  • draft_revision_idstring | null

    format: "uuid"

  • submitted_revision_idstring | null

    format: "uuid"

  • approved_revision_idstring | null

    format: "uuid"

  • published_revision_idstring | null

    format: "uuid"

  • published_publication_idstring | null

    format: "uuid"

  • source_revisionobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • translationsarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • translation_jobsarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • next_cursorstring | nullจำเป็น

    format: "uuid"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/managed-content?limit=50&cursor=00000000-0000-4000-8000-000000000001' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001'
POST/v1/workspaces/{workspaceId}/managed-content

บันทึกฉบับร่างอีเมลภาษาต้นฉบับและเข้าคิวแปลปลายทางที่ขาด

ไม่ส่งหรือเผยแพร่ การเตรียมแปลไม่มีค่าบริการต่อภาษา

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

Idempotency-Key
header · จำเป็น
  • valuestring

    minLength: 1 · maxLength: 256

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • namestringจำเป็น

    minLength: 1 · maxLength: 200

  • contractobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • source_localestring

    โลแคลต้นฉบับ BCP 47 ตามข้อมูลหลัก หากไม่ระบุจะสืบทอดการตั้งค่าผลิตภัณฑ์

  • configured_localesarray

    โลแคลต้นฉบับและปลายทาง เซิร์ฟเวอร์เพิ่มต้นฉบับที่ไม่ได้ระบุ

    maxItems: 100 · uniqueItems: true

  • แต่ละรายการstring
  • fallback_localestring
  • layout_idstring

    เลย์เอาต์ใช้ซ้ำที่เลือก เซิร์ฟเวอร์เก็บภาพรวมฉบับที่เผยแพร่ในฉบับเนื้อหานี้

    format: "uuid"

  • localization_policyobject

    อีเมลเส้นทางส่งเฉพาะภาษาของบุคคลนั้น รอคำแปลประมาณหนึ่งนาทีสำหรับใบเสร็จ รหัส และแจ้งความปลอดภัย และสูงสุดหนึ่งวันสำหรับอีเมลอื่น ไม่ส่งหากคำแปลยังไม่พร้อมเมื่อครบเวลา

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • manual_reviewboolean

    default: false

  • sourceobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • subjectstringจำเป็น

    minLength: 1 · maxLength: 100000

  • preheaderstring

    maxLength: 100000

  • body_textstring

    รับเพื่อรองรับต้นฉบับ ข้อความล้วนที่เรนเดอร์ได้มาจาก HTML สุดท้าย

    maxLength: 100000

  • body_htmlstringจำเป็น

    minLength: 1 · maxLength: 100000

  • layoutstring

    ต้องมีสล็อต {{ content }} หนึ่งแห่ง

    maxLength: 100000

  • variantsobject

    เวอร์ชันต้นฉบับที่ไม่บังคับ ทุกเวอร์ชันแปลอัตโนมัติในฉบับเดียวกัน

  • พร็อพเพอร์ตีเพิ่มเติมobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • subjectstringจำเป็น

    minLength: 1 · maxLength: 100000

  • preheaderstring

    maxLength: 100000

  • body_htmlstringจำเป็น

    minLength: 1 · maxLength: 100000

  • body_textstring

    maxLength: 100000

  • layoutstring

    maxLength: 100000

  • variablesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมไม่ได้ระบุ

    ตัวแปรระบุชนิดแบบเรียกซ้ำ ค่าเงินใช้ {amount_cents: integer, currency: ISO 4217 code} ค่า date เป็นวันที่ปฏิทิน ISO และค่า datetime เป็นเวลาประทับ ISO พร้อมออฟเซ็ต

  • oneOf 1object

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • typestringจำเป็น

    enum: "string", "text", "url", "image_url", "html", "date", "datetime", "number", "boolean", "money"

    ละส่วนที่ซ้อนลึกกว่านี้

  • requiredboolean

    ละส่วนที่ซ้อนลึกกว่านี้

  • descriptionstring

    maxLength: 2000

    ละส่วนที่ซ้อนลึกกว่านี้

  • defaultไม่ได้ระบุ

    ต้องตรงกับชนิดฟิลด์

    ละส่วนที่ซ้อนลึกกว่านี้

  • oneOf 2object

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • typeไม่ได้ระบุจำเป็น

    const: "object"

    ละส่วนที่ซ้อนลึกกว่านี้

  • requiredboolean

    ละส่วนที่ซ้อนลึกกว่านี้

  • descriptionstring

    maxLength: 2000

    ละส่วนที่ซ้อนลึกกว่านี้

  • defaultobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • propertiesobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • oneOf 3object

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • typeไม่ได้ระบุจำเป็น

    const: "list"

    ละส่วนที่ซ้อนลึกกว่านี้

  • requiredboolean

    ละส่วนที่ซ้อนลึกกว่านี้

  • descriptionstring

    maxLength: 2000

    ละส่วนที่ซ้อนลึกกว่านี้

  • defaultarray

    ละส่วนที่ซ้อนลึกกว่านี้

  • itemsไม่ได้ระบุจำเป็น

    ตัวแปรระบุชนิดแบบเรียกซ้ำ ค่าเงินใช้ {amount_cents: integer, currency: ISO 4217 code} ค่า date เป็นวันที่ปฏิทิน ISO และค่า datetime เป็นเวลาประทับ ISO พร้อมออฟเซ็ต

    ละส่วนที่ซ้อนลึกกว่านี้

  • samplesobject

    ชุดค่าตัวอย่างที่มีชื่อสำหรับแสดงตัวอย่างและตรวจสอบต้นฉบับ

  • พร็อพเพอร์ตีเพิ่มเติมobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • translationsobject

    แค็ตตาล็อกข้อความ ICU ต้นฉบับและแค็ตตาล็อกปลายทางที่ส่งมาซึ่งไม่บังคับ ปลายทางที่ตั้งค่าแต่ขาดเข้าคิวแปลแบบอะซิงโครนัส ไม่ต้องมีเพื่อบันทึก

  • พร็อพเพอร์ตีเพิ่มเติมobject
  • พร็อพเพอร์ตีเพิ่มเติมstring

การตอบกลับสำเร็จ 201

ฉบับร่างต้นฉบับและงานแปลที่เข้าคิว

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • versionintegerจำเป็น

    minimum: 1

  • review_requiredbooleanจำเป็น
  • draft_revision_idstring | null

    format: "uuid"

  • submitted_revision_idstring | null

    format: "uuid"

  • approved_revision_idstring | null

    format: "uuid"

  • published_revision_idstring | null

    format: "uuid"

  • published_publication_idstring | null

    format: "uuid"

  • source_revisionobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • translationsarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • translation_jobsarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/managed-content' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001' \
  --header 'Idempotency-Key: example' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "name": "example",
  "contract": {
    "source_locale": "example",
    "configured_locales": [
      "example"
    ],
    "fallback_locale": "example",
    "layout_id": "00000000-0000-4000-8000-000000000001",
    "localization_policy": {
      "manual_review": false
    },
    "source": {
      "subject": "example",
      "preheader": "example",
      "body_text": "example",
      "body_html": "example",
      "layout": "example",
      "variants": {},
      "variables": {}
    },
    "samples": {},
    "translations": {}
  }
}'
GET/v1/workspaces/{workspaceId}/managed-content/{contentId}

อ่านฉบับร่าง คำแปล และสถานะการเตรียม

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

contentId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

สถานะเนื้อหาปัจจุบัน

application/json

  • valueobject
  • dataไม่ได้ระบุจำเป็น
  • allOf 1object
  • idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • versionintegerจำเป็น

    minimum: 1

  • review_requiredbooleanจำเป็น
  • draft_revision_idstring | null

    format: "uuid"

  • submitted_revision_idstring | null

    format: "uuid"

  • approved_revision_idstring | null

    format: "uuid"

  • published_revision_idstring | null

    format: "uuid"

  • published_publication_idstring | null

    format: "uuid"

  • source_revisionobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • translationsarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • translation_jobsarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • allOf 2object
  • source_revisionobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • content_idstringจำเป็น

    format: "uuid"

  • revisionintegerจำเป็น
  • source_localestringจำเป็น
  • configured_localesarrayจำเป็น
  • แต่ละรายการstring
  • fallback_localestring | nullจำเป็น
  • localization_policyobjectจำเป็น

    อีเมลเส้นทางส่งเฉพาะภาษาของบุคคลนั้น รอคำแปลประมาณหนึ่งนาทีสำหรับใบเสร็จ รหัส และแจ้งความปลอดภัย และสูงสุดหนึ่งวันสำหรับอีเมลอื่น ไม่ส่งหากคำแปลยังไม่พร้อมเมื่อครบเวลา

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • manual_reviewboolean

    default: false

  • sourceobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • subjectstringจำเป็น

    minLength: 1 · maxLength: 100000

  • preheaderstring

    maxLength: 100000

  • body_textstring

    รับเพื่อรองรับต้นฉบับ ข้อความล้วนที่เรนเดอร์ได้มาจาก HTML สุดท้าย

    maxLength: 100000

  • body_htmlstringจำเป็น

    minLength: 1 · maxLength: 100000

  • layoutstring

    ต้องมีสล็อต {{ content }} หนึ่งแห่ง

    maxLength: 100000

  • variantsobject

    เวอร์ชันต้นฉบับที่ไม่บังคับ ทุกเวอร์ชันแปลอัตโนมัติในฉบับเดียวกัน

  • พร็อพเพอร์ตีเพิ่มเติมobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • variablesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมไม่ได้ระบุ

    ตัวแปรระบุชนิดแบบเรียกซ้ำ ค่าเงินใช้ {amount_cents: integer, currency: ISO 4217 code} ค่า date เป็นวันที่ปฏิทิน ISO และค่า datetime เป็นเวลาประทับ ISO พร้อมออฟเซ็ต

    ละส่วนที่ซ้อนลึกกว่านี้

  • source_messagesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมstring
  • layout_idstring | nullจำเป็น

    format: "uuid"

  • layout_revision_idstring | nullจำเป็น

    format: "uuid"

  • samplesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • restored_from_revision_idstring | nullจำเป็น

    format: "uuid"

  • translationsarrayจำเป็น
  • แต่ละรายการไม่ได้ระบุ
  • allOf 1object
  • source_revision_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • localestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • stringsobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • provenancestringจำเป็น

    enum: "supplied", "generated", "reviewed"

    ละส่วนที่ซ้อนลึกกว่านี้

  • statusstringจำเป็น

    enum: "ready", "needs_review"

    ละส่วนที่ซ้อนลึกกว่านี้

  • allOf 2object
  • strings_sha256stringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • translation_jobsarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • source_revision_idstringจำเป็น

    format: "uuid"

  • localestringจำเป็น
  • statusstringจำเป็น
  • attempt_countintegerจำเป็น
  • error_codestring | nullจำเป็น

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/managed-content/{contentId}' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001'
PATCH/v1/workspaces/{workspaceId}/managed-content/{contentId}

บันทึกฉบับร่างต้นฉบับใหม่โดยไม่เปลี่ยนการเผยแพร่ในระบบจริง

การเปลี่ยนตัวแปรที่เข้ากันไม่ได้เผยแพร่ทับ ID เนื้อหานี้ไม่ได้ สร้างและเผยแพร่เนื้อหาที่จัดการใหม่ เปลี่ยนทุกการอ้างอิงเส้นทางหรือแคมเปญฉบับร่างเป็น ID ใหม่ แล้วตรวจทาน/เปิดเส้นทางหรือตั้งเวลาแคมเปญ การส่งที่รับแล้วและผู้รับแคมเปญที่ตั้งเวลาแล้วคงฉบับที่ตรึงไว้

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

contentId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • expected_versionintegerจำเป็น

    minimum: 1

  • contractobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • source_localestring

    โลแคลต้นฉบับ BCP 47 ตามข้อมูลหลัก หากไม่ระบุจะสืบทอดการตั้งค่าผลิตภัณฑ์

  • configured_localesarray

    โลแคลต้นฉบับและปลายทาง เซิร์ฟเวอร์เพิ่มต้นฉบับที่ไม่ได้ระบุ

    maxItems: 100 · uniqueItems: true

  • แต่ละรายการstring
  • fallback_localestring
  • layout_idstring

    เลย์เอาต์ใช้ซ้ำที่เลือก เซิร์ฟเวอร์เก็บภาพรวมฉบับที่เผยแพร่ในฉบับเนื้อหานี้

    format: "uuid"

  • localization_policyobject

    อีเมลเส้นทางส่งเฉพาะภาษาของบุคคลนั้น รอคำแปลประมาณหนึ่งนาทีสำหรับใบเสร็จ รหัส และแจ้งความปลอดภัย และสูงสุดหนึ่งวันสำหรับอีเมลอื่น ไม่ส่งหากคำแปลยังไม่พร้อมเมื่อครบเวลา

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • manual_reviewboolean

    default: false

  • sourceobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • subjectstringจำเป็น

    minLength: 1 · maxLength: 100000

  • preheaderstring

    maxLength: 100000

  • body_textstring

    รับเพื่อรองรับต้นฉบับ ข้อความล้วนที่เรนเดอร์ได้มาจาก HTML สุดท้าย

    maxLength: 100000

  • body_htmlstringจำเป็น

    minLength: 1 · maxLength: 100000

  • layoutstring

    ต้องมีสล็อต {{ content }} หนึ่งแห่ง

    maxLength: 100000

  • variantsobject

    เวอร์ชันต้นฉบับที่ไม่บังคับ ทุกเวอร์ชันแปลอัตโนมัติในฉบับเดียวกัน

  • พร็อพเพอร์ตีเพิ่มเติมobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • subjectstringจำเป็น

    minLength: 1 · maxLength: 100000

  • preheaderstring

    maxLength: 100000

  • body_htmlstringจำเป็น

    minLength: 1 · maxLength: 100000

  • body_textstring

    maxLength: 100000

  • layoutstring

    maxLength: 100000

  • variablesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมไม่ได้ระบุ

    ตัวแปรระบุชนิดแบบเรียกซ้ำ ค่าเงินใช้ {amount_cents: integer, currency: ISO 4217 code} ค่า date เป็นวันที่ปฏิทิน ISO และค่า datetime เป็นเวลาประทับ ISO พร้อมออฟเซ็ต

  • oneOf 1object

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • typestringจำเป็น

    enum: "string", "text", "url", "image_url", "html", "date", "datetime", "number", "boolean", "money"

    ละส่วนที่ซ้อนลึกกว่านี้

  • requiredboolean

    ละส่วนที่ซ้อนลึกกว่านี้

  • descriptionstring

    maxLength: 2000

    ละส่วนที่ซ้อนลึกกว่านี้

  • defaultไม่ได้ระบุ

    ต้องตรงกับชนิดฟิลด์

    ละส่วนที่ซ้อนลึกกว่านี้

  • oneOf 2object

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • typeไม่ได้ระบุจำเป็น

    const: "object"

    ละส่วนที่ซ้อนลึกกว่านี้

  • requiredboolean

    ละส่วนที่ซ้อนลึกกว่านี้

  • descriptionstring

    maxLength: 2000

    ละส่วนที่ซ้อนลึกกว่านี้

  • defaultobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • propertiesobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • oneOf 3object

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • typeไม่ได้ระบุจำเป็น

    const: "list"

    ละส่วนที่ซ้อนลึกกว่านี้

  • requiredboolean

    ละส่วนที่ซ้อนลึกกว่านี้

  • descriptionstring

    maxLength: 2000

    ละส่วนที่ซ้อนลึกกว่านี้

  • defaultarray

    ละส่วนที่ซ้อนลึกกว่านี้

  • itemsไม่ได้ระบุจำเป็น

    ตัวแปรระบุชนิดแบบเรียกซ้ำ ค่าเงินใช้ {amount_cents: integer, currency: ISO 4217 code} ค่า date เป็นวันที่ปฏิทิน ISO และค่า datetime เป็นเวลาประทับ ISO พร้อมออฟเซ็ต

    ละส่วนที่ซ้อนลึกกว่านี้

  • samplesobject

    ชุดค่าตัวอย่างที่มีชื่อสำหรับแสดงตัวอย่างและตรวจสอบต้นฉบับ

  • พร็อพเพอร์ตีเพิ่มเติมobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • translationsobject

    แค็ตตาล็อกข้อความ ICU ต้นฉบับและแค็ตตาล็อกปลายทางที่ส่งมาซึ่งไม่บังคับ ปลายทางที่ตั้งค่าแต่ขาดเข้าคิวแปลแบบอะซิงโครนัส ไม่ต้องมีเพื่อบันทึก

  • พร็อพเพอร์ตีเพิ่มเติมobject
  • พร็อพเพอร์ตีเพิ่มเติมstring

การตอบกลับสำเร็จ 200

ฉบับร่างใหม่และงานแปลที่เข้าคิว

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • versionintegerจำเป็น

    minimum: 1

  • review_requiredbooleanจำเป็น
  • draft_revision_idstring | null

    format: "uuid"

  • submitted_revision_idstring | null

    format: "uuid"

  • approved_revision_idstring | null

    format: "uuid"

  • published_revision_idstring | null

    format: "uuid"

  • published_publication_idstring | null

    format: "uuid"

  • source_revisionobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • translationsarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • translation_jobsarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้

ตัวอย่าง curl

curl --request PATCH --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/managed-content/{contentId}' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "expected_version": 1,
  "contract": {
    "source_locale": "example",
    "configured_locales": [
      "example"
    ],
    "fallback_locale": "example",
    "layout_id": "00000000-0000-4000-8000-000000000001",
    "localization_policy": {
      "manual_review": false
    },
    "source": {
      "subject": "example",
      "preheader": "example",
      "body_text": "example",
      "body_html": "example",
      "layout": "example",
      "variants": {},
      "variables": {}
    },
    "samples": {},
    "translations": {}
  }
}'
POST/v1/workspaces/{workspaceId}/managed-content/{contentId}/render

ดูตัวอย่างฉบับต้นฉบับที่บันทึกและหนึ่งโลแคลที่พร้อมโดยไม่ส่ง

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

contentId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ใช้ sample_set หรือ variables อย่างใดอย่างหนึ่ง ห้ามใช้ทั้งสอง ค่าเริ่มต้นคือตัวอย่างมีชื่อรายการแรก

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • source_revision_idstring

    format: "uuid"

  • variantstring

    คีย์เวอร์ชัน A/B ต้นฉบับ

  • localestring
  • timezonestring

    เขตเวลา IANA ค่าเริ่มต้น UTC

  • sample_setstring
  • variablesobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้

การตอบกลับสำเร็จ 200

หัวเรื่อง พรีเฮดเดอร์ HTML ข้อความล้วนที่ได้ โลแคล และทิศทางที่กำหนดแน่นอน

application/json

  • valueobject
  • dataไม่ได้ระบุจำเป็น
  • allOf 1object
  • subjectstringจำเป็น
  • preheaderstring
  • htmlstringจำเป็น
  • textstringจำเป็น
  • localestringจำเป็น
  • directionstringจำเป็น

    enum: "ltr", "rtl"

  • warningsarray
  • แต่ละรายการstring
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • allOf 2object
  • source_revision_idstringจำเป็น

    format: "uuid"

  • layout_revision_idstring | nullจำเป็น

    format: "uuid"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/managed-content/{contentId}/render' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "source_revision_id": "00000000-0000-4000-8000-000000000001",
  "variant": "example",
  "locale": "example",
  "timezone": "example",
  "sample_set": "example",
  "variables": {}
}'
POST/v1/workspaces/{workspaceId}/managed-content/{contentId}/translations/{locale}/retry

ลองแปลอัตโนมัติที่ล้มเหลวของฉบับร่างต้นฉบับปัจจุบันอีกครั้ง

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

contentId
path · จำเป็น
  • valuestring

    format: "uuid"

locale
path · จำเป็น
  • valuestring

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

เข้าคิวลองแปลใหม่แล้ว

application/json

  • valueobject
  • databooleanจำเป็น

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/managed-content/{contentId}/translations/{locale}/retry' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001'
GET/v1/workspaces/{workspaceId}/managed-content/{contentId}/translations

อ่านแค็ตตาล็อกคำแปลและงานเตรียมของฉบับร่าง

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

contentId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

สถานะเนื้อหาปัจจุบันรวมคำแปลและงาน

application/json

  • valueobject
  • dataไม่ได้ระบุจำเป็น
  • allOf 1object
  • idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • versionintegerจำเป็น

    minimum: 1

  • review_requiredbooleanจำเป็น
  • draft_revision_idstring | null

    format: "uuid"

  • submitted_revision_idstring | null

    format: "uuid"

  • approved_revision_idstring | null

    format: "uuid"

  • published_revision_idstring | null

    format: "uuid"

  • published_publication_idstring | null

    format: "uuid"

  • source_revisionobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • translationsarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • translation_jobsarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • allOf 2object
  • source_revisionobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • content_idstringจำเป็น

    format: "uuid"

  • revisionintegerจำเป็น
  • source_localestringจำเป็น
  • configured_localesarrayจำเป็น
  • แต่ละรายการstring
  • fallback_localestring | nullจำเป็น
  • localization_policyobjectจำเป็น

    อีเมลเส้นทางส่งเฉพาะภาษาของบุคคลนั้น รอคำแปลประมาณหนึ่งนาทีสำหรับใบเสร็จ รหัส และแจ้งความปลอดภัย และสูงสุดหนึ่งวันสำหรับอีเมลอื่น ไม่ส่งหากคำแปลยังไม่พร้อมเมื่อครบเวลา

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • manual_reviewboolean

    default: false

  • sourceobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • subjectstringจำเป็น

    minLength: 1 · maxLength: 100000

  • preheaderstring

    maxLength: 100000

  • body_textstring

    รับเพื่อรองรับต้นฉบับ ข้อความล้วนที่เรนเดอร์ได้มาจาก HTML สุดท้าย

    maxLength: 100000

  • body_htmlstringจำเป็น

    minLength: 1 · maxLength: 100000

  • layoutstring

    ต้องมีสล็อต {{ content }} หนึ่งแห่ง

    maxLength: 100000

  • variantsobject

    เวอร์ชันต้นฉบับที่ไม่บังคับ ทุกเวอร์ชันแปลอัตโนมัติในฉบับเดียวกัน

  • พร็อพเพอร์ตีเพิ่มเติมobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • variablesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมไม่ได้ระบุ

    ตัวแปรระบุชนิดแบบเรียกซ้ำ ค่าเงินใช้ {amount_cents: integer, currency: ISO 4217 code} ค่า date เป็นวันที่ปฏิทิน ISO และค่า datetime เป็นเวลาประทับ ISO พร้อมออฟเซ็ต

    ละส่วนที่ซ้อนลึกกว่านี้

  • source_messagesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมstring
  • layout_idstring | nullจำเป็น

    format: "uuid"

  • layout_revision_idstring | nullจำเป็น

    format: "uuid"

  • samplesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • restored_from_revision_idstring | nullจำเป็น

    format: "uuid"

  • translationsarrayจำเป็น
  • แต่ละรายการไม่ได้ระบุ
  • allOf 1object
  • source_revision_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • localestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • stringsobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • provenancestringจำเป็น

    enum: "supplied", "generated", "reviewed"

    ละส่วนที่ซ้อนลึกกว่านี้

  • statusstringจำเป็น

    enum: "ready", "needs_review"

    ละส่วนที่ซ้อนลึกกว่านี้

  • allOf 2object
  • strings_sha256stringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • translation_jobsarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • source_revision_idstringจำเป็น

    format: "uuid"

  • localestringจำเป็น
  • statusstringจำเป็น
  • attempt_countintegerจำเป็น
  • error_codestring | nullจำเป็น

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/managed-content/{contentId}/translations' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001'
POST/v1/workspaces/{workspaceId}/managed-content/{contentId}/translations/{locale}/review

ตรวจทานแค็ตตาล็อกคำแปลที่รอของหนึ่งฉบับต้นฉบับตามจริง

ต้องใช้ SHA-256 แค็ตตาล็อกจากข้อมูลอ่านกลับปัจจุบัน ข้อความแก้ไขไม่บังคับ การดำเนินการนี้ไม่เผยแพร่ต้นฉบับ

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

contentId
path · จำเป็น
  • valuestring

    format: "uuid"

locale
path · จำเป็น
  • valuestring

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • source_revision_idstringจำเป็น

    format: "uuid"

  • expected_translation_sha256stringจำเป็น

    pattern: "^[a-f0-9]{64}$"

  • stringsobject
  • พร็อพเพอร์ตีเพิ่มเติมstring

การตอบกลับสำเร็จ 200

แค็ตตาล็อกที่ตรวจทานและ SHA-256 ใหม่

application/json

  • valueobject
  • dataobjectจำเป็น
  • source_revision_idstringจำเป็น

    format: "uuid"

  • localestringจำเป็น
  • stringsobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมstring
  • provenancestringจำเป็น

    enum: "reviewed"

  • statusstringจำเป็น

    enum: "ready"

  • strings_sha256stringจำเป็น

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/managed-content/{contentId}/translations/{locale}/review' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "source_revision_id": "00000000-0000-4000-8000-000000000001",
  "expected_translation_sha256": "example",
  "strings": {}
}'
GET/v1/workspaces/{workspaceId}/managed-content/{contentId}/versions

แสดงประวัติการเผยแพร่ที่เปลี่ยนไม่ได้

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

contentId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

รายการเผยแพร่

application/json

  • valueobject
  • dataobjectจำเป็น
  • versionsarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • revisionintegerจำเป็น
  • source_localestringจำเป็น
  • configured_localesarrayจำเป็น
  • แต่ละรายการstring
  • sourceobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • subjectstringจำเป็น

    minLength: 1 · maxLength: 100000

  • preheaderstring

    maxLength: 100000

  • body_textstring

    รับเพื่อรองรับต้นฉบับ ข้อความล้วนที่เรนเดอร์ได้มาจาก HTML สุดท้าย

    maxLength: 100000

  • body_htmlstringจำเป็น

    minLength: 1 · maxLength: 100000

  • layoutstring

    ต้องมีสล็อต {{ content }} หนึ่งแห่ง

    maxLength: 100000

  • variantsobject

    เวอร์ชันต้นฉบับที่ไม่บังคับ ทุกเวอร์ชันแปลอัตโนมัติในฉบับเดียวกัน

  • พร็อพเพอร์ตีเพิ่มเติมobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • variablesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมไม่ได้ระบุ

    ตัวแปรระบุชนิดแบบเรียกซ้ำ ค่าเงินใช้ {amount_cents: integer, currency: ISO 4217 code} ค่า date เป็นวันที่ปฏิทิน ISO และค่า datetime เป็นเวลาประทับ ISO พร้อมออฟเซ็ต

    ละส่วนที่ซ้อนลึกกว่านี้

  • source_messagesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมstring
  • samplesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • restored_from_revision_idstring | nullจำเป็น

    format: "uuid"

  • created_by_actor_idstringจำเป็น
  • created_atstringจำเป็น

    format: "date-time"

  • publicationsarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • source_revision_idstringจำเป็น

    format: "uuid"

  • approval_idstring | nullจำเป็น

    format: "uuid"

  • published_by_actor_idstringจำเป็น
  • published_atstringจำเป็น

    format: "date-time"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/managed-content/{contentId}/versions' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001'
POST/v1/workspaces/{workspaceId}/managed-content/{contentId}/restore

คัดลอกฉบับต้นฉบับก่อนหน้าเป็นฉบับร่างใหม่โดยไม่เผยแพร่

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

contentId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • source_revision_idstringจำเป็น

    format: "uuid"

  • expected_versionintegerจำเป็น

    minimum: 1

การตอบกลับสำเร็จ 200

สถานะฉบับร่างที่กู้คืน

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • versionintegerจำเป็น

    minimum: 1

  • review_requiredbooleanจำเป็น
  • draft_revision_idstring | null

    format: "uuid"

  • submitted_revision_idstring | null

    format: "uuid"

  • approved_revision_idstring | null

    format: "uuid"

  • published_revision_idstring | null

    format: "uuid"

  • published_publication_idstring | null

    format: "uuid"

  • source_revisionobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • translationsarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • translation_jobsarray
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/managed-content/{contentId}/restore' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "source_revision_id": "00000000-0000-4000-8000-000000000001",
  "expected_version": 1
}'

เลย์เอาต์ที่จัดการ

GET/v1/workspaces/{workspaceId}/managed-layouts

แสดงเลย์เอาต์อีเมลผลิตภัณฑ์ที่ใช้ซ้ำได้

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

เลย์เอาต์ผลิตภัณฑ์

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • versionintegerจำเป็น
  • draft_revision_idstring | nullจำเป็น

    format: "uuid"

  • published_revision_idstring | nullจำเป็น

    format: "uuid"

  • published_publication_idstring | nullจำเป็น

    format: "uuid"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/managed-layouts' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001'
POST/v1/workspaces/{workspaceId}/managed-layouts

สร้างเลย์เอาต์ฉบับร่างจาก HTML ที่ตรวจสอบแล้วหรือค่าเริ่มต้นตามแบรนด์

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

Idempotency-Key
header · จำเป็น
  • valuestring

    minLength: 1 · maxLength: 256

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • namestringจำเป็น

    minLength: 1 · maxLength: 200

  • htmlstring

    ต้องมีสล็อตเนื้อหาหนึ่งแห่งพอดี

  • source_localestring
  • source_messagesobject
  • พร็อพเพอร์ตีเพิ่มเติมstring
  • translationsobject
  • พร็อพเพอร์ตีเพิ่มเติมobject
  • พร็อพเพอร์ตีเพิ่มเติมstring

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • versionintegerจำเป็น
  • draft_revision_idstring | nullจำเป็น

    format: "uuid"

  • published_revision_idstring | nullจำเป็น

    format: "uuid"

  • published_publication_idstring | nullจำเป็น

    format: "uuid"

  • replayedbooleanจำเป็น

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/managed-layouts' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001' \
  --header 'Idempotency-Key: example' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "name": "example",
  "html": "example",
  "source_locale": "example",
  "source_messages": {},
  "translations": {}
}'
GET/v1/workspaces/{workspaceId}/managed-layouts/{layoutId}

อ่านเลย์เอาต์และฉบับร่างปัจจุบัน

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

layoutId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

เลย์เอาต์และฉบับร่าง

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • versionintegerจำเป็น
  • draft_revision_idstring | nullจำเป็น

    format: "uuid"

  • published_revision_idstring | nullจำเป็น

    format: "uuid"

  • published_publication_idstring | nullจำเป็น

    format: "uuid"

  • draft_revisionไม่ได้ระบุจำเป็น
  • anyOf 1object
  • idstringจำเป็น

    format: "uuid"

  • layout_idstring

    format: "uuid"

  • revisionintegerจำเป็น
  • htmlstringจำเป็น
  • brand_snapshotobjectจำเป็น
  • company_namestring

    maxLength: 160

  • logo_urlstring

    ไอคอน: สัญลักษณ์เดี่ยว ใช้ขนาดเล็ก (ส่วนท้ายอีเมล แบบฟอร์มเลื่อนเข้า) และใช้เป็นส่วนหัวเมื่อไม่มีโลโก้ตัวอักษร

    maxLength: 2000

  • wordmark_urlstring

    โลโก้ตัวอักษร: ชื่อบริษัทตามที่ออกแบบ แสดงเดี่ยวที่ด้านบนของทุกอีเมล

    maxLength: 2000

  • wordmark_inkstring

    สีที่ใช้วาดโลโก้ตัวอักษร วัดจากภาพเมื่อบันทึก หากโลโก้อ่านไม่ชัดบนส่วนหัว จะมีแผ่นพื้นหลังรองไว้ ไม่มีค่านี้สำหรับภาพทึบแสง

    maxLength: 7

  • logo_inkstring

    สีที่ใช้วาดไอคอน วัดจากภาพเมื่อบันทึก

    maxLength: 7

  • website_urlstring

    maxLength: 2000

  • primary_colorstring

    maxLength: 7

  • accent_colorstring

    maxLength: 7

  • background_colorstring

    maxLength: 7

  • surface_colorstring

    maxLength: 7

  • text_colorstring

    maxLength: 7

  • muted_text_colorstring

    maxLength: 7

  • heading_font_familystring

    maxLength: 200

  • body_font_familystring

    maxLength: 200

  • tonestring

    maxLength: 1000

  • footer_addressstring

    maxLength: 500

  • email_stylestring

    maxLength: 20

  • source_localestringจำเป็น
  • source_messagesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมstring
  • translationsobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมobject
  • พร็อพเพอร์ตีเพิ่มเติมstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • restored_from_revision_idstring | nullจำเป็น

    format: "uuid"

  • created_by_actor_idstring
  • created_atstring

    format: "date-time"

  • anyOf 2null

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/managed-layouts/{layoutId}' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001'
PATCH/v1/workspaces/{workspaceId}/managed-layouts/{layoutId}

บันทึกฉบับเลย์เอาต์ร่างที่ตรวจสอบแล้ว

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

layoutId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • expected_versionintegerจำเป็น

    minimum: 1

  • htmlstringจำเป็น

    ต้องมีสล็อตเนื้อหาหนึ่งแห่งพอดี

  • source_localestring
  • source_messagesobject
  • พร็อพเพอร์ตีเพิ่มเติมstring
  • translationsobject
  • พร็อพเพอร์ตีเพิ่มเติมobject
  • พร็อพเพอร์ตีเพิ่มเติมstring

การตอบกลับสำเร็จ 200

ฉบับร่างใหม่

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • versionintegerจำเป็น
  • draft_revision_idstring | nullจำเป็น

    format: "uuid"

  • published_revision_idstring | nullจำเป็น

    format: "uuid"

  • published_publication_idstring | nullจำเป็น

    format: "uuid"

ตัวอย่าง curl

curl --request PATCH --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/managed-layouts/{layoutId}' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "expected_version": 1,
  "html": "example",
  "source_locale": "example",
  "source_messages": {},
  "translations": {}
}'
GET/v1/workspaces/{workspaceId}/managed-layouts/{layoutId}/versions

แสดงฉบับเลย์เอาต์ที่เปลี่ยนไม่ได้

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

layoutId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

ฉบับเลย์เอาต์

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • layout_idstring

    format: "uuid"

  • revisionintegerจำเป็น
  • htmlstringจำเป็น
  • brand_snapshotobjectจำเป็น
  • company_namestring

    maxLength: 160

  • logo_urlstring

    ไอคอน: สัญลักษณ์เดี่ยว ใช้ขนาดเล็ก (ส่วนท้ายอีเมล แบบฟอร์มเลื่อนเข้า) และใช้เป็นส่วนหัวเมื่อไม่มีโลโก้ตัวอักษร

    maxLength: 2000

  • wordmark_urlstring

    โลโก้ตัวอักษร: ชื่อบริษัทตามที่ออกแบบ แสดงเดี่ยวที่ด้านบนของทุกอีเมล

    maxLength: 2000

  • wordmark_inkstring

    สีที่ใช้วาดโลโก้ตัวอักษร วัดจากภาพเมื่อบันทึก หากโลโก้อ่านไม่ชัดบนส่วนหัว จะมีแผ่นพื้นหลังรองไว้ ไม่มีค่านี้สำหรับภาพทึบแสง

    maxLength: 7

  • logo_inkstring

    สีที่ใช้วาดไอคอน วัดจากภาพเมื่อบันทึก

    maxLength: 7

  • website_urlstring

    maxLength: 2000

  • primary_colorstring

    maxLength: 7

  • accent_colorstring

    maxLength: 7

  • background_colorstring

    maxLength: 7

  • surface_colorstring

    maxLength: 7

  • text_colorstring

    maxLength: 7

  • muted_text_colorstring

    maxLength: 7

  • heading_font_familystring

    maxLength: 200

  • body_font_familystring

    maxLength: 200

  • tonestring

    maxLength: 1000

  • footer_addressstring

    maxLength: 500

  • email_stylestring

    maxLength: 20

  • source_localestringจำเป็น
  • source_messagesobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมstring
  • translationsobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมobject
  • พร็อพเพอร์ตีเพิ่มเติมstring
  • restored_from_revision_idstring | nullจำเป็น

    format: "uuid"

  • created_by_actor_idstring
  • created_atstring

    format: "date-time"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/managed-layouts/{layoutId}/versions' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001'
GET/v1/workspaces/{workspaceId}/managed-layouts/{layoutId}/impact

อธิบายฉบับร่างเนื้อหาและการเผยแพร่ที่พึ่งพาเลย์เอาต์นี้

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

layoutId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

ผลกระทบการพึ่งพาเลย์เอาต์

application/json

  • valueobject
  • dataobjectจำเป็น
  • layout_idstringจำเป็น

    format: "uuid"

  • layout_revision_idstringจำเป็น

    format: "uuid"

  • layout_versionintegerจำเป็น
  • affected_contentsarrayจำเป็น
  • แต่ละรายการobject
  • content_idstringจำเป็น

    format: "uuid"

  • versionintegerจำเป็น
  • published_revision_idstringจำเป็น

    format: "uuid"

  • active_journeysarrayจำเป็น
  • แต่ละรายการobject
  • journey_idstringจำเป็น

    format: "uuid"

  • versionintegerจำเป็น
  • definition_sha256stringจำเป็น
  • manifest_sha256stringจำเป็น

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/managed-layouts/{layoutId}/impact' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001'
POST/v1/workspaces/{workspaceId}/managed-layouts/{layoutId}/restore

คัดลอกฉบับเลย์เอาต์ที่เปลี่ยนไม่ได้เป็นฉบับร่างใหม่

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

layoutId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • layout_revision_idstringจำเป็น

    format: "uuid"

  • expected_versionintegerจำเป็น

    minimum: 1

การตอบกลับสำเร็จ 200

ฉบับร่างที่กู้คืน

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • versionintegerจำเป็น
  • draft_revision_idstring | nullจำเป็น

    format: "uuid"

  • published_revision_idstring | nullจำเป็น

    format: "uuid"

  • published_publication_idstring | nullจำเป็น

    format: "uuid"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/managed-layouts/{layoutId}/restore' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "layout_revision_id": "00000000-0000-4000-8000-000000000001",
  "expected_version": 1
}'

สมาชิก

PATCH/v1/workspaces/{workspaceId}/members/{memberId}

เปลี่ยนบทบาทสมาชิกคนอื่น

เจ้าของและผู้ดูแลกำหนด admin, member หรือ viewer ให้สมาชิกคนอื่นได้ ผู้ที่ลงชื่อเข้าใช้หรือเอเจนต์ที่ดำเนินการผ่านสิทธิ์ OAuth ของผู้นั้นต้องเป็นผู้เปลี่ยน คีย์ API แบบเดี่ยวทำไม่ได้ ไม่มีใครเปลี่ยนบทบาทของตนเองได้ และเปลี่ยนบทบาทเจ้าของไม่ได้ การตั้งเป็นบทบาทปัจจุบันไม่เปลี่ยนสิ่งใด partner (ผู้ร่วมงานใน Banger Partners) ยังคงมีบทบาท partner เจ้าของนำพาร์ตเนอร์ออกใน การตั้งค่า → พาร์ตเนอร์ และที่นี่จำกัดได้เฉพาะกล่องจดหมายที่พาร์ตเนอร์เข้าถึง

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

memberId
path · จำเป็น

id ตัวตนสมาชิก เป็น `id` ในสารบบพื้นที่ทำงาน

  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • rolestringจำเป็น

    enum: "admin", "member", "viewer"

การตอบกลับสำเร็จ 200

สมาชิกพร้อมบทบาทใหม่และบทบาทเดิม

application/json

  • valueobject
  • dataไม่ได้ระบุจำเป็น
  • allOf 1object
  • idstringจำเป็น

    format: "uuid"

  • userIdstringจำเป็น
  • emailstring

    format: "email"

  • displayNamestring
  • kindstringจำเป็น

    const: "user"

  • rolestringจำเป็น

    enum: "owner", "admin", "member", "viewer", "partner"

  • statusstringจำเป็น

    enum: "active", "suspended"

  • allOf 2object
  • previousRolestringจำเป็น

    enum: "owner", "admin", "member", "viewer", "partner"

ตัวอย่าง curl

curl --request PATCH --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/members/{memberId}' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "role": "admin"
}'

Oauth

POST/v1/workspaces/{workspaceId}/oauth/setup-ticket

สร้างตั๋วตั้งค่าการเชื่อมต่อเอเจนต์

ต้องมีเซสชันคนที่เข้าสู่ระบบ คีย์ API และข้อมูลรับรองเอเจนต์อนุญาตการดำเนินการนี้ไม่ได้

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • entry_surfacestringจำเป็น

    enum: "codex", "chatgpt", "claude", "grok", "other_agent"

  • client_namestringจำเป็น

    minLength: 1 · maxLength: 100

การตอบกลับสำเร็จ 201

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • mcp_urlstringจำเป็น
  • expires_atstringจำเป็น

    format: "date-time"

  • scopesarrayจำเป็น
  • แต่ละรายการstring

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/oauth/setup-ticket' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "entry_surface": "codex",
  "client_name": "example"
}'
POST/v1/workspaces/{workspaceId}/oauth/setup-ticket/connection-code

ส่งรหัสเชื่อมต่อเอเจนต์ทางอีเมล

ต้องมีเซสชันคนที่เข้าสู่ระบบ คีย์ API และข้อมูลรับรองเอเจนต์อนุญาตการดำเนินการนี้ไม่ได้

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • mcp_urlstringจำเป็น

    minLength: 8 · maxLength: 8000

  • reuse_pendingboolean

การตอบกลับสำเร็จ 201

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • statusstringจำเป็น

    enum: "code_sent"

  • messagestring
  • expires_atstringจำเป็น

    format: "date-time"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/oauth/setup-ticket/connection-code' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "mcp_url": "examplex",
  "reuse_pending": true
}'
DELETE/v1/workspaces/{workspaceId}/oauth/setup-ticket/connection-code

ยกเลิกรหัสเชื่อมต่อเอเจนต์ที่รอ

ต้องมีเซสชันคนที่เข้าสู่ระบบ คีย์ API และข้อมูลรับรองเอเจนต์อนุญาตการดำเนินการนี้ไม่ได้

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • mcp_urlstringจำเป็น

    minLength: 8 · maxLength: 8000

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • statusstringจำเป็น

    enum: "cancelled"

ตัวอย่าง curl

curl --request DELETE --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/oauth/setup-ticket/connection-code' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "mcp_url": "examplex"
}'

ไคลเอนต์ Oauth

GET/v1/workspaces/{workspaceId}/oauth-clients

แสดงไคลเอนต์ OAuth ของพื้นที่ทำงานสำหรับแพลตฟอร์มเอเจนต์ที่เชื่อมด้วย ID และความลับไคลเอนต์ เช่น Gemini Enterprise

เฉพาะเจ้าของและผู้ดูแล ไม่คืนความลับ

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

ไคลเอนต์ OAuth ที่ใช้งาน ล่าสุดก่อน

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject
  • client_idstringจำเป็น
  • namestringจำเป็น
  • presetstringจำเป็น

    enum: "gemini_enterprise", "custom"

  • client_surfacestringจำเป็น

    แพลตฟอร์มเอเจนต์ของการเชื่อมต่อ OAuth จากชื่อไคลเอนต์และ URI เปลี่ยนเส้นทาง

    enum: "codex", "chatgpt", "claude", "grok", "gemini", "other_agent"

  • redirect_urisarrayจำเป็น
  • แต่ละรายการstring

    format: "uri"

  • connectionsintegerจำเป็น

    การเชื่อมต่อที่ใช้งานผ่านไคลเอนต์นี้

    minimum: 0

  • created_atstringจำเป็น

    format: "date-time"

  • created_by_youbooleanจำเป็น
  • setupobjectจำเป็น

    ค่าที่ต้องใส่ในแบบฟอร์มเซิร์ฟเวอร์ MCP ที่กำหนดเองของแพลตฟอร์มเอเจนต์

  • server_urlstringจำเป็น

    format: "uri"

  • authorization_urlstringจำเป็น

    format: "uri"

  • token_urlstringจำเป็น

    format: "uri"

  • scopesstringจำเป็น

    คั่นด้วยช่องว่าง offline_access ขอรีเฟรชโทเค็นซึ่งทุกการเชื่อมต่อมี

  • token_endpoint_auth_methodsarrayจำเป็น
  • แต่ละรายการstring

    enum: "client_secret_basic", "client_secret_post"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/oauth-clients' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/oauth-clients

สร้างไคลเอนต์ OAuth แบบลับ (ID และความลับไคลเอนต์) สำหรับแพลตฟอร์มเอเจนต์

เฉพาะเจ้าของและผู้ดูแล สมาชิกแต่ละคนที่เชื่อมผ่านไคลเอนต์เข้าสู่ระบบ Banger อนุมัติสิทธิ์ และทำงานตามบทบาทตนในพื้นที่ทำงานนี้

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • namestring

    แสดงในแอปที่เชื่อมต่อ ค่าเริ่มต้น "Gemini Enterprise" สำหรับพรีเซ็ตนั้น

    minLength: 1 · maxLength: 100

  • presetstring

    gemini_enterprise ใช้ URI เปลี่ยนเส้นทางของ Google ส่วน custom ต้องมี redirect_uris

    default: "gemini_enterprise" · enum: "gemini_enterprise", "custom"

  • redirect_urisarray

    เฉพาะพรีเซ็ต custom URI เปลี่ยนเส้นทาง HTTPS กำหนดคงที่เมื่อสร้าง

    minItems: 1 · maxItems: 10

  • แต่ละรายการstring

    format: "uri"

การตอบกลับสำเร็จ 201

สร้างไคลเอนต์ OAuth แล้ว คืนความลับไคลเอนต์ครั้งเดียว

application/json

  • valueobject
  • dataไม่ได้ระบุจำเป็น
  • allOf 1object
  • client_idstringจำเป็น
  • namestringจำเป็น
  • presetstringจำเป็น

    enum: "gemini_enterprise", "custom"

  • client_surfacestringจำเป็น

    แพลตฟอร์มเอเจนต์ของการเชื่อมต่อ OAuth จากชื่อไคลเอนต์และ URI เปลี่ยนเส้นทาง

    enum: "codex", "chatgpt", "claude", "grok", "gemini", "other_agent"

  • redirect_urisarrayจำเป็น
  • แต่ละรายการstring

    format: "uri"

  • connectionsintegerจำเป็น

    การเชื่อมต่อที่ใช้งานผ่านไคลเอนต์นี้

    minimum: 0

  • created_atstringจำเป็น

    format: "date-time"

  • created_by_youbooleanจำเป็น
  • setupobjectจำเป็น

    ค่าที่ต้องใส่ในแบบฟอร์มเซิร์ฟเวอร์ MCP ที่กำหนดเองของแพลตฟอร์มเอเจนต์

  • server_urlstringจำเป็น

    format: "uri"

  • authorization_urlstringจำเป็น

    format: "uri"

  • token_urlstringจำเป็น

    format: "uri"

  • scopesstringจำเป็น

    คั่นด้วยช่องว่าง offline_access ขอรีเฟรชโทเค็นซึ่งทุกการเชื่อมต่อมี

  • token_endpoint_auth_methodsarrayจำเป็น
  • แต่ละรายการstring

    enum: "client_secret_basic", "client_secret_post"

  • allOf 2object
  • client_secretstringจำเป็น

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/oauth-clients' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "name": "example",
  "preset": "gemini_enterprise",
  "redirect_uris": [
    "https://example.com"
  ]
}'
POST/v1/workspaces/{workspaceId}/oauth-clients/{clientId}/revoke

เพิกถอนไคลเอนต์ OAuth ความลับหยุดทำงานและทุกการเชื่อมต่อผ่านไคลเอนต์เสียสิทธิ์ภายในประมาณ 30 วินาที

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

clientId
path · จำเป็น
  • valuestring

    maxLength: 200

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

เพิกถอนไคลเอนต์ OAuth แล้ว

application/json

  • valueobject
  • dataobjectจำเป็น
  • client_idstringจำเป็น
  • revokedbooleanจำเป็น

    const: true

  • revoked_connectionsintegerจำเป็น

    minimum: 0

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/oauth-clients/{clientId}/revoke' \
  --header "Authorization: Bearer $BANGER_API_KEY"

QA

POST/v1/workspaces/{workspaceId}/qa/approvals/{approvalId}/decision

decideDedicatedQaApproval

การอนุมัติอัตโนมัติที่ระบุชัดเจน ไม่ใช่การตรวจทานโดยคน มีเพียงเซสชันเจ้าของ QA ที่สงวนไว้ในระบบจริง ภายในพื้นที่ทำงานทดสอบที่แยกไว้เท่านั้นที่ตัดสินการเผยแพร่เนื้อหาที่จัดการ การเปิดเส้นทาง หรืออีเมลจากตัวจัดส่งที่ระบุแน่นอนได้ ภายในการทำงานรายวันหนึ่งครั้งที่มีขอบเขตจำกัด การอนุมัติของลูกค้าและกฎอนุมัติของตัวเรียกทำงานไม่เปลี่ยน การตัดสินซ้ำหรือเปลี่ยนคำตัดสินจะถูกปฏิเสธ

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

approvalId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueไม่ได้ระบุ
  • allOf 1object
  • run_idstringจำเป็น
  • occurrencestringจำเป็น

    รอบ daily-full ตามปกติที่ใช้ไปแล้วใน America/Sao_Paulo

  • started_atstringจำเป็น

    format: "date-time"

  • deadlinestringจำเป็น

    ไม่เกิน 55 นาทีหลังเวลาเริ่มการทำงานที่เปลี่ยนไม่ได้

    format: "date-time"

  • domainstringจำเป็น

    โดเมนการทำงานที่เซิร์ฟเวอร์ระบุแน่นอนภายใต้ send.qa.snappile.com

  • allOf 2object
  • decisionstringจำเป็น

    enum: "approved"

  • operation_keystringจำเป็น
  • expected_payload_sha256stringจำเป็น

    pattern: "^[a-f0-9]{64}$"

  • recipientsarrayจำเป็น
  • แต่ละรายการstring

    format: "email"

การตอบกลับสำเร็จ 200

หลักฐานแหล่งที่มาของระบบอัตโนมัติที่ระบุชัดเจน พร้อมงานดำเนินการที่มีอยู่หรือการเข้าร่วมที่กลับมาทำต่อ

application/json

  • valueobject
  • dataobject
  • idstringจำเป็น

    format: "uuid"

  • requested_by_actor_idstringจำเป็น
  • action_kindstringจำเป็น
  • summarystringจำเป็น
  • capability_scopesarrayจำเป็น
  • แต่ละรายการstring
  • resource_scopeobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมarray
  • แต่ละรายการstring
  • payloadobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • payload_sha256stringจำเป็น

    pattern: "^[0-9a-f]{64}$"

  • statusstringจำเป็น

    enum: "pending", "approved", "rejected", "cancelled", "expired"

  • missedbooleanจำเป็น
  • expires_atstringจำเป็น

    format: "date-time"

  • qa_automationobject | null

    หลักฐานแหล่งที่มาของระบบอัตโนมัติ QA โดยเฉพาะที่เซิร์ฟเวอร์บันทึกไว้ ไม่ถือเป็นหลักฐานว่ามีคนตรวจทานเพย์โหลด ระบบจะตรวจสอบการทำงานและสิทธิ์อนุญาตส่วนกลางอีกครั้งขณะดำเนินการ

  • kindstring

    enum: "dedicated_qa_automation"

  • authorization_referencestring
  • run_idstring
  • operation_keystring
  • recipientsarray
  • แต่ละรายการstring

    format: "email"

  • approval_sha256string
  • resource_sha256string
  • decided_by_actor_idstring | null
  • decision_reasonstring | null
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • decided_atstring | null

    format: "date-time"

  • execution_job_idstring

    format: "uuid"

  • reviewobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • dispositionstringจำเป็น

    enum: "automatic", "human_required"

  • recipient_countinteger | nullจำเป็น

    minimum: 0

  • reasonsarrayจำเป็น
  • แต่ละรายการstring
  • checksarrayจำเป็น
  • แต่ละรายการstring

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/qa/approvals/{approvalId}/decision' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "run_id": "example",
  "occurrence": "example",
  "started_at": "2026-01-01T00:00:00Z",
  "deadline": "2026-01-01T00:00:00Z",
  "domain": "example",
  "decision": "approved",
  "operation_key": "example",
  "expected_payload_sha256": "example",
  "recipients": [
    "person@example.com"
  ]
}'
POST/v1/workspaces/{workspaceId}/qa/approval-runs/revoke

revokeDedicatedQaApprovalRun

ปิดขอบเขตการอนุมัติของการทำงาน QA ที่ระบุอย่างถาวร รวมถึงกรณีที่คำตัดสินแรกไม่แน่ชัด อนุญาตให้ล้างข้อมูลหลังพ้นกำหนดเวลาทำงาน ไม่รองรับการเปิดใหม่หรือขยายเวลาการทำงาน

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • run_idstringจำเป็น
  • occurrencestringจำเป็น

    รอบ daily-full ตามปกติที่ใช้ไปแล้วใน America/Sao_Paulo

  • started_atstringจำเป็น

    format: "date-time"

  • deadlinestringจำเป็น

    ไม่เกิน 55 นาทีหลังเวลาเริ่มการทำงานที่เปลี่ยนไม่ได้

    format: "date-time"

  • domainstringจำเป็น

    โดเมนการทำงานที่เซิร์ฟเวอร์ระบุแน่นอนภายใต้ send.qa.snappile.com

การตอบกลับสำเร็จ 200

เพิกถอนขอบเขตการทำงานแล้ว

สัญญาไม่ได้ระบุสคีมาการตอบกลับ

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/qa/approval-runs/revoke' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "run_id": "example",
  "occurrence": "example",
  "started_at": "2026-01-01T00:00:00Z",
  "deadline": "2026-01-01T00:00:00Z",
  "domain": "example"
}'

ตั๋วเรียลไทม์

POST/v1/workspaces/{workspaceId}/realtime-ticket

createRealtimeTicket

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • device_idstringจำเป็น

    minLength: 8 · maxLength: 128

การตอบกลับสำเร็จ 200

ตั๋วอายุสั้นที่จำกัดขอบเขตผู้ดำเนินการและพื้นที่ทำงาน

application/json

  • valueobject
  • dataobjectจำเป็น
  • ticketstringจำเป็น
  • websocket_urlstringจำเป็น

    format: "uri"

  • expires_atstringจำเป็น

    format: "date-time"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/realtime-ticket' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "device_id": "examplex"
}'

Recipient suggestions

GET/v1/workspaces/{workspaceId}/recipient-suggestions

listRecipientSuggestions

Addresses the workspace's mailboxes sent mail to (To, Cc and Bcc of Sent mail), most written-to first. Broadcasts, Journeys, product email and Outreach are not included. q matches the start of the address, its domain, or any word of the name.

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

q
query
  • valuestring

    maxLength: 320

limit
query
  • valueinteger

    minimum: 1 · maximum: 50 · default: 8

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject
  • emailstringจำเป็น
  • namestring | nullจำเป็น
  • send_countintegerจำเป็น
  • last_sent_atstringจำเป็น

    format: "date-time"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/recipient-suggestions?q=example&limit=8' \
  --header "Authorization: Bearer $BANGER_API_KEY"

นโยบายการตรวจทาน

GET/v1/workspaces/{workspaceId}/review-policy

getActionReviewPolicy

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

นโยบายตรวจทานอัตโนมัติของพื้นที่ทำงาน

application/json

  • valueobject
  • dataobjectจำเป็น
  • policy_versionintegerจำเป็น

    enum: 1, 2

  • automatic_review_enabledbooleanจำเป็น
  • manual_send_review_enabledbooleanจำเป็น

    ค่าเริ่มต้น false สำหรับคำขอโดยตรง ขีดจำกัดที่เข้มกว่าซึ่งบันทึกไว้ยังเปิดอยู่

  • manual_send_recipient_thresholdintegerจำเป็น

    minimum: 1 · maximum: 1000000

  • updated_by_actor_idstringจำเป็น
  • created_atstring | null

    format: "date-time"

  • updated_atstring | null

    format: "date-time"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/review-policy' \
  --header "Authorization: Bearer $BANGER_API_KEY"
PUT/v1/workspaces/{workspaceId}/review-policy

updateActionReviewPolicy

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • automatic_review_enabledbooleanจำเป็น
  • manual_send_recipient_thresholdintegerจำเป็น

    minimum: 1 · maximum: 1000000

  • manual_send_review_enabledboolean

    เปิดขีดจำกัดตรวจทานโดยคนที่ไม่บังคับ การอัปเดตเกณฑ์รุ่นเก่าอย่างชัดเจนจะคงการเปิดไว้

การตอบกลับสำเร็จ 200

อัปเดตนโยบายตรวจทานอัตโนมัติแล้ว

application/json

  • valueobject
  • dataobjectจำเป็น
  • policy_versionintegerจำเป็น

    enum: 1, 2

  • automatic_review_enabledbooleanจำเป็น
  • manual_send_review_enabledbooleanจำเป็น

    ค่าเริ่มต้น false สำหรับคำขอโดยตรง ขีดจำกัดที่เข้มกว่าซึ่งบันทึกไว้ยังเปิดอยู่

  • manual_send_recipient_thresholdintegerจำเป็น

    minimum: 1 · maximum: 1000000

  • updated_by_actor_idstringจำเป็น
  • created_atstring | null

    format: "date-time"

  • updated_atstring | null

    format: "date-time"

ตัวอย่าง curl

curl --request PUT --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/review-policy' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "automatic_review_enabled": true,
  "manual_send_recipient_threshold": 1,
  "manual_send_review_enabled": true
}'

เลือก

POST/v1/workspaces/{workspaceId}/select

ตั้งพื้นที่ทำงานเป็นพื้นที่ทำงานปัจจุบันของบุคคลที่เข้าสู่ระบบ

เฉพาะเซสชันเบราว์เซอร์ คีย์ API และสิทธิ์ OAuth ตรึงกับพื้นที่ทำงานที่อนุญาตและได้รับ 403 credential_workspace_pinned ต้องเป็นสมาชิกที่ใช้งาน แอปเปิดพื้นที่ทำงานนี้พร้อมผลิตภัณฑ์และการเริ่มต้น เส้นทางเริ่มต้นของบุคคลไม่ถูกรีเซ็ต เป็น idempotent

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

เลือกพื้นที่ทำงานแล้ว

application/json

  • valueobject
  • dataobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • selected_workspace_idstringจำเป็น

    format: "uuid"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/select' \
  --header "Authorization: Bearer $BANGER_API_KEY"

อวาตาร์ผู้ส่ง

GET/v1/workspaces/{workspaceId}/sender-avatar

getSenderAvatar

ค้นอวาตาร์ผู้ส่งที่ตรงก่อน แล้วค้นและแคชไอคอนโดเมนผู้ส่งในคำนำหน้า B2 ส่วนตัวของพื้นที่ทำงาน ผู้ส่งไม่มีภาพคืน 204 และที่อยู่ที่ไม่ใช่ผู้ส่งในพื้นที่ทำงานนี้ก็คืน 204 เช่นกันโดยไม่ค้นหาเลย

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

email
query · จำเป็น
  • valuestring

    format: "email" · maxLength: 320

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

ภาพอวาตาร์ผู้ส่งหรือโดเมนที่ยืนยันตัวตน

image/png

  • valuestring

    format: "binary"

image/jpeg

  • valuestring

    format: "binary"

image/webp

  • valuestring

    format: "binary"

image/svg+xml

  • valuestring

    format: "binary"

image/x-icon

  • valuestring

    format: "binary"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/sender-avatar?email=person%40example.com' \
  --header "Authorization: Bearer $BANGER_API_KEY"

สถานะการส่ง

GET/v1/workspaces/{workspaceId}/sending-health

อ่านสถานะบังคับใช้ชื่อเสียงผู้ส่ง อัตราช่องทาง การหยุด และเกณฑ์ที่บังคับใช้

ทุกช่องทาง (กล่องจดหมาย ผลิตภัณฑ์ แคมเปญ) ของทุกโดเมนส่ง พร้อมอัตราตีกลับถาวรและร้องเรียนย้อนหลัง 24 ชั่วโมงและสถานะ (active, warning, paused) การหยุดโดเมน กล่องจดหมายที่หยุด และระบุว่าพื้นที่ทำงานถูกตรึงหรือไม่ การหยุดแต่ละรายการแสดงแหล่งตีกลับและร้องเรียนหลัก และผู้ดูแลพื้นที่ทำงานเปิดต่อได้หรือไม่ เกณฑ์อยู่ใน docs/product/sending-reputation-enforcement.md

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

สถานะการส่ง

application/json

  • valueobject
  • dataobjectจำเป็น
  • workspaceobjectจำเป็น
  • statestringจำเป็น

    enum: "active", "frozen"

  • holdไม่ได้ระบุจำเป็น
  • oneOf 1object
  • idstringจำเป็น

    format: "uuid"

  • scopestringจำเป็น

    enum: "mailbox", "lane", "domain", "workspace"

  • statestringจำเป็น

    enum: "warning", "paused", "frozen"

  • reasonstringจำเป็น

    bounce_rate, complaint_rate, core_lane_paused, multiple_lanes_paused, repeat_lane_pause, multiple_domains_paused, complaint_burst หรือ operator_review

  • started_atstringจำเป็น

    format: "date-time"

  • review_requiredbooleanจำเป็น
  • evidenceobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • resumeobjectจำเป็น
  • self_servebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • blocked_reasonstring | nullจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • resumable_atstring | nullจำเป็น

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • top_sourcesarray
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • top_recipient_domainsarray
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • oneOf 2null
  • domainsarrayจำเป็น
  • แต่ละรายการobject
  • domain_idstringจำเป็น

    format: "uuid"

  • domainstringจำเป็น
  • product_idstring | nullจำเป็น

    format: "uuid"

  • statestringจำเป็น

    enum: "active", "paused"

  • holdไม่ได้ระบุจำเป็น
  • oneOf 1object
  • idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • scopestringจำเป็น

    enum: "mailbox", "lane", "domain", "workspace"

    ละส่วนที่ซ้อนลึกกว่านี้

  • statestringจำเป็น

    enum: "warning", "paused", "frozen"

    ละส่วนที่ซ้อนลึกกว่านี้

  • reasonstringจำเป็น

    bounce_rate, complaint_rate, core_lane_paused, multiple_lanes_paused, repeat_lane_pause, multiple_domains_paused, complaint_burst หรือ operator_review

    ละส่วนที่ซ้อนลึกกว่านี้

  • started_atstringจำเป็น

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • review_requiredbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • evidenceobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • resumeobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • top_sourcesarray

    ละส่วนที่ซ้อนลึกกว่านี้

  • top_recipient_domainsarray

    ละส่วนที่ซ้อนลึกกว่านี้

  • oneOf 2null
  • lanesarrayจำเป็น
  • แต่ละรายการobject
  • lane_kindstringจำเป็น

    enum: "mailbox", "product", "broadcast"

    ละส่วนที่ซ้อนลึกกว่านี้

  • sending_stream_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • from_domainstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • statestringจำเป็น

    enum: "active", "warning", "paused"

    ละส่วนที่ซ้อนลึกกว่านี้

  • probation_untilstring | nullจำเป็น

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • ratesobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • holdไม่ได้ระบุจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • mailboxesarrayจำเป็น
  • แต่ละรายการobject
  • mailbox_idstringจำเป็น

    format: "uuid"

  • addressstringจำเป็น
  • product_idstring | nullจำเป็น

    format: "uuid"

  • statestringจำเป็น

    enum: "paused"

  • holdobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • scopestringจำเป็น

    enum: "mailbox", "lane", "domain", "workspace"

  • statestringจำเป็น

    enum: "warning", "paused", "frozen"

  • reasonstringจำเป็น

    bounce_rate, complaint_rate, core_lane_paused, multiple_lanes_paused, repeat_lane_pause, multiple_domains_paused, complaint_burst หรือ operator_review

  • started_atstringจำเป็น

    format: "date-time"

  • review_requiredbooleanจำเป็น
  • evidenceobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • resumeobjectจำเป็น
  • self_servebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • blocked_reasonstring | nullจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • resumable_atstring | nullจำเป็น

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • top_sourcesarray
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • top_recipient_domainsarray
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • thresholdsobjectจำเป็น

    เกณฑ์ที่บังคับใช้ (src/sending/reputation-policy.ts)

  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/sending-health' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/sending-health/resume

เปิดช่องทาง โดเมน หรือกล่องจดหมายที่หยุดหนึ่งรายการหลังตรวจอัตราและแหล่งที่มา

เฉพาะผู้ดูแลพื้นที่ทำงาน อนุญาตหลังหยุดช่องทางหรือโดเมน 24 ชั่วโมงและหนึ่งครั้งต่อ 30 วันต่อโดเมน การหยุดซ้ำใน 30 วันหรือพื้นที่ทำงานที่ตรึงต้องตรวจทานโดย Banger และปฏิเสธด้วย 423 หลังเปิดต่อช่องทางส่งเป็นชุดเล็กลง 24 ชั่วโมง แคมเปญและเส้นทางที่พักไว้ดำเนินต่ออัตโนมัติ

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • hold_idstringจำเป็น

    การหยุด (hold.id) จาก getSendingHealth

    format: "uuid"

  • acknowledge_reputation_riskbooleanจำเป็น

    const: true

  • reasonstring

    สิ่งที่แก้ไข บันทึกในบันทึกตรวจสอบ

    maxLength: 500

การตอบกลับสำเร็จ 200

ยกเลิกการหยุดแล้ว

application/json

  • valueobject
  • dataobjectจำเป็น
  • resumedobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • scopestringจำเป็น

    enum: "mailbox", "lane", "domain", "workspace"

  • statestringจำเป็น

    enum: "warning", "paused", "frozen"

  • reasonstringจำเป็น

    bounce_rate, complaint_rate, core_lane_paused, multiple_lanes_paused, repeat_lane_pause, multiple_domains_paused, complaint_burst หรือ operator_review

  • started_atstringจำเป็น

    format: "date-time"

  • review_requiredbooleanจำเป็น
  • evidenceobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • resumeobjectจำเป็น
  • self_servebooleanจำเป็น
  • blocked_reasonstring | nullจำเป็น
  • resumable_atstring | nullจำเป็น

    format: "date-time"

  • top_sourcesarray
  • แต่ละรายการobject
  • signalstringจำเป็น

    enum: "hard_bounce", "complaint"

  • sourcestringจำเป็น
  • source_idstring | nullจำเป็น
  • countintegerจำเป็น
  • top_recipient_domainsarray
  • แต่ละรายการobject
  • signalstringจำเป็น

    enum: "hard_bounce", "complaint"

  • recipient_domainstringจำเป็น
  • countintegerจำเป็น
  • probation_untilstring | nullจำเป็น

    format: "date-time"

  • healthobjectจำเป็น
  • workspaceobjectจำเป็น
  • statestringจำเป็น

    enum: "active", "frozen"

  • holdไม่ได้ระบุจำเป็น
  • oneOf 1object
  • idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • scopestringจำเป็น

    enum: "mailbox", "lane", "domain", "workspace"

    ละส่วนที่ซ้อนลึกกว่านี้

  • statestringจำเป็น

    enum: "warning", "paused", "frozen"

    ละส่วนที่ซ้อนลึกกว่านี้

  • reasonstringจำเป็น

    bounce_rate, complaint_rate, core_lane_paused, multiple_lanes_paused, repeat_lane_pause, multiple_domains_paused, complaint_burst หรือ operator_review

    ละส่วนที่ซ้อนลึกกว่านี้

  • started_atstringจำเป็น

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • review_requiredbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • evidenceobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • resumeobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • top_sourcesarray

    ละส่วนที่ซ้อนลึกกว่านี้

  • top_recipient_domainsarray

    ละส่วนที่ซ้อนลึกกว่านี้

  • oneOf 2null
  • domainsarrayจำเป็น
  • แต่ละรายการobject
  • domain_idstringจำเป็น

    format: "uuid"

  • domainstringจำเป็น
  • product_idstring | nullจำเป็น

    format: "uuid"

  • statestringจำเป็น

    enum: "active", "paused"

  • holdไม่ได้ระบุจำเป็น
  • oneOf 1object

    ละส่วนที่ซ้อนลึกกว่านี้

  • oneOf 2null

    ละส่วนที่ซ้อนลึกกว่านี้

  • lanesarrayจำเป็น
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • mailboxesarrayจำเป็น
  • แต่ละรายการobject
  • mailbox_idstringจำเป็น

    format: "uuid"

  • addressstringจำเป็น
  • product_idstring | nullจำเป็น

    format: "uuid"

  • statestringจำเป็น

    enum: "paused"

  • holdobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • scopestringจำเป็น

    enum: "mailbox", "lane", "domain", "workspace"

    ละส่วนที่ซ้อนลึกกว่านี้

  • statestringจำเป็น

    enum: "warning", "paused", "frozen"

    ละส่วนที่ซ้อนลึกกว่านี้

  • reasonstringจำเป็น

    bounce_rate, complaint_rate, core_lane_paused, multiple_lanes_paused, repeat_lane_pause, multiple_domains_paused, complaint_burst หรือ operator_review

    ละส่วนที่ซ้อนลึกกว่านี้

  • started_atstringจำเป็น

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • review_requiredbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • evidenceobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • resumeobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • top_sourcesarray

    ละส่วนที่ซ้อนลึกกว่านี้

  • top_recipient_domainsarray

    ละส่วนที่ซ้อนลึกกว่านี้

  • thresholdsobjectจำเป็น

    เกณฑ์ที่บังคับใช้ (src/sending/reputation-policy.ts)

  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/sending-health/resume' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "hold_id": "00000000-0000-4000-8000-000000000001",
  "acknowledge_reputation_risk": true,
  "reason": "example"
}'

ช่องทางการส่ง

GET/v1/workspaces/{workspaceId}/sending-lanes

listEmailLanes

ช่องทางที่ตั้งและการกำหนดเส้นทางจริงของผู้ส่งเริ่มต้น ผลิตภัณฑ์และแคมเปญสืบทอดการเชื่อมต่อ Mail เริ่มต้นจนช่องทางแยกใช้งาน ช่องทางที่รอไม่แทนเส้นทางที่ทำงานอยู่

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

ช่องทางตามข้อมูลหลัก เส้นทางที่สืบทอด และผู้ส่งเริ่มต้นที่มีอยู่

application/json

  • valueobject
  • dataobjectจำเป็น
  • domainsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • domain_idstringจำเป็น

    format: "uuid"

  • product_idstringจำเป็น

    format: "uuid"

  • root_domainstringจำเป็น
  • parent_domainstring

    โดเมนบริษัทที่เก็บไว้เมื่อช่องทางใช้โดเมนย่อย

  • setup_modestring

    enum: "simple", "advanced"

  • domain_statusstringจำเป็น

    enum: "pending", "verified", "failed", "disabled", "deleting", "deleted"

  • lanesarrayจำเป็น

    minItems: 1 · maxItems: 3

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • created_atstring

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • kindstringจำเป็น

    enum: "mailbox", "product", "broadcast"

    ละส่วนที่ซ้อนลึกกว่านี้

  • display_namestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • from_domainstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • mail_from_domainstring | nullจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • inbound_domainstring | nullจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • route_providerstringจำเป็น

    enum: "banger", "resend"

    ละส่วนที่ซ้อนลึกกว่านี้

  • selected_provider_connection_idstring | nullจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • inbound_providerstring | nullจำเป็น

    enum: "banger", null

    ละส่วนที่ซ้อนลึกกว่านี้

  • statusstringจำเป็น

    enum: "pending", "active", "paused", "deleting", "deleted"

    ละส่วนที่ซ้อนลึกกว่านี้

  • status_reasonstring | nullจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • desired_revisionintegerจำเป็น

    minimum: 1

    ละส่วนที่ซ้อนลึกกว่านี้

  • observed_revisionintegerจำเป็น

    minimum: 0

    ละส่วนที่ซ้อนลึกกว่านี้

  • dns_readybooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_readybooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • inbound_readybooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • outbound_readybooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • banger_transport_readybooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • banger_mail_from_domainstring | nullจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • provisioning_job_idstring | nullจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • provisioning_statusstringจำเป็น

    enum: "pending", "provisioning", "waiting_dns", "active", "failed", "deleting", "deleted", "not_required"

    ละส่วนที่ซ้อนลึกกว่านี้

  • provisioning_error_codestring | null

    ละส่วนที่ซ้อนลึกกว่านี้

  • provisioning_next_attempt_atstring | null

    ละส่วนที่ซ้อนลึกกว่านี้

  • provisioning_last_checked_atstring | null

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_identity_statusstring | null

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_dkim_statusstring | null

    ละส่วนที่ซ้อนลึกกว่านี้

  • dns_recordsarrayจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • dns_recordsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • lane_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • providerstringจำเป็น

    enum: "banger", "resend"

    ละส่วนที่ซ้อนลึกกว่านี้

  • purposestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • typestringจำเป็น

    enum: "TXT", "MX", "CNAME"

    ละส่วนที่ซ้อนลึกกว่านี้

  • namestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • valuestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • priorityinteger | nullจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • requiredbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • statusstringจำเป็น

    enum: "pending", "verified", "error"

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_statusstringจำเป็น

    enum: "pending", "verified", "error", "not_applicable"

    ละส่วนที่ซ้อนลึกกว่านี้

  • first_observed_atstring | nullจำเป็น

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • last_checked_atstring | nullจำเป็น

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • errorobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_referencestring | nullจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • deletionobject | nullจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • job_idstringจำเป็น

    format: "uuid"

  • statusstringจำเป็น

    enum: "pending", "processing", "waiting_provider", "completed", "failed"

  • last_error_codestring | nullจำเป็น
  • cleanup_recordsarrayจำเป็น

    ระเบียน DNS ที่ผู้ใช้ลบได้ตามจริงหลังรื้อถอนเสร็จ

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • routingobjectจำเป็น
  • mailboxobjectจำเป็น
  • kindstringจำเป็น

    enum: "mailbox", "product", "broadcast"

  • lane_idstring | nullจำเป็น
  • domain_idstring | nullจำเป็น
  • from_domainstring | nullจำเป็น
  • sourcestringจำเป็น

    enum: "dedicated", "default_mail", "unavailable"

  • readybooleanจำเป็น
  • pending_lanesarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • from_domainstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • statusstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • productobjectจำเป็น
  • kindstringจำเป็น

    enum: "mailbox", "product", "broadcast"

  • lane_idstring | nullจำเป็น
  • domain_idstring | nullจำเป็น
  • from_domainstring | nullจำเป็น
  • sourcestringจำเป็น

    enum: "dedicated", "default_mail", "unavailable"

  • readybooleanจำเป็น
  • pending_lanesarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • from_domainstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • statusstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • broadcastobjectจำเป็น
  • kindstringจำเป็น

    enum: "mailbox", "product", "broadcast"

  • lane_idstring | nullจำเป็น
  • domain_idstring | nullจำเป็น
  • from_domainstring | nullจำเป็น
  • sourcestringจำเป็น

    enum: "dedicated", "default_mail", "unavailable"

  • readybooleanจำเป็น
  • pending_lanesarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • from_domainstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • statusstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • default_senderไม่ได้ระบุจำเป็น
  • oneOf 1object
  • idstringจำเป็น

    format: "uuid"

  • workspace_idstringจำเป็น

    format: "uuid"

  • product_idstring | null

    ผลิตภัณฑ์ (โปรเจกต์) ที่กล่องจดหมายเป็นของ ไคลเอนต์ใช้จัดกลุ่มกล่องจดหมายและสร้างลิงก์เว็บแอป

    format: "uuid"

  • domain_idstring | null

    format: "uuid"

  • addressstringจำเป็น

    ที่อยู่อีเมล หรือหมายเลขโทรศัพท์ในรูปแบบ E.164 (+15551234567) สำหรับกล่องจดหมายเข้า SMS

  • display_namestringจำเป็น
  • providerstringจำเป็น

    enum: "gmail", "smtp", "twilio"

  • channelstring

    email; sms สำหรับกล่องจดหมายเข้า SMS บน Twilio; whatsapp สำหรับกล่องจดหมายเข้า WhatsApp ซึ่งเป็นผู้ส่ง WhatsApp บน Twilio สำหรับบัญชี WhatsApp Business ของธุรกิจ

    enum: "email", "sms", "whatsapp"

  • sms_verificationobject | null

    สำหรับหมายเลขจาก Banger เป็นคำตอบของผู้ให้บริการเครือข่ายต่อการยืนยันหมายเลขโทรฟรี ส่งได้เมื่ออนุมัติแล้ว เป็น null สำหรับกล่องจดหมายอื่นทั้งหมด

  • statusstring

    enum: "pending_review", "in_review", "approved", "rejected"

  • reasonstring | null

    เหตุผลของผู้ให้บริการเครือข่ายเมื่อปฏิเสธ

  • statusstringจำเป็น

    enum: "pending", "active", "suspended", "reconnect_required", "disabled"

  • status_reasonstring | null
  • suspended_atstring | null
  • mailbox_kindstringจำเป็น

    enum: "domain", "starter"

  • oneOf 2null

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/sending-lanes' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001'
POST/v1/workspaces/{workspaceId}/sending-lanes

createEmailLane

เตรียมเฉพาะช่องทางที่ขอในชื่อโฮสต์ตรงตัว ตรวจความขัดแย้ง DNS อีกขณะล็อกโครงสร้างพื้นฐาน ใช้ช่องทางเดิมที่เหมือนกันซ้ำ ไม่ทับชื่อโฮสต์ที่มีผู้ใช้อยู่ ไม่เปลี่ยน DNS หรือสร้างช่องทางเพิ่ม

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

Idempotency-Key
header · จำเป็น
  • valuestring

    minLength: 16 · maxLength: 128

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • domainstringจำเป็น

    โดเมนบริษัทหลัก เช่น example.com

    minLength: 3 · maxLength: 253

  • from_domainstringจำเป็น

    โดเมนหลักหรือย่อยที่ต้องตั้งค่าตามจริง เช่น example.com หรือ news.example.com

    minLength: 3 · maxLength: 253

  • lanestringจำเป็น

    Mail คือกล่องจดหมาย ส่งและรับได้ ผลิตภัณฑ์และแคมเปญเป็นช่องทางส่งแยกที่ไม่บังคับ

    enum: "mailbox", "product", "broadcast"

  • root_dmarc_confirmedboolean

    ฟิลด์รองรับรุ่นเก่า การตั้งค่าคงนโยบายอีเมลเดิมและไม่ต้องยืนยัน

  • route_providersobject
  • productstring

    enum: "banger", "resend"

  • broadcaststring

    enum: "banger", "resend"

  • route_domainsobject
  • productstring
  • broadcaststring

การตอบกลับสำเร็จ 200

คืนช่องทางที่ตั้งค่าเดิมแบบ idempotent

application/json

  • valueobject
  • dataobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • domain_idstringจำเป็น

    format: "uuid"

  • product_idstringจำเป็น

    format: "uuid"

  • root_domainstringจำเป็น
  • parent_domainstring

    โดเมนบริษัทที่เก็บไว้เมื่อช่องทางใช้โดเมนย่อย

  • setup_modestring

    enum: "simple", "advanced"

  • domain_statusstringจำเป็น

    enum: "pending", "verified", "failed", "disabled", "deleting", "deleted"

  • lanesarrayจำเป็น

    minItems: 1 · maxItems: 3

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

  • created_atstring

    format: "date-time"

  • kindstringจำเป็น

    enum: "mailbox", "product", "broadcast"

  • display_namestringจำเป็น
  • from_domainstringจำเป็น
  • mail_from_domainstring | nullจำเป็น
  • inbound_domainstring | nullจำเป็น
  • route_providerstringจำเป็น

    enum: "banger", "resend"

  • selected_provider_connection_idstring | nullจำเป็น

    format: "uuid"

  • inbound_providerstring | nullจำเป็น

    enum: "banger", null

  • statusstringจำเป็น

    enum: "pending", "active", "paused", "deleting", "deleted"

  • status_reasonstring | nullจำเป็น
  • desired_revisionintegerจำเป็น

    minimum: 1

  • observed_revisionintegerจำเป็น

    minimum: 0

  • dns_readybooleanจำเป็น
  • provider_readybooleanจำเป็น
  • inbound_readybooleanจำเป็น
  • outbound_readybooleanจำเป็น
  • banger_transport_readybooleanจำเป็น
  • banger_mail_from_domainstring | nullจำเป็น
  • provisioning_job_idstring | nullจำเป็น

    format: "uuid"

  • provisioning_statusstringจำเป็น

    enum: "pending", "provisioning", "waiting_dns", "active", "failed", "deleting", "deleted", "not_required"

  • provisioning_error_codestring | null
  • provisioning_next_attempt_atstring | null
  • provisioning_last_checked_atstring | null
  • provider_identity_statusstring | null
  • provider_dkim_statusstring | null
  • dns_recordsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • lane_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • providerstringจำเป็น

    enum: "banger", "resend"

    ละส่วนที่ซ้อนลึกกว่านี้

  • purposestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • typestringจำเป็น

    enum: "TXT", "MX", "CNAME"

    ละส่วนที่ซ้อนลึกกว่านี้

  • namestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • valuestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • priorityinteger | nullจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • requiredbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • statusstringจำเป็น

    enum: "pending", "verified", "error"

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_statusstringจำเป็น

    enum: "pending", "verified", "error", "not_applicable"

    ละส่วนที่ซ้อนลึกกว่านี้

  • first_observed_atstring | nullจำเป็น

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • last_checked_atstring | nullจำเป็น

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • errorobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_referencestring | nullจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • dns_recordsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

  • lane_idstringจำเป็น

    format: "uuid"

  • providerstringจำเป็น

    enum: "banger", "resend"

  • purposestringจำเป็น
  • typestringจำเป็น

    enum: "TXT", "MX", "CNAME"

  • namestringจำเป็น
  • valuestringจำเป็น
  • priorityinteger | nullจำเป็น
  • requiredbooleanจำเป็น
  • statusstringจำเป็น

    enum: "pending", "verified", "error"

  • provider_statusstringจำเป็น

    enum: "pending", "verified", "error", "not_applicable"

  • first_observed_atstring | nullจำเป็น

    format: "date-time"

  • last_checked_atstring | nullจำเป็น

    format: "date-time"

  • errorobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • provider_referencestring | nullจำเป็น
  • deletionobject | nullจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • job_idstringจำเป็น

    format: "uuid"

  • statusstringจำเป็น

    enum: "pending", "processing", "waiting_provider", "completed", "failed"

  • last_error_codestring | nullจำเป็น
  • cleanup_recordsarrayจำเป็น

    ระเบียน DNS ที่ผู้ใช้ลบได้ตามจริงหลังรื้อถอนเสร็จ

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

  • lane_idstringจำเป็น

    format: "uuid"

  • providerstringจำเป็น

    enum: "banger", "resend"

  • purposestringจำเป็น
  • typestringจำเป็น

    enum: "TXT", "MX", "CNAME"

  • namestringจำเป็น
  • valuestringจำเป็น
  • priorityinteger | nullจำเป็น
  • requiredbooleanจำเป็น
  • statusstringจำเป็น

    enum: "pending", "verified", "error"

  • provider_statusstringจำเป็น

    enum: "pending", "verified", "error", "not_applicable"

  • first_observed_atstring | nullจำเป็น

    format: "date-time"

  • last_checked_atstring | nullจำเป็น

    format: "date-time"

  • errorobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • provider_referencestring | nullจำเป็น

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/sending-lanes' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001' \
  --header 'Idempotency-Key: examplexxxxxxxxx' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "domain": "example",
  "from_domain": "example",
  "lane": "mailbox",
  "root_dmarc_confirmed": true,
  "route_providers": {
    "product": "banger",
    "broadcast": "banger"
  },
  "route_domains": {
    "product": "example",
    "broadcast": "example"
  }
}'
POST/v1/workspaces/{workspaceId}/sending-lanes/plan

planEmailLane

ตรวจความพร้อมและ DNS ล่วงหน้าแบบอ่านอย่างเดียว ไม่สร้างทรัพยากร ระเบียนเว็บไซต์อย่างเดียวไม่ยึดชื่อโฮสต์อีเมล คืนการตั้งค่าเดิมและความขัดแย้งในชื่อที่ Banger ต้องเปลี่ยน เก็บการยืนยันส่งและนโยบาย DMARC เดิม

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • domainstringจำเป็น

    โดเมนบริษัทหลัก เช่น example.com

    minLength: 3 · maxLength: 253

  • from_domainstringจำเป็น

    โดเมนหลักหรือย่อยที่ต้องตั้งค่าตามจริง เช่น example.com หรือ news.example.com

    minLength: 3 · maxLength: 253

  • lanestringจำเป็น

    Mail คือกล่องจดหมาย ส่งและรับได้ ผลิตภัณฑ์และแคมเปญเป็นช่องทางส่งแยกที่ไม่บังคับ

    enum: "mailbox", "product", "broadcast"

  • root_dmarc_confirmedboolean

    ฟิลด์รองรับรุ่นเก่า การตั้งค่าคงนโยบายอีเมลเดิมและไม่ต้องยืนยัน

  • route_providersobject
  • productstring

    enum: "banger", "resend"

  • broadcaststring

    enum: "banger", "resend"

  • route_domainsobject
  • productstring
  • broadcaststring

การตอบกลับสำเร็จ 200

แผนตั้งค่าช่องทาง

application/json

  • valueobject
  • dataobjectจำเป็น
  • statusstringจำเป็น

    enum: "available", "existing", "occupied", "migration_required"

  • from_domainstringจำเป็น
  • lanestringจำเป็น

    enum: "mailbox", "product", "broadcast"

  • domain_idstring | nullจำเป็น
  • lane_idstring | nullจำเป็น
  • messagestringจำเป็น
  • requires_root_confirmationbooleanจำเป็น

    เป็น false เสมอ เก็บนโยบายอีเมลเดิม

  • existing_dnsarrayจำเป็น
  • แต่ละรายการobject
  • namestringจำเป็น
  • typestringจำเป็น
  • valuestringจำเป็น

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/sending-lanes/plan' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "domain": "example",
  "from_domain": "example",
  "lane": "mailbox",
  "root_dmarc_confirmed": true,
  "route_providers": {
    "product": "banger",
    "broadcast": "banger"
  },
  "route_domains": {
    "product": "example",
    "broadcast": "example"
  }
}'
POST/v1/workspaces/{workspaceId}/sending-lanes/migrations

requestEmailLaneMigration

ขอการตรวจทานย้ายระบบโดยคนที่มีอยู่สำหรับช่องทางนี้เท่านั้น เฉพาะผู้ดูแลที่เข้าสู่ระบบอนุญาตในส่วนการอนุมัติได้

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · จำเป็น

ผลิตภัณฑ์ที่ดำเนินการอย่างชัดเจน ต้องตรงกับข้อมูลรับรอง OAuth ที่จำกัดผลิตภัณฑ์

  • valuestring

    format: "uuid"

Idempotency-Key
header · จำเป็น
  • valuestring

    minLength: 16 · maxLength: 128

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • domainstringจำเป็น

    โดเมนบริษัทหลัก เช่น example.com

    minLength: 3 · maxLength: 253

  • from_domainstringจำเป็น

    โดเมนหลักหรือย่อยที่ต้องตั้งค่าตามจริง เช่น example.com หรือ news.example.com

    minLength: 3 · maxLength: 253

  • lanestringจำเป็น

    Mail คือกล่องจดหมาย ส่งและรับได้ ผลิตภัณฑ์และแคมเปญเป็นช่องทางส่งแยกที่ไม่บังคับ

    enum: "mailbox", "product", "broadcast"

  • root_dmarc_confirmedboolean

    ฟิลด์รองรับรุ่นเก่า การตั้งค่าคงนโยบายอีเมลเดิมและไม่ต้องยืนยัน

  • route_providersobject
  • productstring

    enum: "banger", "resend"

  • broadcaststring

    enum: "banger", "resend"

  • route_domainsobject
  • productstring
  • broadcaststring

การตอบกลับสำเร็จ 200

คืนการตรวจทานย้ายระบบที่มีอยู่

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • requested_by_actor_idstringจำเป็น
  • action_kindstringจำเป็น
  • summarystringจำเป็น
  • capability_scopesarrayจำเป็น
  • แต่ละรายการstring
  • resource_scopeobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมarray
  • แต่ละรายการstring
  • payloadobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • payload_sha256stringจำเป็น

    pattern: "^[0-9a-f]{64}$"

  • statusstringจำเป็น

    enum: "pending", "approved", "rejected", "cancelled", "expired"

  • missedbooleanจำเป็น
  • expires_atstringจำเป็น

    format: "date-time"

  • qa_automationobject | null

    หลักฐานแหล่งที่มาของระบบอัตโนมัติ QA โดยเฉพาะที่เซิร์ฟเวอร์บันทึกไว้ ไม่ถือเป็นหลักฐานว่ามีคนตรวจทานเพย์โหลด ระบบจะตรวจสอบการทำงานและสิทธิ์อนุญาตส่วนกลางอีกครั้งขณะดำเนินการ

  • kindstring

    enum: "dedicated_qa_automation"

  • authorization_referencestring
  • run_idstring
  • operation_keystring
  • recipientsarray
  • แต่ละรายการstring

    format: "email"

  • approval_sha256string
  • resource_sha256string
  • decided_by_actor_idstring | null
  • decision_reasonstring | null
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • decided_atstring | null

    format: "date-time"

  • execution_job_idstring

    format: "uuid"

  • reviewobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • dispositionstringจำเป็น

    enum: "automatic", "human_required"

  • recipient_countinteger | nullจำเป็น

    minimum: 0

  • reasonsarrayจำเป็น
  • แต่ละรายการstring
  • checksarrayจำเป็น
  • แต่ละรายการstring

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/sending-lanes/migrations' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001' \
  --header 'Idempotency-Key: examplexxxxxxxxx' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "domain": "example",
  "from_domain": "example",
  "lane": "mailbox",
  "root_dmarc_confirmed": true,
  "route_providers": {
    "product": "banger",
    "broadcast": "banger"
  },
  "route_domains": {
    "product": "example",
    "broadcast": "example"
  }
}'

เทมเพลตเริ่มต้น

GET/v1/workspaces/{workspaceId}/starters

listStarters

เลย์เอาต์เริ่มต้นที่เรนเดอร์ตามแบรนด์ผลิตภัณฑ์ แต่ละรายการมีบรีฟ (งาน เวลาส่ง ตัวชี้วัด กลไก หัวเรื่องที่ทดสอบ) สล็อต และเนื้อหาเริ่มต้น รายการแสดงกระชับและเริ่มต้นตามประเภทธุรกิจของผลิตภัณฑ์ ขอหนึ่งเทมเพลตเริ่มต้นด้วย id เพื่อรับ body_html

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

id
query

หนึ่งเทมเพลตเริ่มต้น มี body_html

  • valuestring
business
query
  • valuestring

    enum: "all", "saas", "shop", "creator", "services", "local", "community"

stage
query
  • valuestring

    enum: "onboarding", "activation", "revenue", "retention", "publish", "account"

category
query
  • valuestring

    enum: "product", "lifecycle", "broadcast"

include_html
query
  • valueboolean
style
query

รูปแบบภาพ ค่าเริ่มต้นคือ email_style ของแบรนด์

  • valuestring

    enum: "brand", "clarity", "editorial", "luxe", "material", "playful", "bold", "plain"

locale
query

ภาษาข้อความในระบบและป้ายแกลเลอรี ค่าเริ่มต้น en-US

  • valuestring

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น
  • versionintegerจำเป็น
  • categorystringจำเป็น
  • message_kindstringจำเป็น
  • familystringจำเป็น
  • stagestringจำเป็น
  • businessesarrayจำเป็น
  • แต่ละรายการstring
  • namestringจำเป็น
  • descriptionstringจำเป็น
  • subjectstringจำเป็น
  • body_textstringจำเป็น
  • briefobjectจำเป็น
  • jobstringจำเป็น
  • send_whenstringจำเป็น
  • metricstringจำเป็น
  • mechanicstringจำเป็น
  • subject_variantsarrayจำเป็น
  • แต่ละรายการstring
  • keeparray
  • แต่ละรายการstring
  • avoidarray
  • แต่ละรายการstring
  • imageryobject
  • defaultstringจำเป็น
  • slotstring
  • photo_ideastring
  • slotsarrayจำเป็น
  • แต่ละรายการobject
  • keystringจำเป็น

    pattern: "^[A-Za-z0-9_$.-]{1,200}$"

  • labelstring

    maxLength: 120

  • typestring

    enum: "text", "paragraph", "url", "image"

  • helpstring

    maxLength: 300

  • contentobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมstring
  • body_htmlstring
  • businessstringจำเป็น
  • stylestringจำเป็น
  • businessesarrayจำเป็น
  • แต่ละรายการobject
  • keystring
  • labelstring
  • hintstring
  • stagesarrayจำเป็น
  • แต่ละรายการobject
  • keystring
  • labelstring
  • stylesarrayจำเป็น
  • แต่ละรายการobject
  • keystringจำเป็น
  • labelstringจำเป็น
  • descriptionstringจำเป็น

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/starters?id=example&business=all&stage=onboarding&category=product&include_html=true&style=brand&locale=example' \
  --header "Authorization: Bearer $BANGER_API_KEY"

การสนับสนุน

POST/v1/workspaces/{workspaceId}/support/messages

ส่งข้อความถึงฝ่ายสนับสนุน Banger

ส่งข้อความทางอีเมลไป support@team.bangermail.com โดยตั้ง Reply-To เป็นที่อยู่ยืนยันของคนที่เข้าสู่ระบบ (คนของสิทธิ์ OAuth หรือเจ้าของพื้นที่ทำงานเมื่อใช้คีย์ API คงที่) แนบพื้นที่ทำงาน บทบาท และแผน สิบข้อความต่อวันต่อคน

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • messagestringจำเป็น

    minLength: 1 · maxLength: 5000

  • contextobject

    ข้อมูลที่ไคลเอนต์ทราบเกี่ยวกับตำแหน่งที่บุคคลอยู่ ทุกฟิลด์ไม่บังคับและตัดช่องว่างขอบ

  • surfacestring

    maxLength: 120

  • app_releasestring

    maxLength: 64

  • browserstring

    maxLength: 300

  • localestring

    maxLength: 35

  • recent_errorsarray

    maxItems: 5

  • แต่ละรายการstring

    maxLength: 300

การตอบกลับสำเร็จ 201

ส่งข้อความถึงฝ่ายสนับสนุนแล้ว

application/json

  • valueobject
  • dataobject
  • statusstringจำเป็น

    enum: "sent"

  • reply_tostringจำเป็น

    format: "email"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/support/messages' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "message": "example",
  "context": {
    "surface": "example",
    "app_release": "example",
    "browser": "example",
    "locale": "example",
    "recent_errors": [
      "example"
    ]
  }
}'

รายการระงับ

GET/v1/workspaces/{workspaceId}/suppressions

listSuppressions

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject
  • email_hashstringจำเป็น
  • reasonstringจำเป็น

    enum: "unsubscribe", "hard_bounce", "complaint", "manual"

  • source_idstring | nullจำเป็น
  • created_atstringจำเป็น

    format: "date-time"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/suppressions' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/suppressions

createSuppression

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • emailstringจำเป็น

    minLength: 3 · maxLength: 320

  • reasonstring

    default: "manual" · enum: "unsubscribe", "hard_bounce", "complaint", "manual"

  • source_idstring

    maxLength: 500

การตอบกลับสำเร็จ 201

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • email_hashstringจำเป็น
  • reasonstringจำเป็น

    enum: "unsubscribe", "hard_bounce", "complaint", "manual"

  • source_idstring | nullจำเป็น
  • created_atstringจำเป็น

    format: "date-time"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/suppressions' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "email": "example",
  "reason": "manual",
  "source_id": "example"
}'
DELETE/v1/workspaces/{workspaceId}/suppressions/{emailHash}

deleteSuppression

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

emailHash
path · จำเป็น
  • valuestring

    pattern: "^[0-9a-f]{64}$"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 204

นำการระงับออกแล้ว

ไม่มีเนื้อหาการตอบกลับ

ตัวอย่าง curl

curl --request DELETE --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/suppressions/{emailHash}' \
  --header "Authorization: Bearer $BANGER_API_KEY"

ข้อมูลหน้าจอ

GET/v1/workspaces/{workspaceId}/surface-data/{surface}

โหลดหน้าจอผลิตภัณฑ์ผ่านธุรกรรมฐานข้อมูลที่อนุญาตหนึ่งรายการ

คืนข้อมูลแสดงครั้งแรกที่จำกัดสำหรับหนึ่งหน้าจอในขอบเขตผลิตภัณฑ์ คำขอตรวจสมาชิกพื้นที่ทำงานและผลิตภัณฑ์ที่เลือกในธุรกรรมแยกผู้เช่าเดียวกับคิวรีเอนด์พอยต์ หน้าจอเว็บฮุกมี event_definitions (ชื่อทริกเกอร์และเป้าหมายเส้นทางรวมฉบับร่าง), event_stats (จำนวนจากรายการรับขาเข้าที่บันทึก) และ receipts (ใหม่ก่อน สูงสุด 51 แถว) ไคลเอนต์แสดง 50 รายการและใช้แถวเพิ่มตรวจหน้าถัดไป เว็บฮุกขาเข้ามี public_url ดึงข้อมูลรับรองแยกต่างหาก เมทาดาทาการรับไม่มีเพย์โหลดดิบหรือป้าย test/live ในอดีต outgoing_event_types มีแค็ตตาล็อกคงที่ของเหตุการณ์ Banger อัตโนมัติและเหตุการณ์ webhook.test แบบทำเอง โดยไม่ขึ้นกับเอนด์พอยต์ที่ตั้ง

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

surface
path · จำเป็น
  • valuestring

    enum: "home", "product", "broadcasts", "audience", "domains", "mailboxes", "journeys", "deliverability", "api_keys", "webhooks", "approvals", "connections", "logs"

limit
query
  • valueinteger

    minimum: 1 · maximum: 100 · default: 50

webhook_id
query

ในหน้าจอเว็บฮุก จำกัดประวัติการรับและการส่งขาออกเฉพาะเอนด์พอยต์นี้

  • valuestring

    format: "uuid"

event_type
query

ในหน้าจอเว็บฮุก กรองการรับขาเข้าตามชื่อเหตุการณ์ตรงตัว คำจำกัดความแค็ตตาล็อกและยอดรวมยังครอบคลุมทั้งผลิตภัณฑ์

  • valuestring

    maxLength: 120

receipt_before
query

เคอร์เซอร์รายการรับขาเข้า เป็นออบเจ็กต์ JSON มี receivedAt, endpointId และ eventId จากแถวที่แสดงสุดท้าย เก็บ receivedAt ตรงตัวเพื่อรักษาความละเอียดต่ำกว่ามิลลิวินาที เข้ารหัส URL ค่า JSON

  • valuestring

    maxLength: 4096

mailbox_id
query
  • valuestring

    format: "uuid"

approval_id
query
  • valuestring

    format: "uuid"

label_id
query
  • valuestring

    format: "uuid"

view
query
  • valuestring

    enum: "inbox", "sent", "drafts", "archive", "trash", "spam", "all"

since
query
  • valuestring

    format: "date-time"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

ข้อมูลหน้าจอแสดงครั้งแรกตามขอบเขตผลิตภัณฑ์

application/json

  • valueobject
  • dataobjectจำเป็น

    ข้อมูลรวมเฉพาะหน้าจอที่เลือกด้วย surface และพารามิเตอร์คิวรี คีย์และภาพทรัพยากรซ้อนต่างตาม surface (home, product, broadcasts, audience, domains, mailboxes, journeys, deliverability, api_keys, webhooks, approvals, connections, logs)

  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/surface-data/{surface}?limit=50&webhook_id=00000000-0000-4000-8000-000000000001&event_type=example&receipt_before=example&mailbox_id=00000000-0000-4000-8000-000000000001&approval_id=00000000-0000-4000-8000-000000000001&label_id=00000000-0000-4000-8000-000000000001&view=inbox&since=2026-01-01T00%3A00%3A00Z' \
  --header "Authorization: Bearer $BANGER_API_KEY"

การดำเนินการ Triage

GET/v1/workspaces/{workspaceId}/triage-actions

listTriageActions

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

mailbox_id
query
  • valuestring

    format: "uuid"

thread_id
query
  • valuestring

    format: "uuid"

rule_id
query
  • valuestring

    format: "uuid"

limit
query
  • valueinteger

    minimum: 1 · maximum: 100 · default: 50

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • mailbox_idstringจำเป็น

    format: "uuid"

  • thread_idstringจำเป็น

    format: "uuid"

  • rule_idstringจำเป็น

    format: "uuid"

  • rule_namestringจำเป็น
  • auto_set_for_label_idstring | nullจำเป็น

    format: "uuid"

  • actionstringจำเป็น
  • label_idstring | nullจำเป็น

    format: "uuid"

  • label_namestring | nullจำเป็น
  • label_emojistring | nullจำเป็น
  • thread_subjectstringจำเป็น
  • created_atstringจำเป็น

    format: "date-time"

  • undone_atstring | nullจำเป็น

    format: "date-time"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/triage-actions?mailbox_id=00000000-0000-4000-8000-000000000001&thread_id=00000000-0000-4000-8000-000000000001&rule_id=00000000-0000-4000-8000-000000000001&limit=50' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/triage-actions/{actionId}/undo

undoTriageAction

ย้อนหนึ่งการดำเนินการ Triage ค่าเริ่มต้นสอนกฎด้วยว่าอีเมลไม่ตรง ตั้ง teach_rule เป็น false เพื่อย้อนปกติ

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

actionId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • teach_ruleboolean

    สอนกฎด้วยว่าอีเมลนี้ไม่ตรง False ย้อนการดำเนินการโดยไม่ให้ความคิดเห็น

    default: true

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • undonebooleanจำเป็น

    const: true

  • command_idstring | nullจำเป็น

    format: "uuid"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/triage-actions/{actionId}/undo' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "teach_rule": true
}'

กฎ Triage

GET/v1/workspaces/{workspaceId}/triage-rules

listTriageRules

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

mailbox_id
query
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • mailbox_idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • auto_set_for_label_idstring | nullจำเป็น

    format: "uuid"

  • descriptionstring | nullจำเป็น
  • exact_conditionsobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • fromarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

  • toarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

  • subject_containsarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

  • has_wordsarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

  • excludes_wordsarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

  • has_attachmentboolean
  • has_label_idsarrayจำเป็น
  • แต่ละรายการstring

    format: "uuid"

  • actionsarrayจำเป็น
  • แต่ละรายการobject
  • typestringจำเป็น

    enum: "apply_label", "archive", "mark_read", "star"

  • label_idstring

    format: "uuid"

  • enabledbooleanจำเป็น
  • versionintegerจำเป็น
  • error_codestring | nullจำเป็น
  • example_countintegerจำเป็น
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/triage-rules?mailbox_id=00000000-0000-4000-8000-000000000001' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/triage-rules

createTriageRule

สร้างกฎ Triage สำหรับจดหมายขาเข้า (ทุกแผน กฎที่เปิดนับในจำนวนแผน) When = description (Jev ประเมิน) และ/หรือ exact_conditions และ/หรือ has_label_ids; Then = actions

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

Idempotency-Key
header

คีย์ลองซ้ำที่ไม่บังคับ ใช้เมื่อเลือกผลิตภัณฑ์

  • valuestring

    minLength: 1 · maxLength: 256

เนื้อหาคำขอ จำเป็น

application/json

  • valueไม่ได้ระบุ
  • allOf 1object
  • namestring

    maxLength: 120

  • descriptionstring | null

    maxLength: 2000

  • exact_conditionsobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • fromarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

  • toarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

  • subject_containsarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

  • has_wordsarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

  • excludes_wordsarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

  • has_attachmentboolean
  • has_label_idsarray

    maxItems: 50

  • แต่ละรายการstring

    format: "uuid"

  • actionsarray

    minItems: 1 · maxItems: 8

  • แต่ละรายการobject
  • typestringจำเป็น

    enum: "apply_label", "archive", "mark_read", "star"

  • label_idstring

    format: "uuid"

  • enabledboolean
  • allOf 2object
  • mailbox_idstringจำเป็น

    format: "uuid"

การตอบกลับสำเร็จ 201

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • mailbox_idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • auto_set_for_label_idstring | nullจำเป็น

    format: "uuid"

  • descriptionstring | nullจำเป็น
  • exact_conditionsobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • fromarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

  • toarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

  • subject_containsarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

  • has_wordsarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

  • excludes_wordsarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

  • has_attachmentboolean
  • has_label_idsarrayจำเป็น
  • แต่ละรายการstring

    format: "uuid"

  • actionsarrayจำเป็น
  • แต่ละรายการobject
  • typestringจำเป็น

    enum: "apply_label", "archive", "mark_read", "star"

  • label_idstring

    format: "uuid"

  • enabledbooleanจำเป็น
  • versionintegerจำเป็น
  • error_codestring | nullจำเป็น
  • example_countintegerจำเป็น
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/triage-rules' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Idempotency-Key: example' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "name": "example",
  "description": "example",
  "exact_conditions": {
    "from": [
      "example"
    ],
    "to": [
      "example"
    ],
    "subject_contains": [
      "example"
    ],
    "has_words": [
      "example"
    ],
    "excludes_words": [
      "example"
    ],
    "has_attachment": true
  },
  "has_label_ids": [
    "00000000-0000-4000-8000-000000000001"
  ],
  "actions": [
    {
      "type": "apply_label",
      "label_id": "00000000-0000-4000-8000-000000000001"
    }
  ],
  "enabled": true,
  "mailbox_id": "00000000-0000-4000-8000-000000000001"
}'
POST/v1/workspaces/{workspaceId}/triage-rules/preview

previewTriageRule

เธรดล่าสุดที่ When จะจับคู่ อ่านอย่างเดียว ไม่คืนคะแนน

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • mailbox_idstringจำเป็น

    format: "uuid"

  • rule_idstring

    format: "uuid"

  • descriptionstring

    maxLength: 2000

  • exact_conditionsobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • fromarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

  • toarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

  • subject_containsarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

  • has_wordsarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

  • excludes_wordsarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

  • has_attachmentboolean
  • has_label_idsarray

    maxItems: 50

  • แต่ละรายการstring

    format: "uuid"

  • limitinteger

    minimum: 1 · maximum: 200

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • scannedintegerจำเป็น
  • matchesarrayจำเป็น
  • แต่ละรายการobject
  • thread_idstringจำเป็น

    format: "uuid"

  • subjectstringจำเป็น
  • fromstring
  • received_atstring

    format: "date-time"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/triage-rules/preview' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "mailbox_id": "00000000-0000-4000-8000-000000000001",
  "rule_id": "00000000-0000-4000-8000-000000000001",
  "description": "example",
  "exact_conditions": {
    "from": [
      "example"
    ],
    "to": [
      "example"
    ],
    "subject_contains": [
      "example"
    ],
    "has_words": [
      "example"
    ],
    "excludes_words": [
      "example"
    ],
    "has_attachment": true
  },
  "has_label_ids": [
    "00000000-0000-4000-8000-000000000001"
  ],
  "limit": 1
}'
POST/v1/workspaces/{workspaceId}/triage-rules/run-past-mail

runTriageOnPastMail

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • mailbox_idstringจำเป็น

    format: "uuid"

  • rule_idsarray

    maxItems: 50

  • แต่ละรายการstring

    format: "uuid"

  • daysinteger

    minimum: 1 · maximum: 90

  • include_other_actionsboolean

    เก็บถาวรด้วย

การตอบกลับสำเร็จ 202

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • queued_threadsintegerจำเป็น
  • daysintegerจำเป็น
  • labels_onlybooleanจำเป็น

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/triage-rules/run-past-mail' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "mailbox_id": "00000000-0000-4000-8000-000000000001",
  "rule_ids": [
    "00000000-0000-4000-8000-000000000001"
  ],
  "days": 1,
  "include_other_actions": true
}'
GET/v1/workspaces/{workspaceId}/triage-rules/{ruleId}

getTriageRule

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

ruleId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • mailbox_idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • auto_set_for_label_idstring | nullจำเป็น

    format: "uuid"

  • descriptionstring | nullจำเป็น
  • exact_conditionsobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • fromarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

  • toarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

  • subject_containsarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

  • has_wordsarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

  • excludes_wordsarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

  • has_attachmentboolean
  • has_label_idsarrayจำเป็น
  • แต่ละรายการstring

    format: "uuid"

  • actionsarrayจำเป็น
  • แต่ละรายการobject
  • typestringจำเป็น

    enum: "apply_label", "archive", "mark_read", "star"

  • label_idstring

    format: "uuid"

  • enabledbooleanจำเป็น
  • versionintegerจำเป็น
  • error_codestring | nullจำเป็น
  • example_countintegerจำเป็น
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/triage-rules/{ruleId}' \
  --header "Authorization: Bearer $BANGER_API_KEY"
PATCH/v1/workspaces/{workspaceId}/triage-rules/{ruleId}

updateTriageRule

แก้กฎติดป้ายอัตโนมัติได้ผ่าน updateLabel เท่านั้น

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

ruleId
path · จำเป็น
  • valuestring

    format: "uuid"

Idempotency-Key
header

คีย์ลองซ้ำที่ไม่บังคับ ใช้เมื่อเลือกผลิตภัณฑ์

  • valuestring

    minLength: 1 · maxLength: 256

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • namestring

    maxLength: 120

  • descriptionstring | null

    maxLength: 2000

  • exact_conditionsobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • fromarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

  • toarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

  • subject_containsarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

  • has_wordsarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

  • excludes_wordsarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

  • has_attachmentboolean
  • has_label_idsarray

    maxItems: 50

  • แต่ละรายการstring

    format: "uuid"

  • actionsarray

    minItems: 1 · maxItems: 8

  • แต่ละรายการobject
  • typestringจำเป็น

    enum: "apply_label", "archive", "mark_read", "star"

  • label_idstring

    format: "uuid"

  • enabledboolean

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • mailbox_idstringจำเป็น

    format: "uuid"

  • namestringจำเป็น
  • auto_set_for_label_idstring | nullจำเป็น

    format: "uuid"

  • descriptionstring | nullจำเป็น
  • exact_conditionsobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • fromarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

  • toarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

  • subject_containsarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

  • has_wordsarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

  • excludes_wordsarray

    maxItems: 50

  • แต่ละรายการstring

    maxLength: 320

  • has_attachmentboolean
  • has_label_idsarrayจำเป็น
  • แต่ละรายการstring

    format: "uuid"

  • actionsarrayจำเป็น
  • แต่ละรายการobject
  • typestringจำเป็น

    enum: "apply_label", "archive", "mark_read", "star"

  • label_idstring

    format: "uuid"

  • enabledbooleanจำเป็น
  • versionintegerจำเป็น
  • error_codestring | nullจำเป็น
  • example_countintegerจำเป็น
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

ตัวอย่าง curl

curl --request PATCH --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/triage-rules/{ruleId}' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Idempotency-Key: example' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "name": "example",
  "description": "example",
  "exact_conditions": {
    "from": [
      "example"
    ],
    "to": [
      "example"
    ],
    "subject_contains": [
      "example"
    ],
    "has_words": [
      "example"
    ],
    "excludes_words": [
      "example"
    ],
    "has_attachment": true
  },
  "has_label_ids": [
    "00000000-0000-4000-8000-000000000001"
  ],
  "actions": [
    {
      "type": "apply_label",
      "label_id": "00000000-0000-4000-8000-000000000001"
    }
  ],
  "enabled": true
}'
DELETE/v1/workspaces/{workspaceId}/triage-rules/{ruleId}

deleteTriageRule

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

ruleId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 204

ลบกฎ Triage แล้ว

ไม่มีเนื้อหาการตอบกลับ

ตัวอย่าง curl

curl --request DELETE --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/triage-rules/{ruleId}' \
  --header "Authorization: Bearer $BANGER_API_KEY"

การใช้ Triage

GET/v1/workspaces/{workspaceId}/triage-usage

getTriageUsage

การใช้ Triage ของพื้นที่ทำงานในเดือนปฏิทิน UTC นี้เทียบจำนวนแผน เวลาที่รีเซ็ต และแผนถูกที่สุดที่ตรวจอีเมลได้มากกว่า เมื่อเกินจำนวนรายเดือน จดหมายใหม่ไม่ถูกจัดจนรีเซ็ต

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

การตอบกลับสำเร็จ

application/json

  • valueobject
  • dataobjectจำเป็น
  • unlimitedbooleanจำเป็น

    ยกเลิกขีดจำกัดทั้งสองสำหรับพื้นที่ทำงานนี้

  • rule_limitintegerจำเป็น

    จำนวนกฎ Triage และติดป้ายอัตโนมัติที่เปิดพร้อมกันได้

  • rules_enabledintegerจำเป็น
  • run_limitintegerจำเป็น

    อีเมลที่ Triage ตรวจต่อเดือนปฏิทิน UTC

  • runs_this_monthintegerจำเป็น
  • resets_atstringจำเป็น

    เวลาแรกของเดือนปฏิทิน UTC ถัดไป

    format: "date-time"

  • plan_keystringจำเป็น

    แผนปัจจุบันของพื้นที่ทำงาน เป็นแผนฟรีหากไม่มี

  • next_planไม่ได้ระบุจำเป็น

    แผนที่ถูกที่สุดเหนือแผนปัจจุบันซึ่งตรวจอีเมลต่อเดือนได้มากกว่า เป็น null หากไม่มีหรือไม่จำกัด

  • oneOf 1null
  • oneOf 2object
  • plan_keystringจำเป็น
  • labelstringจำเป็น
  • monthly_price_usdnumberจำเป็น

    ราคารายเดือนที่แสดง (เรียกเก็บรายปี / 12)

  • triage_run_limitintegerจำเป็น

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/triage-usage' \
  --header "Authorization: Bearer $BANGER_API_KEY"

Whatsapp templates

GET/v1/workspaces/{workspaceId}/whatsapp-templates

The project's WhatsApp templates, newest first, each with where Meta's review of it stands. With mailbox_id, the ones that WhatsApp inbox can send. It needs the customers workspace feature.

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

mailbox_id
query

A WhatsApp inbox of the project. The answer is then the templates of its Twilio account.

  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

The templates.

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject

    A WhatsApp template: what a Journey's WhatsApp step and a WhatsApp Broadcast send. It is held in the Content API of a Twilio account, and sent only while Meta's review of it stands at approved.

  • idstringจำเป็น

    format: "uuid"

  • workspace_idstringจำเป็น

    format: "uuid"

  • product_idstringจำเป็น

    format: "uuid"

  • mailbox_idsarrayจำเป็น

    The WhatsApp inboxes that can send it: the project's inboxes on the Twilio account that holds it, oldest first. Empty while the project has no inbox on that account.

  • แต่ละรายการstring

    format: "uuid"

  • namestringจำเป็น

    Meta's name for it: lowercase letters, digits and underscores, once per language in the account.

  • languagestringจำเป็น

    One of WhatsApp's language codes, such as en, pt_BR or es_MX.

  • categorystringจำเป็น

    Meta's category for it, which Meta can change after its review.

    enum: "marketing", "utility"

  • bodystringจำเป็น

    The text as it was written, with {{field}} and {{field|fallback}}.

  • fieldsarrayจำเป็น

    The text's fields, in the order they first appear.

  • แต่ละรายการobject
  • keystringจำเป็น

    Its number in the text Twilio and Meta hold: 1, 2 and so on.

  • fieldstringจำเป็น

    The contact field it is filled from, as an email names it.

  • fallbackstring

    What stands in for a contact without the field. Absent when the field is required of each recipient.

  • examplestringจำเป็น

    What Meta's reviewer reads in its place.

  • buttonsarrayจำเป็น

    Quick replies. A marketing template ends with the stop button, whose id is banger_stop.

  • แต่ละรายการobject
  • idstringจำเป็น
  • titlestringจำเป็น
  • content_sidstringจำเป็น

    The Twilio Content resource that holds it.

  • statusstringจำเป็น

    Where Meta's review stands. Only an approved template is sent. Meta pauses or disables a template people block or report.

    enum: "pending", "approved", "rejected", "paused", "disabled"

  • status_reasonstring | nullจำเป็น

    Meta's reason for a rejection, or whatsapp_template_not_in_twilio when the template is disabled because the Twilio account no longer has it.

  • submittedbooleanจำเป็น

    Whether Twilio is known to have taken it for Meta's review.

  • status_checked_atstring | nullจำเป็น

    When Twilio was last asked where the review stands.

  • created_atstringจำเป็น
  • updated_atstringจำเป็น

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/whatsapp-templates?mailbox_id=00000000-0000-4000-8000-000000000001' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/whatsapp-templates

Write a WhatsApp template and send it to Meta's review. WhatsApp lets a business start a conversation only with a template Meta approved. Banger checks the text, makes it in the Content API of the inbox's Twilio account, keeps it, and asks Twilio to send it to Meta. The template then belongs to that Twilio account: every WhatsApp inbox of the project on it can send it. It comes back pending; read it again until it is approved or rejected. A template can't be changed afterwards. It needs the customers workspace feature.

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • mailbox_idstringจำเป็น

    The WhatsApp inbox whose Twilio account holds the template.

    format: "uuid"

  • namestringจำเป็น

    Lowercase letters, digits and underscores, such as order_shipped. Once per language in the account. WhatsApp keeps a deleted template's name unusable for 30 days.

    maxLength: 512 · pattern: "^[a-z0-9_]+$"

  • languagestringจำเป็น

    One of WhatsApp's language codes, such as en, pt_BR or es_MX. It must be the language the text is in.

    pattern: "^[a-z]{2,3}(_[A-Z]{2})?$"

  • categorystringจำเป็น

    utility is for a transaction the person started, such as an order or a booking. Everything else is marketing. Meta can recategorize a template.

    enum: "marketing", "utility"

  • bodystringจำเป็น

    The text, with the fields an email takes: {{first_name}}, or {{first_name|there}} with a fallback for a contact without one. At most 1024 characters once each field is counted as its number ({{1}}). WhatsApp rejects a text that starts or ends with a field, has two fields with no word between them, or has fewer than 2n+1 words around n fields.

    minLength: 1 · maxLength: 8000

  • examplesobject

    An example of each field in the text, by field name, for Meta's reviewer. A field's fallback is its example when none is given.

  • พร็อพเพอร์ตีเพิ่มเติมstring

    maxLength: 200

  • buttonsarray

    Quick-reply buttons under the text. At most 10, the stop button among them.

    maxItems: 10

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • titlestringจำเป็น

    What the button says.

    minLength: 1 · maxLength: 20

  • idstringจำเป็น

    Never shown, and returned with the person's tap. Letters, digits, dots, colons, hyphens and underscores.

    minLength: 1 · maxLength: 200

  • stop_button_titlestring

    The words of a marketing template's stop button, in the template's language. Required for marketing, and refused for utility. A tap opts the person out of WhatsApp marketing, as their STOP would.

    minLength: 1 · maxLength: 20

การตอบกลับสำเร็จ 201

The template, pending Meta's review. submitted is false when Twilio's answer to the submission was lost: the hourly task then finds out, and submits it if Twilio hadn't taken it.

application/json

  • valueobject
  • dataobjectจำเป็น

    A WhatsApp template: what a Journey's WhatsApp step and a WhatsApp Broadcast send. It is held in the Content API of a Twilio account, and sent only while Meta's review of it stands at approved.

  • idstringจำเป็น

    format: "uuid"

  • workspace_idstringจำเป็น

    format: "uuid"

  • product_idstringจำเป็น

    format: "uuid"

  • mailbox_idsarrayจำเป็น

    The WhatsApp inboxes that can send it: the project's inboxes on the Twilio account that holds it, oldest first. Empty while the project has no inbox on that account.

  • แต่ละรายการstring

    format: "uuid"

  • namestringจำเป็น

    Meta's name for it: lowercase letters, digits and underscores, once per language in the account.

  • languagestringจำเป็น

    One of WhatsApp's language codes, such as en, pt_BR or es_MX.

  • categorystringจำเป็น

    Meta's category for it, which Meta can change after its review.

    enum: "marketing", "utility"

  • bodystringจำเป็น

    The text as it was written, with {{field}} and {{field|fallback}}.

  • fieldsarrayจำเป็น

    The text's fields, in the order they first appear.

  • แต่ละรายการobject
  • keystringจำเป็น

    Its number in the text Twilio and Meta hold: 1, 2 and so on.

  • fieldstringจำเป็น

    The contact field it is filled from, as an email names it.

  • fallbackstring

    What stands in for a contact without the field. Absent when the field is required of each recipient.

  • examplestringจำเป็น

    What Meta's reviewer reads in its place.

  • buttonsarrayจำเป็น

    Quick replies. A marketing template ends with the stop button, whose id is banger_stop.

  • แต่ละรายการobject
  • idstringจำเป็น
  • titlestringจำเป็น
  • content_sidstringจำเป็น

    The Twilio Content resource that holds it.

  • statusstringจำเป็น

    Where Meta's review stands. Only an approved template is sent. Meta pauses or disables a template people block or report.

    enum: "pending", "approved", "rejected", "paused", "disabled"

  • status_reasonstring | nullจำเป็น

    Meta's reason for a rejection, or whatsapp_template_not_in_twilio when the template is disabled because the Twilio account no longer has it.

  • submittedbooleanจำเป็น

    Whether Twilio is known to have taken it for Meta's review.

  • status_checked_atstring | nullจำเป็น

    When Twilio was last asked where the review stands.

  • created_atstringจำเป็น
  • updated_atstringจำเป็น

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/whatsapp-templates' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "mailbox_id": "00000000-0000-4000-8000-000000000001",
  "name": "example",
  "language": "example",
  "category": "marketing",
  "body": "example",
  "examples": {},
  "buttons": [
    {
      "title": "example",
      "id": "example"
    }
  ],
  "stop_button_title": "example"
}'
GET/v1/workspaces/{workspaceId}/whatsapp-templates/{templateId}

One WhatsApp template. While Meta's review is pending or the template is paused, Banger asks Twilio for the answer first, at most every 20 seconds, and keeps it. A review usually takes minutes and can take up to 48 hours. It needs the customers workspace feature.

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

templateId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

The template.

application/json

  • valueobject
  • dataobjectจำเป็น

    A WhatsApp template: what a Journey's WhatsApp step and a WhatsApp Broadcast send. It is held in the Content API of a Twilio account, and sent only while Meta's review of it stands at approved.

  • idstringจำเป็น

    format: "uuid"

  • workspace_idstringจำเป็น

    format: "uuid"

  • product_idstringจำเป็น

    format: "uuid"

  • mailbox_idsarrayจำเป็น

    The WhatsApp inboxes that can send it: the project's inboxes on the Twilio account that holds it, oldest first. Empty while the project has no inbox on that account.

  • แต่ละรายการstring

    format: "uuid"

  • namestringจำเป็น

    Meta's name for it: lowercase letters, digits and underscores, once per language in the account.

  • languagestringจำเป็น

    One of WhatsApp's language codes, such as en, pt_BR or es_MX.

  • categorystringจำเป็น

    Meta's category for it, which Meta can change after its review.

    enum: "marketing", "utility"

  • bodystringจำเป็น

    The text as it was written, with {{field}} and {{field|fallback}}.

  • fieldsarrayจำเป็น

    The text's fields, in the order they first appear.

  • แต่ละรายการobject
  • keystringจำเป็น

    Its number in the text Twilio and Meta hold: 1, 2 and so on.

  • fieldstringจำเป็น

    The contact field it is filled from, as an email names it.

  • fallbackstring

    What stands in for a contact without the field. Absent when the field is required of each recipient.

  • examplestringจำเป็น

    What Meta's reviewer reads in its place.

  • buttonsarrayจำเป็น

    Quick replies. A marketing template ends with the stop button, whose id is banger_stop.

  • แต่ละรายการobject
  • idstringจำเป็น
  • titlestringจำเป็น
  • content_sidstringจำเป็น

    The Twilio Content resource that holds it.

  • statusstringจำเป็น

    Where Meta's review stands. Only an approved template is sent. Meta pauses or disables a template people block or report.

    enum: "pending", "approved", "rejected", "paused", "disabled"

  • status_reasonstring | nullจำเป็น

    Meta's reason for a rejection, or whatsapp_template_not_in_twilio when the template is disabled because the Twilio account no longer has it.

  • submittedbooleanจำเป็น

    Whether Twilio is known to have taken it for Meta's review.

  • status_checked_atstring | nullจำเป็น

    When Twilio was last asked where the review stands.

  • created_atstringจำเป็น
  • updated_atstringจำเป็น

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/whatsapp-templates/{templateId}' \
  --header "Authorization: Bearer $BANGER_API_KEY"
DELETE/v1/workspaces/{workspaceId}/whatsapp-templates/{templateId}

Delete a WhatsApp template from its Twilio account, then from Banger, so it can't be sent. Meta keeps it in the WhatsApp Business account, under its name, until it is deleted in WhatsApp Manager. A template whose Twilio account has no number connected in the project is deleted from Banger alone; one whose account's numbers the caller can't open is refused. It needs the customers workspace feature.

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

templateId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 204

Deleted.

ไม่มีเนื้อหาการตอบกลับ

ตัวอย่าง curl

curl --request DELETE --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/whatsapp-templates/{templateId}' \
  --header "Authorization: Bearer $BANGER_API_KEY"

งาน

GET/v1/workspaces/{workspaceId}/work

listWork

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

cursor
query
  • valuestring

    maxLength: 1024

limit
query
  • valueinteger

    minimum: 1 · maximum: 100 · default: 50

status
query
  • valuestring

    default: "open" · enum: "open", "waiting", "done"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

รายการงานทั้งพื้นที่ทำงาน

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • threadobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • mailbox_idstringจำเป็น

    format: "uuid"

  • subjectstringจำเป็น
  • snippetstringจำเป็น
  • last_message_atstringจำเป็น

    format: "date-time"

  • message_countintegerจำเป็น
  • unread_countintegerจำเป็น
  • is_archivedbooleanจำเป็น
  • is_trashbooleanจำเป็น
  • is_spambooleanจำเป็น
  • is_starredbooleanจำเป็น
  • is_sentbooleanจำเป็น
  • has_attachmentsbooleanจำเป็น
  • sender_unverifiedboolean

    เป็น true เมื่อผู้ส่งข้อความล่าสุดไม่ผ่านทั้ง SPF และ DKIM สำหรับโดเมน From จึงอาจมีการปลอมที่อยู่ From

  • labelsarrayจำเป็น
  • แต่ละรายการstring
  • participantsarray
  • แต่ละรายการobject
  • namestring

    ละส่วนที่ซ้อนลึกกว่านี้

  • emailstringจำเป็น

    format: "email"

    ละส่วนที่ซ้อนลึกกว่านี้

  • recipientsarray

    The To list of the mailbox's latest sent message in this thread; empty when the mailbox sent none. Sent views show these instead of the sender.

  • แต่ละรายการobject
  • namestring

    ละส่วนที่ซ้อนลึกกว่านี้

  • emailstringจำเป็น

    format: "email"

    ละส่วนที่ซ้อนลึกกว่านี้

  • statusstringจำเป็น

    enum: "open", "waiting", "done"

  • priorityintegerจำเป็น
  • assignee_identity_idstring
  • updated_atstringจำเป็น

    format: "date-time"

  • pageobjectจำเป็น
  • next_cursorstring
  • has_morebooleanจำเป็น

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/work?cursor=example&limit=50&status=open' \
  --header "Authorization: Bearer $BANGER_API_KEY"

การเชื่อมต่อ

GET/v1/workspaces/{workspaceId}/connections

แสดงการเชื่อมต่อข้อมูลผลิตภัณฑ์และธุรกิจที่ Banger จัดการ

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

เมทาดาทาและความสามารถการเชื่อมต่อ ไม่คืนข้อมูลรับรอง

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

  • adapter_keystringจำเป็น
  • categorystringจำเป็น

    enum: "email", "customer", "product", "work", "data"

  • display_namestringจำเป็น
  • statusstringจำเป็น

    enum: "pending_validation", "active", "error", "disabled"

  • auth_kindstringจำเป็น

    enum: "api_key", "oauth2", "service_account", "none"

  • freshness_modestringจำเป็น

    enum: "webhook", "poll", "on_demand", "hybrid"

  • capabilitiesarrayจำเป็น
  • แต่ละรายการstring
  • resource_scopeobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • configobjectจำเป็น

    การตั้งค่าอะแดปเตอร์ที่ไม่ลับ เช่น โฮสต์คลาวด์และ ID โปรเจกต์

  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • active_credential_versioninteger | null
  • external_account_idstring | null
  • external_account_namestring | null
  • last_validated_atstring | null

    format: "date-time"

  • last_success_atstring | null

    format: "date-time"

  • last_error_codestring | null
  • disabled_atstring | null

    format: "date-time"

  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/connections' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/connections/adapters/{adapterKey}

ตรวจสอบและเข้ารหัสการเชื่อมต่อแหล่งข้อมูลที่ Banger จัดการ

การเชื่อมต่อ Mailchimp เริ่มย้ายจาก Mailchimp ทันที (เหมือน startMailchimpMigration) และ การตอบกลับมีรายงานแรกใน `mailchimp_migration` หากไม่มี display_name การเชื่อมต่อ Mailchimp ใช้ชื่อบัญชี เช่น "Mailchimp (Acme Inc)" การเชื่อมบัญชี Mailchimp ที่เชื่อมแล้ว คืน 409 `mailchimp_account_already_connected` พร้อม `error.details.connection_id`

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

adapterKey
path · จำเป็น
  • valuestring

    enum: "anthropic", "figma", "github", "google-analytics", "google-calendar", "hubspot", "linear", "mailchimp", "notion", "openai", "slack", "snowflake", "zendesk"

Idempotency-Key
header · จำเป็น
  • valuestring

    minLength: 16 · maxLength: 128

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • api_keystringจำเป็น

    คีย์ API หรือ JSON บัญชีบริการผู้ให้บริการ

    minLength: 12 · maxLength: 10000

  • display_namestring

    maxLength: 100

  • configobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้

การตอบกลับสำเร็จ 200

การเรียกซ้ำแบบ idempotent ของคำขอเชื่อมต่อที่มีอยู่

application/json

  • valueobject
  • dataobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

  • adapter_keystringจำเป็น
  • categorystringจำเป็น

    enum: "email", "customer", "product", "work", "data"

  • display_namestringจำเป็น
  • statusstringจำเป็น

    enum: "pending_validation", "active", "error", "disabled"

  • auth_kindstringจำเป็น

    enum: "api_key", "oauth2", "service_account", "none"

  • freshness_modestringจำเป็น

    enum: "webhook", "poll", "on_demand", "hybrid"

  • capabilitiesarrayจำเป็น
  • แต่ละรายการstring
  • resource_scopeobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • configobjectจำเป็น

    การตั้งค่าอะแดปเตอร์ที่ไม่ลับ เช่น โฮสต์คลาวด์และ ID โปรเจกต์

  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • active_credential_versioninteger | null
  • external_account_idstring | null
  • external_account_namestring | null
  • last_validated_atstring | null

    format: "date-time"

  • last_success_atstring | null

    format: "date-time"

  • last_error_codestring | null
  • disabled_atstring | null

    format: "date-time"

  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • mailchimp_migrationobject

    การย้ายจากหนึ่งการเชื่อมต่อ Mailchimp เข้าผลิตภัณฑ์ โพล GET /mailchimp-migration เพื่อติดตามสด: `phase` ระบุขั้นตอนปัจจุบัน `counts`, `audiences`, `segments`, `templates` และ `campaigns` เพิ่มระหว่างดำเนินการ

  • migration_idstringจำเป็น

    format: "uuid"

  • connection_idstringจำเป็น

    format: "uuid"

  • product_idstringจำเป็น

    format: "uuid"

  • statusstringจำเป็น

    enum: "importing", "completed"

  • phasestringจำเป็น

    importing (กำลังอ่าน Mailchimp), copying_designs (แม่แบบและแคมเปญ), finishing, completed, needs_new_key (Mailchimp ปฏิเสธคีย์ API การย้ายหยุดชั่วคราวจนกว่าจะบันทึกคีย์ใหม่ด้วย rotateConnectionCredential) หรือ disconnected (นำการเชื่อมต่อออกแล้ว ข้อมูลทั้งหมดที่ย้ายมาแล้วยังคงอยู่ใน Banger และยังอ่านจำนวนได้)

    enum: "importing", "copying_designs", "finishing", "completed", "needs_new_key", "disconnected"

  • started_atstringจำเป็น

    format: "date-time"

  • completed_atstring | nullจำเป็น

    format: "date-time"

  • connectionobjectจำเป็น
  • display_namestringจำเป็น
  • account_namestring | nullจำเป็น
  • statusstringจำเป็น

    enum: "pending_validation", "active", "error", "disabled"

  • last_error_codestring | nullจำเป็น
  • needs_new_keybooleanจำเป็น
  • messagestring

    มีค่านี้เมื่อเป็น needs_new_key หรือ disconnected พร้อมแสดงผล

  • progressobjectจำเป็น
  • import_streamsintegerจำเป็น
  • import_streams_doneintegerจำเป็น
  • failing_streamsarrayจำเป็น
  • แต่ละรายการobject
  • streamstringจำเป็น
  • refstringจำเป็น
  • error_codestring | nullจำเป็น
  • designs_waitingintegerจำเป็น
  • notestringจำเป็น
  • countsobjectจำเป็น
  • contactsintegerจำเป็น
  • subscribedintegerจำเป็น
  • unsubscribedintegerจำเป็น
  • bouncedintegerจำเป็น
  • contact_listsintegerจำเป็น
  • contact_fieldsintegerจำเป็น
  • segments_convertedintegerจำเป็น
  • segments_kept_as_listsintegerจำเป็น
  • templates_importedintegerจำเป็น
  • templates_to_rebuildintegerจำเป็น
  • campaigns_imported_as_designsintegerจำเป็น
  • automations_importedintegerจำเป็น
  • audiencesarrayจำเป็น
  • แต่ละรายการobject
  • mailchimp_idstringจำเป็น
  • namestringจำเป็น
  • list_idstring | nullจำเป็น

    format: "uuid"

  • list_namestring | nullจำเป็น
  • members_in_bangerintegerจำเป็น
  • subscribedintegerจำเป็น
  • unsubscribedintegerจำเป็น
  • bouncedintegerจำเป็น
  • members_in_mailchimpintegerจำเป็น
  • contact_fieldsarrayจำเป็น
  • แต่ละรายการobject
  • mailchimp_tagstringจำเป็น
  • namestringจำเป็น
  • field_keystringจำเป็น
  • typestringจำเป็น

    enum: "text", "number", "boolean", "date", "choice", "choices"

  • consentstringจำเป็น
  • segmentsarrayจำเป็น
  • แต่ละรายการobject

    ผลลัพธ์ของหนึ่งกลุ่ม เทมเพลต หรือแคมเปญ Mailchimp

  • mailchimp_idstringจำเป็น

    กลุ่ม: <audience id>:<segment id> เทมเพลตและแคมเปญ: id ของ Mailchimp

  • becamestringจำเป็น

    enum: "segment", "contact_list", "template", "needs_rebuild"

  • idstring

    กลุ่ม Banger

    format: "uuid"

  • namestringจำเป็น
  • reasonstring

    เหตุผลที่กลุ่มยังเป็นรายการคงที่

  • dropped_merge_tagsarray

    แท็กผสาน Mailchimp ที่ไม่มีสิ่งเทียบเท่าใน Banger ซึ่งนำออกจากดีไซน์ (เงื่อนไขฟิลด์ผสานคงแขนงแรกและแสดงที่นี่)

  • แต่ละรายการstring
  • replaced_footerboolean

    ส่วนท้าย Mailchimp (ดูในเบราว์เซอร์ การตั้งค่า ที่อยู่ ตราสัญลักษณ์) เปลี่ยนเป็นส่วนท้ายแบรนด์ผลิตภัณฑ์

  • removed_linksarray

    ลิงก์นอกส่วนท้ายไปหน้าที่มีเฉพาะ Mailchimp (เช่น ดูในเบราว์เซอร์) ที่นำออก แสดงตามข้อความลิงก์

  • แต่ละรายการstring
  • links_to_fillarray

    ลิงก์ที่ว่างใน Mailchimp แต่ละลิงก์เป็นสล็อต URL ของดีไซน์ที่ต้องเติมก่อนส่ง

  • แต่ละรายการobject
  • keystringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • labelstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • kept_editsboolean

    การรันซ้ำพบดีไซน์ที่แก้ใน Banger จึงคงไว้ตามเดิม

  • templatesarrayจำเป็น
  • แต่ละรายการobject

    ผลลัพธ์ของหนึ่งกลุ่ม เทมเพลต หรือแคมเปญ Mailchimp

  • mailchimp_idstringจำเป็น

    กลุ่ม: <audience id>:<segment id> เทมเพลตและแคมเปญ: id ของ Mailchimp

  • becamestringจำเป็น

    enum: "segment", "contact_list", "template", "needs_rebuild"

  • idstring

    กลุ่ม Banger

    format: "uuid"

  • namestringจำเป็น
  • reasonstring

    เหตุผลที่กลุ่มยังเป็นรายการคงที่

  • dropped_merge_tagsarray

    แท็กผสาน Mailchimp ที่ไม่มีสิ่งเทียบเท่าใน Banger ซึ่งนำออกจากดีไซน์ (เงื่อนไขฟิลด์ผสานคงแขนงแรกและแสดงที่นี่)

  • แต่ละรายการstring
  • replaced_footerboolean

    ส่วนท้าย Mailchimp (ดูในเบราว์เซอร์ การตั้งค่า ที่อยู่ ตราสัญลักษณ์) เปลี่ยนเป็นส่วนท้ายแบรนด์ผลิตภัณฑ์

  • removed_linksarray

    ลิงก์นอกส่วนท้ายไปหน้าที่มีเฉพาะ Mailchimp (เช่น ดูในเบราว์เซอร์) ที่นำออก แสดงตามข้อความลิงก์

  • แต่ละรายการstring
  • links_to_fillarray

    ลิงก์ที่ว่างใน Mailchimp แต่ละลิงก์เป็นสล็อต URL ของดีไซน์ที่ต้องเติมก่อนส่ง

  • แต่ละรายการobject
  • keystringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • labelstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • kept_editsboolean

    การรันซ้ำพบดีไซน์ที่แก้ใน Banger จึงคงไว้ตามเดิม

  • campaignsarrayจำเป็น
  • แต่ละรายการobject

    ผลลัพธ์ของหนึ่งกลุ่ม เทมเพลต หรือแคมเปญ Mailchimp

  • mailchimp_idstringจำเป็น

    กลุ่ม: <audience id>:<segment id> เทมเพลตและแคมเปญ: id ของ Mailchimp

  • becamestringจำเป็น

    enum: "segment", "contact_list", "template", "needs_rebuild"

  • idstring

    กลุ่ม Banger

    format: "uuid"

  • namestringจำเป็น
  • reasonstring

    เหตุผลที่กลุ่มยังเป็นรายการคงที่

  • dropped_merge_tagsarray

    แท็กผสาน Mailchimp ที่ไม่มีสิ่งเทียบเท่าใน Banger ซึ่งนำออกจากดีไซน์ (เงื่อนไขฟิลด์ผสานคงแขนงแรกและแสดงที่นี่)

  • แต่ละรายการstring
  • replaced_footerboolean

    ส่วนท้าย Mailchimp (ดูในเบราว์เซอร์ การตั้งค่า ที่อยู่ ตราสัญลักษณ์) เปลี่ยนเป็นส่วนท้ายแบรนด์ผลิตภัณฑ์

  • removed_linksarray

    ลิงก์นอกส่วนท้ายไปหน้าที่มีเฉพาะ Mailchimp (เช่น ดูในเบราว์เซอร์) ที่นำออก แสดงตามข้อความลิงก์

  • แต่ละรายการstring
  • links_to_fillarray

    ลิงก์ที่ว่างใน Mailchimp แต่ละลิงก์เป็นสล็อต URL ของดีไซน์ที่ต้องเติมก่อนส่ง

  • แต่ละรายการobject
  • keystringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • labelstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • kept_editsboolean

    การรันซ้ำพบดีไซน์ที่แก้ใน Banger จึงคงไว้ตามเดิม

  • automationsobjectจำเป็น
  • importedbooleanจำเป็น

    const: false

  • whystringจำเป็น
  • next_stepsarrayจำเป็น
  • แต่ละรายการstring
  • help_call_urlstringจำเป็น

    format: "uri"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/connections/adapters/{adapterKey}' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Idempotency-Key: examplexxxxxxxxx' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "api_key": "examplexxxxx",
  "display_name": "example",
  "config": {}
}'
DELETE/v1/workspaces/{workspaceId}/connections/{connectionId}

disableConnection

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

connectionId
path · จำเป็น
  • valuestring

    format: "uuid"

Idempotency-Key
header · จำเป็น
  • valuestring

    minLength: 16 · maxLength: 128

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 204

เพิกถอนการเชื่อมต่อ ข้อมูลรับรอง สถานะซิงค์ และสิทธิ์แล้ว

ไม่มีเนื้อหาการตอบกลับ

ตัวอย่าง curl

curl --request DELETE --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/connections/{connectionId}' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Idempotency-Key: examplexxxxxxxxx'
POST/v1/workspaces/{workspaceId}/connections/{connectionId}/validate

ตรวจสอบข้อมูลรับรองที่ใช้งานอีกครั้งและรีเฟรชเมทาดาทาบัญชี

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

connectionId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

ข้อมูลรับรองการเชื่อมต่อใช้ได้

application/json

  • valueobject
  • dataobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

  • adapter_keystringจำเป็น
  • categorystringจำเป็น

    enum: "email", "customer", "product", "work", "data"

  • display_namestringจำเป็น
  • statusstringจำเป็น

    enum: "pending_validation", "active", "error", "disabled"

  • auth_kindstringจำเป็น

    enum: "api_key", "oauth2", "service_account", "none"

  • freshness_modestringจำเป็น

    enum: "webhook", "poll", "on_demand", "hybrid"

  • capabilitiesarrayจำเป็น
  • แต่ละรายการstring
  • resource_scopeobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • configobjectจำเป็น

    การตั้งค่าอะแดปเตอร์ที่ไม่ลับ เช่น โฮสต์คลาวด์และ ID โปรเจกต์

  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • active_credential_versioninteger | null
  • external_account_idstring | null
  • external_account_namestring | null
  • last_validated_atstring | null

    format: "date-time"

  • last_success_atstring | null

    format: "date-time"

  • last_error_codestring | null
  • disabled_atstring | null

    format: "date-time"

  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/connections/{connectionId}/validate' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/connections/{connectionId}/credential

ตรวจสอบและหมุนเวียนข้อมูลรับรองการเชื่อมต่อที่จัดการแบบอะตอม

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

connectionId
path · จำเป็น
  • valuestring

    format: "uuid"

Idempotency-Key
header · จำเป็น
  • valuestring

    minLength: 16 · maxLength: 128

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • api_keystringจำเป็น

    คีย์ API หรือ JSON บัญชีบริการผู้ให้บริการ

    minLength: 12 · maxLength: 10000

  • display_namestring

    maxLength: 100

  • configobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้

การตอบกลับสำเร็จ 200

การเรียกซ้ำแบบ idempotent ของการหมุนเวียนก่อนหน้า

application/json

  • valueobject
  • dataobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

  • adapter_keystringจำเป็น
  • categorystringจำเป็น

    enum: "email", "customer", "product", "work", "data"

  • display_namestringจำเป็น
  • statusstringจำเป็น

    enum: "pending_validation", "active", "error", "disabled"

  • auth_kindstringจำเป็น

    enum: "api_key", "oauth2", "service_account", "none"

  • freshness_modestringจำเป็น

    enum: "webhook", "poll", "on_demand", "hybrid"

  • capabilitiesarrayจำเป็น
  • แต่ละรายการstring
  • resource_scopeobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • configobjectจำเป็น

    การตั้งค่าอะแดปเตอร์ที่ไม่ลับ เช่น โฮสต์คลาวด์และ ID โปรเจกต์

  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • active_credential_versioninteger | null
  • external_account_idstring | null
  • external_account_namestring | null
  • last_validated_atstring | null

    format: "date-time"

  • last_success_atstring | null

    format: "date-time"

  • last_error_codestring | null
  • disabled_atstring | null

    format: "date-time"

  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/connections/{connectionId}/credential' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Idempotency-Key: examplexxxxxxxxx' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "api_key": "examplexxxxx",
  "display_name": "example",
  "config": {}
}'
POST/v1/workspaces/{workspaceId}/connections/{connectionId}/query

อ่านข้อมูลแบบระบุชนิดและจำกัดขอบเขตผ่านการเชื่อมต่อที่ Banger จัดการ

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

connectionId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • adapter_keystringจำเป็น

    enum: "figma", "github", "google-analytics", "google-calendar", "hubspot", "linear", "mailchimp", "notion", "slack", "snowflake", "zendesk"

  • operationstringจำเป็น

    enum: "audiences.list", "blocks.children.list", "campaigns.list", "changelog.brief", "channels.list", "comments.list", "commits.list", "companies.list", "contacts.list", "cohorts.list", "customer.brief", "customers.list", "deals.list", "events.list", "file.summary", "funnels.list", "images.render", "invoices.list", "issues.list", "launch.brief", "messages.history", "messages.search", "nodes.get", "notifications.list", "pages.retrieve", "payment_intents.list", "persons.list", "profiles.list", "queries.execute", "queries.list", "releases.list", "reports.list", "reports.run", "repositories.list", "search.list", "subscriptions.list"

  • parametersobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้

การตอบกลับสำเร็จ 200

การตอบกลับแบบระบุชนิดและยืนยันตัวตนจากแหล่งที่เชื่อมต่อ

application/json

  • valueobject
  • dataobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • adapter_keystringจำเป็น

    enum: "figma", "github", "google-analytics", "google-calendar", "hubspot", "linear", "mailchimp", "notion", "slack", "snowflake", "zendesk"

  • operationstringจำเป็น
  • capabilitystringจำเป็น
  • sourceobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • external_account_idstringจำเป็น
  • external_account_namestringจำเป็น
  • fetched_atstringจำเป็น

    format: "date-time"

  • freshnessstringจำเป็น

    const: "live"

  • dataobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/connections/{connectionId}/query' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "adapter_key": "figma",
  "operation": "audiences.list",
  "parameters": {}
}'
GET/v1/workspaces/{workspaceId}/connections/{connectionId}/grants

listConnectionGrants

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

connectionId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

สิทธิ์ที่ใช้งานสำหรับการเชื่อมต่อ

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • connection_idstringจำเป็น

    format: "uuid"

  • principal_kindstringจำเป็น

    enum: "agent", "automation", "api_key"

  • principal_idstringจำเป็น
  • capabilitiesarrayจำเป็น
  • แต่ละรายการstring
  • resource_scopeobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • created_by_actor_idstringจำเป็น
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • expires_atstring | null

    format: "date-time"

  • revoked_atstring | null

    format: "date-time"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/connections/{connectionId}/grants' \
  --header "Authorization: Bearer $BANGER_API_KEY"
PUT/v1/workspaces/{workspaceId}/connections/{connectionId}/grants/{principalKind}/{principalId}

grantConnectionAccess

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

connectionId
path · จำเป็น
  • valuestring

    format: "uuid"

principalKind
path · จำเป็น
  • valuestring

    enum: "agent", "automation", "api_key"

principalId
path · จำเป็น
  • valuestring

    minLength: 1 · maxLength: 200

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • capabilitiesarrayจำเป็น

    minItems: 1 · uniqueItems: true

  • แต่ละรายการstring
  • resource_scopeobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • expires_atstring

    format: "date-time"

การตอบกลับสำเร็จ 200

ให้หรือแทนสิทธิ์การเชื่อมต่อแล้ว

application/json

  • valueobject
  • dataobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • connection_idstringจำเป็น

    format: "uuid"

  • principal_kindstringจำเป็น

    enum: "agent", "automation", "api_key"

  • principal_idstringจำเป็น
  • capabilitiesarrayจำเป็น
  • แต่ละรายการstring
  • resource_scopeobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • created_by_actor_idstringจำเป็น
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • expires_atstring | null

    format: "date-time"

  • revoked_atstring | null

    format: "date-time"

ตัวอย่าง curl

curl --request PUT --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/connections/{connectionId}/grants/{principalKind}/{principalId}' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "capabilities": [
    "example"
  ],
  "resource_scope": {},
  "expires_at": "2026-01-01T00:00:00Z"
}'
DELETE/v1/workspaces/{workspaceId}/connections/{connectionId}/grants/{principalKind}/{principalId}

revokeConnectionAccess

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

connectionId
path · จำเป็น
  • valuestring

    format: "uuid"

principalKind
path · จำเป็น
  • valuestring

    enum: "agent", "automation", "api_key"

principalId
path · จำเป็น
  • valuestring

    minLength: 1 · maxLength: 200

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 204

เพิกถอนสิทธิ์การเชื่อมต่อแล้ว

ไม่มีเนื้อหาการตอบกลับ

ตัวอย่าง curl

curl --request DELETE --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/connections/{connectionId}/grants/{principalKind}/{principalId}' \
  --header "Authorization: Bearer $BANGER_API_KEY"

ผู้ให้บริการ

POST/v1/workspaces/{workspaceId}/providers/google/oauth/session

เริ่มเชื่อมต่อกล่องจดหมาย Gmail ที่ป้องกันด้วย PKCE สำหรับพื้นที่ทำงานนี้

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

URL อนุญาต Gmail และสัญญาการโพล

application/json

  • valueobject
  • sessionobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • sessionIdstringจำเป็น

    format: "uuid"

  • authUrlstringจำเป็น

    format: "uri"

  • expiresAtintegerจำเป็น

    format: "int64"

  • pollIntervalMsintegerจำเป็น

    minimum: 250

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/providers/google/oauth/session' \
  --header "Authorization: Bearer $BANGER_API_KEY"
GET/v1/workspaces/{workspaceId}/providers/google/oauth/sessions/{sessionId}

โพลเซสชันอนุญาต Gmail ภายในขอบเขตพื้นที่ทำงาน

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

sessionId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

สถานะอนุญาต Gmail ปัจจุบัน

application/json

  • valueobject
  • sessionobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • statusstringจำเป็น

    enum: "pending", "complete", "error", "expired"

  • mailboxIdstring | nullจำเป็น

    format: "uuid"

  • emailstring | nullจำเป็น

    format: "email"

  • errorstring | nullจำเป็น
  • expiresAtintegerจำเป็น

    format: "int64"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/providers/google/oauth/sessions/{sessionId}' \
  --header "Authorization: Bearer $BANGER_API_KEY"

การเชื่อมต่อผู้ให้บริการ

GET/v1/workspaces/{workspaceId}/provider-connections

listProviderConnections

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

เมทาดาทาการเชื่อมต่อผู้ให้บริการ ไม่คืนข้อมูลรับรอง

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • kindstringจำเป็น
  • ownershipstringจำเป็น

    enum: "customer", "banger"

  • statusstringจำเป็น

    enum: "pending", "active", "suspended", "reconnect_required", "disabled"

  • display_namestringจำเป็น
  • capabilitiesarrayจำเป็น
  • แต่ละรายการstring
  • active_credential_versioninteger | null
  • credential_rotation_requiredbooleanจำเป็น
  • last_validated_atstring | null

    format: "date-time"

  • last_error_codestring | null
  • disabled_atstring | null

    format: "date-time"

  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • verified_domainsarray
  • แต่ละรายการstring

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/provider-connections' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/provider-connections/resend

createResendProviderConnection

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

Idempotency-Key
header · จำเป็น
  • valuestring

    minLength: 16 · maxLength: 128

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • api_keystringจำเป็น

    minLength: 16 · maxLength: 500

  • display_namestring

    maxLength: 100

การตอบกลับสำเร็จ 200

การเรียกซ้ำแบบ idempotent ของการเชื่อมต่อ Resend ที่สร้าง

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • kindstringจำเป็น
  • ownershipstringจำเป็น

    enum: "customer", "banger"

  • statusstringจำเป็น

    enum: "pending", "active", "suspended", "reconnect_required", "disabled"

  • display_namestringจำเป็น
  • capabilitiesarrayจำเป็น
  • แต่ละรายการstring
  • active_credential_versioninteger | null
  • credential_rotation_requiredbooleanจำเป็น
  • last_validated_atstring | null

    format: "date-time"

  • last_error_codestring | null
  • disabled_atstring | null

    format: "date-time"

  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • verified_domainsarray
  • แต่ละรายการstring

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/provider-connections/resend' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Idempotency-Key: examplexxxxxxxxx' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "api_key": "examplexxxxxxxxx",
  "display_name": "example"
}'
PUT/v1/workspaces/{workspaceId}/provider-connections/{providerConnectionId}/credential

rotateResendProviderCredential

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

providerConnectionId
path · จำเป็น
  • valuestring

    format: "uuid"

Idempotency-Key
header · จำเป็น
  • valuestring

    minLength: 16 · maxLength: 128

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • api_keystringจำเป็น

    minLength: 16 · maxLength: 500

  • display_namestring

    maxLength: 100

การตอบกลับสำเร็จ 200

หมุนเวียนข้อมูลรับรอง Resend แล้ว

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • kindstringจำเป็น
  • ownershipstringจำเป็น

    enum: "customer", "banger"

  • statusstringจำเป็น

    enum: "pending", "active", "suspended", "reconnect_required", "disabled"

  • display_namestringจำเป็น
  • capabilitiesarrayจำเป็น
  • แต่ละรายการstring
  • active_credential_versioninteger | null
  • credential_rotation_requiredbooleanจำเป็น
  • last_validated_atstring | null

    format: "date-time"

  • last_error_codestring | null
  • disabled_atstring | null

    format: "date-time"

  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • verified_domainsarray
  • แต่ละรายการstring

ตัวอย่าง curl

curl --request PUT --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/provider-connections/{providerConnectionId}/credential' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Idempotency-Key: examplexxxxxxxxx' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "api_key": "examplexxxxxxxxx",
  "display_name": "example"
}'
DELETE/v1/workspaces/{workspaceId}/provider-connections/{providerConnectionId}

disableProviderConnection

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

providerConnectionId
path · จำเป็น
  • valuestring

    format: "uuid"

Idempotency-Key
header · จำเป็น
  • valuestring

    minLength: 16 · maxLength: 128

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 204

เพิกถอนการเชื่อมต่อผู้ให้บริการและข้อมูลรับรองที่ใช้งานแล้ว

ไม่มีเนื้อหาการตอบกลับ

ตัวอย่าง curl

curl --request DELETE --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/provider-connections/{providerConnectionId}' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Idempotency-Key: examplexxxxxxxxx'

โดเมนสำหรับส่ง

GET/v1/workspaces/{workspaceId}/sending-domains

listNativeSendingDomains

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

โดเมนส่งบนระบบ Banger สำหรับพื้นที่ทำงาน

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • domain_idstringจำเป็น

    format: "uuid"

  • product_idstringจำเป็น

    format: "uuid"

  • root_domainstringจำเป็น
  • parent_domainstring

    โดเมนบริษัทที่เก็บไว้เมื่อช่องทางใช้โดเมนย่อย

  • setup_modestring

    enum: "simple", "advanced"

  • domain_statusstringจำเป็น

    enum: "pending", "verified", "failed", "disabled", "deleting", "deleted"

  • lanesarrayจำเป็น

    minItems: 1 · maxItems: 3

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

  • created_atstring

    format: "date-time"

  • kindstringจำเป็น

    enum: "mailbox", "product", "broadcast"

  • display_namestringจำเป็น
  • from_domainstringจำเป็น
  • mail_from_domainstring | nullจำเป็น
  • inbound_domainstring | nullจำเป็น
  • route_providerstringจำเป็น

    enum: "banger", "resend"

  • selected_provider_connection_idstring | nullจำเป็น

    format: "uuid"

  • inbound_providerstring | nullจำเป็น

    enum: "banger", null

  • statusstringจำเป็น

    enum: "pending", "active", "paused", "deleting", "deleted"

  • status_reasonstring | nullจำเป็น
  • desired_revisionintegerจำเป็น

    minimum: 1

  • observed_revisionintegerจำเป็น

    minimum: 0

  • dns_readybooleanจำเป็น
  • provider_readybooleanจำเป็น
  • inbound_readybooleanจำเป็น
  • outbound_readybooleanจำเป็น
  • banger_transport_readybooleanจำเป็น
  • banger_mail_from_domainstring | nullจำเป็น
  • provisioning_job_idstring | nullจำเป็น

    format: "uuid"

  • provisioning_statusstringจำเป็น

    enum: "pending", "provisioning", "waiting_dns", "active", "failed", "deleting", "deleted", "not_required"

  • provisioning_error_codestring | null
  • provisioning_next_attempt_atstring | null
  • provisioning_last_checked_atstring | null
  • provider_identity_statusstring | null
  • provider_dkim_statusstring | null
  • dns_recordsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • dns_recordsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

  • lane_idstringจำเป็น

    format: "uuid"

  • providerstringจำเป็น

    enum: "banger", "resend"

  • purposestringจำเป็น
  • typestringจำเป็น

    enum: "TXT", "MX", "CNAME"

  • namestringจำเป็น
  • valuestringจำเป็น
  • priorityinteger | nullจำเป็น
  • requiredbooleanจำเป็น
  • statusstringจำเป็น

    enum: "pending", "verified", "error"

  • provider_statusstringจำเป็น

    enum: "pending", "verified", "error", "not_applicable"

  • first_observed_atstring | nullจำเป็น

    format: "date-time"

  • last_checked_atstring | nullจำเป็น

    format: "date-time"

  • errorobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • provider_referencestring | nullจำเป็น
  • deletionobject | nullจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • job_idstringจำเป็น

    format: "uuid"

  • statusstringจำเป็น

    enum: "pending", "processing", "waiting_provider", "completed", "failed"

  • last_error_codestring | nullจำเป็น
  • cleanup_recordsarrayจำเป็น

    ระเบียน DNS ที่ผู้ใช้ลบได้ตามจริงหลังรื้อถอนเสร็จ

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • lane_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • providerstringจำเป็น

    enum: "banger", "resend"

    ละส่วนที่ซ้อนลึกกว่านี้

  • purposestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • typestringจำเป็น

    enum: "TXT", "MX", "CNAME"

    ละส่วนที่ซ้อนลึกกว่านี้

  • namestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • valuestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • priorityinteger | nullจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • requiredbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • statusstringจำเป็น

    enum: "pending", "verified", "error"

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_statusstringจำเป็น

    enum: "pending", "verified", "error", "not_applicable"

    ละส่วนที่ซ้อนลึกกว่านี้

  • first_observed_atstring | nullจำเป็น

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • last_checked_atstring | nullจำเป็น

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • errorobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_referencestring | nullจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/sending-domains' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/sending-domains

createNativeSendingDomain

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

Idempotency-Key
header · จำเป็น
  • valuestring

    minLength: 16 · maxLength: 128

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • domainstringจำเป็น

    โดเมนหรือโดเมนย่อยของผลิตภัณฑ์ตามจริง โดยค่าเริ่มต้น Banger สร้างโดเมนย่อยสามช่องทางแยกกัน

    minLength: 3 · maxLength: 253

  • setup_modestring

    Simple จัดเตรียมระบบรับส่งกล่องจดหมายเดียวสำหรับรับและส่งจากที่อยู่กล่องที่เลือก รวมแคมเปญและเส้นทาง Advanced จัดเตรียมช่องทางส่งแยก

    default: "advanced" · enum: "simple", "advanced"

  • mailbox_modestring

    Simple ใช้โดเมนหลักเป็นค่าเริ่มต้นหากไม่ระบุคำนำหน้ากล่องจดหมาย advanced ใช้โดเมนย่อย Subdomain คงจดหมายโดเมนเดิม Migrate ขอกล่องจดหมายบนโดเมนตรงตัว โดเมนหรือช่องทางตรงตัวที่มีผู้ใช้อยู่ต้องส่งคำขอผ่าน sending-domain-migrations แล้วอนุญาตในแผงการอนุมัติ Banger ที่เข้าสู่ระบบ ข้อมูลรับรองเอเจนต์อนุญาตย้ายไม่ได้ ไม่นำเข้าข้อความเก่าและไม่เปลี่ยน DNS อัตโนมัติ

    enum: "subdomain", "migrate"

  • root_dmarc_confirmedboolean

    ฟิลด์รองรับรุ่นเก่า คงนโยบายเดิมและการตั้งค่าไม่ต้องยืนยัน

  • lane_prefixesobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • mailboxstring

    minLength: 1 · maxLength: 63 · default: "mail"

  • productstring

    minLength: 1 · maxLength: 63 · default: "tx"

  • broadcaststring

    minLength: 1 · maxLength: 63 · default: "broadcast"

  • route_providersobject

    รับ Resend เฉพาะเมื่อ Banger ตรวจพบใน DNS โดเมนนี้แล้วและผลิตภัณฑ์ที่เลือกมีการเชื่อมต่อใช้งาน ไคลเอนต์ห้ามเสนอในกรณีอื่น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • productstring

    default: "banger" · enum: "banger", "resend"

  • broadcaststring

    default: "banger" · enum: "banger", "resend"

  • route_domainsobject

    โดเมนที่ยืนยันตามจริงซึ่งซิงค์จาก Resend จำเป็นสำหรับทุกช่องทางที่ยังใช้ Resend

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • productstring

    minLength: 3 · maxLength: 253

  • broadcaststring

    minLength: 3 · maxLength: 253

การตอบกลับสำเร็จ 200

การเรียกซ้ำแบบ idempotent ของคำขอโดเมนส่งบนระบบ Banger

application/json

  • valueobject
  • dataobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • domain_idstringจำเป็น

    format: "uuid"

  • product_idstringจำเป็น

    format: "uuid"

  • root_domainstringจำเป็น
  • parent_domainstring

    โดเมนบริษัทที่เก็บไว้เมื่อช่องทางใช้โดเมนย่อย

  • setup_modestring

    enum: "simple", "advanced"

  • domain_statusstringจำเป็น

    enum: "pending", "verified", "failed", "disabled", "deleting", "deleted"

  • lanesarrayจำเป็น

    minItems: 1 · maxItems: 3

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

  • created_atstring

    format: "date-time"

  • kindstringจำเป็น

    enum: "mailbox", "product", "broadcast"

  • display_namestringจำเป็น
  • from_domainstringจำเป็น
  • mail_from_domainstring | nullจำเป็น
  • inbound_domainstring | nullจำเป็น
  • route_providerstringจำเป็น

    enum: "banger", "resend"

  • selected_provider_connection_idstring | nullจำเป็น

    format: "uuid"

  • inbound_providerstring | nullจำเป็น

    enum: "banger", null

  • statusstringจำเป็น

    enum: "pending", "active", "paused", "deleting", "deleted"

  • status_reasonstring | nullจำเป็น
  • desired_revisionintegerจำเป็น

    minimum: 1

  • observed_revisionintegerจำเป็น

    minimum: 0

  • dns_readybooleanจำเป็น
  • provider_readybooleanจำเป็น
  • inbound_readybooleanจำเป็น
  • outbound_readybooleanจำเป็น
  • banger_transport_readybooleanจำเป็น
  • banger_mail_from_domainstring | nullจำเป็น
  • provisioning_job_idstring | nullจำเป็น

    format: "uuid"

  • provisioning_statusstringจำเป็น

    enum: "pending", "provisioning", "waiting_dns", "active", "failed", "deleting", "deleted", "not_required"

  • provisioning_error_codestring | null
  • provisioning_next_attempt_atstring | null
  • provisioning_last_checked_atstring | null
  • provider_identity_statusstring | null
  • provider_dkim_statusstring | null
  • dns_recordsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • lane_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • providerstringจำเป็น

    enum: "banger", "resend"

    ละส่วนที่ซ้อนลึกกว่านี้

  • purposestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • typestringจำเป็น

    enum: "TXT", "MX", "CNAME"

    ละส่วนที่ซ้อนลึกกว่านี้

  • namestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • valuestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • priorityinteger | nullจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • requiredbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • statusstringจำเป็น

    enum: "pending", "verified", "error"

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_statusstringจำเป็น

    enum: "pending", "verified", "error", "not_applicable"

    ละส่วนที่ซ้อนลึกกว่านี้

  • first_observed_atstring | nullจำเป็น

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • last_checked_atstring | nullจำเป็น

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • errorobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_referencestring | nullจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • dns_recordsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

  • lane_idstringจำเป็น

    format: "uuid"

  • providerstringจำเป็น

    enum: "banger", "resend"

  • purposestringจำเป็น
  • typestringจำเป็น

    enum: "TXT", "MX", "CNAME"

  • namestringจำเป็น
  • valuestringจำเป็น
  • priorityinteger | nullจำเป็น
  • requiredbooleanจำเป็น
  • statusstringจำเป็น

    enum: "pending", "verified", "error"

  • provider_statusstringจำเป็น

    enum: "pending", "verified", "error", "not_applicable"

  • first_observed_atstring | nullจำเป็น

    format: "date-time"

  • last_checked_atstring | nullจำเป็น

    format: "date-time"

  • errorobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • provider_referencestring | nullจำเป็น
  • deletionobject | nullจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • job_idstringจำเป็น

    format: "uuid"

  • statusstringจำเป็น

    enum: "pending", "processing", "waiting_provider", "completed", "failed"

  • last_error_codestring | nullจำเป็น
  • cleanup_recordsarrayจำเป็น

    ระเบียน DNS ที่ผู้ใช้ลบได้ตามจริงหลังรื้อถอนเสร็จ

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

  • lane_idstringจำเป็น

    format: "uuid"

  • providerstringจำเป็น

    enum: "banger", "resend"

  • purposestringจำเป็น
  • typestringจำเป็น

    enum: "TXT", "MX", "CNAME"

  • namestringจำเป็น
  • valuestringจำเป็น
  • priorityinteger | nullจำเป็น
  • requiredbooleanจำเป็น
  • statusstringจำเป็น

    enum: "pending", "verified", "error"

  • provider_statusstringจำเป็น

    enum: "pending", "verified", "error", "not_applicable"

  • first_observed_atstring | nullจำเป็น

    format: "date-time"

  • last_checked_atstring | nullจำเป็น

    format: "date-time"

  • errorobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • provider_referencestring | nullจำเป็น

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/sending-domains' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Idempotency-Key: examplexxxxxxxxx' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "domain": "example",
  "setup_mode": "advanced",
  "mailbox_mode": "subdomain",
  "root_dmarc_confirmed": true,
  "lane_prefixes": {
    "mailbox": "mail",
    "product": "tx",
    "broadcast": "broadcast"
  },
  "route_providers": {
    "product": "banger",
    "broadcast": "banger"
  },
  "route_domains": {
    "product": "example",
    "broadcast": "example"
  }
}'
GET/v1/workspaces/{workspaceId}/sending-domains/{sendingDomainId}

getNativeSendingDomain

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

sendingDomainId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

สถานะโดเมน สตรีม การจัดเตรียม และ DNS ที่จำเป็นในปัจจุบัน

application/json

  • valueobject
  • dataobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • domain_idstringจำเป็น

    format: "uuid"

  • product_idstringจำเป็น

    format: "uuid"

  • root_domainstringจำเป็น
  • parent_domainstring

    โดเมนบริษัทที่เก็บไว้เมื่อช่องทางใช้โดเมนย่อย

  • setup_modestring

    enum: "simple", "advanced"

  • domain_statusstringจำเป็น

    enum: "pending", "verified", "failed", "disabled", "deleting", "deleted"

  • lanesarrayจำเป็น

    minItems: 1 · maxItems: 3

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

  • created_atstring

    format: "date-time"

  • kindstringจำเป็น

    enum: "mailbox", "product", "broadcast"

  • display_namestringจำเป็น
  • from_domainstringจำเป็น
  • mail_from_domainstring | nullจำเป็น
  • inbound_domainstring | nullจำเป็น
  • route_providerstringจำเป็น

    enum: "banger", "resend"

  • selected_provider_connection_idstring | nullจำเป็น

    format: "uuid"

  • inbound_providerstring | nullจำเป็น

    enum: "banger", null

  • statusstringจำเป็น

    enum: "pending", "active", "paused", "deleting", "deleted"

  • status_reasonstring | nullจำเป็น
  • desired_revisionintegerจำเป็น

    minimum: 1

  • observed_revisionintegerจำเป็น

    minimum: 0

  • dns_readybooleanจำเป็น
  • provider_readybooleanจำเป็น
  • inbound_readybooleanจำเป็น
  • outbound_readybooleanจำเป็น
  • banger_transport_readybooleanจำเป็น
  • banger_mail_from_domainstring | nullจำเป็น
  • provisioning_job_idstring | nullจำเป็น

    format: "uuid"

  • provisioning_statusstringจำเป็น

    enum: "pending", "provisioning", "waiting_dns", "active", "failed", "deleting", "deleted", "not_required"

  • provisioning_error_codestring | null
  • provisioning_next_attempt_atstring | null
  • provisioning_last_checked_atstring | null
  • provider_identity_statusstring | null
  • provider_dkim_statusstring | null
  • dns_recordsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • lane_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • providerstringจำเป็น

    enum: "banger", "resend"

    ละส่วนที่ซ้อนลึกกว่านี้

  • purposestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • typestringจำเป็น

    enum: "TXT", "MX", "CNAME"

    ละส่วนที่ซ้อนลึกกว่านี้

  • namestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • valuestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • priorityinteger | nullจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • requiredbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • statusstringจำเป็น

    enum: "pending", "verified", "error"

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_statusstringจำเป็น

    enum: "pending", "verified", "error", "not_applicable"

    ละส่วนที่ซ้อนลึกกว่านี้

  • first_observed_atstring | nullจำเป็น

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • last_checked_atstring | nullจำเป็น

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • errorobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_referencestring | nullจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • dns_recordsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

  • lane_idstringจำเป็น

    format: "uuid"

  • providerstringจำเป็น

    enum: "banger", "resend"

  • purposestringจำเป็น
  • typestringจำเป็น

    enum: "TXT", "MX", "CNAME"

  • namestringจำเป็น
  • valuestringจำเป็น
  • priorityinteger | nullจำเป็น
  • requiredbooleanจำเป็น
  • statusstringจำเป็น

    enum: "pending", "verified", "error"

  • provider_statusstringจำเป็น

    enum: "pending", "verified", "error", "not_applicable"

  • first_observed_atstring | nullจำเป็น

    format: "date-time"

  • last_checked_atstring | nullจำเป็น

    format: "date-time"

  • errorobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • provider_referencestring | nullจำเป็น
  • deletionobject | nullจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • job_idstringจำเป็น

    format: "uuid"

  • statusstringจำเป็น

    enum: "pending", "processing", "waiting_provider", "completed", "failed"

  • last_error_codestring | nullจำเป็น
  • cleanup_recordsarrayจำเป็น

    ระเบียน DNS ที่ผู้ใช้ลบได้ตามจริงหลังรื้อถอนเสร็จ

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

  • lane_idstringจำเป็น

    format: "uuid"

  • providerstringจำเป็น

    enum: "banger", "resend"

  • purposestringจำเป็น
  • typestringจำเป็น

    enum: "TXT", "MX", "CNAME"

  • namestringจำเป็น
  • valuestringจำเป็น
  • priorityinteger | nullจำเป็น
  • requiredbooleanจำเป็น
  • statusstringจำเป็น

    enum: "pending", "verified", "error"

  • provider_statusstringจำเป็น

    enum: "pending", "verified", "error", "not_applicable"

  • first_observed_atstring | nullจำเป็น

    format: "date-time"

  • last_checked_atstring | nullจำเป็น

    format: "date-time"

  • errorobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • provider_referencestring | nullจำเป็น

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/sending-domains/{sendingDomainId}' \
  --header "Authorization: Bearer $BANGER_API_KEY"
DELETE/v1/workspaces/{workspaceId}/sending-domains/{sendingDomainId}

deleteNativeSendingDomain

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

sendingDomainId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • confirm_domainstringจำเป็น

    ต้องตรงทุกตัวอักษรกับโดเมนหลักที่จะลบ

    minLength: 3 · maxLength: 253

การตอบกลับสำเร็จ 202

หยุดส่งและรับแล้ว และเข้าคิวรื้อถอนผู้ให้บริการแบบ idempotent เก็บประวัติอีเมลและรายการตรวจสอบ

application/json

  • valueobject
  • dataobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • domain_idstringจำเป็น

    format: "uuid"

  • product_idstringจำเป็น

    format: "uuid"

  • root_domainstringจำเป็น
  • parent_domainstring

    โดเมนบริษัทที่เก็บไว้เมื่อช่องทางใช้โดเมนย่อย

  • setup_modestring

    enum: "simple", "advanced"

  • domain_statusstringจำเป็น

    enum: "pending", "verified", "failed", "disabled", "deleting", "deleted"

  • lanesarrayจำเป็น

    minItems: 1 · maxItems: 3

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

  • created_atstring

    format: "date-time"

  • kindstringจำเป็น

    enum: "mailbox", "product", "broadcast"

  • display_namestringจำเป็น
  • from_domainstringจำเป็น
  • mail_from_domainstring | nullจำเป็น
  • inbound_domainstring | nullจำเป็น
  • route_providerstringจำเป็น

    enum: "banger", "resend"

  • selected_provider_connection_idstring | nullจำเป็น

    format: "uuid"

  • inbound_providerstring | nullจำเป็น

    enum: "banger", null

  • statusstringจำเป็น

    enum: "pending", "active", "paused", "deleting", "deleted"

  • status_reasonstring | nullจำเป็น
  • desired_revisionintegerจำเป็น

    minimum: 1

  • observed_revisionintegerจำเป็น

    minimum: 0

  • dns_readybooleanจำเป็น
  • provider_readybooleanจำเป็น
  • inbound_readybooleanจำเป็น
  • outbound_readybooleanจำเป็น
  • banger_transport_readybooleanจำเป็น
  • banger_mail_from_domainstring | nullจำเป็น
  • provisioning_job_idstring | nullจำเป็น

    format: "uuid"

  • provisioning_statusstringจำเป็น

    enum: "pending", "provisioning", "waiting_dns", "active", "failed", "deleting", "deleted", "not_required"

  • provisioning_error_codestring | null
  • provisioning_next_attempt_atstring | null
  • provisioning_last_checked_atstring | null
  • provider_identity_statusstring | null
  • provider_dkim_statusstring | null
  • dns_recordsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • lane_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • providerstringจำเป็น

    enum: "banger", "resend"

    ละส่วนที่ซ้อนลึกกว่านี้

  • purposestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • typestringจำเป็น

    enum: "TXT", "MX", "CNAME"

    ละส่วนที่ซ้อนลึกกว่านี้

  • namestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • valuestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • priorityinteger | nullจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • requiredbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • statusstringจำเป็น

    enum: "pending", "verified", "error"

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_statusstringจำเป็น

    enum: "pending", "verified", "error", "not_applicable"

    ละส่วนที่ซ้อนลึกกว่านี้

  • first_observed_atstring | nullจำเป็น

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • last_checked_atstring | nullจำเป็น

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • errorobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_referencestring | nullจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • dns_recordsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

  • lane_idstringจำเป็น

    format: "uuid"

  • providerstringจำเป็น

    enum: "banger", "resend"

  • purposestringจำเป็น
  • typestringจำเป็น

    enum: "TXT", "MX", "CNAME"

  • namestringจำเป็น
  • valuestringจำเป็น
  • priorityinteger | nullจำเป็น
  • requiredbooleanจำเป็น
  • statusstringจำเป็น

    enum: "pending", "verified", "error"

  • provider_statusstringจำเป็น

    enum: "pending", "verified", "error", "not_applicable"

  • first_observed_atstring | nullจำเป็น

    format: "date-time"

  • last_checked_atstring | nullจำเป็น

    format: "date-time"

  • errorobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • provider_referencestring | nullจำเป็น
  • deletionobject | nullจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • job_idstringจำเป็น

    format: "uuid"

  • statusstringจำเป็น

    enum: "pending", "processing", "waiting_provider", "completed", "failed"

  • last_error_codestring | nullจำเป็น
  • cleanup_recordsarrayจำเป็น

    ระเบียน DNS ที่ผู้ใช้ลบได้ตามจริงหลังรื้อถอนเสร็จ

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

  • lane_idstringจำเป็น

    format: "uuid"

  • providerstringจำเป็น

    enum: "banger", "resend"

  • purposestringจำเป็น
  • typestringจำเป็น

    enum: "TXT", "MX", "CNAME"

  • namestringจำเป็น
  • valuestringจำเป็น
  • priorityinteger | nullจำเป็น
  • requiredbooleanจำเป็น
  • statusstringจำเป็น

    enum: "pending", "verified", "error"

  • provider_statusstringจำเป็น

    enum: "pending", "verified", "error", "not_applicable"

  • first_observed_atstring | nullจำเป็น

    format: "date-time"

  • last_checked_atstring | nullจำเป็น

    format: "date-time"

  • errorobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • provider_referencestring | nullจำเป็น

ตัวอย่าง curl

curl --request DELETE --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/sending-domains/{sendingDomainId}' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "confirm_domain": "example"
}'
DELETE/v1/workspaces/{workspaceId}/sending-domains/{sendingDomainId}/lanes/{laneKind}

removeNativeSendingLane

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

sendingDomainId
path · จำเป็น
  • valuestring

    format: "uuid"

laneKind
path · จำเป็น
  • valuestring

    enum: "mailbox", "product", "broadcast"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • confirm_domainstringจำเป็น

    โดเมนย่อยที่ตรงตามจริงของช่องทางที่เลือก

การตอบกลับสำเร็จ 202

หยุดและเข้าคิวลบเฉพาะช่องทางที่เลือก เก็บช่องทางอื่นและประวัติข้อความ

application/json

  • valueobject
  • dataobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • domain_idstringจำเป็น

    format: "uuid"

  • product_idstringจำเป็น

    format: "uuid"

  • root_domainstringจำเป็น
  • parent_domainstring

    โดเมนบริษัทที่เก็บไว้เมื่อช่องทางใช้โดเมนย่อย

  • setup_modestring

    enum: "simple", "advanced"

  • domain_statusstringจำเป็น

    enum: "pending", "verified", "failed", "disabled", "deleting", "deleted"

  • lanesarrayจำเป็น

    minItems: 1 · maxItems: 3

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

  • created_atstring

    format: "date-time"

  • kindstringจำเป็น

    enum: "mailbox", "product", "broadcast"

  • display_namestringจำเป็น
  • from_domainstringจำเป็น
  • mail_from_domainstring | nullจำเป็น
  • inbound_domainstring | nullจำเป็น
  • route_providerstringจำเป็น

    enum: "banger", "resend"

  • selected_provider_connection_idstring | nullจำเป็น

    format: "uuid"

  • inbound_providerstring | nullจำเป็น

    enum: "banger", null

  • statusstringจำเป็น

    enum: "pending", "active", "paused", "deleting", "deleted"

  • status_reasonstring | nullจำเป็น
  • desired_revisionintegerจำเป็น

    minimum: 1

  • observed_revisionintegerจำเป็น

    minimum: 0

  • dns_readybooleanจำเป็น
  • provider_readybooleanจำเป็น
  • inbound_readybooleanจำเป็น
  • outbound_readybooleanจำเป็น
  • banger_transport_readybooleanจำเป็น
  • banger_mail_from_domainstring | nullจำเป็น
  • provisioning_job_idstring | nullจำเป็น

    format: "uuid"

  • provisioning_statusstringจำเป็น

    enum: "pending", "provisioning", "waiting_dns", "active", "failed", "deleting", "deleted", "not_required"

  • provisioning_error_codestring | null
  • provisioning_next_attempt_atstring | null
  • provisioning_last_checked_atstring | null
  • provider_identity_statusstring | null
  • provider_dkim_statusstring | null
  • dns_recordsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • lane_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • providerstringจำเป็น

    enum: "banger", "resend"

    ละส่วนที่ซ้อนลึกกว่านี้

  • purposestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • typestringจำเป็น

    enum: "TXT", "MX", "CNAME"

    ละส่วนที่ซ้อนลึกกว่านี้

  • namestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • valuestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • priorityinteger | nullจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • requiredbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • statusstringจำเป็น

    enum: "pending", "verified", "error"

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_statusstringจำเป็น

    enum: "pending", "verified", "error", "not_applicable"

    ละส่วนที่ซ้อนลึกกว่านี้

  • first_observed_atstring | nullจำเป็น

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • last_checked_atstring | nullจำเป็น

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • errorobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_referencestring | nullจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • dns_recordsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

  • lane_idstringจำเป็น

    format: "uuid"

  • providerstringจำเป็น

    enum: "banger", "resend"

  • purposestringจำเป็น
  • typestringจำเป็น

    enum: "TXT", "MX", "CNAME"

  • namestringจำเป็น
  • valuestringจำเป็น
  • priorityinteger | nullจำเป็น
  • requiredbooleanจำเป็น
  • statusstringจำเป็น

    enum: "pending", "verified", "error"

  • provider_statusstringจำเป็น

    enum: "pending", "verified", "error", "not_applicable"

  • first_observed_atstring | nullจำเป็น

    format: "date-time"

  • last_checked_atstring | nullจำเป็น

    format: "date-time"

  • errorobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • provider_referencestring | nullจำเป็น
  • deletionobject | nullจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • job_idstringจำเป็น

    format: "uuid"

  • statusstringจำเป็น

    enum: "pending", "processing", "waiting_provider", "completed", "failed"

  • last_error_codestring | nullจำเป็น
  • cleanup_recordsarrayจำเป็น

    ระเบียน DNS ที่ผู้ใช้ลบได้ตามจริงหลังรื้อถอนเสร็จ

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

  • lane_idstringจำเป็น

    format: "uuid"

  • providerstringจำเป็น

    enum: "banger", "resend"

  • purposestringจำเป็น
  • typestringจำเป็น

    enum: "TXT", "MX", "CNAME"

  • namestringจำเป็น
  • valuestringจำเป็น
  • priorityinteger | nullจำเป็น
  • requiredbooleanจำเป็น
  • statusstringจำเป็น

    enum: "pending", "verified", "error"

  • provider_statusstringจำเป็น

    enum: "pending", "verified", "error", "not_applicable"

  • first_observed_atstring | nullจำเป็น

    format: "date-time"

  • last_checked_atstring | nullจำเป็น

    format: "date-time"

  • errorobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • provider_referencestring | nullจำเป็น

ตัวอย่าง curl

curl --request DELETE --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/sending-domains/{sendingDomainId}/lanes/{laneKind}' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "confirm_domain": "example"
}'
POST/v1/workspaces/{workspaceId}/sending-domains/{sendingDomainId}/lanes/{laneKind}/pause

pauseNativeSendingLane

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

sendingDomainId
path · จำเป็น
  • valuestring

    format: "uuid"

laneKind
path · จำเป็น
  • valuestring

    enum: "mailbox", "product", "broadcast"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

หยุดช่องทางที่เลือกชั่วคราวโดยไม่เปลี่ยน DNS หรือช่องทางอื่น

application/json

  • valueobject
  • dataobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • domain_idstringจำเป็น

    format: "uuid"

  • product_idstringจำเป็น

    format: "uuid"

  • root_domainstringจำเป็น
  • parent_domainstring

    โดเมนบริษัทที่เก็บไว้เมื่อช่องทางใช้โดเมนย่อย

  • setup_modestring

    enum: "simple", "advanced"

  • domain_statusstringจำเป็น

    enum: "pending", "verified", "failed", "disabled", "deleting", "deleted"

  • lanesarrayจำเป็น

    minItems: 1 · maxItems: 3

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

  • created_atstring

    format: "date-time"

  • kindstringจำเป็น

    enum: "mailbox", "product", "broadcast"

  • display_namestringจำเป็น
  • from_domainstringจำเป็น
  • mail_from_domainstring | nullจำเป็น
  • inbound_domainstring | nullจำเป็น
  • route_providerstringจำเป็น

    enum: "banger", "resend"

  • selected_provider_connection_idstring | nullจำเป็น

    format: "uuid"

  • inbound_providerstring | nullจำเป็น

    enum: "banger", null

  • statusstringจำเป็น

    enum: "pending", "active", "paused", "deleting", "deleted"

  • status_reasonstring | nullจำเป็น
  • desired_revisionintegerจำเป็น

    minimum: 1

  • observed_revisionintegerจำเป็น

    minimum: 0

  • dns_readybooleanจำเป็น
  • provider_readybooleanจำเป็น
  • inbound_readybooleanจำเป็น
  • outbound_readybooleanจำเป็น
  • banger_transport_readybooleanจำเป็น
  • banger_mail_from_domainstring | nullจำเป็น
  • provisioning_job_idstring | nullจำเป็น

    format: "uuid"

  • provisioning_statusstringจำเป็น

    enum: "pending", "provisioning", "waiting_dns", "active", "failed", "deleting", "deleted", "not_required"

  • provisioning_error_codestring | null
  • provisioning_next_attempt_atstring | null
  • provisioning_last_checked_atstring | null
  • provider_identity_statusstring | null
  • provider_dkim_statusstring | null
  • dns_recordsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • lane_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • providerstringจำเป็น

    enum: "banger", "resend"

    ละส่วนที่ซ้อนลึกกว่านี้

  • purposestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • typestringจำเป็น

    enum: "TXT", "MX", "CNAME"

    ละส่วนที่ซ้อนลึกกว่านี้

  • namestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • valuestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • priorityinteger | nullจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • requiredbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • statusstringจำเป็น

    enum: "pending", "verified", "error"

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_statusstringจำเป็น

    enum: "pending", "verified", "error", "not_applicable"

    ละส่วนที่ซ้อนลึกกว่านี้

  • first_observed_atstring | nullจำเป็น

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • last_checked_atstring | nullจำเป็น

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • errorobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_referencestring | nullจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • dns_recordsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

  • lane_idstringจำเป็น

    format: "uuid"

  • providerstringจำเป็น

    enum: "banger", "resend"

  • purposestringจำเป็น
  • typestringจำเป็น

    enum: "TXT", "MX", "CNAME"

  • namestringจำเป็น
  • valuestringจำเป็น
  • priorityinteger | nullจำเป็น
  • requiredbooleanจำเป็น
  • statusstringจำเป็น

    enum: "pending", "verified", "error"

  • provider_statusstringจำเป็น

    enum: "pending", "verified", "error", "not_applicable"

  • first_observed_atstring | nullจำเป็น

    format: "date-time"

  • last_checked_atstring | nullจำเป็น

    format: "date-time"

  • errorobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • provider_referencestring | nullจำเป็น
  • deletionobject | nullจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • job_idstringจำเป็น

    format: "uuid"

  • statusstringจำเป็น

    enum: "pending", "processing", "waiting_provider", "completed", "failed"

  • last_error_codestring | nullจำเป็น
  • cleanup_recordsarrayจำเป็น

    ระเบียน DNS ที่ผู้ใช้ลบได้ตามจริงหลังรื้อถอนเสร็จ

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

  • lane_idstringจำเป็น

    format: "uuid"

  • providerstringจำเป็น

    enum: "banger", "resend"

  • purposestringจำเป็น
  • typestringจำเป็น

    enum: "TXT", "MX", "CNAME"

  • namestringจำเป็น
  • valuestringจำเป็น
  • priorityinteger | nullจำเป็น
  • requiredbooleanจำเป็น
  • statusstringจำเป็น

    enum: "pending", "verified", "error"

  • provider_statusstringจำเป็น

    enum: "pending", "verified", "error", "not_applicable"

  • first_observed_atstring | nullจำเป็น

    format: "date-time"

  • last_checked_atstring | nullจำเป็น

    format: "date-time"

  • errorobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • provider_referencestring | nullจำเป็น

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/sending-domains/{sendingDomainId}/lanes/{laneKind}/pause' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/sending-domains/{sendingDomainId}/lanes/{laneKind}/resume

resumeNativeSendingLane

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

sendingDomainId
path · จำเป็น
  • valuestring

    format: "uuid"

laneKind
path · จำเป็น
  • valuestring

    enum: "mailbox", "product", "broadcast"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

ช่องทางที่เลือกกลับมาทำงานเมื่อ DNS ที่บันทึกและสถานะผู้ให้บริการพร้อม

application/json

  • valueobject
  • dataobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • domain_idstringจำเป็น

    format: "uuid"

  • product_idstringจำเป็น

    format: "uuid"

  • root_domainstringจำเป็น
  • parent_domainstring

    โดเมนบริษัทที่เก็บไว้เมื่อช่องทางใช้โดเมนย่อย

  • setup_modestring

    enum: "simple", "advanced"

  • domain_statusstringจำเป็น

    enum: "pending", "verified", "failed", "disabled", "deleting", "deleted"

  • lanesarrayจำเป็น

    minItems: 1 · maxItems: 3

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

  • created_atstring

    format: "date-time"

  • kindstringจำเป็น

    enum: "mailbox", "product", "broadcast"

  • display_namestringจำเป็น
  • from_domainstringจำเป็น
  • mail_from_domainstring | nullจำเป็น
  • inbound_domainstring | nullจำเป็น
  • route_providerstringจำเป็น

    enum: "banger", "resend"

  • selected_provider_connection_idstring | nullจำเป็น

    format: "uuid"

  • inbound_providerstring | nullจำเป็น

    enum: "banger", null

  • statusstringจำเป็น

    enum: "pending", "active", "paused", "deleting", "deleted"

  • status_reasonstring | nullจำเป็น
  • desired_revisionintegerจำเป็น

    minimum: 1

  • observed_revisionintegerจำเป็น

    minimum: 0

  • dns_readybooleanจำเป็น
  • provider_readybooleanจำเป็น
  • inbound_readybooleanจำเป็น
  • outbound_readybooleanจำเป็น
  • banger_transport_readybooleanจำเป็น
  • banger_mail_from_domainstring | nullจำเป็น
  • provisioning_job_idstring | nullจำเป็น

    format: "uuid"

  • provisioning_statusstringจำเป็น

    enum: "pending", "provisioning", "waiting_dns", "active", "failed", "deleting", "deleted", "not_required"

  • provisioning_error_codestring | null
  • provisioning_next_attempt_atstring | null
  • provisioning_last_checked_atstring | null
  • provider_identity_statusstring | null
  • provider_dkim_statusstring | null
  • dns_recordsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • lane_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • providerstringจำเป็น

    enum: "banger", "resend"

    ละส่วนที่ซ้อนลึกกว่านี้

  • purposestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • typestringจำเป็น

    enum: "TXT", "MX", "CNAME"

    ละส่วนที่ซ้อนลึกกว่านี้

  • namestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • valuestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • priorityinteger | nullจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • requiredbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • statusstringจำเป็น

    enum: "pending", "verified", "error"

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_statusstringจำเป็น

    enum: "pending", "verified", "error", "not_applicable"

    ละส่วนที่ซ้อนลึกกว่านี้

  • first_observed_atstring | nullจำเป็น

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • last_checked_atstring | nullจำเป็น

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • errorobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_referencestring | nullจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • dns_recordsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

  • lane_idstringจำเป็น

    format: "uuid"

  • providerstringจำเป็น

    enum: "banger", "resend"

  • purposestringจำเป็น
  • typestringจำเป็น

    enum: "TXT", "MX", "CNAME"

  • namestringจำเป็น
  • valuestringจำเป็น
  • priorityinteger | nullจำเป็น
  • requiredbooleanจำเป็น
  • statusstringจำเป็น

    enum: "pending", "verified", "error"

  • provider_statusstringจำเป็น

    enum: "pending", "verified", "error", "not_applicable"

  • first_observed_atstring | nullจำเป็น

    format: "date-time"

  • last_checked_atstring | nullจำเป็น

    format: "date-time"

  • errorobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • provider_referencestring | nullจำเป็น
  • deletionobject | nullจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • job_idstringจำเป็น

    format: "uuid"

  • statusstringจำเป็น

    enum: "pending", "processing", "waiting_provider", "completed", "failed"

  • last_error_codestring | nullจำเป็น
  • cleanup_recordsarrayจำเป็น

    ระเบียน DNS ที่ผู้ใช้ลบได้ตามจริงหลังรื้อถอนเสร็จ

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

  • lane_idstringจำเป็น

    format: "uuid"

  • providerstringจำเป็น

    enum: "banger", "resend"

  • purposestringจำเป็น
  • typestringจำเป็น

    enum: "TXT", "MX", "CNAME"

  • namestringจำเป็น
  • valuestringจำเป็น
  • priorityinteger | nullจำเป็น
  • requiredbooleanจำเป็น
  • statusstringจำเป็น

    enum: "pending", "verified", "error"

  • provider_statusstringจำเป็น

    enum: "pending", "verified", "error", "not_applicable"

  • first_observed_atstring | nullจำเป็น

    format: "date-time"

  • last_checked_atstring | nullจำเป็น

    format: "date-time"

  • errorobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • provider_referencestring | nullจำเป็น

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/sending-domains/{sendingDomainId}/lanes/{laneKind}/resume' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/sending-domains/{sendingDomainId}/verify

verifyNativeSendingDomain

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

sendingDomainId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

ตรวจสอบตัวตน Banger และการยืนยัน DNS อีกครั้งอย่างปลอดภัยแล้ว

application/json

  • valueobject
  • dataobjectจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • domain_idstringจำเป็น

    format: "uuid"

  • product_idstringจำเป็น

    format: "uuid"

  • root_domainstringจำเป็น
  • parent_domainstring

    โดเมนบริษัทที่เก็บไว้เมื่อช่องทางใช้โดเมนย่อย

  • setup_modestring

    enum: "simple", "advanced"

  • domain_statusstringจำเป็น

    enum: "pending", "verified", "failed", "disabled", "deleting", "deleted"

  • lanesarrayจำเป็น

    minItems: 1 · maxItems: 3

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

  • created_atstring

    format: "date-time"

  • kindstringจำเป็น

    enum: "mailbox", "product", "broadcast"

  • display_namestringจำเป็น
  • from_domainstringจำเป็น
  • mail_from_domainstring | nullจำเป็น
  • inbound_domainstring | nullจำเป็น
  • route_providerstringจำเป็น

    enum: "banger", "resend"

  • selected_provider_connection_idstring | nullจำเป็น

    format: "uuid"

  • inbound_providerstring | nullจำเป็น

    enum: "banger", null

  • statusstringจำเป็น

    enum: "pending", "active", "paused", "deleting", "deleted"

  • status_reasonstring | nullจำเป็น
  • desired_revisionintegerจำเป็น

    minimum: 1

  • observed_revisionintegerจำเป็น

    minimum: 0

  • dns_readybooleanจำเป็น
  • provider_readybooleanจำเป็น
  • inbound_readybooleanจำเป็น
  • outbound_readybooleanจำเป็น
  • banger_transport_readybooleanจำเป็น
  • banger_mail_from_domainstring | nullจำเป็น
  • provisioning_job_idstring | nullจำเป็น

    format: "uuid"

  • provisioning_statusstringจำเป็น

    enum: "pending", "provisioning", "waiting_dns", "active", "failed", "deleting", "deleted", "not_required"

  • provisioning_error_codestring | null
  • provisioning_next_attempt_atstring | null
  • provisioning_last_checked_atstring | null
  • provider_identity_statusstring | null
  • provider_dkim_statusstring | null
  • dns_recordsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • lane_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • providerstringจำเป็น

    enum: "banger", "resend"

    ละส่วนที่ซ้อนลึกกว่านี้

  • purposestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • typestringจำเป็น

    enum: "TXT", "MX", "CNAME"

    ละส่วนที่ซ้อนลึกกว่านี้

  • namestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • valuestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • priorityinteger | nullจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • requiredbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • statusstringจำเป็น

    enum: "pending", "verified", "error"

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_statusstringจำเป็น

    enum: "pending", "verified", "error", "not_applicable"

    ละส่วนที่ซ้อนลึกกว่านี้

  • first_observed_atstring | nullจำเป็น

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • last_checked_atstring | nullจำเป็น

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • errorobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_referencestring | nullจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • dns_recordsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

  • lane_idstringจำเป็น

    format: "uuid"

  • providerstringจำเป็น

    enum: "banger", "resend"

  • purposestringจำเป็น
  • typestringจำเป็น

    enum: "TXT", "MX", "CNAME"

  • namestringจำเป็น
  • valuestringจำเป็น
  • priorityinteger | nullจำเป็น
  • requiredbooleanจำเป็น
  • statusstringจำเป็น

    enum: "pending", "verified", "error"

  • provider_statusstringจำเป็น

    enum: "pending", "verified", "error", "not_applicable"

  • first_observed_atstring | nullจำเป็น

    format: "date-time"

  • last_checked_atstring | nullจำเป็น

    format: "date-time"

  • errorobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • provider_referencestring | nullจำเป็น
  • deletionobject | nullจำเป็น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • job_idstringจำเป็น

    format: "uuid"

  • statusstringจำเป็น

    enum: "pending", "processing", "waiting_provider", "completed", "failed"

  • last_error_codestring | nullจำเป็น
  • cleanup_recordsarrayจำเป็น

    ระเบียน DNS ที่ผู้ใช้ลบได้ตามจริงหลังรื้อถอนเสร็จ

  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

  • lane_idstringจำเป็น

    format: "uuid"

  • providerstringจำเป็น

    enum: "banger", "resend"

  • purposestringจำเป็น
  • typestringจำเป็น

    enum: "TXT", "MX", "CNAME"

  • namestringจำเป็น
  • valuestringจำเป็น
  • priorityinteger | nullจำเป็น
  • requiredbooleanจำเป็น
  • statusstringจำเป็น

    enum: "pending", "verified", "error"

  • provider_statusstringจำเป็น

    enum: "pending", "verified", "error", "not_applicable"

  • first_observed_atstring | nullจำเป็น

    format: "date-time"

  • last_checked_atstring | nullจำเป็น

    format: "date-time"

  • errorobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • provider_referencestring | nullจำเป็น

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/sending-domains/{sendingDomainId}/verify' \
  --header "Authorization: Bearer $BANGER_API_KEY"

การย้ายโดเมนสำหรับส่ง

POST/v1/workspaces/{workspaceId}/sending-domain-migrations

requestNativeDomainMigration

ตรึงการตั้งค่าจริงและ DNS ที่พบในการอนุมัติ domain.migrate ที่รอ ไม่จัดเตรียมทรัพยากร เฉพาะผู้ดูแลที่เข้าสู่ระบบอนุญาตผ่านแผงการอนุมัติได้ ปฏิเสธข้อมูลรับรองเอเจนต์และการตรวจทานอัตโนมัติ การอนุญาตตรวจภาพรวม DNS ซ้ำแบบอะตอมและเตรียมโดเมนที่อนุมัติ

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

Idempotency-Key
header · จำเป็น
  • valuestring

    minLength: 16 · maxLength: 128

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • domainstringจำเป็น

    โดเมนหรือโดเมนย่อยของผลิตภัณฑ์ตามจริง โดยค่าเริ่มต้น Banger สร้างโดเมนย่อยสามช่องทางแยกกัน

    minLength: 3 · maxLength: 253

  • setup_modestring

    Simple จัดเตรียมระบบรับส่งกล่องจดหมายเดียวสำหรับรับและส่งจากที่อยู่กล่องที่เลือก รวมแคมเปญและเส้นทาง Advanced จัดเตรียมช่องทางส่งแยก

    default: "advanced" · enum: "simple", "advanced"

  • mailbox_modestring

    Simple ใช้โดเมนหลักเป็นค่าเริ่มต้นหากไม่ระบุคำนำหน้ากล่องจดหมาย advanced ใช้โดเมนย่อย Subdomain คงจดหมายโดเมนเดิม Migrate ขอกล่องจดหมายบนโดเมนตรงตัว โดเมนหรือช่องทางตรงตัวที่มีผู้ใช้อยู่ต้องส่งคำขอผ่าน sending-domain-migrations แล้วอนุญาตในแผงการอนุมัติ Banger ที่เข้าสู่ระบบ ข้อมูลรับรองเอเจนต์อนุญาตย้ายไม่ได้ ไม่นำเข้าข้อความเก่าและไม่เปลี่ยน DNS อัตโนมัติ

    enum: "subdomain", "migrate"

  • root_dmarc_confirmedboolean

    ฟิลด์รองรับรุ่นเก่า คงนโยบายเดิมและการตั้งค่าไม่ต้องยืนยัน

  • lane_prefixesobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • mailboxstring

    minLength: 1 · maxLength: 63 · default: "mail"

  • productstring

    minLength: 1 · maxLength: 63 · default: "tx"

  • broadcaststring

    minLength: 1 · maxLength: 63 · default: "broadcast"

  • route_providersobject

    รับ Resend เฉพาะเมื่อ Banger ตรวจพบใน DNS โดเมนนี้แล้วและผลิตภัณฑ์ที่เลือกมีการเชื่อมต่อใช้งาน ไคลเอนต์ห้ามเสนอในกรณีอื่น

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • productstring

    default: "banger" · enum: "banger", "resend"

  • broadcaststring

    default: "banger" · enum: "banger", "resend"

  • route_domainsobject

    โดเมนที่ยืนยันตามจริงซึ่งซิงค์จาก Resend จำเป็นสำหรับทุกช่องทางที่ยังใช้ Resend

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • productstring

    minLength: 3 · maxLength: 253

  • broadcaststring

    minLength: 3 · maxLength: 253

การตอบกลับสำเร็จ 200

คืนคำขอย้ายระบบที่มีอยู่แบบ idempotent

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • requested_by_actor_idstringจำเป็น
  • action_kindstringจำเป็น
  • summarystringจำเป็น
  • capability_scopesarrayจำเป็น
  • แต่ละรายการstring
  • resource_scopeobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมarray
  • แต่ละรายการstring
  • payloadobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • payload_sha256stringจำเป็น

    pattern: "^[0-9a-f]{64}$"

  • statusstringจำเป็น

    enum: "pending", "approved", "rejected", "cancelled", "expired"

  • missedbooleanจำเป็น
  • expires_atstringจำเป็น

    format: "date-time"

  • qa_automationobject | null

    หลักฐานแหล่งที่มาของระบบอัตโนมัติ QA โดยเฉพาะที่เซิร์ฟเวอร์บันทึกไว้ ไม่ถือเป็นหลักฐานว่ามีคนตรวจทานเพย์โหลด ระบบจะตรวจสอบการทำงานและสิทธิ์อนุญาตส่วนกลางอีกครั้งขณะดำเนินการ

  • kindstring

    enum: "dedicated_qa_automation"

  • authorization_referencestring
  • run_idstring
  • operation_keystring
  • recipientsarray
  • แต่ละรายการstring

    format: "email"

  • approval_sha256string
  • resource_sha256string
  • decided_by_actor_idstring | null
  • decision_reasonstring | null
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • decided_atstring | null

    format: "date-time"

  • execution_job_idstring

    format: "uuid"

  • reviewobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • dispositionstringจำเป็น

    enum: "automatic", "human_required"

  • recipient_countinteger | nullจำเป็น

    minimum: 0

  • reasonsarrayจำเป็น
  • แต่ละรายการstring
  • checksarrayจำเป็น
  • แต่ละรายการstring

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/sending-domain-migrations' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Idempotency-Key: examplexxxxxxxxx' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "domain": "example",
  "setup_mode": "advanced",
  "mailbox_mode": "subdomain",
  "root_dmarc_confirmed": true,
  "lane_prefixes": {
    "mailbox": "mail",
    "product": "tx",
    "broadcast": "broadcast"
  },
  "route_providers": {
    "product": "banger",
    "broadcast": "banger"
  },
  "route_domains": {
    "product": "example",
    "broadcast": "example"
  }
}'

เว็บฮุก

GET/v1/workspaces/{workspaceId}/webhooks

แสดงแหล่งเหตุการณ์ขาเข้าและปลายทางเหตุการณ์ขาออก

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

เอนด์พอยต์เว็บฮุกพื้นที่ทำงาน

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • kindstringจำเป็น

    enum: "outbound", "inbound"

  • source_keystringจำเป็น

    pattern: "^[a-z0-9][a-z0-9_-]{0,62}$"

  • namestringจำเป็น
  • endpoint_urlstring | null

    format: "uri"

  • statusstringจำเป็น

    enum: "active", "disabled", "error"

  • event_typesarrayจำเป็น
  • แต่ละรายการstring
  • connection_idstring | null

    format: "uuid"

  • delivered_countintegerจำเป็น

    minimum: 0

  • failed_countintegerจำเป็น

    minimum: 0

  • last_delivered_atstring | null

    format: "date-time"

  • last_received_atstring | null

    format: "date-time"

  • last_error_codestring | null
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/webhooks' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/webhooks

สร้างปลายทางที่ลงลายเซ็นและลองซ้ำ หรือแหล่งเหตุการณ์ขาเข้าแบบ idempotent

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • kindstringจำเป็น

    enum: "outbound", "inbound"

  • namestringจำเป็น

    minLength: 1 · maxLength: 120

  • source_keystring

    banger_api สงวนสำหรับเว็บฮุกที่ POST /events สร้าง

    pattern: "^[a-z0-9][a-z0-9_-]{0,62}$" · default: "custom"

  • source_configobject

    การประเมินเหตุการณ์และแมปการส่งถึงที่กำหนดแน่นอนตามแหล่ง รองรับ Zendesk และ Supabase Auth

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • vip_tagsarray

    minItems: 1 · maxItems: 20 · uniqueItems: true

  • แต่ละรายการstring

    pattern: "^[a-z0-9][a-z0-9_-]{0,63}$"

  • sla_warning_minutesinteger

    minimum: 1 · maximum: 10080

  • project_urlstring

    URL โปรเจกต์ Supabase

    format: "uri"

  • mailbox_idstring

    ที่อยู่ส่ง Banger ที่ใช้งานสำหรับอีเมล Supabase Auth

    format: "uuid"

  • template_idsobject

    เทมเพลต Banger ที่เลือกสำหรับแต่ละการดำเนินการอีเมล Supabase Auth

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • signupstringจำเป็น

    format: "uuid"

  • invitestringจำเป็น

    format: "uuid"

  • magiclinkstringจำเป็น

    format: "uuid"

  • recoverystringจำเป็น

    format: "uuid"

  • email_changestringจำเป็น

    format: "uuid"

  • reauthenticationstringจำเป็น

    format: "uuid"

  • password_changed_notificationstringจำเป็น

    format: "uuid"

  • email_changed_notificationstringจำเป็น

    format: "uuid"

  • phone_changed_notificationstringจำเป็น

    format: "uuid"

  • identity_linked_notificationstringจำเป็น

    format: "uuid"

  • identity_unlinked_notificationstringจำเป็น

    format: "uuid"

  • mfa_factor_enrolled_notificationstringจำเป็น

    format: "uuid"

  • mfa_factor_unenrolled_notificationstringจำเป็น

    format: "uuid"

  • signing_secretstring

    ความลับ Supabase Send Email Hook รับเฉพาะแหล่ง Supabase ขาเข้าและเข้ารหัสเมื่อจัดเก็บ

    minLength: 20 · maxLength: 500

  • endpoint_urlstring

    จำเป็นเฉพาะปลายทางขาออก

    format: "uri"

  • event_typesarray

    เหตุการณ์ที่จะส่ง หากไม่ระบุเอนด์พอยต์ขาออกได้เหตุการณ์กิจกรรมเริ่มต้น เหตุการณ์เฉพาะ (mail.received, mail.sent, send.*, journey.*) ส่งเฉพาะเมื่อระบุ * ส่งทั้งหมดรวม send.delivered ที่มีปริมาณมาก

    minItems: 1 · maxItems: 100 · uniqueItems: true

  • แต่ละรายการstring

    enum: "*", "mail.changed", "send.changed", "campaign.changed", "audience.changed", "approval.changed", "automation.changed", "domain.changed", "sending.warning", "sending.lane_paused", "sending.domain_paused", "sending.mailbox_paused", "sending.workspace_frozen", "sending.resumed", "mail.received", "mail.sent", "send.delivered", "send.bounced", "send.complained", "journey.enrolled", "journey.completed", "journey.exited", "custom"

การตอบกลับสำเร็จ 201

สร้างเว็บฮุกแล้ว แสดงความลับลงลายเซ็นขาออกครั้งเดียว ผู้เรียกที่อนุญาตเปิดตัวเลือกข้อมูลรับรองขาเข้าอีกได้

application/json

  • valueobject
  • dataไม่ได้ระบุจำเป็น
  • allOf 1object
  • idstringจำเป็น

    format: "uuid"

  • kindstringจำเป็น

    enum: "outbound", "inbound"

  • source_keystringจำเป็น

    pattern: "^[a-z0-9][a-z0-9_-]{0,62}$"

  • namestringจำเป็น
  • endpoint_urlstring | null

    format: "uri"

  • statusstringจำเป็น

    enum: "active", "disabled", "error"

  • event_typesarrayจำเป็น
  • แต่ละรายการstring
  • connection_idstring | null

    format: "uuid"

  • delivered_countintegerจำเป็น

    minimum: 0

  • failed_countintegerจำเป็น

    minimum: 0

  • last_delivered_atstring | null

    format: "date-time"

  • last_received_atstring | null

    format: "date-time"

  • last_error_codestring | null
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • allOf 2object
  • signing_secretstring

    ความลับลงลายเซ็นคำขอขาออก

  • source_urlstring

    URL เหตุการณ์ขาเข้าที่มีความลับซึ่งเดาไม่ได้

    format: "uri"

  • webhook_urlstring

    URL ขาเข้าสาธารณะสำหรับใช้กับส่วนหัว Authorization

    format: "uri"

  • bearer_tokenstring

    โทเค็นเอนด์พอยต์ลับสำหรับส่งเป็น Authorization Bearer

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/webhooks' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "kind": "outbound",
  "name": "example",
  "source_key": "custom",
  "source_config": {
    "vip_tags": [
      "example"
    ],
    "sla_warning_minutes": 1,
    "project_url": "https://example.com",
    "mailbox_id": "00000000-0000-4000-8000-000000000001",
    "template_ids": {
      "signup": "00000000-0000-4000-8000-000000000001",
      "invite": "00000000-0000-4000-8000-000000000001",
      "magiclink": "00000000-0000-4000-8000-000000000001",
      "recovery": "00000000-0000-4000-8000-000000000001",
      "email_change": "00000000-0000-4000-8000-000000000001",
      "reauthentication": "00000000-0000-4000-8000-000000000001",
      "password_changed_notification": "00000000-0000-4000-8000-000000000001",
      "email_changed_notification": "00000000-0000-4000-8000-000000000001",
      "phone_changed_notification": "00000000-0000-4000-8000-000000000001",
      "identity_linked_notification": "00000000-0000-4000-8000-000000000001",
      "identity_unlinked_notification": "00000000-0000-4000-8000-000000000001",
      "mfa_factor_enrolled_notification": "00000000-0000-4000-8000-000000000001",
      "mfa_factor_unenrolled_notification": "00000000-0000-4000-8000-000000000001"
    }
  },
  "signing_secret": "examplexxxxxxxxxxxxx",
  "endpoint_url": "https://example.com",
  "event_types": [
    "*"
  ]
}'
PATCH/v1/workspaces/{workspaceId}/webhooks/{endpointId}

ปิดเว็บฮุก หรือเปิดเว็บฮุกที่ปิดหรือขัดข้องอีกครั้ง โดยไม่หมุนเวียนเอนด์พอยต์หรือความลับ

การปิดหยุดการส่งถึงหรือเหตุการณ์อัตโนมัติขาเข้า และเก็บเว็บฮุก ชื่อ และประวัติ การปิดเว็บฮุกขาเข้าปิดการเชื่อมต่อด้วย เส้นทางที่ทริกเกอร์จึงหยุดรับเหตุการณ์จนเปิดอีก ลบเว็บฮุกเพื่อนำออกถาวร

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

endpointId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • statusstringจำเป็น

    enum: "active", "disabled"

การตอบกลับสำเร็จ 200

เปิดเว็บฮุกอีกครั้งหรือปิดแล้ว

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • kindstringจำเป็น

    enum: "outbound", "inbound"

  • source_keystringจำเป็น

    pattern: "^[a-z0-9][a-z0-9_-]{0,62}$"

  • namestringจำเป็น
  • endpoint_urlstring | null

    format: "uri"

  • statusstringจำเป็น

    enum: "active", "disabled", "error"

  • event_typesarrayจำเป็น
  • แต่ละรายการstring
  • connection_idstring | null

    format: "uuid"

  • delivered_countintegerจำเป็น

    minimum: 0

  • failed_countintegerจำเป็น

    minimum: 0

  • last_delivered_atstring | null

    format: "date-time"

  • last_received_atstring | null

    format: "date-time"

  • last_error_codestring | null
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

ตัวอย่าง curl

curl --request PATCH --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/webhooks/{endpointId}' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "status": "active"
}'
DELETE/v1/workspaces/{workspaceId}/webhooks/{endpointId}

ลบเว็บฮุกถาวรเพื่อใช้ชื่ออีกได้

ลบเอนด์พอยต์ขาออกพร้อมประวัติส่งถึง ลบเว็บฮุกขาเข้าพร้อมการเชื่อมต่อ และได้เฉพาะเมื่อไม่มีเส้นทางรวมที่เก็บถาวรใช้การเชื่อมต่อนั้นเป็นทริกเกอร์หรือเป้าหมาย หากต้องการหยุดและเก็บเว็บฮุก ให้ PATCH สถานะเป็น disabled แทน

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

endpointId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 204

ลบเว็บฮุกแล้ว

ไม่มีเนื้อหาการตอบกลับ

ตัวอย่าง curl

curl --request DELETE --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/webhooks/{endpointId}' \
  --header "Authorization: Bearer $BANGER_API_KEY"
GET/v1/workspaces/{workspaceId}/webhooks/{endpointId}/credentials

เปิดตัวเลือกข้อมูลรับรองเดิมของเว็บฮุกขาเข้าที่ใช้งานอีกครั้ง

ต้องมี automation:execute คืนความลับเดิมโดยไม่สร้างหรือหมุนเวียนทรัพยากร ห้ามแคชหรือบันทึกการตอบกลับนี้

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

endpointId
path · จำเป็น
  • valuestring

    format: "uuid"

x-banger-product-id
header

จำเป็นเว้นแต่คีย์ API ที่ยืนยันตัวตนผูกกับผลิตภัณฑ์แล้ว

  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

URL แหล่งข้อมูลส่วนตัว URL เว็บฮุกสาธารณะ และโทเค็น bearer แยก

application/json

  • valueobject
  • dataไม่ได้ระบุ
  • allOf 1object
  • idstringจำเป็น

    format: "uuid"

  • kindstringจำเป็น

    enum: "outbound", "inbound"

  • source_keystringจำเป็น

    pattern: "^[a-z0-9][a-z0-9_-]{0,62}$"

  • namestringจำเป็น
  • endpoint_urlstring | null

    format: "uri"

  • statusstringจำเป็น

    enum: "active", "disabled", "error"

  • event_typesarrayจำเป็น
  • แต่ละรายการstring
  • connection_idstring | null

    format: "uuid"

  • delivered_countintegerจำเป็น

    minimum: 0

  • failed_countintegerจำเป็น

    minimum: 0

  • last_delivered_atstring | null

    format: "date-time"

  • last_received_atstring | null

    format: "date-time"

  • last_error_codestring | null
  • created_atstringจำเป็น

    format: "date-time"

  • updated_atstringจำเป็น

    format: "date-time"

  • allOf 2object
  • signing_secretstring

    ความลับลงลายเซ็นคำขอขาออก

  • source_urlstring

    URL เหตุการณ์ขาเข้าที่มีความลับซึ่งเดาไม่ได้

    format: "uri"

  • webhook_urlstring

    URL ขาเข้าสาธารณะสำหรับใช้กับส่วนหัว Authorization

    format: "uri"

  • bearer_tokenstring

    โทเค็นเอนด์พอยต์ลับสำหรับส่งเป็น Authorization Bearer

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/webhooks/{endpointId}/credentials' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'x-banger-product-id: 00000000-0000-4000-8000-000000000001'
GET/v1/workspaces/{workspaceId}/webhooks/{endpointId}/deliveries

แสดงความพยายามส่งถึงล่าสุดและผล HTTP ของเว็บฮุกขาออก

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

endpointId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

ความพยายามส่งถึงล่าสุด

application/json

  • valueobject
  • dataarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น

    format: "uuid"

  • event_typestringจำเป็น
  • statusstringจำเป็น

    enum: "pending", "delivering", "delivered", "failed"

  • attempt_countintegerจำเป็น

    minimum: 0

  • http_statusinteger | null

    minimum: 100 · maximum: 599

  • last_error_codestring | null
  • delivered_atstring | null

    format: "date-time"

  • created_atstringจำเป็น

    format: "date-time"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/webhooks/{endpointId}/deliveries' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/webhooks/{endpointId}/test

เข้าคิวหนึ่งเหตุการณ์จำลองที่ลงลายเซ็นผ่านเส้นทางส่งถึงปกติที่ลองซ้ำ

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

endpointId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 202

เข้าคิวเหตุการณ์ทดสอบที่ลงลายเซ็นแล้ว

application/json

  • valueobject
  • dataobjectจำเป็น
  • idstringจำเป็น

    format: "uuid"

  • statusstringจำเป็น

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/webhooks/{endpointId}/test' \
  --header "Authorization: Bearer $BANGER_API_KEY"

การเริ่มต้นใช้งาน

PUT/v1/workspaces/{workspaceId}/onboarding/path

selectOnboardingPath

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • pathstringจำเป็น

    enum: "starter_identity", "company_domain", "resend_gateway", "banger_native_sending", "work_mailbox", "gmail", "native_mailbox", "existing_provider"

การตอบกลับสำเร็จ 200

เลือกขั้นตอนเริ่มต้นที่เซิร์ฟเวอร์กำหนดแล้ว

application/json

  • valueobject
  • dataobjectจำเป็น
  • pathstringจำเป็น

    enum: "starter_identity", "company_domain", "resend_gateway", "banger_native_sending", "work_mailbox", "gmail", "native_mailbox", "existing_provider"

ตัวอย่าง curl

curl --request PUT --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/onboarding/path' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "path": "starter_identity"
}'
GET/v1/workspaces/{workspaceId}/onboarding/guided

อ่านการตั้งค่าหลัก (เชื่อมต่อ แบรนด์ โดเมน) โดยไม่สร้างทรัพยากรหรือส่งอีเมล

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

x-banger-product-id
header

ผลิตภัณฑ์ที่เลือก จำเป็นเมื่อมีหลายผลิตภัณฑ์ใช้งาน

  • valuestring

    format: "uuid"

details
query

รวมฉบับร่างที่แก้ได้ แบรนด์ และระเบียน DNS ที่เชื่อถือได้

  • valueinteger

    enum: 1

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

ความคืบหน้าที่บันทึกและความสามารถที่ตรวจสอบแยกต่างหาก

application/json

  • valueobject
  • dataobjectจำเป็น
  • product_idstringจำเป็น

    format: "uuid"

  • lessonobject
  • stepstringจำเป็น
  • purposestringจำเป็น
  • setupstringจำเป็น
  • boundarystringจำเป็น
  • example_requeststringจำเป็น
  • resultstringจำเป็น
  • choicestringจำเป็น
  • skipstring | nullจำเป็น
  • guidancestring
  • current_stepstringจำเป็น

    enum: "connect", "business", "identity", "sending"

  • completed_countintegerจำเป็น
  • total_stepsintegerจำเป็น

    enum: 4

  • setupobject

    ด่านตั้งค่าบนเว็บและแบนเนอร์ทำการตั้งค่าให้เสร็จ แต่ละส่วนเป็น complete, verifying (เพิ่มระเบียนโดเมนแล้ว ยังตรวจ DNS), skipped หรือ missing

  • connectstringจำเป็น

    enum: "complete", "skipped", "missing"

  • brandstringจำเป็น

    enum: "complete", "skipped", "missing"

  • domainstringจำเป็น

    enum: "complete", "verifying", "skipped", "missing"

  • gate_openbooleanจำเป็น

    True ขณะที่แบรนด์หรือโดเมนยังไม่เสร็จและยังไม่ข้าม

  • missingarrayจำเป็น

    ส่วนที่ข้ามหรือยังไม่เคยทำเสร็จ

  • แต่ละรายการstring

    enum: "connect", "brand", "domain"

  • unlock_video_dueboolean

    True ตั้งแต่ยืนยันโดเมนจนพื้นที่ทำงานดูวิดีโอ "สิ่งที่ทำได้ตอนนี้" แล้ว

  • agent_client_namestring | null

    แอป AI ที่เชื่อมต่อ

  • completebooleanจำเป็น
  • shared_education_completeboolean
  • outcomestringจำเป็น

    enum: "in_progress", "production_deferred", "production_ready"

  • recommended_actionstringจำเป็น
  • readinessobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมboolean
  • progressobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • stepsarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น
  • titlestringจำเป็น
  • explanationstring
  • statusstringจำเป็น

    enum: "not_started", "in_progress", "waiting", "needs_attention", "complete", "skipped"

  • blocking_dependencystring | null
  • recommended_actionstring
  • actionsarrayจำเป็น
  • แต่ละรายการstring
  • resource_idsarrayจำเป็น
  • แต่ละรายการstring
  • evidenceobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/onboarding/guided?details=1' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'x-banger-product-id: 00000000-0000-4000-8000-000000000001'
POST/v1/workspaces/{workspaceId}/onboarding/guided

ดำเนินการเริ่มต้นที่ระบุชัดและลองซ้ำได้ปลอดภัยหนึ่งรายการสำหรับผลิตภัณฑ์ที่เลือก

ส่งเฉพาะที่อยู่สมัครที่ยืนยันแล้วของผู้ใช้ที่อนุญาต เส้นทางยังไม่ใช้งานและแคมเปญยังไม่ส่ง ใช้ขอบเขตการอนุมัติย้ายระบบเดิม

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

x-banger-product-id
header

ผลิตภัณฑ์ที่เลือก จำเป็นเมื่อมีหลายผลิตภัณฑ์ใช้งาน

  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject
  • actionstringจำเป็น

    enum: "begin_guidance", "save_business", "discover_brand", "skip_business", "choose_identity", "defer_identity", "skip_domain", "choose_delivery", "setup_receiving", "defer_receiving", "setup_sending", "dns_applied", "verify_dns", "continue_domain", "add_inboxes", "skip_inboxes", "finish_for_now", "finish"

  • dataobject

    ฟิลด์ธุรกิจ company_name, primary_goal, website_url และ brand ฟิลด์ฉบับร่าง name, subject, preview_text, body_text และ edit ฟิลด์ตัวตน domain และ local_part ไม่รับข้อมูลผู้รับ

  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้

การตอบกลับสำเร็จ 200

สถานะหลักที่รีเฟรชหลังการดำเนินการที่ขอ

application/json

  • valueobject
  • dataobjectจำเป็น
  • product_idstringจำเป็น

    format: "uuid"

  • lessonobject
  • stepstringจำเป็น
  • purposestringจำเป็น
  • setupstringจำเป็น
  • boundarystringจำเป็น
  • example_requeststringจำเป็น
  • resultstringจำเป็น
  • choicestringจำเป็น
  • skipstring | nullจำเป็น
  • guidancestring
  • current_stepstringจำเป็น

    enum: "connect", "business", "identity", "sending"

  • completed_countintegerจำเป็น
  • total_stepsintegerจำเป็น

    enum: 4

  • setupobject

    ด่านตั้งค่าบนเว็บและแบนเนอร์ทำการตั้งค่าให้เสร็จ แต่ละส่วนเป็น complete, verifying (เพิ่มระเบียนโดเมนแล้ว ยังตรวจ DNS), skipped หรือ missing

  • connectstringจำเป็น

    enum: "complete", "skipped", "missing"

  • brandstringจำเป็น

    enum: "complete", "skipped", "missing"

  • domainstringจำเป็น

    enum: "complete", "verifying", "skipped", "missing"

  • gate_openbooleanจำเป็น

    True ขณะที่แบรนด์หรือโดเมนยังไม่เสร็จและยังไม่ข้าม

  • missingarrayจำเป็น

    ส่วนที่ข้ามหรือยังไม่เคยทำเสร็จ

  • แต่ละรายการstring

    enum: "connect", "brand", "domain"

  • unlock_video_dueboolean

    True ตั้งแต่ยืนยันโดเมนจนพื้นที่ทำงานดูวิดีโอ "สิ่งที่ทำได้ตอนนี้" แล้ว

  • agent_client_namestring | null

    แอป AI ที่เชื่อมต่อ

  • completebooleanจำเป็น
  • shared_education_completeboolean
  • outcomestringจำเป็น

    enum: "in_progress", "production_deferred", "production_ready"

  • recommended_actionstringจำเป็น
  • readinessobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมboolean
  • progressobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • stepsarrayจำเป็น
  • แต่ละรายการobject
  • idstringจำเป็น
  • titlestringจำเป็น
  • explanationstring
  • statusstringจำเป็น

    enum: "not_started", "in_progress", "waiting", "needs_attention", "complete", "skipped"

  • blocking_dependencystring | null
  • recommended_actionstring
  • actionsarrayจำเป็น
  • แต่ละรายการstring
  • resource_idsarrayจำเป็น
  • แต่ละรายการstring
  • evidenceobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/onboarding/guided' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'x-banger-product-id: 00000000-0000-4000-8000-000000000001' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "action": "begin_guidance",
  "data": {}
}'
GET/v1/workspaces/{workspaceId}/onboarding/agent-state

ดำเนินเส้นทางเริ่มต้นที่เบราว์เซอร์และ MCP ใช้ร่วมกันต่อ

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

สถานะเริ่มต้นปัจจุบันที่เซิร์ฟเวอร์ดูแล

application/json

  • valueobject
  • dataไม่ได้ระบุจำเป็น
  • allOf 1object
  • workspace_idstringจำเป็น

    format: "uuid"

  • statusstringจำเป็น

    enum: "choose_agent", "discovering", "planning", "implementing", "validating", "ready", "complete"

  • entry_surfacestring | nullจำเป็น

    enum: "codex", "chatgpt", "claude", "grok", "other_agent", "browser", null

  • agent_statusstringจำเป็น

    enum: "not_connected", "connecting", "connected", "browser_only"

  • agent_client_namestring | nullจำเป็น
  • domain_choicestringจำเป็น

    enum: "undecided", "company_domain", "no_domain"

  • company_domainstring | nullจำเป็น
  • domain_chosen_atstring | nullจำเป็น

    format: "date-time"

  • business_contextobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • opportunity_planarrayจำเป็น
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • implementation_summaryobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • validation_summaryobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • journey_metadataobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • context_reviewed_atstring | nullจำเป็น

    format: "date-time"

  • plan_proposed_atstring | nullจำเป็น

    format: "date-time"

  • plan_approved_atstring | nullจำเป็น

    format: "date-time"

  • completed_atstring | nullจำเป็น

    format: "date-time"

  • versionintegerจำเป็น

    format: "int64" · minimum: 1

  • updated_atstringจำเป็น

    format: "date-time"

  • allOf 2object
  • domain_discoveryไม่ได้ระบุจำเป็น
  • oneOf 1object
  • domainstringจำเป็น
  • scan_statusstringจำเป็น

    enum: "complete", "partial", "failed"

  • companyobjectจำเป็น
  • domainstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • website_urlstring | nullจำเป็น

    format: "uri"

    ละส่วนที่ซ้อนลึกกว่านี้

  • website_statusstringจำเป็น

    enum: "available", "missing", "blocked", "error"

    ละส่วนที่ซ้อนลึกกว่านี้

  • company_namestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • summarystringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • audiencestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • offeringsarrayจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • logo_urlstring | nullจำเป็น

    format: "uri"

    ละส่วนที่ซ้อนลึกกว่านี้

  • favicon_urlstring | nullจำเป็น

    format: "uri"

    ละส่วนที่ซ้อนลึกกว่านี้

  • visual_identityobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • source_snapshotobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • dns_signalsarrayจำเป็น
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • dns_providerไม่ได้ระบุจำเป็น
  • oneOf 1object

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • oneOf 2null

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_detectionsarrayจำเป็น
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • capability_summaryarrayจำเป็น
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • recommended_connectionsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • connection_planarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • limitationsarrayจำเป็น
  • แต่ละรายการstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • scanned_atstringจำเป็น

    format: "date-time"

  • confirmed_atstring | nullจำเป็น

    format: "date-time"

  • oneOf 2null
  • recommended_connectionsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • keystringจำเป็น
  • namestringจำเป็น
  • categorystringจำเป็น

    enum: "email", "customer", "product", "work", "data"

  • prioritystringจำเป็น

    enum: "required", "recommended"

  • reasonstringจำเป็น
  • sourcestringจำเป็น

    enum: "dns", "business_context", "opportunity_plan", "banger_recommendation"

  • setup_modestringจำเป็น

    enum: "oauth", "secure_credentials"

  • availablebooleanจำเป็น
  • provider_keystring
  • evidencearrayจำเป็น
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • domain_bundleobject | nullจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • growthobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • activationobjectจำเป็น
  • modestringจำเป็น

    enum: "hosted", "company_domain", "starter"

  • statusstringจำเป็น

    enum: "hosted_mailbox_required", "hosted_mailbox_proving", "hosted_mailbox_ready", "needs_context", "needs_provisioning", "provisioning", "dns_required", "ready_for_proof", "proving", "activated", "starter_required", "starter_proving", "starter_ready"

  • domainstring | nullจำเป็น
  • sending_domain_idstring | nullจำเป็น

    format: "uuid"

  • mailbox_idstring | nullจำเป็น

    format: "uuid"

  • mailbox_addressstring | nullจำเป็น

    format: "email"

  • exact_dns_recordsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • lane_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • providerstringจำเป็น

    enum: "banger", "resend"

    ละส่วนที่ซ้อนลึกกว่านี้

  • purposestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • typestringจำเป็น

    enum: "TXT", "MX", "CNAME"

    ละส่วนที่ซ้อนลึกกว่านี้

  • namestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • valuestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • priorityinteger | nullจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • requiredbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • statusstringจำเป็น

    enum: "pending", "verified", "error"

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_statusstringจำเป็น

    enum: "pending", "verified", "error", "not_applicable"

    ละส่วนที่ซ้อนลึกกว่านี้

  • first_observed_atstring | nullจำเป็น

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • last_checked_atstring | nullจำเป็น

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • errorobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_referencestring | nullจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • checkpointsarrayจำเป็น
  • แต่ละรายการobject
  • keystringจำเป็น

    enum: "domain", "provider", "infrastructure", "dns", "mailbox", "product", "broadcast"

    ละส่วนที่ซ้อนลึกกว่านี้

  • labelstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • statusstringจำเป็น

    enum: "pending", "working", "action_required", "verified"

    ละส่วนที่ซ้อนลึกกว่านี้

  • detailstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • lanesobjectจำเป็น
  • mailboxobjectจำเป็น
  • statusstringจำเป็น

    enum: "pending", "working", "action_required", "verified"

    ละส่วนที่ซ้อนลึกกว่านี้

  • detailstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • transactionalobjectจำเป็น
  • statusstringจำเป็น

    enum: "pending", "working", "action_required", "verified"

    ละส่วนที่ซ้อนลึกกว่านี้

  • detailstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • marketingobjectจำเป็น
  • statusstringจำเป็น

    enum: "pending", "working", "action_required", "verified"

    ละส่วนที่ซ้อนลึกกว่านี้

  • detailstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • proofไม่ได้ระบุจำเป็น
  • oneOf 1object
  • proof_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • mailbox_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • mailbox_addressstringจำเป็น

    format: "email"

    ละส่วนที่ซ้อนลึกกว่านี้

  • command_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • phasestringจำเป็น

    enum: "sending", "sent", "received", "checked", "failed"

    ละส่วนที่ซ้อนลึกกว่านี้

  • send_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • receive_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • round_trip_check_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • agent_check_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • expected_subjectstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • expected_body_textstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • received_message_idstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • received_thread_idstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • received_subjectstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • received_body_textstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • received_atstring

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • agent_labelstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • agent_suggested_actionstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • error_codestring

    ละส่วนที่ซ้อนลึกกว่านี้

  • replayedbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • oneOf 2object
  • proof_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • domain_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • native_domain_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • mailbox_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • mailbox_addressstringจำเป็น

    format: "email"

    ละส่วนที่ซ้อนลึกกว่านี้

  • transactional_send_intent_idstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • marketing_send_intent_idstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • transactional_subjectstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • marketing_subjectstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • phasestringจำเป็น

    enum: "sending", "receiving", "received", "checked", "failed"

    ละส่วนที่ซ้อนลึกกว่านี้

  • send_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • transactional_receivedbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • marketing_receivedbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • receive_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • agent_check_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • error_codestring

    ละส่วนที่ซ้อนลึกกว่านี้

  • replayedbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • oneOf 3null
  • overall_readybooleanจำเป็น
  • production_readybooleanจำเป็น
  • completedbooleanจำเป็น
  • pendingbooleanจำเป็น
  • next_actionstringจำเป็น

    enum: "choose_agent", "provision_hosted_mailbox", "send_aha_1", "wait_for_aha_1", "offer_custom_domain", "review_domain_bundle", "provision_domain_bundle", "wait_for_dns_records", "ask_computer_use_permission", "configure_dns_with_computer_use", "present_manual_dns_instructions", "wait_for_dns_propagation", "send_aha_2", "wait_for_aha_2", "create_starter_mailbox", "run_starter_proof", "wait_for_starter_proof", "collect_business_context", "build_lifecycle_map", "review_growth_system", "connect_required_services", "explain_persistent_mcp", "offer_autopilot", "activate_autopilot", "validate", "complete", "open_dashboard"

  • action_requiredobjectจำเป็น
  • typestringจำเป็น
  • requiredbooleanจำเป็น
  • actionstringจำเป็น

    enum: "choose_agent", "provision_hosted_mailbox", "send_aha_1", "wait_for_aha_1", "offer_custom_domain", "review_domain_bundle", "provision_domain_bundle", "wait_for_dns_records", "ask_computer_use_permission", "configure_dns_with_computer_use", "present_manual_dns_instructions", "wait_for_dns_propagation", "send_aha_2", "wait_for_aha_2", "create_starter_mailbox", "run_starter_proof", "wait_for_starter_proof", "collect_business_context", "build_lifecycle_map", "review_growth_system", "connect_required_services", "explain_persistent_mcp", "offer_autopilot", "activate_autopilot", "validate", "complete", "open_dashboard"

  • urlstring | nullจำเป็น

    format: "uri"

  • instructionsstring | nullจำเป็น
  • secure_urlstring | nullจำเป็น

    format: "uri"

  • mcp_urlstringจำเป็น

    format: "uri"

  • dashboard_urlstringจำเป็น

    format: "uri"

ตัวอย่าง curl

curl --request GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/onboarding/agent-state' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/onboarding/agent-state/start

เลือกหน้าเริ่มต้นที่เอเจนต์นำหรือเบราว์เซอร์สำรอง

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • entry_surfacestringจำเป็น

    enum: "codex", "chatgpt", "claude", "grok", "other_agent", "browser"

  • client_namestring

    minLength: 1 · maxLength: 100

การตอบกลับสำเร็จ 200

เริ่มหรือดำเนินเส้นทางต่อแล้ว

application/json

  • valueobject
  • dataไม่ได้ระบุจำเป็น
  • allOf 1object
  • workspace_idstringจำเป็น

    format: "uuid"

  • statusstringจำเป็น

    enum: "choose_agent", "discovering", "planning", "implementing", "validating", "ready", "complete"

  • entry_surfacestring | nullจำเป็น

    enum: "codex", "chatgpt", "claude", "grok", "other_agent", "browser", null

  • agent_statusstringจำเป็น

    enum: "not_connected", "connecting", "connected", "browser_only"

  • agent_client_namestring | nullจำเป็น
  • domain_choicestringจำเป็น

    enum: "undecided", "company_domain", "no_domain"

  • company_domainstring | nullจำเป็น
  • domain_chosen_atstring | nullจำเป็น

    format: "date-time"

  • business_contextobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • opportunity_planarrayจำเป็น
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • implementation_summaryobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • validation_summaryobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • journey_metadataobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • context_reviewed_atstring | nullจำเป็น

    format: "date-time"

  • plan_proposed_atstring | nullจำเป็น

    format: "date-time"

  • plan_approved_atstring | nullจำเป็น

    format: "date-time"

  • completed_atstring | nullจำเป็น

    format: "date-time"

  • versionintegerจำเป็น

    format: "int64" · minimum: 1

  • updated_atstringจำเป็น

    format: "date-time"

  • allOf 2object
  • domain_discoveryไม่ได้ระบุจำเป็น
  • oneOf 1object
  • domainstringจำเป็น
  • scan_statusstringจำเป็น

    enum: "complete", "partial", "failed"

  • companyobjectจำเป็น
  • domainstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • website_urlstring | nullจำเป็น

    format: "uri"

    ละส่วนที่ซ้อนลึกกว่านี้

  • website_statusstringจำเป็น

    enum: "available", "missing", "blocked", "error"

    ละส่วนที่ซ้อนลึกกว่านี้

  • company_namestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • summarystringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • audiencestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • offeringsarrayจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • logo_urlstring | nullจำเป็น

    format: "uri"

    ละส่วนที่ซ้อนลึกกว่านี้

  • favicon_urlstring | nullจำเป็น

    format: "uri"

    ละส่วนที่ซ้อนลึกกว่านี้

  • visual_identityobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • source_snapshotobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • dns_signalsarrayจำเป็น
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • dns_providerไม่ได้ระบุจำเป็น
  • oneOf 1object

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • oneOf 2null

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_detectionsarrayจำเป็น
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • capability_summaryarrayจำเป็น
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • recommended_connectionsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • connection_planarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • limitationsarrayจำเป็น
  • แต่ละรายการstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • scanned_atstringจำเป็น

    format: "date-time"

  • confirmed_atstring | nullจำเป็น

    format: "date-time"

  • oneOf 2null
  • recommended_connectionsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • keystringจำเป็น
  • namestringจำเป็น
  • categorystringจำเป็น

    enum: "email", "customer", "product", "work", "data"

  • prioritystringจำเป็น

    enum: "required", "recommended"

  • reasonstringจำเป็น
  • sourcestringจำเป็น

    enum: "dns", "business_context", "opportunity_plan", "banger_recommendation"

  • setup_modestringจำเป็น

    enum: "oauth", "secure_credentials"

  • availablebooleanจำเป็น
  • provider_keystring
  • evidencearrayจำเป็น
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • domain_bundleobject | nullจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • growthobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • activationobjectจำเป็น
  • modestringจำเป็น

    enum: "hosted", "company_domain", "starter"

  • statusstringจำเป็น

    enum: "hosted_mailbox_required", "hosted_mailbox_proving", "hosted_mailbox_ready", "needs_context", "needs_provisioning", "provisioning", "dns_required", "ready_for_proof", "proving", "activated", "starter_required", "starter_proving", "starter_ready"

  • domainstring | nullจำเป็น
  • sending_domain_idstring | nullจำเป็น

    format: "uuid"

  • mailbox_idstring | nullจำเป็น

    format: "uuid"

  • mailbox_addressstring | nullจำเป็น

    format: "email"

  • exact_dns_recordsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • lane_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • providerstringจำเป็น

    enum: "banger", "resend"

    ละส่วนที่ซ้อนลึกกว่านี้

  • purposestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • typestringจำเป็น

    enum: "TXT", "MX", "CNAME"

    ละส่วนที่ซ้อนลึกกว่านี้

  • namestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • valuestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • priorityinteger | nullจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • requiredbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • statusstringจำเป็น

    enum: "pending", "verified", "error"

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_statusstringจำเป็น

    enum: "pending", "verified", "error", "not_applicable"

    ละส่วนที่ซ้อนลึกกว่านี้

  • first_observed_atstring | nullจำเป็น

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • last_checked_atstring | nullจำเป็น

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • errorobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_referencestring | nullจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • checkpointsarrayจำเป็น
  • แต่ละรายการobject
  • keystringจำเป็น

    enum: "domain", "provider", "infrastructure", "dns", "mailbox", "product", "broadcast"

    ละส่วนที่ซ้อนลึกกว่านี้

  • labelstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • statusstringจำเป็น

    enum: "pending", "working", "action_required", "verified"

    ละส่วนที่ซ้อนลึกกว่านี้

  • detailstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • lanesobjectจำเป็น
  • mailboxobjectจำเป็น
  • statusstringจำเป็น

    enum: "pending", "working", "action_required", "verified"

    ละส่วนที่ซ้อนลึกกว่านี้

  • detailstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • transactionalobjectจำเป็น
  • statusstringจำเป็น

    enum: "pending", "working", "action_required", "verified"

    ละส่วนที่ซ้อนลึกกว่านี้

  • detailstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • marketingobjectจำเป็น
  • statusstringจำเป็น

    enum: "pending", "working", "action_required", "verified"

    ละส่วนที่ซ้อนลึกกว่านี้

  • detailstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • proofไม่ได้ระบุจำเป็น
  • oneOf 1object
  • proof_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • mailbox_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • mailbox_addressstringจำเป็น

    format: "email"

    ละส่วนที่ซ้อนลึกกว่านี้

  • command_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • phasestringจำเป็น

    enum: "sending", "sent", "received", "checked", "failed"

    ละส่วนที่ซ้อนลึกกว่านี้

  • send_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • receive_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • round_trip_check_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • agent_check_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • expected_subjectstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • expected_body_textstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • received_message_idstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • received_thread_idstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • received_subjectstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • received_body_textstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • received_atstring

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • agent_labelstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • agent_suggested_actionstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • error_codestring

    ละส่วนที่ซ้อนลึกกว่านี้

  • replayedbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • oneOf 2object
  • proof_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • domain_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • native_domain_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • mailbox_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • mailbox_addressstringจำเป็น

    format: "email"

    ละส่วนที่ซ้อนลึกกว่านี้

  • transactional_send_intent_idstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • marketing_send_intent_idstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • transactional_subjectstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • marketing_subjectstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • phasestringจำเป็น

    enum: "sending", "receiving", "received", "checked", "failed"

    ละส่วนที่ซ้อนลึกกว่านี้

  • send_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • transactional_receivedbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • marketing_receivedbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • receive_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • agent_check_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • error_codestring

    ละส่วนที่ซ้อนลึกกว่านี้

  • replayedbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • oneOf 3null
  • overall_readybooleanจำเป็น
  • production_readybooleanจำเป็น
  • completedbooleanจำเป็น
  • pendingbooleanจำเป็น
  • next_actionstringจำเป็น

    enum: "choose_agent", "provision_hosted_mailbox", "send_aha_1", "wait_for_aha_1", "offer_custom_domain", "review_domain_bundle", "provision_domain_bundle", "wait_for_dns_records", "ask_computer_use_permission", "configure_dns_with_computer_use", "present_manual_dns_instructions", "wait_for_dns_propagation", "send_aha_2", "wait_for_aha_2", "create_starter_mailbox", "run_starter_proof", "wait_for_starter_proof", "collect_business_context", "build_lifecycle_map", "review_growth_system", "connect_required_services", "explain_persistent_mcp", "offer_autopilot", "activate_autopilot", "validate", "complete", "open_dashboard"

  • action_requiredobjectจำเป็น
  • typestringจำเป็น
  • requiredbooleanจำเป็น
  • actionstringจำเป็น

    enum: "choose_agent", "provision_hosted_mailbox", "send_aha_1", "wait_for_aha_1", "offer_custom_domain", "review_domain_bundle", "provision_domain_bundle", "wait_for_dns_records", "ask_computer_use_permission", "configure_dns_with_computer_use", "present_manual_dns_instructions", "wait_for_dns_propagation", "send_aha_2", "wait_for_aha_2", "create_starter_mailbox", "run_starter_proof", "wait_for_starter_proof", "collect_business_context", "build_lifecycle_map", "review_growth_system", "connect_required_services", "explain_persistent_mcp", "offer_autopilot", "activate_autopilot", "validate", "complete", "open_dashboard"

  • urlstring | nullจำเป็น

    format: "uri"

  • instructionsstring | nullจำเป็น
  • secure_urlstring | nullจำเป็น

    format: "uri"

  • mcp_urlstringจำเป็น

    format: "uri"

  • dashboard_urlstringจำเป็น

    format: "uri"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/onboarding/agent-state/start' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "entry_surface": "codex",
  "client_name": "example"
}'
POST/v1/workspaces/{workspaceId}/onboarding/agent-state/aha-one

สร้างกล่องจดหมายที่โฮสต์ถาวรแบบ idempotent และเริ่มทดสอบรับส่งข้อความต้อนรับจริง

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

ดำเนินกล่องจดหมายที่โฮสต์และหลักฐานเดิมต่อแล้ว

application/json

  • valueobject
  • dataobjectจำเป็น
  • proof_idstringจำเป็น

    format: "uuid"

  • mailbox_idstringจำเป็น

    format: "uuid"

  • mailbox_addressstringจำเป็น

    format: "email"

  • command_idstringจำเป็น

    format: "uuid"

  • phasestringจำเป็น

    enum: "sending", "sent", "received", "checked", "failed"

  • send_completebooleanจำเป็น
  • receive_completebooleanจำเป็น
  • round_trip_check_completebooleanจำเป็น
  • agent_check_completebooleanจำเป็น
  • completebooleanจำเป็น
  • expected_subjectstringจำเป็น
  • expected_body_textstringจำเป็น
  • received_message_idstring

    format: "uuid"

  • received_thread_idstring

    format: "uuid"

  • received_subjectstring
  • received_body_textstring
  • received_atstring

    format: "date-time"

  • agent_labelstring
  • agent_suggested_actionstring
  • error_codestring
  • replayedbooleanจำเป็น

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/onboarding/agent-state/aha-one' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/onboarding/agent-state/agent-proof

ส่งหลักฐานเชื่อมต่อเอเจนต์ที่ผูก OAuth ไปยังกล่องจดหมายที่โฮสต์หลัก

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

สิทธิ์ OAuth เดิมเรียกหลักฐานซ้ำหรือทำเสร็จแล้ว

application/json

  • valueobject
  • dataobjectจำเป็น
  • statusstringจำเป็น

    enum: "pending", "verified"

  • attempt_idstringจำเป็น

    format: "uuid"

  • oauth_grant_idstringจำเป็น
  • oauth_client_idstring | nullจำเป็น
  • client_namestring | nullจำเป็น
  • mailbox_idstringจำเป็น

    format: "uuid"

  • mailbox_addressstringจำเป็น

    format: "email"

  • expected_subjectstringจำเป็น
  • initiated_atstringจำเป็น

    format: "date-time"

  • command_idstring

    format: "uuid"

  • send_statusstring
  • dispatch_statusstring

    enum: "completed", "already-running", "already-settled"

  • replayedboolean
  • message_idstring

    format: "uuid"

  • thread_idstring

    format: "uuid"

  • received_atstring

    format: "date-time"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/onboarding/agent-state/agent-proof' \
  --header "Authorization: Bearer $BANGER_API_KEY"
PUT/v1/workspaces/{workspaceId}/onboarding/agent-state/decision

บันทึกหนึ่งตัวเลือกเริ่มต้นแบบค่อยเป็นค่อยไปที่ระบุชัด

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • decisionstringจำเป็น

    enum: "agent_connection_skipped", "goals_chosen", "domain_bundle_approved", "dns_computer_use_authorized", "dns_manual_selected", "dns_records_applied", "services_reviewed", "persistent_mcp_acknowledged", "autopilot_proposed", "autopilot_skipped", "autopilot_activated", "intro_video_seen", "unlock_video_seen"

  • detailsobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้

การตอบกลับสำเร็จ 200

บันทึกตัวเลือกในเส้นทางหลักแล้ว

application/json

  • valueobject
  • dataไม่ได้ระบุจำเป็น
  • allOf 1object
  • workspace_idstringจำเป็น

    format: "uuid"

  • statusstringจำเป็น

    enum: "choose_agent", "discovering", "planning", "implementing", "validating", "ready", "complete"

  • entry_surfacestring | nullจำเป็น

    enum: "codex", "chatgpt", "claude", "grok", "other_agent", "browser", null

  • agent_statusstringจำเป็น

    enum: "not_connected", "connecting", "connected", "browser_only"

  • agent_client_namestring | nullจำเป็น
  • domain_choicestringจำเป็น

    enum: "undecided", "company_domain", "no_domain"

  • company_domainstring | nullจำเป็น
  • domain_chosen_atstring | nullจำเป็น

    format: "date-time"

  • business_contextobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • opportunity_planarrayจำเป็น
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • implementation_summaryobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • validation_summaryobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • journey_metadataobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • context_reviewed_atstring | nullจำเป็น

    format: "date-time"

  • plan_proposed_atstring | nullจำเป็น

    format: "date-time"

  • plan_approved_atstring | nullจำเป็น

    format: "date-time"

  • completed_atstring | nullจำเป็น

    format: "date-time"

  • versionintegerจำเป็น

    format: "int64" · minimum: 1

  • updated_atstringจำเป็น

    format: "date-time"

  • allOf 2object
  • domain_discoveryไม่ได้ระบุจำเป็น
  • oneOf 1object
  • domainstringจำเป็น
  • scan_statusstringจำเป็น

    enum: "complete", "partial", "failed"

  • companyobjectจำเป็น
  • domainstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • website_urlstring | nullจำเป็น

    format: "uri"

    ละส่วนที่ซ้อนลึกกว่านี้

  • website_statusstringจำเป็น

    enum: "available", "missing", "blocked", "error"

    ละส่วนที่ซ้อนลึกกว่านี้

  • company_namestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • summarystringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • audiencestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • offeringsarrayจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • logo_urlstring | nullจำเป็น

    format: "uri"

    ละส่วนที่ซ้อนลึกกว่านี้

  • favicon_urlstring | nullจำเป็น

    format: "uri"

    ละส่วนที่ซ้อนลึกกว่านี้

  • visual_identityobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • source_snapshotobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • dns_signalsarrayจำเป็น
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • dns_providerไม่ได้ระบุจำเป็น
  • oneOf 1object

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • oneOf 2null

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_detectionsarrayจำเป็น
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • capability_summaryarrayจำเป็น
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • recommended_connectionsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • connection_planarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • limitationsarrayจำเป็น
  • แต่ละรายการstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • scanned_atstringจำเป็น

    format: "date-time"

  • confirmed_atstring | nullจำเป็น

    format: "date-time"

  • oneOf 2null
  • recommended_connectionsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • keystringจำเป็น
  • namestringจำเป็น
  • categorystringจำเป็น

    enum: "email", "customer", "product", "work", "data"

  • prioritystringจำเป็น

    enum: "required", "recommended"

  • reasonstringจำเป็น
  • sourcestringจำเป็น

    enum: "dns", "business_context", "opportunity_plan", "banger_recommendation"

  • setup_modestringจำเป็น

    enum: "oauth", "secure_credentials"

  • availablebooleanจำเป็น
  • provider_keystring
  • evidencearrayจำเป็น
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • domain_bundleobject | nullจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • growthobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • activationobjectจำเป็น
  • modestringจำเป็น

    enum: "hosted", "company_domain", "starter"

  • statusstringจำเป็น

    enum: "hosted_mailbox_required", "hosted_mailbox_proving", "hosted_mailbox_ready", "needs_context", "needs_provisioning", "provisioning", "dns_required", "ready_for_proof", "proving", "activated", "starter_required", "starter_proving", "starter_ready"

  • domainstring | nullจำเป็น
  • sending_domain_idstring | nullจำเป็น

    format: "uuid"

  • mailbox_idstring | nullจำเป็น

    format: "uuid"

  • mailbox_addressstring | nullจำเป็น

    format: "email"

  • exact_dns_recordsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • lane_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • providerstringจำเป็น

    enum: "banger", "resend"

    ละส่วนที่ซ้อนลึกกว่านี้

  • purposestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • typestringจำเป็น

    enum: "TXT", "MX", "CNAME"

    ละส่วนที่ซ้อนลึกกว่านี้

  • namestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • valuestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • priorityinteger | nullจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • requiredbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • statusstringจำเป็น

    enum: "pending", "verified", "error"

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_statusstringจำเป็น

    enum: "pending", "verified", "error", "not_applicable"

    ละส่วนที่ซ้อนลึกกว่านี้

  • first_observed_atstring | nullจำเป็น

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • last_checked_atstring | nullจำเป็น

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • errorobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_referencestring | nullจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • checkpointsarrayจำเป็น
  • แต่ละรายการobject
  • keystringจำเป็น

    enum: "domain", "provider", "infrastructure", "dns", "mailbox", "product", "broadcast"

    ละส่วนที่ซ้อนลึกกว่านี้

  • labelstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • statusstringจำเป็น

    enum: "pending", "working", "action_required", "verified"

    ละส่วนที่ซ้อนลึกกว่านี้

  • detailstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • lanesobjectจำเป็น
  • mailboxobjectจำเป็น
  • statusstringจำเป็น

    enum: "pending", "working", "action_required", "verified"

    ละส่วนที่ซ้อนลึกกว่านี้

  • detailstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • transactionalobjectจำเป็น
  • statusstringจำเป็น

    enum: "pending", "working", "action_required", "verified"

    ละส่วนที่ซ้อนลึกกว่านี้

  • detailstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • marketingobjectจำเป็น
  • statusstringจำเป็น

    enum: "pending", "working", "action_required", "verified"

    ละส่วนที่ซ้อนลึกกว่านี้

  • detailstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • proofไม่ได้ระบุจำเป็น
  • oneOf 1object
  • proof_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • mailbox_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • mailbox_addressstringจำเป็น

    format: "email"

    ละส่วนที่ซ้อนลึกกว่านี้

  • command_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • phasestringจำเป็น

    enum: "sending", "sent", "received", "checked", "failed"

    ละส่วนที่ซ้อนลึกกว่านี้

  • send_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • receive_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • round_trip_check_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • agent_check_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • expected_subjectstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • expected_body_textstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • received_message_idstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • received_thread_idstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • received_subjectstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • received_body_textstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • received_atstring

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • agent_labelstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • agent_suggested_actionstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • error_codestring

    ละส่วนที่ซ้อนลึกกว่านี้

  • replayedbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • oneOf 2object
  • proof_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • domain_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • native_domain_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • mailbox_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • mailbox_addressstringจำเป็น

    format: "email"

    ละส่วนที่ซ้อนลึกกว่านี้

  • transactional_send_intent_idstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • marketing_send_intent_idstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • transactional_subjectstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • marketing_subjectstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • phasestringจำเป็น

    enum: "sending", "receiving", "received", "checked", "failed"

    ละส่วนที่ซ้อนลึกกว่านี้

  • send_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • transactional_receivedbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • marketing_receivedbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • receive_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • agent_check_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • error_codestring

    ละส่วนที่ซ้อนลึกกว่านี้

  • replayedbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • oneOf 3null
  • overall_readybooleanจำเป็น
  • production_readybooleanจำเป็น
  • completedbooleanจำเป็น
  • pendingbooleanจำเป็น
  • next_actionstringจำเป็น

    enum: "choose_agent", "provision_hosted_mailbox", "send_aha_1", "wait_for_aha_1", "offer_custom_domain", "review_domain_bundle", "provision_domain_bundle", "wait_for_dns_records", "ask_computer_use_permission", "configure_dns_with_computer_use", "present_manual_dns_instructions", "wait_for_dns_propagation", "send_aha_2", "wait_for_aha_2", "create_starter_mailbox", "run_starter_proof", "wait_for_starter_proof", "collect_business_context", "build_lifecycle_map", "review_growth_system", "connect_required_services", "explain_persistent_mcp", "offer_autopilot", "activate_autopilot", "validate", "complete", "open_dashboard"

  • action_requiredobjectจำเป็น
  • typestringจำเป็น
  • requiredbooleanจำเป็น
  • actionstringจำเป็น

    enum: "choose_agent", "provision_hosted_mailbox", "send_aha_1", "wait_for_aha_1", "offer_custom_domain", "review_domain_bundle", "provision_domain_bundle", "wait_for_dns_records", "ask_computer_use_permission", "configure_dns_with_computer_use", "present_manual_dns_instructions", "wait_for_dns_propagation", "send_aha_2", "wait_for_aha_2", "create_starter_mailbox", "run_starter_proof", "wait_for_starter_proof", "collect_business_context", "build_lifecycle_map", "review_growth_system", "connect_required_services", "explain_persistent_mcp", "offer_autopilot", "activate_autopilot", "validate", "complete", "open_dashboard"

  • urlstring | nullจำเป็น

    format: "uri"

  • instructionsstring | nullจำเป็น
  • secure_urlstring | nullจำเป็น

    format: "uri"

  • mcp_urlstringจำเป็น

    format: "uri"

  • dashboard_urlstringจำเป็น

    format: "uri"

ตัวอย่าง curl

curl --request PUT --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/onboarding/agent-state/decision' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "decision": "agent_connection_skipped",
  "details": {}
}'
PUT/v1/workspaces/{workspaceId}/onboarding/agent-state/domain-choice

บันทึกการตัดสินใจเริ่มต้นของผู้ใช้ว่าจะใช้โดเมนบริษัทหรือไม่มีโดเมน และค้นหาตามกระบวนการหลัก

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • choicestringจำเป็น

    enum: "company_domain", "no_domain"

  • domainstring

    minLength: 3 · maxLength: 253

การตอบกลับสำเร็จ 200

บันทึกการตัดสินใจโดเมนและดำเนินเส้นทางต่อแล้ว

application/json

  • valueobject
  • dataไม่ได้ระบุจำเป็น
  • allOf 1object
  • workspace_idstringจำเป็น

    format: "uuid"

  • statusstringจำเป็น

    enum: "choose_agent", "discovering", "planning", "implementing", "validating", "ready", "complete"

  • entry_surfacestring | nullจำเป็น

    enum: "codex", "chatgpt", "claude", "grok", "other_agent", "browser", null

  • agent_statusstringจำเป็น

    enum: "not_connected", "connecting", "connected", "browser_only"

  • agent_client_namestring | nullจำเป็น
  • domain_choicestringจำเป็น

    enum: "undecided", "company_domain", "no_domain"

  • company_domainstring | nullจำเป็น
  • domain_chosen_atstring | nullจำเป็น

    format: "date-time"

  • business_contextobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • opportunity_planarrayจำเป็น
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • implementation_summaryobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • validation_summaryobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • journey_metadataobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • context_reviewed_atstring | nullจำเป็น

    format: "date-time"

  • plan_proposed_atstring | nullจำเป็น

    format: "date-time"

  • plan_approved_atstring | nullจำเป็น

    format: "date-time"

  • completed_atstring | nullจำเป็น

    format: "date-time"

  • versionintegerจำเป็น

    format: "int64" · minimum: 1

  • updated_atstringจำเป็น

    format: "date-time"

  • allOf 2object
  • domain_discoveryไม่ได้ระบุจำเป็น
  • oneOf 1object
  • domainstringจำเป็น
  • scan_statusstringจำเป็น

    enum: "complete", "partial", "failed"

  • companyobjectจำเป็น
  • domainstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • website_urlstring | nullจำเป็น

    format: "uri"

    ละส่วนที่ซ้อนลึกกว่านี้

  • website_statusstringจำเป็น

    enum: "available", "missing", "blocked", "error"

    ละส่วนที่ซ้อนลึกกว่านี้

  • company_namestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • summarystringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • audiencestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • offeringsarrayจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • logo_urlstring | nullจำเป็น

    format: "uri"

    ละส่วนที่ซ้อนลึกกว่านี้

  • favicon_urlstring | nullจำเป็น

    format: "uri"

    ละส่วนที่ซ้อนลึกกว่านี้

  • visual_identityobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • source_snapshotobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • dns_signalsarrayจำเป็น
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • dns_providerไม่ได้ระบุจำเป็น
  • oneOf 1object

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • oneOf 2null

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_detectionsarrayจำเป็น
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • capability_summaryarrayจำเป็น
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • recommended_connectionsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • connection_planarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • limitationsarrayจำเป็น
  • แต่ละรายการstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • scanned_atstringจำเป็น

    format: "date-time"

  • confirmed_atstring | nullจำเป็น

    format: "date-time"

  • oneOf 2null
  • recommended_connectionsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • keystringจำเป็น
  • namestringจำเป็น
  • categorystringจำเป็น

    enum: "email", "customer", "product", "work", "data"

  • prioritystringจำเป็น

    enum: "required", "recommended"

  • reasonstringจำเป็น
  • sourcestringจำเป็น

    enum: "dns", "business_context", "opportunity_plan", "banger_recommendation"

  • setup_modestringจำเป็น

    enum: "oauth", "secure_credentials"

  • availablebooleanจำเป็น
  • provider_keystring
  • evidencearrayจำเป็น
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • domain_bundleobject | nullจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • growthobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • activationobjectจำเป็น
  • modestringจำเป็น

    enum: "hosted", "company_domain", "starter"

  • statusstringจำเป็น

    enum: "hosted_mailbox_required", "hosted_mailbox_proving", "hosted_mailbox_ready", "needs_context", "needs_provisioning", "provisioning", "dns_required", "ready_for_proof", "proving", "activated", "starter_required", "starter_proving", "starter_ready"

  • domainstring | nullจำเป็น
  • sending_domain_idstring | nullจำเป็น

    format: "uuid"

  • mailbox_idstring | nullจำเป็น

    format: "uuid"

  • mailbox_addressstring | nullจำเป็น

    format: "email"

  • exact_dns_recordsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • lane_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • providerstringจำเป็น

    enum: "banger", "resend"

    ละส่วนที่ซ้อนลึกกว่านี้

  • purposestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • typestringจำเป็น

    enum: "TXT", "MX", "CNAME"

    ละส่วนที่ซ้อนลึกกว่านี้

  • namestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • valuestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • priorityinteger | nullจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • requiredbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • statusstringจำเป็น

    enum: "pending", "verified", "error"

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_statusstringจำเป็น

    enum: "pending", "verified", "error", "not_applicable"

    ละส่วนที่ซ้อนลึกกว่านี้

  • first_observed_atstring | nullจำเป็น

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • last_checked_atstring | nullจำเป็น

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • errorobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_referencestring | nullจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • checkpointsarrayจำเป็น
  • แต่ละรายการobject
  • keystringจำเป็น

    enum: "domain", "provider", "infrastructure", "dns", "mailbox", "product", "broadcast"

    ละส่วนที่ซ้อนลึกกว่านี้

  • labelstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • statusstringจำเป็น

    enum: "pending", "working", "action_required", "verified"

    ละส่วนที่ซ้อนลึกกว่านี้

  • detailstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • lanesobjectจำเป็น
  • mailboxobjectจำเป็น
  • statusstringจำเป็น

    enum: "pending", "working", "action_required", "verified"

    ละส่วนที่ซ้อนลึกกว่านี้

  • detailstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • transactionalobjectจำเป็น
  • statusstringจำเป็น

    enum: "pending", "working", "action_required", "verified"

    ละส่วนที่ซ้อนลึกกว่านี้

  • detailstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • marketingobjectจำเป็น
  • statusstringจำเป็น

    enum: "pending", "working", "action_required", "verified"

    ละส่วนที่ซ้อนลึกกว่านี้

  • detailstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • proofไม่ได้ระบุจำเป็น
  • oneOf 1object
  • proof_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • mailbox_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • mailbox_addressstringจำเป็น

    format: "email"

    ละส่วนที่ซ้อนลึกกว่านี้

  • command_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • phasestringจำเป็น

    enum: "sending", "sent", "received", "checked", "failed"

    ละส่วนที่ซ้อนลึกกว่านี้

  • send_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • receive_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • round_trip_check_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • agent_check_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • expected_subjectstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • expected_body_textstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • received_message_idstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • received_thread_idstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • received_subjectstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • received_body_textstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • received_atstring

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • agent_labelstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • agent_suggested_actionstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • error_codestring

    ละส่วนที่ซ้อนลึกกว่านี้

  • replayedbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • oneOf 2object
  • proof_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • domain_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • native_domain_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • mailbox_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • mailbox_addressstringจำเป็น

    format: "email"

    ละส่วนที่ซ้อนลึกกว่านี้

  • transactional_send_intent_idstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • marketing_send_intent_idstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • transactional_subjectstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • marketing_subjectstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • phasestringจำเป็น

    enum: "sending", "receiving", "received", "checked", "failed"

    ละส่วนที่ซ้อนลึกกว่านี้

  • send_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • transactional_receivedbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • marketing_receivedbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • receive_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • agent_check_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • error_codestring

    ละส่วนที่ซ้อนลึกกว่านี้

  • replayedbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • oneOf 3null
  • overall_readybooleanจำเป็น
  • production_readybooleanจำเป็น
  • completedbooleanจำเป็น
  • pendingbooleanจำเป็น
  • next_actionstringจำเป็น

    enum: "choose_agent", "provision_hosted_mailbox", "send_aha_1", "wait_for_aha_1", "offer_custom_domain", "review_domain_bundle", "provision_domain_bundle", "wait_for_dns_records", "ask_computer_use_permission", "configure_dns_with_computer_use", "present_manual_dns_instructions", "wait_for_dns_propagation", "send_aha_2", "wait_for_aha_2", "create_starter_mailbox", "run_starter_proof", "wait_for_starter_proof", "collect_business_context", "build_lifecycle_map", "review_growth_system", "connect_required_services", "explain_persistent_mcp", "offer_autopilot", "activate_autopilot", "validate", "complete", "open_dashboard"

  • action_requiredobjectจำเป็น
  • typestringจำเป็น
  • requiredbooleanจำเป็น
  • actionstringจำเป็น

    enum: "choose_agent", "provision_hosted_mailbox", "send_aha_1", "wait_for_aha_1", "offer_custom_domain", "review_domain_bundle", "provision_domain_bundle", "wait_for_dns_records", "ask_computer_use_permission", "configure_dns_with_computer_use", "present_manual_dns_instructions", "wait_for_dns_propagation", "send_aha_2", "wait_for_aha_2", "create_starter_mailbox", "run_starter_proof", "wait_for_starter_proof", "collect_business_context", "build_lifecycle_map", "review_growth_system", "connect_required_services", "explain_persistent_mcp", "offer_autopilot", "activate_autopilot", "validate", "complete", "open_dashboard"

  • urlstring | nullจำเป็น

    format: "uri"

  • instructionsstring | nullจำเป็น
  • secure_urlstring | nullจำเป็น

    format: "uri"

  • mcp_urlstringจำเป็น

    format: "uri"

  • dashboard_urlstringจำเป็น

    format: "uri"

ตัวอย่าง curl

curl --request PUT --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/onboarding/agent-state/domain-choice' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "choice": "company_domain",
  "domain": "example"
}'
PUT/v1/workspaces/{workspaceId}/onboarding/agent-state/context

บันทึกบริบทธุรกิจที่ตรวจทานแล้วจากเบราว์เซอร์หรือเอเจนต์ที่เชื่อมต่อ

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • contextobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • company_domainstring

    สะพานรองรับตัวเชื่อมต่อที่แคชไว้ก่อน chooseAgentOnboardingDomain เอเจนต์ยังต้องถามผู้ใช้ก่อน

    minLength: 3 · maxLength: 253

  • client_namestring

    minLength: 1 · maxLength: 100

การตอบกลับสำเร็จ 200

รับบริบทแล้ว

application/json

  • valueobject
  • dataไม่ได้ระบุจำเป็น
  • allOf 1object
  • workspace_idstringจำเป็น

    format: "uuid"

  • statusstringจำเป็น

    enum: "choose_agent", "discovering", "planning", "implementing", "validating", "ready", "complete"

  • entry_surfacestring | nullจำเป็น

    enum: "codex", "chatgpt", "claude", "grok", "other_agent", "browser", null

  • agent_statusstringจำเป็น

    enum: "not_connected", "connecting", "connected", "browser_only"

  • agent_client_namestring | nullจำเป็น
  • domain_choicestringจำเป็น

    enum: "undecided", "company_domain", "no_domain"

  • company_domainstring | nullจำเป็น
  • domain_chosen_atstring | nullจำเป็น

    format: "date-time"

  • business_contextobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • opportunity_planarrayจำเป็น
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • implementation_summaryobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • validation_summaryobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • journey_metadataobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • context_reviewed_atstring | nullจำเป็น

    format: "date-time"

  • plan_proposed_atstring | nullจำเป็น

    format: "date-time"

  • plan_approved_atstring | nullจำเป็น

    format: "date-time"

  • completed_atstring | nullจำเป็น

    format: "date-time"

  • versionintegerจำเป็น

    format: "int64" · minimum: 1

  • updated_atstringจำเป็น

    format: "date-time"

  • allOf 2object
  • domain_discoveryไม่ได้ระบุจำเป็น
  • oneOf 1object
  • domainstringจำเป็น
  • scan_statusstringจำเป็น

    enum: "complete", "partial", "failed"

  • companyobjectจำเป็น
  • domainstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • website_urlstring | nullจำเป็น

    format: "uri"

    ละส่วนที่ซ้อนลึกกว่านี้

  • website_statusstringจำเป็น

    enum: "available", "missing", "blocked", "error"

    ละส่วนที่ซ้อนลึกกว่านี้

  • company_namestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • summarystringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • audiencestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • offeringsarrayจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • logo_urlstring | nullจำเป็น

    format: "uri"

    ละส่วนที่ซ้อนลึกกว่านี้

  • favicon_urlstring | nullจำเป็น

    format: "uri"

    ละส่วนที่ซ้อนลึกกว่านี้

  • visual_identityobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • source_snapshotobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • dns_signalsarrayจำเป็น
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • dns_providerไม่ได้ระบุจำเป็น
  • oneOf 1object

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • oneOf 2null

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_detectionsarrayจำเป็น
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • capability_summaryarrayจำเป็น
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • recommended_connectionsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • connection_planarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • limitationsarrayจำเป็น
  • แต่ละรายการstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • scanned_atstringจำเป็น

    format: "date-time"

  • confirmed_atstring | nullจำเป็น

    format: "date-time"

  • oneOf 2null
  • recommended_connectionsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • keystringจำเป็น
  • namestringจำเป็น
  • categorystringจำเป็น

    enum: "email", "customer", "product", "work", "data"

  • prioritystringจำเป็น

    enum: "required", "recommended"

  • reasonstringจำเป็น
  • sourcestringจำเป็น

    enum: "dns", "business_context", "opportunity_plan", "banger_recommendation"

  • setup_modestringจำเป็น

    enum: "oauth", "secure_credentials"

  • availablebooleanจำเป็น
  • provider_keystring
  • evidencearrayจำเป็น
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • domain_bundleobject | nullจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • growthobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • activationobjectจำเป็น
  • modestringจำเป็น

    enum: "hosted", "company_domain", "starter"

  • statusstringจำเป็น

    enum: "hosted_mailbox_required", "hosted_mailbox_proving", "hosted_mailbox_ready", "needs_context", "needs_provisioning", "provisioning", "dns_required", "ready_for_proof", "proving", "activated", "starter_required", "starter_proving", "starter_ready"

  • domainstring | nullจำเป็น
  • sending_domain_idstring | nullจำเป็น

    format: "uuid"

  • mailbox_idstring | nullจำเป็น

    format: "uuid"

  • mailbox_addressstring | nullจำเป็น

    format: "email"

  • exact_dns_recordsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • lane_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • providerstringจำเป็น

    enum: "banger", "resend"

    ละส่วนที่ซ้อนลึกกว่านี้

  • purposestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • typestringจำเป็น

    enum: "TXT", "MX", "CNAME"

    ละส่วนที่ซ้อนลึกกว่านี้

  • namestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • valuestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • priorityinteger | nullจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • requiredbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • statusstringจำเป็น

    enum: "pending", "verified", "error"

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_statusstringจำเป็น

    enum: "pending", "verified", "error", "not_applicable"

    ละส่วนที่ซ้อนลึกกว่านี้

  • first_observed_atstring | nullจำเป็น

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • last_checked_atstring | nullจำเป็น

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • errorobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_referencestring | nullจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • checkpointsarrayจำเป็น
  • แต่ละรายการobject
  • keystringจำเป็น

    enum: "domain", "provider", "infrastructure", "dns", "mailbox", "product", "broadcast"

    ละส่วนที่ซ้อนลึกกว่านี้

  • labelstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • statusstringจำเป็น

    enum: "pending", "working", "action_required", "verified"

    ละส่วนที่ซ้อนลึกกว่านี้

  • detailstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • lanesobjectจำเป็น
  • mailboxobjectจำเป็น
  • statusstringจำเป็น

    enum: "pending", "working", "action_required", "verified"

    ละส่วนที่ซ้อนลึกกว่านี้

  • detailstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • transactionalobjectจำเป็น
  • statusstringจำเป็น

    enum: "pending", "working", "action_required", "verified"

    ละส่วนที่ซ้อนลึกกว่านี้

  • detailstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • marketingobjectจำเป็น
  • statusstringจำเป็น

    enum: "pending", "working", "action_required", "verified"

    ละส่วนที่ซ้อนลึกกว่านี้

  • detailstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • proofไม่ได้ระบุจำเป็น
  • oneOf 1object
  • proof_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • mailbox_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • mailbox_addressstringจำเป็น

    format: "email"

    ละส่วนที่ซ้อนลึกกว่านี้

  • command_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • phasestringจำเป็น

    enum: "sending", "sent", "received", "checked", "failed"

    ละส่วนที่ซ้อนลึกกว่านี้

  • send_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • receive_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • round_trip_check_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • agent_check_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • expected_subjectstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • expected_body_textstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • received_message_idstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • received_thread_idstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • received_subjectstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • received_body_textstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • received_atstring

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • agent_labelstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • agent_suggested_actionstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • error_codestring

    ละส่วนที่ซ้อนลึกกว่านี้

  • replayedbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • oneOf 2object
  • proof_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • domain_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • native_domain_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • mailbox_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • mailbox_addressstringจำเป็น

    format: "email"

    ละส่วนที่ซ้อนลึกกว่านี้

  • transactional_send_intent_idstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • marketing_send_intent_idstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • transactional_subjectstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • marketing_subjectstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • phasestringจำเป็น

    enum: "sending", "receiving", "received", "checked", "failed"

    ละส่วนที่ซ้อนลึกกว่านี้

  • send_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • transactional_receivedbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • marketing_receivedbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • receive_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • agent_check_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • error_codestring

    ละส่วนที่ซ้อนลึกกว่านี้

  • replayedbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • oneOf 3null
  • overall_readybooleanจำเป็น
  • production_readybooleanจำเป็น
  • completedbooleanจำเป็น
  • pendingbooleanจำเป็น
  • next_actionstringจำเป็น

    enum: "choose_agent", "provision_hosted_mailbox", "send_aha_1", "wait_for_aha_1", "offer_custom_domain", "review_domain_bundle", "provision_domain_bundle", "wait_for_dns_records", "ask_computer_use_permission", "configure_dns_with_computer_use", "present_manual_dns_instructions", "wait_for_dns_propagation", "send_aha_2", "wait_for_aha_2", "create_starter_mailbox", "run_starter_proof", "wait_for_starter_proof", "collect_business_context", "build_lifecycle_map", "review_growth_system", "connect_required_services", "explain_persistent_mcp", "offer_autopilot", "activate_autopilot", "validate", "complete", "open_dashboard"

  • action_requiredobjectจำเป็น
  • typestringจำเป็น
  • requiredbooleanจำเป็น
  • actionstringจำเป็น

    enum: "choose_agent", "provision_hosted_mailbox", "send_aha_1", "wait_for_aha_1", "offer_custom_domain", "review_domain_bundle", "provision_domain_bundle", "wait_for_dns_records", "ask_computer_use_permission", "configure_dns_with_computer_use", "present_manual_dns_instructions", "wait_for_dns_propagation", "send_aha_2", "wait_for_aha_2", "create_starter_mailbox", "run_starter_proof", "wait_for_starter_proof", "collect_business_context", "build_lifecycle_map", "review_growth_system", "connect_required_services", "explain_persistent_mcp", "offer_autopilot", "activate_autopilot", "validate", "complete", "open_dashboard"

  • urlstring | nullจำเป็น

    format: "uri"

  • instructionsstring | nullจำเป็น
  • secure_urlstring | nullจำเป็น

    format: "uri"

  • mcp_urlstringจำเป็น

    format: "uri"

  • dashboard_urlstringจำเป็น

    format: "uri"

ตัวอย่าง curl

curl --request PUT --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/onboarding/agent-state/context' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "context": {},
  "company_domain": "example",
  "client_name": "example"
}'
PUT/v1/workspaces/{workspaceId}/onboarding/agent-state/plan

บันทึกตัวเลือกขั้นตอนถัดไปเฉพาะบุคคลหลังเปิดอีเมลจริงผ่าน

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • opportunitiesarrayจำเป็น

    minItems: 1 · maxItems: 100

  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้

การตอบกลับสำเร็จ 200

รับแผนโอกาสแล้ว

application/json

  • valueobject
  • dataไม่ได้ระบุจำเป็น
  • allOf 1object
  • workspace_idstringจำเป็น

    format: "uuid"

  • statusstringจำเป็น

    enum: "choose_agent", "discovering", "planning", "implementing", "validating", "ready", "complete"

  • entry_surfacestring | nullจำเป็น

    enum: "codex", "chatgpt", "claude", "grok", "other_agent", "browser", null

  • agent_statusstringจำเป็น

    enum: "not_connected", "connecting", "connected", "browser_only"

  • agent_client_namestring | nullจำเป็น
  • domain_choicestringจำเป็น

    enum: "undecided", "company_domain", "no_domain"

  • company_domainstring | nullจำเป็น
  • domain_chosen_atstring | nullจำเป็น

    format: "date-time"

  • business_contextobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • opportunity_planarrayจำเป็น
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • implementation_summaryobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • validation_summaryobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • journey_metadataobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • context_reviewed_atstring | nullจำเป็น

    format: "date-time"

  • plan_proposed_atstring | nullจำเป็น

    format: "date-time"

  • plan_approved_atstring | nullจำเป็น

    format: "date-time"

  • completed_atstring | nullจำเป็น

    format: "date-time"

  • versionintegerจำเป็น

    format: "int64" · minimum: 1

  • updated_atstringจำเป็น

    format: "date-time"

  • allOf 2object
  • domain_discoveryไม่ได้ระบุจำเป็น
  • oneOf 1object
  • domainstringจำเป็น
  • scan_statusstringจำเป็น

    enum: "complete", "partial", "failed"

  • companyobjectจำเป็น
  • domainstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • website_urlstring | nullจำเป็น

    format: "uri"

    ละส่วนที่ซ้อนลึกกว่านี้

  • website_statusstringจำเป็น

    enum: "available", "missing", "blocked", "error"

    ละส่วนที่ซ้อนลึกกว่านี้

  • company_namestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • summarystringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • audiencestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • offeringsarrayจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • logo_urlstring | nullจำเป็น

    format: "uri"

    ละส่วนที่ซ้อนลึกกว่านี้

  • favicon_urlstring | nullจำเป็น

    format: "uri"

    ละส่วนที่ซ้อนลึกกว่านี้

  • visual_identityobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • source_snapshotobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • dns_signalsarrayจำเป็น
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • dns_providerไม่ได้ระบุจำเป็น
  • oneOf 1object

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • oneOf 2null

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_detectionsarrayจำเป็น
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • capability_summaryarrayจำเป็น
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • recommended_connectionsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • connection_planarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • limitationsarrayจำเป็น
  • แต่ละรายการstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • scanned_atstringจำเป็น

    format: "date-time"

  • confirmed_atstring | nullจำเป็น

    format: "date-time"

  • oneOf 2null
  • recommended_connectionsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • keystringจำเป็น
  • namestringจำเป็น
  • categorystringจำเป็น

    enum: "email", "customer", "product", "work", "data"

  • prioritystringจำเป็น

    enum: "required", "recommended"

  • reasonstringจำเป็น
  • sourcestringจำเป็น

    enum: "dns", "business_context", "opportunity_plan", "banger_recommendation"

  • setup_modestringจำเป็น

    enum: "oauth", "secure_credentials"

  • availablebooleanจำเป็น
  • provider_keystring
  • evidencearrayจำเป็น
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • domain_bundleobject | nullจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • growthobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • activationobjectจำเป็น
  • modestringจำเป็น

    enum: "hosted", "company_domain", "starter"

  • statusstringจำเป็น

    enum: "hosted_mailbox_required", "hosted_mailbox_proving", "hosted_mailbox_ready", "needs_context", "needs_provisioning", "provisioning", "dns_required", "ready_for_proof", "proving", "activated", "starter_required", "starter_proving", "starter_ready"

  • domainstring | nullจำเป็น
  • sending_domain_idstring | nullจำเป็น

    format: "uuid"

  • mailbox_idstring | nullจำเป็น

    format: "uuid"

  • mailbox_addressstring | nullจำเป็น

    format: "email"

  • exact_dns_recordsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • lane_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • providerstringจำเป็น

    enum: "banger", "resend"

    ละส่วนที่ซ้อนลึกกว่านี้

  • purposestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • typestringจำเป็น

    enum: "TXT", "MX", "CNAME"

    ละส่วนที่ซ้อนลึกกว่านี้

  • namestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • valuestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • priorityinteger | nullจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • requiredbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • statusstringจำเป็น

    enum: "pending", "verified", "error"

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_statusstringจำเป็น

    enum: "pending", "verified", "error", "not_applicable"

    ละส่วนที่ซ้อนลึกกว่านี้

  • first_observed_atstring | nullจำเป็น

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • last_checked_atstring | nullจำเป็น

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • errorobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_referencestring | nullจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • checkpointsarrayจำเป็น
  • แต่ละรายการobject
  • keystringจำเป็น

    enum: "domain", "provider", "infrastructure", "dns", "mailbox", "product", "broadcast"

    ละส่วนที่ซ้อนลึกกว่านี้

  • labelstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • statusstringจำเป็น

    enum: "pending", "working", "action_required", "verified"

    ละส่วนที่ซ้อนลึกกว่านี้

  • detailstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • lanesobjectจำเป็น
  • mailboxobjectจำเป็น
  • statusstringจำเป็น

    enum: "pending", "working", "action_required", "verified"

    ละส่วนที่ซ้อนลึกกว่านี้

  • detailstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • transactionalobjectจำเป็น
  • statusstringจำเป็น

    enum: "pending", "working", "action_required", "verified"

    ละส่วนที่ซ้อนลึกกว่านี้

  • detailstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • marketingobjectจำเป็น
  • statusstringจำเป็น

    enum: "pending", "working", "action_required", "verified"

    ละส่วนที่ซ้อนลึกกว่านี้

  • detailstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • proofไม่ได้ระบุจำเป็น
  • oneOf 1object
  • proof_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • mailbox_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • mailbox_addressstringจำเป็น

    format: "email"

    ละส่วนที่ซ้อนลึกกว่านี้

  • command_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • phasestringจำเป็น

    enum: "sending", "sent", "received", "checked", "failed"

    ละส่วนที่ซ้อนลึกกว่านี้

  • send_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • receive_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • round_trip_check_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • agent_check_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • expected_subjectstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • expected_body_textstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • received_message_idstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • received_thread_idstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • received_subjectstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • received_body_textstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • received_atstring

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • agent_labelstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • agent_suggested_actionstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • error_codestring

    ละส่วนที่ซ้อนลึกกว่านี้

  • replayedbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • oneOf 2object
  • proof_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • domain_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • native_domain_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • mailbox_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • mailbox_addressstringจำเป็น

    format: "email"

    ละส่วนที่ซ้อนลึกกว่านี้

  • transactional_send_intent_idstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • marketing_send_intent_idstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • transactional_subjectstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • marketing_subjectstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • phasestringจำเป็น

    enum: "sending", "receiving", "received", "checked", "failed"

    ละส่วนที่ซ้อนลึกกว่านี้

  • send_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • transactional_receivedbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • marketing_receivedbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • receive_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • agent_check_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • error_codestring

    ละส่วนที่ซ้อนลึกกว่านี้

  • replayedbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • oneOf 3null
  • overall_readybooleanจำเป็น
  • production_readybooleanจำเป็น
  • completedbooleanจำเป็น
  • pendingbooleanจำเป็น
  • next_actionstringจำเป็น

    enum: "choose_agent", "provision_hosted_mailbox", "send_aha_1", "wait_for_aha_1", "offer_custom_domain", "review_domain_bundle", "provision_domain_bundle", "wait_for_dns_records", "ask_computer_use_permission", "configure_dns_with_computer_use", "present_manual_dns_instructions", "wait_for_dns_propagation", "send_aha_2", "wait_for_aha_2", "create_starter_mailbox", "run_starter_proof", "wait_for_starter_proof", "collect_business_context", "build_lifecycle_map", "review_growth_system", "connect_required_services", "explain_persistent_mcp", "offer_autopilot", "activate_autopilot", "validate", "complete", "open_dashboard"

  • action_requiredobjectจำเป็น
  • typestringจำเป็น
  • requiredbooleanจำเป็น
  • actionstringจำเป็น

    enum: "choose_agent", "provision_hosted_mailbox", "send_aha_1", "wait_for_aha_1", "offer_custom_domain", "review_domain_bundle", "provision_domain_bundle", "wait_for_dns_records", "ask_computer_use_permission", "configure_dns_with_computer_use", "present_manual_dns_instructions", "wait_for_dns_propagation", "send_aha_2", "wait_for_aha_2", "create_starter_mailbox", "run_starter_proof", "wait_for_starter_proof", "collect_business_context", "build_lifecycle_map", "review_growth_system", "connect_required_services", "explain_persistent_mcp", "offer_autopilot", "activate_autopilot", "validate", "complete", "open_dashboard"

  • urlstring | nullจำเป็น

    format: "uri"

  • instructionsstring | nullจำเป็น
  • secure_urlstring | nullจำเป็น

    format: "uri"

  • mcp_urlstringจำเป็น

    format: "uri"

  • dashboard_urlstringจำเป็น

    format: "uri"

ตัวอย่าง curl

curl --request PUT --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/onboarding/agent-state/plan' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "opportunities": [
    {}
  ]
}'
POST/v1/workspaces/{workspaceId}/onboarding/agent-state/apply

บันทึกชิ้นงานที่ตรวจทานและเตรียมจากแผนโอกาส

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ จำเป็น

application/json

  • valueobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • summaryobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้

การตอบกลับสำเร็จ 200

บันทึกสรุปการนำไปใช้แล้ว

application/json

  • valueobject
  • dataไม่ได้ระบุจำเป็น
  • allOf 1object
  • workspace_idstringจำเป็น

    format: "uuid"

  • statusstringจำเป็น

    enum: "choose_agent", "discovering", "planning", "implementing", "validating", "ready", "complete"

  • entry_surfacestring | nullจำเป็น

    enum: "codex", "chatgpt", "claude", "grok", "other_agent", "browser", null

  • agent_statusstringจำเป็น

    enum: "not_connected", "connecting", "connected", "browser_only"

  • agent_client_namestring | nullจำเป็น
  • domain_choicestringจำเป็น

    enum: "undecided", "company_domain", "no_domain"

  • company_domainstring | nullจำเป็น
  • domain_chosen_atstring | nullจำเป็น

    format: "date-time"

  • business_contextobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • opportunity_planarrayจำเป็น
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • implementation_summaryobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • validation_summaryobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • journey_metadataobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • context_reviewed_atstring | nullจำเป็น

    format: "date-time"

  • plan_proposed_atstring | nullจำเป็น

    format: "date-time"

  • plan_approved_atstring | nullจำเป็น

    format: "date-time"

  • completed_atstring | nullจำเป็น

    format: "date-time"

  • versionintegerจำเป็น

    format: "int64" · minimum: 1

  • updated_atstringจำเป็น

    format: "date-time"

  • allOf 2object
  • domain_discoveryไม่ได้ระบุจำเป็น
  • oneOf 1object
  • domainstringจำเป็น
  • scan_statusstringจำเป็น

    enum: "complete", "partial", "failed"

  • companyobjectจำเป็น
  • domainstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • website_urlstring | nullจำเป็น

    format: "uri"

    ละส่วนที่ซ้อนลึกกว่านี้

  • website_statusstringจำเป็น

    enum: "available", "missing", "blocked", "error"

    ละส่วนที่ซ้อนลึกกว่านี้

  • company_namestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • summarystringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • audiencestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • offeringsarrayจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • logo_urlstring | nullจำเป็น

    format: "uri"

    ละส่วนที่ซ้อนลึกกว่านี้

  • favicon_urlstring | nullจำเป็น

    format: "uri"

    ละส่วนที่ซ้อนลึกกว่านี้

  • visual_identityobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • source_snapshotobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • dns_signalsarrayจำเป็น
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • dns_providerไม่ได้ระบุจำเป็น
  • oneOf 1object

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • oneOf 2null

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_detectionsarrayจำเป็น
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • capability_summaryarrayจำเป็น
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • recommended_connectionsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • connection_planarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • limitationsarrayจำเป็น
  • แต่ละรายการstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • scanned_atstringจำเป็น

    format: "date-time"

  • confirmed_atstring | nullจำเป็น

    format: "date-time"

  • oneOf 2null
  • recommended_connectionsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • keystringจำเป็น
  • namestringจำเป็น
  • categorystringจำเป็น

    enum: "email", "customer", "product", "work", "data"

  • prioritystringจำเป็น

    enum: "required", "recommended"

  • reasonstringจำเป็น
  • sourcestringจำเป็น

    enum: "dns", "business_context", "opportunity_plan", "banger_recommendation"

  • setup_modestringจำเป็น

    enum: "oauth", "secure_credentials"

  • availablebooleanจำเป็น
  • provider_keystring
  • evidencearrayจำเป็น
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • domain_bundleobject | nullจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • growthobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • activationobjectจำเป็น
  • modestringจำเป็น

    enum: "hosted", "company_domain", "starter"

  • statusstringจำเป็น

    enum: "hosted_mailbox_required", "hosted_mailbox_proving", "hosted_mailbox_ready", "needs_context", "needs_provisioning", "provisioning", "dns_required", "ready_for_proof", "proving", "activated", "starter_required", "starter_proving", "starter_ready"

  • domainstring | nullจำเป็น
  • sending_domain_idstring | nullจำเป็น

    format: "uuid"

  • mailbox_idstring | nullจำเป็น

    format: "uuid"

  • mailbox_addressstring | nullจำเป็น

    format: "email"

  • exact_dns_recordsarrayจำเป็น
  • แต่ละรายการobject

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

  • idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • lane_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • providerstringจำเป็น

    enum: "banger", "resend"

    ละส่วนที่ซ้อนลึกกว่านี้

  • purposestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • typestringจำเป็น

    enum: "TXT", "MX", "CNAME"

    ละส่วนที่ซ้อนลึกกว่านี้

  • namestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • valuestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • priorityinteger | nullจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • requiredbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • statusstringจำเป็น

    enum: "pending", "verified", "error"

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_statusstringจำเป็น

    enum: "pending", "verified", "error", "not_applicable"

    ละส่วนที่ซ้อนลึกกว่านี้

  • first_observed_atstring | nullจำเป็น

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • last_checked_atstring | nullจำเป็น

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • errorobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_referencestring | nullจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • checkpointsarrayจำเป็น
  • แต่ละรายการobject
  • keystringจำเป็น

    enum: "domain", "provider", "infrastructure", "dns", "mailbox", "product", "broadcast"

    ละส่วนที่ซ้อนลึกกว่านี้

  • labelstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • statusstringจำเป็น

    enum: "pending", "working", "action_required", "verified"

    ละส่วนที่ซ้อนลึกกว่านี้

  • detailstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • lanesobjectจำเป็น
  • mailboxobjectจำเป็น
  • statusstringจำเป็น

    enum: "pending", "working", "action_required", "verified"

    ละส่วนที่ซ้อนลึกกว่านี้

  • detailstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • transactionalobjectจำเป็น
  • statusstringจำเป็น

    enum: "pending", "working", "action_required", "verified"

    ละส่วนที่ซ้อนลึกกว่านี้

  • detailstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • marketingobjectจำเป็น
  • statusstringจำเป็น

    enum: "pending", "working", "action_required", "verified"

    ละส่วนที่ซ้อนลึกกว่านี้

  • detailstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • proofไม่ได้ระบุจำเป็น
  • oneOf 1object
  • proof_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • mailbox_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • mailbox_addressstringจำเป็น

    format: "email"

    ละส่วนที่ซ้อนลึกกว่านี้

  • command_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • phasestringจำเป็น

    enum: "sending", "sent", "received", "checked", "failed"

    ละส่วนที่ซ้อนลึกกว่านี้

  • send_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • receive_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • round_trip_check_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • agent_check_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • expected_subjectstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • expected_body_textstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • received_message_idstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • received_thread_idstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • received_subjectstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • received_body_textstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • received_atstring

    format: "date-time"

    ละส่วนที่ซ้อนลึกกว่านี้

  • agent_labelstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • agent_suggested_actionstring

    ละส่วนที่ซ้อนลึกกว่านี้

  • error_codestring

    ละส่วนที่ซ้อนลึกกว่านี้

  • replayedbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • oneOf 2object
  • proof_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • domain_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • native_domain_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • mailbox_idstringจำเป็น

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • mailbox_addressstringจำเป็น

    format: "email"

    ละส่วนที่ซ้อนลึกกว่านี้

  • transactional_send_intent_idstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • marketing_send_intent_idstring

    format: "uuid"

    ละส่วนที่ซ้อนลึกกว่านี้

  • transactional_subjectstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • marketing_subjectstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • phasestringจำเป็น

    enum: "sending", "receiving", "received", "checked", "failed"

    ละส่วนที่ซ้อนลึกกว่านี้

  • send_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • transactional_receivedbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • marketing_receivedbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • receive_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • agent_check_completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • completebooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • error_codestring

    ละส่วนที่ซ้อนลึกกว่านี้

  • replayedbooleanจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • oneOf 3null
  • overall_readybooleanจำเป็น
  • production_readybooleanจำเป็น
  • completedbooleanจำเป็น
  • pendingbooleanจำเป็น
  • next_actionstringจำเป็น

    enum: "choose_agent", "provision_hosted_mailbox", "send_aha_1", "wait_for_aha_1", "offer_custom_domain", "review_domain_bundle", "provision_domain_bundle", "wait_for_dns_records", "ask_computer_use_permission", "configure_dns_with_computer_use", "present_manual_dns_instructions", "wait_for_dns_propagation", "send_aha_2", "wait_for_aha_2", "create_starter_mailbox", "run_starter_proof", "wait_for_starter_proof", "collect_business_context", "build_lifecycle_map", "review_growth_system", "connect_required_services", "explain_persistent_mcp", "offer_autopilot", "activate_autopilot", "validate", "complete", "open_dashboard"

  • action_requiredobjectจำเป็น
  • typestringจำเป็น
  • requiredbooleanจำเป็น
  • actionstringจำเป็น

    enum: "choose_agent", "provision_hosted_mailbox", "send_aha_1", "wait_for_aha_1", "offer_custom_domain", "review_domain_bundle", "provision_domain_bundle", "wait_for_dns_records", "ask_computer_use_permission", "configure_dns_with_computer_use", "present_manual_dns_instructions", "wait_for_dns_propagation", "send_aha_2", "wait_for_aha_2", "create_starter_mailbox", "run_starter_proof", "wait_for_starter_proof", "collect_business_context", "build_lifecycle_map", "review_growth_system", "connect_required_services", "explain_persistent_mcp", "offer_autopilot", "activate_autopilot", "validate", "complete", "open_dashboard"

  • urlstring | nullจำเป็น

    format: "uri"

  • instructionsstring | nullจำเป็น
  • secure_urlstring | nullจำเป็น

    format: "uri"

  • mcp_urlstringจำเป็น

    format: "uri"

  • dashboard_urlstringจำเป็น

    format: "uri"

ตัวอย่าง curl

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/onboarding/agent-state/apply' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "summary": {}
}'
POST/v1/workspaces/{workspaceId}/onboarding/agent-state/plan/approve

อนุมัติแผนที่โอกาสที่เสนอก่อนเอเจนต์เตรียมการเปลี่ยนแปลงละเอียดอ่อน

การยืนยันตัวตน: คีย์ API พื้นที่ทำงานแบบ Bearer

พารามิเตอร์

ชื่อ / ตำแหน่งสคีมา
workspaceId
path · จำเป็น
  • valuestring

    format: "uuid"

เนื้อหาคำขอ

สัญญาไม่ได้ระบุเนื้อหาคำขอ

การตอบกลับสำเร็จ 200

ผู้ดูแลพื้นที่ทำงานที่ยืนยันตัวตนอนุมัติแผนโอกาสแล้ว

application/json

  • valueobject
  • dataไม่ได้ระบุจำเป็น
  • allOf 1object
  • workspace_idstringจำเป็น

    format: "uuid"

  • statusstringจำเป็น

    enum: "choose_agent", "discovering", "planning", "implementing", "validating", "ready", "complete"

  • entry_surfacestring | nullจำเป็น

    enum: "codex", "chatgpt", "claude", "grok", "other_agent", "browser", null

  • agent_statusstringจำเป็น

    enum: "not_connected", "connecting", "connected", "browser_only"

  • agent_client_namestring | nullจำเป็น
  • domain_choicestringจำเป็น

    enum: "undecided", "company_domain", "no_domain"

  • company_domainstring | nullจำเป็น
  • domain_chosen_atstring | nullจำเป็น

    format: "date-time"

  • business_contextobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • opportunity_planarrayจำเป็น
  • แต่ละรายการobject
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • implementation_summaryobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • validation_summaryobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • journey_metadataobjectจำเป็น
  • พร็อพเพอร์ตีเพิ่มเติมค่าใดก็ได้
  • context_reviewed_atstring | nullจำเป็น

    format: "date-time"

  • plan_proposed_atstring | nullจำเป็น

    format: "date-time"

  • plan_approved_atstring | nullจำเป็น

    format: "date-time"

  • completed_atstring | nullจำเป็น

    format: "date-time"

  • versionintegerจำเป็น

    format: "int64" · minimum: 1

  • updated_atstringจำเป็น

    format: "date-time"

  • allOf 2object
  • domain_discoveryไม่ได้ระบุจำเป็น
  • oneOf 1object
  • domainstringจำเป็น
  • scan_statusstringจำเป็น

    enum: "complete", "partial", "failed"

  • companyobjectจำเป็น
  • domainstringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • website_urlstring | nullจำเป็น

    format: "uri"

    ละส่วนที่ซ้อนลึกกว่านี้

  • website_statusstringจำเป็น

    enum: "available", "missing", "blocked", "error"

    ละส่วนที่ซ้อนลึกกว่านี้

  • company_namestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • summarystringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • audiencestringจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • offeringsarrayจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • logo_urlstring | nullจำเป็น

    format: "uri"

    ละส่วนที่ซ้อนลึกกว่านี้

  • favicon_urlstring | nullจำเป็น

    format: "uri"

    ละส่วนที่ซ้อนลึกกว่านี้

  • visual_identityobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • source_snapshotobjectจำเป็น

    ละส่วนที่ซ้อนลึกกว่านี้

  • dns_signalsarrayจำเป็น
  • แต่ละรายการobject

    ละส่วนที่ซ้อนลึกกว่านี้

  • dns_providerไม่ได้ระบุจำเป็น
  • oneOf 1object

    ไม่มีพร็อพเพอร์ตีเพิ่มเติม

    ละส่วนที่ซ้อนลึกกว่านี้

  • oneOf 2null

    ละส่วนที่ซ้อนลึกกว่านี้

  • provider_detectionsarrayจำเป็น