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など独自のパラメーターとレスポンスフィールドを定義します。それぞれのスキーマに従ってください。

例は契約の例、初期値、列挙値、スキーマ型から生成しています。例示値はご自身のデータに置き換えてください。本文やレスポンスのスキーマがない場合は、以下に明記しています。

これらの機能はBanger MCPサーバーを通じてAIアシスタントでも利用できます。

プロダクト

GET/v1/workspaces/{workspaceId}/products

ワークスペースのプロダクト一覧

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

  • 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必須
  • 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

プロダクトを作成

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

  • 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必須
  • 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}

プロダクトを取得

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

  • 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必須
  • 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}

プロダクトを更新

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

  • 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

  • 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必須
  • 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}

削除プレビューを確認してから、1つのプロダクト(アプリ内のプロジェクト)を削除します。すぐに利用停止(送信停止)となり、24時間は復元できます。その後Bangerが送信ドメインと所有する全行を削除します。ワークスペースの最後の有効なプロダクトは削除できません。ワークスペース管理者とログイン済みセッションが必要です。APIキーとOAuth認可は拒否されます。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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に完全削除されます。冪等な再実行では同じ結果を返します。

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

何も削除せず、1つのプロダクトと所有する全データの削除をプレビューします。ログイン済み、またはユーザー認可OAuth経由のワークスペース管理者が必要です。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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より前に復元します。メールボックス、ジャーニー、登録フォーム、Webhook、連携は再度有効になります。一斉配信は一時停止のままです。ログイン済み、またはユーザー認可OAuth経由のワークスペース管理者が必要です。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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}

プロダクト設定項目を更新

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

ドメインをプロダクトに関連付け

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

  • 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必須
  • 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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文

契約にリクエスト本文の指定はありません。

成功レスポンス 200

実行者に表示されるメールボックス。

application/json

  • valueobject
  • dataarray必須
  • 各項目object
  • idstring必須

    format: "uuid"

  • workspace_idstring必須

    format: "uuid"

  • product_idstring | null

    メールボックスが属するプロダクト(プロジェクト)。クライアントはこれでメールボックスをまとめ、Webアプリへのリンクを作成します。

    format: "uuid"

  • domain_idstring | null

    format: "uuid"

  • addressstring必須

    format: "email"

  • display_namestring必須
  • providerstring必須

    enum: "gmail", "smtp"

  • 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ネイティブの業務用メールボックスを作成します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

ネイティブメールボックス作成の冪等な再実行。

application/json

  • valueobject
  • dataobject必須
  • idstring必須

    format: "uuid"

  • workspace_idstring必須

    format: "uuid"

  • product_idstring | null

    メールボックスが属するプロダクト(プロジェクト)。クライアントはこれでメールボックスをまとめ、Webアプリへのリンクを作成します。

    format: "uuid"

  • domain_idstring | null

    format: "uuid"

  • addressstring必須

    format: "email"

  • display_namestring必須
  • providerstring必須

    enum: "gmail", "smtp"

  • 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"
}'
GET/v1/workspaces/{workspaceId}/mailboxes/{mailboxId}/deletion-preview

メールボックスの完全削除と依存する送信フローをプレビューします。ワークスペース管理者とプロダクトスコープが必要です。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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}

1つのBangerメールボックスからのメールで受信者に表示する送信者名("Name <address>")を設定します。GmailメールボックスはGmailで設定した名前を維持します。ワークスペース管理者が必要です。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

mailboxId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文 必須

application/json

  • valueobject

    追加プロパティなし

  • display_namestring必須

    1行。空の場合はアドレスのみで送信します。

    maxLength: 200

成功レスポンス 200

送信者名付きのメールボックス。

application/json

  • valueobject
  • dataobject必須
  • idstring必須

    format: "uuid"

  • workspace_idstring必須

    format: "uuid"

  • product_idstring | null

    メールボックスが属するプロダクト(プロジェクト)。クライアントはこれでメールボックスをまとめ、Webアプリへのリンクを作成します。

    format: "uuid"

  • domain_idstring | null

    format: "uuid"

  • addressstring必須

    format: "email"

  • display_namestring必須
  • providerstring必須

    enum: "gmail", "smtp"

  • 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}

ドメインと他のメールボックスを残し、1つのメールボックスを完全削除します。ワークスペース管理者とプロダクトスコープが必要です。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

削除済み、または冪等な再実行。保存ファイルは完全削除のキューに入ります。

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

同じプロダクトのホスト型受信トレイとワークスペース登録者への送信に限定したホスト型メールボックスを作成します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

スターターID作成の冪等な再実行。

application/json

  • valueobject
  • dataobject必須
  • idstring必須

    format: "uuid"

  • workspace_idstring必須

    format: "uuid"

  • product_idstring | null

    メールボックスが属するプロダクト(プロジェクト)。クライアントはこれでメールボックスをまとめ、Webアプリへのリンクを作成します。

    format: "uuid"

  • domain_idstring | null

    format: "uuid"

  • addressstring必須

    format: "email"

  • display_namestring必須
  • providerstring必須

    enum: "gmail", "smtp"

  • 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のセルフサービス再開ルールに従い、1つのメールボックスの送信者評価による一時停止を解除します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

    メールボックスが属するプロダクト(プロジェクト)。クライアントはこれでメールボックスをまとめ、Webアプリへのリンクを作成します。

    format: "uuid"

  • domain_idstring | null

    format: "uuid"

  • addressstring必須

    format: "email"

  • display_namestring必須
  • providerstring必須

    enum: "gmail", "smtp"

  • 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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

呼び出し元がアクセスできるメールボックスから下書きを送信します。送信に承認が必要な呼び出し元には、代わりに承認待ちを返します。下書きを直接送信できる人が判断します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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"

  • 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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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本文を取得

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

ジャーニー送信は1受信者です。Toは任意のRecipientInput形式("a@example.com"、"Pat <a@example.com>"、{ email, name }、または1要素のリスト)で1受信者を受け付け、CcとBccは空でなければなりません。reply_toの既定はジャーニーのメールボックスです(空のリストも既定を意味します)。プロダクトメールには正確に1つ必要です。新しいAPIジャーニーは管理されたソースコンテンツを既定とし、旧コードジャーニーは完全コンテンツ送信を維持します。拒否(4xx)では受信者用の凍結データは残らず、新しい冪等キーで修正して呼び出すと送信されます。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

Idempotency-Key
header · 必須
  • valuestring

    minLength: 16 · maxLength: 128

リクエスト本文 必須

application/json

  • valueobject
  • mailbox_idstring必須

    format: "uuid"

  • to未指定必須

    to、cc、bcc、reply_toの受信者: アドレス("a@example.com"または"Pat <a@example.com>")、{ email, name }オブジェクト、または両方を混在させたリスト。Bangerはメールを小文字にした{ email, name }オブジェクトとして保存します。冪等ハッシュは送信時の本文を対象とするため、同じ形式で再試行してください。

  • 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

    この日時を過ぎた延期ジャーニー送信を破棄します。元のリクエストから最大7日です。

    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 }オブジェクトとして保存します。冪等ハッシュは送信時の本文を対象とするため、同じ形式で再試行してください。

  • 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

成功レスポンス 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 '{
  "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"
    }
  ]
}'
GET/v1/workspaces/{workspaceId}/transactional-sends/{transactionalSendId}

getTransactionalSend

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

キーセットでページ分割したワークスペースのスレッド。

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必須
  • labelsarray必須
  • 各項目string
  • participantsarray
  • 各項目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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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必須
  • labelsarray必須
  • 各項目string
  • participantsarray
  • 各項目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

    エイリアスを含め、このメールボックスから送信されたメッセージかどうか。

  • 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

    さらに深い入れ子は省略

  • 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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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必須
  • labelsarray必須
  • 各項目string
  • participantsarray
  • 各項目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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文 必須

application/json

  • valueobject
  • filenamestring必須

    minLength: 1 · maxLength: 500

  • list_idstring

    format: "uuid"

  • consent_confirmedboolean

    インポートする行に購読登録がある場合は必須。

  • rowsarray必須

    minItems: 1 · maxItems: 5000

  • 各項目object
  • emailstring必須

    format: "email"

  • 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,
  "rows": [
    {
      "email": "person@example.com",
      "display_name": "example",
      "status": "subscribed",
      "attributes": {}
    }
  ]
}'
PATCH/v1/workspaces/{workspaceId}/contacts/{contactId}/attributes

購読や同意を変更せずに型付き属性を統合

contacts:writeとcontacts:readが必要です。既存の連絡先のみ更新します。省略属性は維持し、明示的なfalseは保存、nullはフィールドを削除します。検証済みのソース事実を指定してください。データの欠落はfalseではありません。購読、送信抑止、ID、ソース履歴は変更しません。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

正規の読み戻し、または冪等な受領情報。プロバイダー受付は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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · 必須

明示的な操作対象プロダクト。プロダクト限定OAuth認証情報と一致する必要があります。

  • valuestring

    format: "uuid"

リクエスト本文 必須

application/json

  • valueobject

    追加プロパティなし

  • rowsarray必須

    minItems: 1 · maxItems: 5000

  • 各項目object

    追加プロパティなし

  • 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

正規の読み戻し、または冪等な受領情報。プロバイダー受付はsentです。deliveredには配信イベントが必要で、受信トレイへの到達を証明するものではありません。

application/json

  • valueobject
  • dataobject必須
  • validboolean必須
  • total_rowsinteger必須
  • valid_rowsinteger必須
  • errorsarray必須
  • 各項目object
  • rowinteger必須
  • codestring必須
  • messagestring必須

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",
      "display_name": "example",
      "attributes": {},
      "status": "subscribed",
      "consent_evidence": {
        "source": "example",
        "reference": "example",
        "observed_at": "2026-01-01T00:00:00Z",
        "statement": "example"
      }
    }
  ],
  "consent_confirmed": true
}'
GET/v1/workspaces/{workspaceId}/contacts/imports/{importId}

getProductContactImport

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · 必須

明示的な操作対象プロダクト。プロダクト限定OAuth認証情報と一致する必要があります。

  • valuestring

    format: "uuid"

importId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文

契約にリクエスト本文の指定はありません。

成功レスポンス 200

正規の読み戻し、または冪等な受領情報。プロバイダー受付は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

保存済み連絡先属性キーを一覧表示

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

連絡先インポートの列マッピングを提案

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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", "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
  • 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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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が必要です。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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が必要です。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

プロダクトの連絡先フィールド(組み込み、宣言済み、検出済み)。型、選択肢、ソース、値のある連絡先数、対応するセグメント演算子を含みます。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

連絡先フィールドを宣言: ラベル、型(text、number、boolean、date、choice、choices)、任意のkey、選択肢、説明。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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)、選択肢変更、非表示化。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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}

セグメントを削除

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

正規の読み戻し、または冪等な受領情報。プロバイダー受付は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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · 必須

明示的な操作対象プロダクト。プロダクト限定OAuth認証情報と一致する必要があります。

  • valuestring

    format: "uuid"

listId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文

契約にリクエスト本文の指定はありません。

成功レスポンス 200

正規の読み戻し、または冪等な受領情報。プロバイダー受付は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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

正規の読み戻し、または冪等な受領情報。プロバイダー受付は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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

正規の読み戻し、または冪等な受領情報。プロバイダー受付は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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

正規の読み戻し、または冪等な受領情報。プロバイダー受付は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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · 必須

明示的な操作対象プロダクト。プロダクト限定OAuth認証情報と一致する必要があります。

  • valuestring

    format: "uuid"

segmentId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文

契約にリクエスト本文の指定はありません。

成功レスポンス 200

正規の読み戻し、または冪等な受領情報。プロバイダー受付は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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

正規の読み戻し、または冪等な受領情報。プロバイダー受付は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"

  • 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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · 必須

明示的な操作対象プロダクト。プロダクト限定OAuth認証情報と一致する必要があります。

  • valuestring

    format: "uuid"

approvalId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文

契約にリクエスト本文の指定はありません。

成功レスポンス 200

正規の読み戻し、または冪等な受領情報。プロバイダー受付は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"

  • 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

プロダクトの登録フォーム。埋め込みコード、ホストリンク、閲覧数、登録数、確認数、購読者数、コンバージョン率を含みます。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

  • 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

    選択式質問には選択肢が必要です。他の質問型では選択肢を指定できません。キーは一意で、予約フォームフィールドを使えません。省略キーはラベルから生成します。

    追加プロパティなし

  • 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。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

  • 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

    選択式質問には選択肢が必要です。他の質問型では選択肢を指定できません。キーは一意で、予約フォームフィールドを使えません。省略キーはラベルから生成します。

    追加プロパティなし

  • 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

  • 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

    選択式質問には選択肢が必要です。他の質問型では選択肢を指定できません。キーは一意で、予約フォームフィールドを使えません。省略キーはラベルから生成します。

    追加プロパティなし

  • 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",
    "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

このプロダクトがフォームを有効化できるか(プロダクトレーンが検証済みドメインから送信するか)。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

未保存のフォーム設定を、仮のWebサイト上の完全なHTMLページとしてレンダリングします。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

  • 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

    選択式質問には選択肢が必要です。他の質問型では選択肢を指定できません。キーは一意で、予約フォームフィールドを使えません。省略キーはラベルから生成します。

    追加プロパティなし

  • 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",
    "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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

  • 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

    選択式質問には選択肢が必要です。他の質問型では選択肢を指定できません。キーは一意で、予約フォームフィールドを使えません。省略キーはラベルから生成します。

    追加プロパティなし

  • 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で同時編集を防ぎます。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

  • 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

    選択式質問には選択肢が必要です。他の質問型では選択肢を指定できません。キーは一意で、予約フォームフィールドを使えません。省略キーはラベルから生成します。

    追加プロパティなし

  • 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

  • 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

    選択式質問には選択肢が必要です。他の質問型では選択肢を指定できません。キーは一意で、予約フォームフィールドを使えません。省略キーはラベルから生成します。

    追加プロパティなし

  • 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",
    "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

保存済みフォームをフォーム状態または成功状態でレンダリングします。未保存の変更も適用できます。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

  • 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

    選択式質問には選択肢が必要です。他の質問型では選択肢を指定できません。キーは一意で、予約フォームフィールドを使えません。省略キーはラベルから生成します。

    追加プロパティなし

  • 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",
    "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

登録フォームローダー。フォームごとの1つのscriptタグ(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開放、1分キャッシュ。

公開エンドポイント: 認証不要。

パラメーター

名前 / 場所スキーマ
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)でブラウザーのプリフライトを省略します。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

    ハニーポット。空のままにしてください。

    maxLength: 200

  • 追加プロパティ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

    ハニーポット。空のままにしてください。

    maxLength: 200

  • 追加プロパティ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"
}'
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

ウィジェットの表示を1回カウントします。

公開エンドポイント: 認証不要。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

未保存のデザインをサンプル値またはオーディエンス値でレンダリングし、プレースホルダーの不足を報告します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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のリストを少なくとも1つ選択します。

  • 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

1つのデザインとインラインHTML、差し込みコンテンツ、有効なスロット。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

保存デザインをサンプル値またはオーディエンス値でレンダリングし、プレースホルダーの不足を報告します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

templateId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文 必須

application/json

  • valueobject
  • contentobject
  • 追加プロパティstring
  • audienceobject

    全購読連絡先、または空でないcontact_ids、list_ids、segment_idsのリストを少なくとも1つ選択します。

  • 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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

一斉配信を保存する前に確認する、オーディエンスが埋められない必須プレースホルダー。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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のリストを少なくとも1つ選択します。

  • 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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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のリストを少なくとも1つ選択します。

  • 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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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のリストを少なくとも1つ選択します。

  • 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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文 必須

application/json

  • valueobject
  • audienceobject必須

    全購読連絡先、または空でないcontact_ids、list_ids、segment_idsのリストを少なくとも1つ選択します。

  • 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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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のリストを少なくとも1つ選択します。

  • 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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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のリストを少なくとも1つ選択します。

  • 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}

未送信キャンペーンを削除

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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
  • 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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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のリストを少なくとも1つ選択します。

  • 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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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のリストを少なくとも1つ選択します。

  • 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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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のリストを少なくとも1つ選択します。

  • 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を返します。ワークスペースの受信者閾値を適用するため、キャンペーンレビューのエンドポイントを使ってください。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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"

  • 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

キャンペーンをアーカイブ

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

キャンペーンをアーカイブ解除

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

キャンペーンメールのデザインを1〜4件保存

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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のリストを少なくとも1つ選択します。

  • 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のリストを少なくとも1つ選択します。

  • 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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

    予約日時からこの秒数後に未送信受信者を破棄します。既定は7日です。

    minimum: 1 · maximum: 604800

  • content_overridesobject
  • 追加プロパティstring

    maxLength: 20000

成功レスポンス 200

正規の読み戻し、または冪等な受領情報。プロバイダー受付は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のリストを少なくとも1つ選択します。

  • 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のリストを少なくとも1つ選択します。

  • 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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · 必須

明示的な操作対象プロダクト。プロダクト限定OAuth認証情報と一致する必要があります。

  • valuestring

    format: "uuid"

broadcastId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文

契約にリクエスト本文の指定はありません。

成功レスポンス 200

正規の読み戻し、または冪等な受領情報。プロバイダー受付は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のリストを少なくとも1つ選択します。

  • 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のリストを少なくとも1つ選択します。

  • 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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

正規の読み戻し、または冪等な受領情報。プロバイダー受付は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のリストを少なくとも1つ選択します。

  • 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のリストを少なくとも1つ選択します。

  • 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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

正規の読み戻し、または冪等な受領情報。プロバイダー受付は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のリストを少なくとも1つ選択します。

  • 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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

正規の読み戻し、または冪等な受領情報。プロバイダー受付は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のリストを少なくとも1つ選択します。

  • 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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · 必須

明示的な操作対象プロダクト。プロダクト限定OAuth認証情報と一致する必要があります。

  • valuestring

    format: "uuid"

broadcastId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文

契約にリクエスト本文の指定はありません。

成功レスポンス 200

正規の読み戻し、または冪等な受領情報。プロバイダー受付は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のリストを少なくとも1つ選択します。

  • 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

    翻訳中のオーディエンス言語が一斉配信を止めることはありません。該当読者には翻訳完成時に送信し、送信から1日以内に完成しなければスキップします(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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

正規の読み戻し、または冪等な受領情報。プロバイダー受付はsentです。deliveredには配信イベントが必要で、受信トレイへの到達を証明するものではありません。

application/json

  • valueobject
  • dataarray必須
  • 各項目object
  • contact_idstring | null

    format: "uuid"

  • recipient_emailstring
  • recipient_namestring | null
  • recipient_hashstring
  • 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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · 必須

明示的な操作対象プロダクト。プロダクト限定OAuth認証情報と一致する必要があります。

  • valuestring

    format: "uuid"

broadcastId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文

契約にリクエスト本文の指定はありません。

成功レスポンス 200

正規の読み戻し、または冪等な受領情報。プロバイダー受付は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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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", "api"

  • connection_idstring

    format: "uuid"

  • configobject
  • eventstring

    さらに深い入れ子は省略

  • once_per_personboolean

    各人は1回だけ参加します。完了後の再参加を許可するには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

    ジャーニーメールは受信者自身の言語でのみ送信します。領収書、コード、セキュリティ通知は約1分、他のメールは最大1日翻訳を待ち、その時点で未完成なら送信しません。

    追加プロパティなし

  • 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 }}スロットを1つ含む必要があります。

    maxLength: 100000

    さらに深い入れ子は省略

  • variantsobject

    任意のソースバージョン。全バージョンを同じリビジョン内で自動翻訳します。

    さらに深い入れ子は省略

  • variablesobject必須

    さらに深い入れ子は省略

  • samplesobject

    プレビューとソース検証用の名前付きサンプル値セット。

  • 追加プロパティobject

    さらに深い入れ子は省略

  • translationsobject

    ソースICUメッセージカタログと任意の提供済み対象カタログ。設定済みの不足対象は非同期翻訳キューに入り、保存時には不要です。

  • 追加プロパティobject

    さらに深い入れ子は省略

  • stepsarray必須

    maxItems: 100

  • 各項目object

    追加プロパティなし

  • idstring

    format: "uuid"

    さらに深い入れ子は省略

  • positioninteger

    minimum: 1 · maximum: 100

    さらに深い入れ子は省略

  • kindstring必須

    enum: "email", "wait", "condition", "action", "split"

    さらに深い入れ子は省略

  • namestring必須

    minLength: 1 · maxLength: 200

    さらに深い入れ子は省略

  • managed_contentobject

    メールステップの型付きソース契約と下書き・公開リビジョンID。

    さらに深い入れ子は省略

  • configobject必須

    待機ステップは任意でuntil(name、path、operator[equals、not_equals、contains、exists]、value)と必須のon_met(continue、end_journey)を受け付けます。continueは次のリマインダーメールを省略し、end_journeyはジャーニーを完了します。同じ分岐で直後にリマインダーメールが必要です。amount/unitまで毎分現在の顧客データを確認します。欠落フィールドは不明としてリマインダーを保留します。通常の待機と単独条件の動作は維持します。確認済みの顧客マイルストーンでチェックに名前を付けてください。管理メールステップはmanaged_content_idで公開コンテンツを参照し、有効化時に未公開参照を拒否します。expires_after_seconds(1-604800)を設定すると、元の開始からその時間後に延期送信を破棄します。既定は7日です。

    さらに深い入れ子は省略

  • 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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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", "api"

  • connection_idstring

    format: "uuid"

  • configobject
  • eventstring
  • once_per_personboolean

    各人は1回だけ参加します。完了後の再参加を許可するには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

    ジャーニーメールは受信者自身の言語でのみ送信します。領収書、コード、セキュリティ通知は約1分、他のメールは最大1日翻訳を待ち、その時点で未完成なら送信しません。

    追加プロパティなし

  • 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 }}スロットを1つ含む必要があります。

    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", "wait", "condition", "action", "split"

  • namestring必須

    minLength: 1 · maxLength: 200

  • managed_contentobject

    メールステップの型付きソース契約と下書き・公開リビジョンID。

  • 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で公開コンテンツを参照し、有効化時に未公開参照を拒否します。expires_after_seconds(1-604800)を設定すると、元の開始からその時間後に延期送信を破棄します。既定は7日です。

  • 追加プロパティ任意の値
  • 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", "api"

  • connection_idstring

    format: "uuid"

  • configobject
  • eventstring
  • once_per_personboolean

    各人は1回だけ参加します。完了後の再参加を許可するには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

    ジャーニーメールは受信者自身の言語でのみ送信します。領収書、コード、セキュリティ通知は約1分、他のメールは最大1日翻訳を待ち、その時点で未完成なら送信しません。

    追加プロパティなし

  • 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 }}スロットを1つ含む必要があります。

    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", "wait", "condition", "action", "split"

  • namestring必須

    minLength: 1 · maxLength: 200

  • managed_contentobject

    メールステップの型付きソース契約と下書き・公開リビジョンID。

  • 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で公開コンテンツを参照し、有効化時に未公開参照を拒否します。expires_after_seconds(1-604800)を設定すると、元の開始からその時間後に延期送信を破棄します。既定は7日です。

  • 追加プロパティ任意の値
  • 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",
      "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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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", "api"

  • connection_idstring

    format: "uuid"

  • configobject
  • eventstring
  • once_per_personboolean

    各人は1回だけ参加します。完了後の再参加を許可するには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

    ジャーニーメールは受信者自身の言語でのみ送信します。領収書、コード、セキュリティ通知は約1分、他のメールは最大1日翻訳を待ち、その時点で未完成なら送信しません。

    追加プロパティなし

  • 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 }}スロットを1つ含む必要があります。

    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", "wait", "condition", "action", "split"

  • namestring必須

    minLength: 1 · maxLength: 200

  • managed_contentobject

    メールステップの型付きソース契約と下書き・公開リビジョンID。

  • 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で公開コンテンツを参照し、有効化時に未公開参照を拒否します。expires_after_seconds(1-604800)を設定すると、元の開始からその時間後に延期送信を破棄します。既定は7日です。

  • 追加プロパティ任意の値
  • 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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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", "api"

  • connection_idstring

    format: "uuid"

  • configobject
  • eventstring
  • once_per_personboolean

    各人は1回だけ参加します。完了後の再参加を許可するには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

    ジャーニーメールは受信者自身の言語でのみ送信します。領収書、コード、セキュリティ通知は約1分、他のメールは最大1日翻訳を待ち、その時点で未完成なら送信しません。

    追加プロパティなし

  • 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 }}スロットを1つ含む必要があります。

    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", "wait", "condition", "action", "split"

  • namestring必須

    minLength: 1 · maxLength: 200

  • managed_contentobject

    メールステップの型付きソース契約と下書き・公開リビジョンID。

  • 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で公開コンテンツを参照し、有効化時に未公開参照を拒否します。expires_after_seconds(1-604800)を設定すると、元の開始からその時間後に延期送信を破棄します。既定は7日です。

  • 追加プロパティ任意の値
  • 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", "api"

  • connection_idstring

    format: "uuid"

  • configobject
  • eventstring
  • once_per_personboolean

    各人は1回だけ参加します。完了後の再参加を許可するには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

    ジャーニーメールは受信者自身の言語でのみ送信します。領収書、コード、セキュリティ通知は約1分、他のメールは最大1日翻訳を待ち、その時点で未完成なら送信しません。

    追加プロパティなし

  • 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 }}スロットを1つ含む必要があります。

    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", "wait", "condition", "action", "split"

  • namestring必須

    minLength: 1 · maxLength: 200

  • managed_contentobject

    メールステップの型付きソース契約と下書き・公開リビジョンID。

  • 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で公開コンテンツを参照し、有効化時に未公開参照を拒否します。expires_after_seconds(1-604800)を設定すると、元の開始からその時間後に延期送信を破棄します。既定は7日です。

  • 追加プロパティ任意の値
  • 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",
      "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オブジェクトは1階層統合し、stepsは指定ツリーを置換します。古い編集を拒否するにはexpected_versionを含めます。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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", "wait", "condition", "action", "split"

  • namestring必須

    minLength: 1 · maxLength: 200

  • managed_contentobject

    メールステップの型付きソース契約と下書き・公開リビジョンID。

  • 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で公開コンテンツを参照し、有効化時に未公開参照を拒否します。expires_after_seconds(1-604800)を設定すると、元の開始からその時間後に延期送信を破棄します。既定は7日です。

  • 追加プロパティ任意の値
  • 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", "api"

  • connection_idstring

    format: "uuid"

  • configobject
  • eventstring
  • once_per_personboolean

    各人は1回だけ参加します。完了後の再参加を許可するには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

    ジャーニーメールは受信者自身の言語でのみ送信します。領収書、コード、セキュリティ通知は約1分、他のメールは最大1日翻訳を待ち、その時点で未完成なら送信しません。

    追加プロパティなし

  • 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 }}スロットを1つ含む必要があります。

    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", "wait", "condition", "action", "split"

  • namestring必須

    minLength: 1 · maxLength: 200

  • managed_contentobject

    メールステップの型付きソース契約と下書き・公開リビジョンID。

  • 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で公開コンテンツを参照し、有効化時に未公開参照を拒否します。expires_after_seconds(1-604800)を設定すると、元の開始からその時間後に延期送信を破棄します。既定は7日です。

  • 追加プロパティ任意の値
  • 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

アーカイブにより既定リストからジャーニーを除き、有効な登録を停止します。送信履歴は保持します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

一時停止中または下書きの旧ジャーニーを準備済み管理コンテンツに変換します。

一方向の変換です。メールステップが1つのジャーニーはcontractを指定します。分岐を含む複数メールでは、各メールに正確に1つの保存済みstep_idと準備済みHTML/Liquid契約を持つstep_contentsを指定します。変換は原子的で、ジャーニーを下書きにします。各新管理コンテンツ版には個別の管理下公開レビューがあります。変換中にメールは送信・公開しません。Bangerはソースコードをインポートも実行もしません。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

    ジャーニーメールは受信者自身の言語でのみ送信します。領収書、コード、セキュリティ通知は約1分、他のメールは最大1日翻訳を待ち、その時点で未完成なら送信しません。

    追加プロパティなし

  • 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 }}スロットを1つ含む必要があります。

    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

    ジャーニーメールは受信者自身の言語でのみ送信します。領収書、コード、セキュリティ通知は約1分、他のメールは最大1日翻訳を待ち、その時点で未完成なら送信しません。

    追加プロパティなし

  • 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 }}スロットを1つ含む必要があります。

    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

同じ変換の冪等な再実行。

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"

  • 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"

  • 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

保存済みジャーニーのメールステップ1つを送信せずレンダリングします。

分岐を含めメールステップが複数ある場合はstep_idを指定します。選択した下書きまたは公開済みの不変コンテンツ版を使います。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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}/simulate

任意のトリガー時適格性と管理一斉配信を含め、保存済みジャーニーを試験実行します。

読み取り専用シミュレーションです。enrollmentを省略すると登録後プレビューになり、明示的なトリガーシナリオを指定すると現在の保存連絡先の適格性を確認します。enrollmentがあればscopeはfrom_trigger、最初のタイムライン項目のkindはenrollmentです。不適格受信者はジャーニーステップをスキップし、独立した一斉配信候補は継続します。assume_activeは仮の有効化をモデル化し、管理承認ではありません。プロバイダーイベントの受領・重複排除、配信・遅延、過去のオーディエンス状態、予約・受信メールトリガーは再現しません。検出したAPIジャーニーは専用オンボーディングupsert経路を使い、後の配信抑止は別です。有効なAPIジャーニーは連絡先upsert前に保存オーディエンスを確認し、シミュレーションは書き込まずその順序を再現します。そのため、抑止されたAPI受信者でも適格enrollmentの後にexit/suppressとなり、送信はレンダリングされず、保留中の一斉配信は取り消されます。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

X-Banger-Product-Id
header · 必須

明示的な操作対象プロダクト。プロダクト限定OAuth認証情報と一致する必要があります。

  • valuestring

    format: "uuid"

journeyId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文 必須

application/json

  • valueobject

    追加プロパティなし

  • atstring必須

    format: "date-time"

  • enrollment_idstring
  • content_statestring

    default: "draft" · enum: "draft", "published"

  • localestring
  • variablesobject
  • 追加プロパティ任意の値
  • communication_historyarray

    このシミュレーション受信者への過去の送信または予約。

    maxItems: 10000

  • 各項目string

    format: "date-time"

  • contactobject必須
  • emailstring必須

    format: "email"

  • display_namestring必須
  • attributesobject必須
  • 追加プロパティ任意の値
  • enrollmentobject

    トップレベルat時刻の任意のトリガー試行。保存連絡先は現在の購読、抑止、オーディエンス所属を使います。仮のAPI/イベント連絡先には明示的なsubscribedとsuppressed=false状態、およびall_subscribedオーディエンスが必要です。

    追加プロパティなし

  • kindstring必須

    enum: "manual", "api", "contact_created", "audience_joined", "event"

  • eventstring

    maxLength: 200

  • assume_activeboolean

    default: false

  • contact_statusstring

    enum: "subscribed", "unsubscribed"

  • suppressedboolean
  • eventsarray

    maxItems: 1000

  • 各項目object
  • atstring必須

    format: "date-time"

  • kindstring必須

    enum: "attributes", "reply", "unsubscribe", "suppress", "goal"

  • attributesobject
  • 追加プロパティ任意の値
  • broadcastsarray

    同じ受信者タイムラインで評価する保存済み予約一斉配信、または明示的な管理コンテンツ候補。

    maxItems: 20

  • 各項目object

    追加プロパティなし

  • idstring

    maxLength: 100

  • atstring

    format: "date-time"

  • expires_atstring

    format: "date-time"

  • campaign_idstring

    format: "uuid"

  • content_idstring

    format: "uuid"

  • source_revision_idstring

    format: "uuid"

  • localestring
  • variablesobject
  • 追加プロパティ任意の値
  • oneOf 1未指定
  • oneOf 2未指定

成功レスポンス 200

順序付きタイムライン、レンダリングしたメール詳細、scope、シミュレーション警告。登録結果にはeligible、eligible_assuming_activation、trigger_mismatch、event_mismatch、journey_not_active_or_reviewed、contact_unsubscribed、recipient_hash_missing、contact_suppressed、outside_journey_audience、already_enrolled、contact_predates_enrollment_scan、saved_contact_required、contact_state_unverified、audience_unverifiedがあります。詳細はトリガーと連絡先状態のソースを示し、保存トリガー条件を現在のランタイムが評価しない旨を記す場合があります。配信キュー済みの保存一斉配信受信者はalready_queuedになり、already_sentは受付済み送信にのみ使います。

application/json

  • valueobject
  • dataobject必須
  • journey_idstring必須

    format: "uuid"

  • journey_versioninteger必須
  • content_statestring必須

    enum: "draft", "published"

  • scopestring必須

    enum: "from_trigger", "after_enrollment"

  • communication_policy_versioninteger必須
  • timelinearray必須
  • 各項目object
  • atstring必須

    format: "date-time"

  • step_idstring

    format: "uuid"

  • kindstring必須
  • outcomestring必須
  • details未指定

    結果別のシミュレーション根拠。

  • emailsarray必須
  • 各項目object
  • step_idstring | null必須

    format: "uuid"

  • namestring必須
  • armobject
  • split_step_idstring

    format: "uuid"

  • keystring必須
  • labelstring必須
  • sourcestring必須

    enum: "managed", "design", "inline", "empty"

  • statusstring必須

    enum: "rendered", "blocked"

  • subjectstring
  • previewstring
  • codestring
  • messagestring
  • warningsarray必須
  • 各項目string

curlの例

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/journeys/{journeyId}/simulate' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'X-Banger-Product-Id: 00000000-0000-4000-8000-000000000001' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "at": "2026-01-01T00:00:00Z",
  "enrollment_id": "example",
  "content_state": "draft",
  "locale": "example",
  "variables": {},
  "communication_history": [
    "2026-01-01T00:00:00Z"
  ],
  "contact": {
    "email": "person@example.com",
    "display_name": "example",
    "attributes": {}
  },
  "enrollment": {
    "kind": "manual",
    "event": "example",
    "assume_active": false,
    "contact_status": "subscribed",
    "suppressed": true
  },
  "events": [
    {
      "at": "2026-01-01T00:00:00Z",
      "kind": "attributes",
      "attributes": {}
    }
  ],
  "broadcasts": [
    "example"
  ]
}'
POST/v1/workspaces/{workspaceId}/journeys/{journeyId}/status

setJourneyStatus

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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", "api"

  • connection_idstring

    format: "uuid"

  • configobject
  • eventstring
  • once_per_personboolean

    各人は1回だけ参加します。完了後の再参加を許可するには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

    ジャーニーメールは受信者自身の言語でのみ送信します。領収書、コード、セキュリティ通知は約1分、他のメールは最大1日翻訳を待ち、その時点で未完成なら送信しません。

    追加プロパティなし

  • 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 }}スロットを1つ含む必要があります。

    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", "wait", "condition", "action", "split"

  • namestring必須

    minLength: 1 · maxLength: 200

  • managed_contentobject

    メールステップの型付きソース契約と下書き・公開リビジョンID。

  • 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で公開コンテンツを参照し、有効化時に未公開参照を拒否します。expires_after_seconds(1-604800)を設定すると、元の開始からその時間後に延期送信を破棄します。既定は7日です。

  • 追加プロパティ任意の値
  • 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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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", "wait", "condition", "action", "split"

  • namestring必須

    minLength: 1 · maxLength: 200

  • managed_contentobject

    メールステップの型付きソース契約と下書き・公開リビジョンID。

  • 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で公開コンテンツを参照し、有効化時に未公開参照を拒否します。expires_after_seconds(1-604800)を設定すると、元の開始からその時間後に延期送信を破棄します。既定は7日です。

  • 追加プロパティ任意の値
  • 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

管理下の承認を通じて指定連絡先をジャーニーに登録します。

action_kind sequence.enroll、payload {sequence_id, contact_ids, sequence_version?, sequence_definition_sha256?}を使うPOST /approvalsの別名。同じIdempotency-Keyを使うため、同じキーはどちらのルートでも同じ承認を返します。campaigns:sendとプロダクトが必要です。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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"

  • 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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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未指定

    受信者がこのメールを受け取った言語、またはtranslating中に待っている言語。

    さらに深い入れ子は省略

  • 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

ジャーニーを通じて1通送信します。reply_toの既定はジャーニーのメールボックスで、空のリストも既定を意味します。拒否(4xx)では受信者用の凍結データは残らず、新しい冪等キーで修正して呼び出すと送信されます。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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 }オブジェクトとして保存します。冪等ハッシュは送信時の本文を対象とするため、同じ形式で再試行してください。

  • 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 }オブジェクトとして保存します。冪等ハッシュは送信時の本文を対象とするため、同じ形式で再試行してください。

  • 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

  • 追加プロパティ任意の値

成功レスポンス 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
}'
POST/v1/workspaces/{workspaceId}/journeys/{journeyId}/claim

claimJourney

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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", "api"

  • connection_idstring

    format: "uuid"

  • configobject
  • eventstring
  • once_per_personboolean

    各人は1回だけ参加します。完了後の再参加を許可するには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

    ジャーニーメールは受信者自身の言語でのみ送信します。領収書、コード、セキュリティ通知は約1分、他のメールは最大1日翻訳を待ち、その時点で未完成なら送信しません。

    追加プロパティなし

  • 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 }}スロットを1つ含む必要があります。

    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", "wait", "condition", "action", "split"

  • namestring必須

    minLength: 1 · maxLength: 200

  • managed_contentobject

    メールステップの型付きソース契約と下書き・公開リビジョンID。

  • 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で公開コンテンツを参照し、有効化時に未公開参照を拒否します。expires_after_seconds(1-604800)を設定すると、元の開始からその時間後に延期送信を破棄します。既定は7日です。

  • 追加プロパティ任意の値
  • 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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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", "api"

  • connection_idstring

    format: "uuid"

  • configobject
  • eventstring
  • once_per_personboolean

    各人は1回だけ参加します。完了後の再参加を許可するには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

    ジャーニーメールは受信者自身の言語でのみ送信します。領収書、コード、セキュリティ通知は約1分、他のメールは最大1日翻訳を待ち、その時点で未完成なら送信しません。

    追加プロパティなし

  • 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 }}スロットを1つ含む必要があります。

    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", "wait", "condition", "action", "split"

  • namestring必須

    minLength: 1 · maxLength: 200

  • managed_contentobject

    メールステップの型付きソース契約と下書き・公開リビジョンID。

  • 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で公開コンテンツを参照し、有効化時に未公開参照を拒否します。expires_after_seconds(1-604800)を設定すると、元の開始からその時間後に延期送信を破棄します。既定は7日です。

  • 追加プロパティ任意の値
  • 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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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", "api"

  • connection_idstring

    format: "uuid"

  • configobject
  • eventstring
  • once_per_personboolean

    各人は1回だけ参加します。完了後の再参加を許可するには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

    ジャーニーメールは受信者自身の言語でのみ送信します。領収書、コード、セキュリティ通知は約1分、他のメールは最大1日翻訳を待ち、その時点で未完成なら送信しません。

    追加プロパティなし

  • 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 }}スロットを1つ含む必要があります。

    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", "wait", "condition", "action", "split"

  • namestring必須

    minLength: 1 · maxLength: 200

  • managed_contentobject

    メールステップの型付きソース契約と下書き・公開リビジョンID。

  • 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で公開コンテンツを参照し、有効化時に未公開参照を拒否します。expires_after_seconds(1-604800)を設定すると、元の開始からその時間後に延期送信を破棄します。既定は7日です。

  • 追加プロパティ任意の値
  • 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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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}

1つのレイアウト承認に紐付くコンテンツの、ソースロケールでの完全な変更前後レンダリングを取得します。

不変リビジョンから再構築し、両ソースハッシュを承認スナップショットと照合します。ロケールの上書きは受け付けません。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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キーによる保存デザイン、固定管理リビジョン)からサンプル個人設定でレンダリングし、稼働中ジャーニーは使いません。スナップショットが参照するオーディエンスリスト、セグメント、トリガー・ゴール接続の名前も示します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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
  • 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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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"

  • 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とpayload {content_id, expected_version}を使います。ソース版・ハッシュを紐付け、必要に応じて人のレビューを必須にします。汎用承認種別は常に保留で、summary、capabilities、resourcesが必要です。mail.draftとtransactional.sendのpayloadではto、cc、bcc、reply_toは任意のRecipientInput形式を受け付け、{ email, name }オブジェクトとして保存します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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"

  • 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

判断待ち、または判断前に期限を逃した承認を数えます。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

approvalId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文

契約にリクエスト本文の指定はありません。

成功レスポンス 200

正確な承認リクエストと紐付く操作payload。

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"

  • 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キーは承認を判断できません。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

approvalId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文 必須

application/json

  • valueobject

    追加プロパティなし

  • decisionstring必須

    enum: "approved", "rejected"

  • reasonstring

    maxLength: 500

  • expected_payload_sha256string

    レビュアーに表示した正確な承認payloadのハッシュ。不一致は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"

  • 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

保留中の承認を実行せず取り消します。人のブラウザーセッションのみ。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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"

  • 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

判断期限を逃した承認を閉じます。人のブラウザーセッションのみ。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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"

  • 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

期限を逃した承認を新しい判断期間で複製し、旧リクエストを取り消します。人のブラウザーセッションのみ。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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"

  • 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操作を、新たに正規化した承認に置換します。旧リクエストは取消として履歴に残ります。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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"

  • 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

ワークスペースの最近の内部エージェント実行を一覧表示します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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内部エージェント実行を開始します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

既存実行の冪等な再実行。

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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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クライアント)を一覧表示します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文

契約にリクエスト本文の指定はありません。

成功レスポンス 200

有効なエージェント接続を新しい順に表示。

application/json

  • valueobject
  • dataarray必須
  • 各項目object
  • idstring必須

    format: "uuid"

  • client_namestring必須
  • client_surfacestring必須

    クライアント名とリダイレクトURIから判定する、OAuth接続のエージェントプラットフォーム。

    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

1つのエージェントのアクセスを取り消します。約30秒以内に動作が停止します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

読み取りと確認必須の提案を伴うメールアシスタントコマンドを開始

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

実行者所有のコマンドを元のプロダクトスコープで続行

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

保存・送信せず、レビュー可能なメール改訂案を生成します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

ブリーフからブランドに沿った完全なメールデザインを生成します。提案のみです。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

Webサイト訪問をログイン済みの人に関連付け

ログイン済みの人のセッションが必要です。APIキーは拒否します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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"
}'

応答エージェント

GET/v1/workspaces/{workspaceId}/answer-agents

listAnswerAgents

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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を一覧表示します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

管理メールコンテンツ用の不変画像を保存します。

PNG、JPEG、GIF、WebPの生バイトを対応するContent-Typeと任意のX-File-Name付きで、またはbase64、mime_type、filenameを含むJSONで送信します。どちらも復号後の画像は最大2 MiBです。レスポンスURLはHTMLで直接使えます。ローカライズ先レジストリは作成しません。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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}

プロダクトメール画像1件のメタデータと公開URLを取得します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

既存の隔離実行ジョブの冪等な再実行。

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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

プロダクトのWebサイトを読み、明示的なブランド値を上書きせずに検出したブランド候補を保存します。キャンペーン書き込みスコープが必要です。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

  • 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

解決済みのプロダクトブランドキットと各フィールドのソース。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文

契約にリクエスト本文の指定はありません。

成功レスポンス 200

成功レスポンス。

application/json

  • valueobject
  • dataobject必須
  • brandobject必須
  • company_namestring

    maxLength: 160

  • logo_urlstring

    アイコン: マーク単体。小さな表示(メールのフッター、スライドインフォーム)や、ワードマークがない場合のヘッダーに使います。

    maxLength: 2000

  • wordmark_urlstring

    ワードマーク: デザインされた会社名。各メールの上部に単独で表示します。

    maxLength: 2000

  • 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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文 必須

application/json

  • value未指定
  • anyOf 1object
  • company_namestring

    maxLength: 160

  • logo_urlstring

    アイコン: マーク単体。小さな表示(メールのフッター、スライドインフォーム)や、ワードマークがない場合のヘッダーに使います。

    maxLength: 2000

  • wordmark_urlstring

    ワードマーク: デザインされた会社名。各メールの上部に単独で表示します。

    maxLength: 2000

  • 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

  • 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

  • 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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

正規の読み戻し、または冪等な受領情報。プロバイダー受付はsentです。deliveredには配信イベントが必要で、受信トレイへの到達を証明するものではありません。

application/json

  • valueobject
  • dataobject必須
  • brandobject必須
  • company_namestring

    maxLength: 160

  • logo_urlstring

    アイコン: マーク単体。小さな表示(メールのフッター、スライドインフォーム)や、ワードマークがない場合のヘッダーに使います。

    maxLength: 2000

  • wordmark_urlstring

    ワードマーク: デザインされた会社名。各メールの上部に単独で表示します。

    maxLength: 2000

  • 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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

プロダクト全体の受信者競合、頻度、配信時間枠ポリシーを取得します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

楽観的バージョン確認でプロダクトの通信ポリシーを保存します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

1受信者への固定送信リクエストに対する読み取り専用ポリシーシミュレーション。

予約を変更せず、依存するジャーニーステップも移動しません。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

プロダクト単位のロケール、フォールバック、タイムゾーン、用語集、レビュー設定を取得します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

楽観的バージョン確認でプロダクト単位のコンテンツ設定を保存します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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}/deliverability

getDeliverabilitySummary

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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/resolutions

listDeliverabilityResolutions

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

保存済みメールを送信せずレンダリングして表示を調整

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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が必要です。イベントは、最初のイベント時に作成され、他のWebhookと共に一覧表示されてジャーニーがconnection_idを指定できる、プロダクトの暗黙の受信Webhook「Banger API events」、または同じプロダクトの別の有効な受信Webhookであるconnection_idに届きます。その後はWebhook URLに投稿したイベントと同様に処理します。イベント型と接続をトリガーに指定する有効ジャーニーはemailの人(または設定オーディエンス)を登録し、ゴールに指定するジャーニーはその人の実行を停止します。イベントは承認済みジャーニーを開始してメールを送れます。イベントidにより呼び出しは冪等です。同じ本文で繰り返すとduplicate true、異なる本文で再利用すると409 webhook_event_id_reusedを返します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

x-banger-product-id
header

複数の有効プロダクトがあるワークスペースでは必須。ただしAPIキーがプロダクトに紐付いている場合を除きます。

  • valuestring

    format: "uuid"

Idempotency-Key
header

本文にidがない場合のイベントID。いずれか1つが必須です。

  • valuestring

    minLength: 1 · maxLength: 500

リクエスト本文 必須

application/json

  • valueobject

    追加プロパティなし

  • typestring必須

    signupなど、ジャーニーのトリガー・ゴールが照合するイベント名。

    pattern: "^[A-Za-z0-9_.:-]{1,120}$"

  • id未指定

    呼び出し元システムの安定したイベント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

    同じプロダクトの有効な受信Webhook接続。既定はBanger API events Webhookです。

    format: "uuid"

成功レスポンス 202

イベントを受け付けました。またはこのidで受付済みです。

application/json

  • valueobject
  • dataobject必須
  • acceptedboolean必須

    const: true

  • duplicateboolean必須

    このidが受付済みならtrue。何も再実行していません。

  • 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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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テストを開始します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文 必須

application/json

  • valueobject

    バリアントpayloadはdimensionに一致する必要があります: subject、template_id(デザイン)、content、from_name。キーは一意でholdbackは使えません。allocationには各バリアントの割合が必要で、合計100にします。省略時は均等分配です。

  • 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

バリアント別結果と推奨勝者を含む実験。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

顧客フィードバック送信の利用可否を確認

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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課題を1件作成し、Slackチーム通知を送ります。中断した送信は同じsubmission_idで再試行してください。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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時間で期限切れになります。ファイルは1つの報告にのみ属せます。

    maxItems: 5 · uniqueItems: true

  • 各項目string

    format: "uuid"

成功レスポンス 201

Linear課題とSlack通知を完了しました。冪等な再実行も含みます。

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が必要です。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

エージェントまたはサーバーからの直接メディアアップロードを準備

一時署名付きPUT URLと必須アップロードヘッダーを返します。Banger認証情報なしで、そのヘッダー付きでファイルバイトを送り、アップロードを完了します。ブラウザーから直接送らず、認証付きバイナリプロキシを使ってください。報告者1人1日最大30件、250 MiBです。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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、署名付きurl・method PUT・headersを含むuploadを持ちます。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

フィードバック添付前に直接メディアアップロードを検証

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

attachmentId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文

契約にリクエスト本文の指定はありません。

成功レスポンス 200

dataはattachment_idとstatus readyを含みます。完了処理は冪等です。

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

選択プロダクトの設定用または運用用ホームを読み込みます。

所属、プロダクト有効性、設定投影、運用サマリー、最近の活動をテナント分離された1つのデータベース文で読みます。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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必須

    APIやSMTPなど、メールボックス経由でない送信ではNull。

    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必須

    クライアントが使ったAPIキーの公開プレフィックス`bgr_`。

  • client_ipstring
  • portinteger
  • tlsstring
  • attemptsinteger必須

    同じキーのログイン失敗は10分ごとに1行へまとめます。

    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}/label-suggestions

listLabelSuggestions

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

1つのメールボックスにBangerラベルを作成します。推奨ラベルの作成にはsuggestion_idを渡します。既存名なら既存ラベルを返します(200)。BangerラベルはGmailとは同期しません。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

    名前の前に表示する絵文字1つ。

    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とシステムラベルは読み取り専用です。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

送受信を統合したタイムラインのカーソルページ。Bangerが拒否したSMTP試行は`rejected`行です。`query`では拒否の`smtp_`参照や使用したキーの`bgr_`プレフィックスでも検索できます。

application/json

  • valueobject
  • dataarray必須
  • 各項目object
  • idstring必須

    format: "uuid"

  • directionstring必須

    enum: "out", "in"

  • atstring必須

    format: "date-time"

  • mailbox_idstring | null必須

    APIやSMTPなど、メールボックス経由でない送信ではNull。

    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必須

    クライアントが使ったAPIキーの公開プレフィックス`bgr_`。

  • client_ipstring
  • portinteger
  • tlsstring
  • attemptsinteger必須

    同じキーのログイン失敗は10分ごとに1行へまとめます。

    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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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必須

    APIやSMTPなど、メールボックス経由でない送信ではNull。

    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必須

    クライアントが使ったAPIキーの公開プレフィックス`bgr_`。

  • client_ipstring
  • portinteger
  • tlsstring
  • attemptsinteger必須

    同じキーのログイン失敗は10分ごとに1行へまとめます。

    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

初期表示の全メールデータを1リクエストで返します: 表示可能メールボックス、選択メールボックス、ラベル、メールボックス件数、ワークスペース版、選択メールボックスの最初のスレッドページ。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

    メールボックスが属するプロダクト(プロジェクト)。クライアントはこれでメールボックスをまとめ、Webアプリへのリンクを作成します。

    format: "uuid"

  • domain_idstring | null

    format: "uuid"

  • addressstring必須

    format: "email"

  • display_namestring必須
  • providerstring必須

    enum: "gmail", "smtp"

  • 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必須
  • labelsarray必須
  • 各項目string
  • participantsarray
  • 各項目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からの移行進捗とレポートを取得します。

Poll it to show live progress. Reads the move of a connection whose key stopped working (phase needs_new_key) or that was disconnected (phase disconnected) too, so what already came over can be shown. Without connection_id: the product's one active-or-error Mailchimp connection, else its most recently moved disconnected one.

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

connection_id
query
  • valuestring

    format: "uuid"

リクエスト本文

契約にリクエスト本文の指定はありません。

成功レスポンス 200

移行の現在のレポート。

application/json

  • valueobject
  • dataobject必須

    1つの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 (reading Mailchimp), copying_designs (templates and campaigns), finishing, completed, needs_new_key (Mailchimp rejected the API key; the move is paused until a new key is saved with rotateConnectionCredential), or disconnected (the connection was removed; everything already moved stays in Banger and the counts stay readable).

    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

    Present when needs_new_key or disconnected, ready to show.

  • 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のセグメント、テンプレート、キャンペーン1件の移行先。

  • mailchimp_idstring必須

    セグメント: <audience id>:<segment id>。テンプレートとキャンペーン: Mailchimpのid。

  • becamestring必須

    enum: "segment", "contact_list", "template", "needs_rebuild"

  • idstring

    Bangerのセグメント

    format: "uuid"

  • namestring必須
  • reasonstring

    セグメントが静的リストのままになった理由

  • dropped_merge_tagsarray

    Bangerに相当するものがなくデザインから除いたMailchimp差し込みタグ(差し込みフィールド条件は最初の分岐を保持し、ここに列挙します)。

  • 各項目string
  • replaced_footerboolean

    Mailchimpのフッター部分(ブラウザー表示、設定、住所、バッジ)はプロダクトのブランドフッターになりました。

  • removed_linksarray

    フッター外のMailchimp専用ページ(ブラウザー表示など)への削除済みリンクを、その文言で表示。

  • 各項目string
  • links_to_fillarray

    Mailchimpで空だったリンク。各リンクはデザインのURLスロットとなり、送信前に入力が必要です。

  • 各項目object
  • keystring必須

    さらに深い入れ子は省略

  • labelstring必須

    さらに深い入れ子は省略

  • kept_editsboolean

    再実行時にBangerでの編集を検出し、デザインをそのまま残しました。

  • templatesarray必須
  • 各項目object

    Mailchimpのセグメント、テンプレート、キャンペーン1件の移行先。

  • mailchimp_idstring必須

    セグメント: <audience id>:<segment id>。テンプレートとキャンペーン: Mailchimpのid。

  • becamestring必須

    enum: "segment", "contact_list", "template", "needs_rebuild"

  • idstring

    Bangerのセグメント

    format: "uuid"

  • namestring必須
  • reasonstring

    セグメントが静的リストのままになった理由

  • dropped_merge_tagsarray

    Bangerに相当するものがなくデザインから除いたMailchimp差し込みタグ(差し込みフィールド条件は最初の分岐を保持し、ここに列挙します)。

  • 各項目string
  • replaced_footerboolean

    Mailchimpのフッター部分(ブラウザー表示、設定、住所、バッジ)はプロダクトのブランドフッターになりました。

  • removed_linksarray

    フッター外のMailchimp専用ページ(ブラウザー表示など)への削除済みリンクを、その文言で表示。

  • 各項目string
  • links_to_fillarray

    Mailchimpで空だったリンク。各リンクはデザインのURLスロットとなり、送信前に入力が必要です。

  • 各項目object
  • keystring必須

    さらに深い入れ子は省略

  • labelstring必須

    さらに深い入れ子は省略

  • kept_editsboolean

    再実行時にBangerでの編集を検出し、デザインをそのまま残しました。

  • campaignsarray必須
  • 各項目object

    Mailchimpのセグメント、テンプレート、キャンペーン1件の移行先。

  • mailchimp_idstring必須

    セグメント: <audience id>:<segment id>。テンプレートとキャンペーン: Mailchimpのid。

  • becamestring必須

    enum: "segment", "contact_list", "template", "needs_rebuild"

  • idstring

    Bangerのセグメント

    format: "uuid"

  • namestring必須
  • reasonstring

    セグメントが静的リストのままになった理由

  • dropped_merge_tagsarray

    Bangerに相当するものがなくデザインから除いたMailchimp差し込みタグ(差し込みフィールド条件は最初の分岐を保持し、ここに列挙します)。

  • 各項目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が必要で、ログインした人は所有者または管理者でなければなりません。接続認可は不要です。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

    1つの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 (reading Mailchimp), copying_designs (templates and campaigns), finishing, completed, needs_new_key (Mailchimp rejected the API key; the move is paused until a new key is saved with rotateConnectionCredential), or disconnected (the connection was removed; everything already moved stays in Banger and the counts stay readable).

    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

    Present when needs_new_key or disconnected, ready to show.

  • 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のセグメント、テンプレート、キャンペーン1件の移行先。

  • mailchimp_idstring必須

    セグメント: <audience id>:<segment id>。テンプレートとキャンペーン: Mailchimpのid。

  • becamestring必須

    enum: "segment", "contact_list", "template", "needs_rebuild"

  • idstring

    Bangerのセグメント

    format: "uuid"

  • namestring必須
  • reasonstring

    セグメントが静的リストのままになった理由

  • dropped_merge_tagsarray

    Bangerに相当するものがなくデザインから除いたMailchimp差し込みタグ(差し込みフィールド条件は最初の分岐を保持し、ここに列挙します)。

  • 各項目string

    さらに深い入れ子は省略

  • replaced_footerboolean

    Mailchimpのフッター部分(ブラウザー表示、設定、住所、バッジ)はプロダクトのブランドフッターになりました。

  • removed_linksarray

    フッター外のMailchimp専用ページ(ブラウザー表示など)への削除済みリンクを、その文言で表示。

  • 各項目string

    さらに深い入れ子は省略

  • links_to_fillarray

    Mailchimpで空だったリンク。各リンクはデザインのURLスロットとなり、送信前に入力が必要です。

  • 各項目object

    さらに深い入れ子は省略

  • kept_editsboolean

    再実行時にBangerでの編集を検出し、デザインをそのまま残しました。

  • templatesarray必須
  • 各項目object

    Mailchimpのセグメント、テンプレート、キャンペーン1件の移行先。

  • mailchimp_idstring必須

    セグメント: <audience id>:<segment id>。テンプレートとキャンペーン: Mailchimpのid。

  • becamestring必須

    enum: "segment", "contact_list", "template", "needs_rebuild"

  • idstring

    Bangerのセグメント

    format: "uuid"

  • namestring必須
  • reasonstring

    セグメントが静的リストのままになった理由

  • dropped_merge_tagsarray

    Bangerに相当するものがなくデザインから除いたMailchimp差し込みタグ(差し込みフィールド条件は最初の分岐を保持し、ここに列挙します)。

  • 各項目string

    さらに深い入れ子は省略

  • replaced_footerboolean

    Mailchimpのフッター部分(ブラウザー表示、設定、住所、バッジ)はプロダクトのブランドフッターになりました。

  • removed_linksarray

    フッター外のMailchimp専用ページ(ブラウザー表示など)への削除済みリンクを、その文言で表示。

  • 各項目string

    さらに深い入れ子は省略

  • links_to_fillarray

    Mailchimpで空だったリンク。各リンクはデザインのURLスロットとなり、送信前に入力が必要です。

  • 各項目object

    さらに深い入れ子は省略

  • kept_editsboolean

    再実行時にBangerでの編集を検出し、デザインをそのまま残しました。

  • campaignsarray必須
  • 各項目object

    Mailchimpのセグメント、テンプレート、キャンペーン1件の移行先。

  • mailchimp_idstring必須

    セグメント: <audience id>:<segment id>。テンプレートとキャンペーン: Mailchimpのid。

  • becamestring必須

    enum: "segment", "contact_list", "template", "needs_rebuild"

  • idstring

    Bangerのセグメント

    format: "uuid"

  • namestring必須
  • reasonstring

    セグメントが静的リストのままになった理由

  • dropped_merge_tagsarray

    Bangerに相当するものがなくデザインから除いたMailchimp差し込みタグ(差し込みフィールド条件は最初の分岐を保持し、ここに列挙します)。

  • 各項目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順で一覧表示します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

ソースロケールのメール下書きを保存し、不足する対象翻訳をキューに入れます。

送信・公開はしません。翻訳準備には言語ごとの料金はありません。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

    ジャーニーメールは受信者自身の言語でのみ送信します。領収書、コード、セキュリティ通知は約1分、他のメールは最大1日翻訳を待ち、その時点で未完成なら送信しません。

    追加プロパティなし

  • 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 }}スロットを1つ含む必要があります。

    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}

下書き版、翻訳、準備状態を取得します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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必須

    ジャーニーメールは受信者自身の言語でのみ送信します。領収書、コード、セキュリティ通知は約1分、他のメールは最大1日翻訳を待ち、その時点で未完成なら送信しません。

    追加プロパティなし

  • 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 }}スロットを1つ含む必要があります。

    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に変更してから、ジャーニーをレビュー・有効化、または一斉配信を予約します。既存の受付済み送信と予約一斉配信受信者は固定版を保持します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

    ジャーニーメールは受信者自身の言語でのみ送信します。領収書、コード、セキュリティ通知は約1分、他のメールは最大1日翻訳を待ち、その時点で未完成なら送信しません。

    追加プロパティなし

  • 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 }}スロットを1つ含む必要があります。

    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

保存ソース版と準備済みロケール1つを送信せずプレビューします。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

現在のソース下書きの失敗した自動翻訳を再試行します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

下書き版の翻訳カタログと準備ジョブを取得します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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必須

    ジャーニーメールは受信者自身の言語でのみ送信します。領収書、コード、セキュリティ通知は約1分、他のメールは最大1日翻訳を待ち、その時点で未完成なら送信しません。

    追加プロパティなし

  • 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 }}スロットを1つ含む必要があります。

    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

1つのソース版の正確な保留中翻訳カタログをレビューします。

現在の読み戻しのカタログSHA-256が必要です。修正文は任意です。この操作ではソースを公開しません。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

不変の公開履歴を一覧表示します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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 }}スロットを1つ含む必要があります。

    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

過去のソース版を公開せず新しい下書きにコピーします。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

再利用可能なプロダクトメールレイアウトを一覧表示します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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またはブランドを反映した既定値からレイアウト下書きを作成します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

    コンテンツスロットを正確に1つ含む必要があります。

  • 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}

レイアウトと現在の下書き版を取得します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

  • 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}

検証済みレイアウト下書き版を保存します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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必須

    コンテンツスロットを正確に1つ含む必要があります。

  • 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

不変レイアウト版を一覧表示します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

  • 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

このレイアウトに依存するコンテンツ下書きと公開を説明します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

不変レイアウト版を新しい下書きにコピーします。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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キーではできません。自分のロールは変更できず、所有者ロールも変更不可です。現在のロールを設定しても変わりません。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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"

  • statusstring必須

    enum: "active", "suspended"

  • allOf 2object
  • previousRolestring必須

    enum: "owner", "admin", "member", "viewer"

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キーやエージェント認証情報ではこの操作を認可できません。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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キーやエージェント認証情報ではこの操作を認可できません。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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キーやエージェント認証情報ではこの操作を認可できません。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

Gemini Enterpriseなど、クライアントIDとシークレットで接続するエージェントプラットフォーム用のワークスペースOAuthクライアントを一覧表示します。

所有者と管理者のみ。シークレットは返しません。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文

契約にリクエスト本文の指定はありません。

成功レスポンス 200

有効なOAuthクライアントを新しい順に表示。

application/json

  • valueobject
  • dataarray必須
  • 各項目object
  • client_idstring必須
  • namestring必須
  • presetstring必須

    enum: "gemini_enterprise", "custom"

  • client_surfacestring必須

    クライアント名とリダイレクトURIから判定する、OAuth接続のエージェントプラットフォーム。

    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にログインし、アクセスを承認して、このワークスペースで自身のロールで操作します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文 必須

application/json

  • valueobject

    追加プロパティなし

  • namestring

    接続済みアプリに表示します。このプリセットでは既定が"Gemini Enterprise"です。

    minLength: 1 · maxLength: 100

  • presetstring

    gemini_enterpriseはGoogleのリダイレクトURIを使い、customにはredirect_urisが必要です。

    default: "gemini_enterprise" · enum: "gemini_enterprise", "custom"

  • redirect_urisarray

    カスタムプリセットのみ。HTTPSリダイレクトURIは作成時に固定します。

    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必須

    クライアント名とリダイレクトURIから判定する、OAuth接続のエージェントプラットフォーム。

    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秒以内にアクセスを失います。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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"

リアルタイムチケット

POST/v1/workspaces/{workspaceId}/realtime-ticket

createRealtimeTicket

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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"
}'

レビューポリシー

GET/v1/workspaces/{workspaceId}/review-policy

getActionReviewPolicy

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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を返します。有効な所属が必要です。アプリはこのワークスペースとプロダクト、オンボーディングを開きます。個人のオンボーディングジャーニーはリセットしません。冪等です。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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、404はアドレスがこのワークスペースの送信者でないことを示します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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に記載しています。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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、shared_organizational_root、complaint_burst。

  • 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、shared_organizational_root、complaint_burst。

    さらに深い入れ子は省略

  • 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、shared_organizational_root、complaint_burst。

  • 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

率とソースを確認後、1つのレーン・ドメイン・メールボックスの停止を解除します。

ワークスペース管理者のみ。レーン・ドメイン停止から24時間後、ドメインごと30日に1回可能です。30日内の再停止や凍結ワークスペースはBangerのレビューが必要で、423で拒否します。再開後24時間は小さなバッチで送信し、保留中の一斉配信とジャーニーは自動継続します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文 必須

application/json

  • valueobject

    追加プロパティなし

  • hold_idstring必須

    getSendingHealthの停止(hold.id)。

    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、shared_organizational_root、complaint_burst。

  • 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、shared_organizational_root、complaint_burst。

    さらに深い入れ子は省略

  • 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、shared_organizational_root、complaint_burst。

    さらに深い入れ子は省略

  • 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

既定送信者の設定レーンと実効ルーティング。専用レーンが有効になるまでプロダクトと一斉配信は既定メール接続を継承します。保留レーンは稼働経路を置換しません。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

    メールボックスが属するプロダクト(プロジェクト)。クライアントはこれでメールボックスをまとめ、Webアプリへのリンクを作成します。

    format: "uuid"

  • domain_idstring | null

    format: "uuid"

  • addressstring必須

    format: "email"

  • display_namestring必須
  • providerstring必須

    enum: "gmail", "smtp"

  • 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変更や追加レーン作成は行いません。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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必須

    メールはメールボックスです。送受信を行います。プロダクトと一斉配信は任意の専用送信レーンです。

    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必須

    追加プロパティなし

  • 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事前確認。リソースは作成しません。Webサイトのレコードだけではメールホスト名を占有しません。既存設定とBangerが変更する必要のある名前の競合を返します。既存の送信認証とDMARCポリシーは保持します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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必須

    メールはメールボックスです。送受信を行います。プロダクトと一斉配信は任意の専用送信レーンです。

    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

このレーンのみの既存の人による移行レビューを要求します。ログイン済み管理者のみ承認で認可できます。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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必須

    メールはメールボックスです。送受信を行います。プロダクトと一斉配信は任意の専用送信レーンです。

    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"

  • 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

プロダクトブランドでレンダリングしたスターターレイアウト。各項目にブリーフ(用途、送信時期、指標、仕組み、テスト件名)、スロット、既定コンテンツを含みます。一覧は簡潔で、既定はプロダクトの業種です。body_htmlはidで1件要求してください。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

id
query

スターター1件。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キーならワークスペース所有者)にします。ワークスペース、ロール、プランを添付します。1人1日10通です。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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}

1つの認可済みデータベーストランザクションでプロダクト画面を読み込みます。

プロダクト限定の1画面用に範囲を限定した初期表示データを返します。エンドポイントのクエリと同じテナント分離トランザクションで、ワークスペース所属と選択プロダクトを検証します。Webhook画面はevent_definitions(下書き含むジャーニートリガー・ゴール名)、event_stats(保存受信記録全体の件数)、receipts(新しい順、最大51行)を含みます。クライアントは50件表示し、追加行で次ページを判断します。受信Webhookにはpublic_urlがあり、認証情報は別取得です。受信メタデータに生payloadや過去のテスト・本番ラベルはありません。outgoing_event_typesは設定エンドポイントに関係なく、自動Bangerイベントと手動webhook.testの固定カタログを含みます。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

Webhook画面で、受信履歴と送信配信をこのエンドポイントに限定します。

  • valuestring

    format: "uuid"

event_type
query

Webhook画面で、受信記録を正確なイベント名で絞ります。カタログ定義と合計はプロダクト全体のままです。

  • valuestring

    maxLength: 120

receipt_before
query

受信カーソル。最後の表示行のreceivedAt、endpointId、eventIdを持つJSONオブジェクト。ミリ秒未満の精度を保つためreceivedAtはそのまま維持します。JSON値をURLエンコードしてください。

  • 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"

トリアージ操作

GET/v1/workspaces/{workspaceId}/triage-actions

listTriageActions

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

1つのトリアージ操作を元に戻します。既定ではルールにもこのメールが不一致と教えます。通常の取り消しにはteach_ruleをfalseにします。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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
}'

トリアージルール

GET/v1/workspaces/{workspaceId}/triage-rules

listTriageRules

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

受信メールのトリアージルールを作成します(全プラン。有効ルールはプラン枠に算入)。When = description(Jevが判断)および/またはexact_conditionsおよび/またはhas_label_ids、Then = actions。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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に一致する最近のスレッド。読み取り専用でスコアは返しません。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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でのみ編集できます。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

ruleId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文

契約にリクエスト本文の指定はありません。

成功レスポンス 204

トリアージルールを削除しました。

レスポンス本文なし。

curlの例

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

トリアージ使用量

GET/v1/workspaces/{workspaceId}/triage-usage

getTriageUsage

現在のUTC暦月のトリアージ使用量とプラン枠、リセット日時、より多くのメールを確認する最安プラン。月間枠を超えると、リセットまで新着メールは未分類のままです。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文

契約にリクエスト本文の指定はありません。

成功レスポンス 200

成功レスポンス。

application/json

  • valueobject
  • dataobject必須
  • unlimitedboolean必須

    このワークスペースでは両上限を解除しています。

  • rule_limitinteger必須

    同時に有効化できるトリアージ・自動設定ルール数。

  • rules_enabledinteger必須
  • run_limitinteger必須

    UTC暦月ごとにトリアージが確認するメール数。

  • runs_this_monthinteger必須
  • resets_atstring必須

    次のUTC暦月の開始時刻。

    format: "date-time"

  • plan_keystring必須

    ワークスペースの現在のプラン。ない場合はfree。

  • 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"

作業

GET/v1/workspaces/{workspaceId}/work

listWork

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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必須
  • labelsarray必須
  • 各項目string
  • participantsarray
  • 各項目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管理のプロダクト・業務データ接続を一覧表示します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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の接続は即座に移行を開始します(startMailchimpMigrationと同様)。レスポンスは 最初のレポートを`mailchimp_migration`に含みます。display_nameがなければ、Mailchimp接続は "Mailchimp (Acme Inc)"などアカウント名で命名されます。すでに接続済みのMailchimpアカウントを 接続すると409 `mailchimp_account_already_connected`と`error.details.connection_id`を返します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

既存接続リクエストの冪等な再実行。

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

    1つの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 (reading Mailchimp), copying_designs (templates and campaigns), finishing, completed, needs_new_key (Mailchimp rejected the API key; the move is paused until a new key is saved with rotateConnectionCredential), or disconnected (the connection was removed; everything already moved stays in Banger and the counts stay readable).

    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

    Present when needs_new_key or disconnected, ready to show.

  • 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のセグメント、テンプレート、キャンペーン1件の移行先。

  • mailchimp_idstring必須

    セグメント: <audience id>:<segment id>。テンプレートとキャンペーン: Mailchimpのid。

  • becamestring必須

    enum: "segment", "contact_list", "template", "needs_rebuild"

  • idstring

    Bangerのセグメント

    format: "uuid"

  • namestring必須
  • reasonstring

    セグメントが静的リストのままになった理由

  • dropped_merge_tagsarray

    Bangerに相当するものがなくデザインから除いたMailchimp差し込みタグ(差し込みフィールド条件は最初の分岐を保持し、ここに列挙します)。

  • 各項目string
  • replaced_footerboolean

    Mailchimpのフッター部分(ブラウザー表示、設定、住所、バッジ)はプロダクトのブランドフッターになりました。

  • removed_linksarray

    フッター外のMailchimp専用ページ(ブラウザー表示など)への削除済みリンクを、その文言で表示。

  • 各項目string
  • links_to_fillarray

    Mailchimpで空だったリンク。各リンクはデザインのURLスロットとなり、送信前に入力が必要です。

  • 各項目object
  • keystring必須

    さらに深い入れ子は省略

  • labelstring必須

    さらに深い入れ子は省略

  • kept_editsboolean

    再実行時にBangerでの編集を検出し、デザインをそのまま残しました。

  • templatesarray必須
  • 各項目object

    Mailchimpのセグメント、テンプレート、キャンペーン1件の移行先。

  • mailchimp_idstring必須

    セグメント: <audience id>:<segment id>。テンプレートとキャンペーン: Mailchimpのid。

  • becamestring必須

    enum: "segment", "contact_list", "template", "needs_rebuild"

  • idstring

    Bangerのセグメント

    format: "uuid"

  • namestring必須
  • reasonstring

    セグメントが静的リストのままになった理由

  • dropped_merge_tagsarray

    Bangerに相当するものがなくデザインから除いたMailchimp差し込みタグ(差し込みフィールド条件は最初の分岐を保持し、ここに列挙します)。

  • 各項目string
  • replaced_footerboolean

    Mailchimpのフッター部分(ブラウザー表示、設定、住所、バッジ)はプロダクトのブランドフッターになりました。

  • removed_linksarray

    フッター外のMailchimp専用ページ(ブラウザー表示など)への削除済みリンクを、その文言で表示。

  • 各項目string
  • links_to_fillarray

    Mailchimpで空だったリンク。各リンクはデザインのURLスロットとなり、送信前に入力が必要です。

  • 各項目object
  • keystring必須

    さらに深い入れ子は省略

  • labelstring必須

    さらに深い入れ子は省略

  • kept_editsboolean

    再実行時にBangerでの編集を検出し、デザインをそのまま残しました。

  • campaignsarray必須
  • 各項目object

    Mailchimpのセグメント、テンプレート、キャンペーン1件の移行先。

  • mailchimp_idstring必須

    セグメント: <audience id>:<segment id>。テンプレートとキャンペーン: Mailchimpのid。

  • becamestring必須

    enum: "segment", "contact_list", "template", "needs_rebuild"

  • idstring

    Bangerのセグメント

    format: "uuid"

  • namestring必須
  • reasonstring

    セグメントが静的リストのままになった理由

  • dropped_merge_tagsarray

    Bangerに相当するものがなくデザインから除いたMailchimp差し込みタグ(差し込みフィールド条件は最初の分岐を保持し、ここに列挙します)。

  • 各項目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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

有効な認証情報を再検証し、アカウントメタデータを更新します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

管理接続の認証情報を検証し、原子的にローテーションします。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

過去のローテーションの冪等な再実行。

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管理接続に対し型付きの範囲限定読み取りを実行します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

このワークスペースのPKCE保護付きGmailメールボックス接続を開始します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文

契約にリクエスト本文の指定はありません。

成功レスポンス 200

Gmail認可URLとポーリング契約。

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認可セッションをポーリングします。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

作成済み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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

Idempotency-Key
header · 必須
  • valuestring

    minLength: 16 · maxLength: 128

リクエスト本文 必須

application/json

  • valueobject

    追加プロパティなし

  • domainstring必須

    プロダクトの正確なドメインまたはサブドメイン。既定ではBangerが3つの独立したレーンサブドメインを生成します。

    minLength: 3 · maxLength: 253

  • setup_modestring

    シンプル設定は、選択メールボックスアドレスでの送受信に1つのメールボックス転送を用意し、一斉配信とジャーニーも含みます。詳細設定は独立した送信レーンを用意します。

    default: "advanced" · enum: "simple", "advanced"

  • mailbox_modestring

    シンプル設定はメールボックス接頭辞がなければルート、詳細設定はサブドメインが既定です。サブドメインは既存ドメインメールを保持します。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

    BangerがこのドメインのDNSでResendを検出済みで、選択プロダクトに有効接続がある場合のみ受け付けます。それ以外ではクライアントは表示してはいけません。

    追加プロパティなし

  • 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

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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

sendingDomainId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文 必須

application/json

  • valueobject

    追加プロパティなし

  • confirm_domainstring必須

    削除するルートドメインと完全一致が必要です。

    minLength: 3 · maxLength: 253

成功レスポンス 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}' \
  --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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

sendingDomainId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文

契約にリクエスト本文の指定はありません。

成功レスポンス 200

Banger IDと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スナップショットを原子的に再確認し、承認ドメインを準備します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

Idempotency-Key
header · 必須
  • valuestring

    minLength: 16 · maxLength: 128

リクエスト本文 必須

application/json

  • valueobject

    追加プロパティなし

  • domainstring必須

    プロダクトの正確なドメインまたはサブドメイン。既定ではBangerが3つの独立したレーンサブドメインを生成します。

    minLength: 3 · maxLength: 253

  • setup_modestring

    シンプル設定は、選択メールボックスアドレスでの送受信に1つのメールボックス転送を用意し、一斉配信とジャーニーも含みます。詳細設定は独立した送信レーンを用意します。

    default: "advanced" · enum: "simple", "advanced"

  • mailbox_modestring

    シンプル設定はメールボックス接頭辞がなければルート、詳細設定はサブドメインが既定です。サブドメインは既存ドメインメールを保持します。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

    BangerがこのドメインのDNSでResendを検出済みで、選択プロダクトに有効接続がある場合のみ受け付けます。それ以外ではクライアントは表示してはいけません。

    追加プロパティなし

  • 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

既存移行リクエストを冪等に返しました。

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"

  • 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"
  }
}'

Webhook

GET/v1/workspaces/{workspaceId}/webhooks

受信イベントソースと送信イベント送信先を一覧表示します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文

契約にリクエスト本文の指定はありません。

成功レスポンス 200

ワークスペースのWebhookエンドポイント。

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

署名・再試行付き送信先、または冪等な受信イベントソースを作成します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文 必須

application/json

  • valueobject

    追加プロパティなし

  • kindstring必須

    enum: "outbound", "inbound"

  • namestring必須

    minLength: 1 · maxLength: 120

  • source_keystring

    banger_apiはPOST /eventsが作成するWebhook用に予約されています。

    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

    SupabaseプロジェクトURL。

    format: "uri"

  • mailbox_idstring

    Supabase Authメールに使う有効なBanger送信アドレス。

    format: "uuid"

  • template_idsobject

    各Supabase Authメール操作に選択するBangerテンプレート。

    追加プロパティなし

  • 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

Webhookを作成しました。送信署名シークレットは一度表示します。受信認証情報の選択肢は認可された呼び出し元が再表示できます。

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

    Authorizationヘッダーと併用する公開受信URL。

    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}

エンドポイントやシークレットを変更せず、Webhookを無効化、または無効・失敗中のWebhookを再有効化します。

無効化は配信または受信自動化イベントを止め、Webhook、名前、履歴を保持します。受信Webhookの無効化は接続も無効にするため、それをトリガーとするジャーニーは再有効化までイベントを受け取りません。完全に除去するには削除してください。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

endpointId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文 必須

application/json

  • valueobject

    追加プロパティなし

  • statusstring必須

    enum: "active", "disabled"

成功レスポンス 200

Webhookを再有効化または無効化しました。

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}

名前を再利用できるようにWebhookを完全削除します。

送信エンドポイントは配信履歴ごと削除します。受信Webhookは接続ごと削除し、アーカイブ済みを含む全ジャーニーがその接続をトリガー・ゴールに使っていない場合のみ可能です。残したまま停止するには、代わりにstatusをdisabledにPATCHします。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

endpointId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文

契約にリクエスト本文の指定はありません。

成功レスポンス 204

Webhookを削除しました。

レスポンス本文なし。

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

有効な受信Webhookの既存認証情報選択肢を再表示します。

automation:executeが必要です。リソースを作成・ローテーションせず、同じシークレットを返します。このレスポンスをキャッシュやログに保存しないでください。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

endpointId
path · 必須
  • valuestring

    format: "uuid"

x-banger-product-id
header

認証済みAPIキーがプロダクトに紐付いていなければ必須。

  • valuestring

    format: "uuid"

リクエスト本文

契約にリクエスト本文の指定はありません。

成功レスポンス 200

非公開ソースURL、公開Webhook 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

    Authorizationヘッダーと併用する公開受信URL。

    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

送信Webhookの最近の配信試行とHTTP結果を一覧表示します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

通常の再試行配信経路に署名付き合成イベント1件をキュー登録します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

リソース作成やメール送信なしで正規設定(接続、ブランド、ドメイン)を取得します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

    Web設定ゲートと設定完了バナー。各部分は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

選択プロダクトで明示的な再試行安全オンボーディング操作を1つ実行します。

送信先は認可ユーザーの検証済み登録アドレスのみです。ジャーニーは無効、一斉配信は未送信のままです。既存の移行承認境界を適用します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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、IDフィールドは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

    Web設定ゲートと設定完了バナー。各部分は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共通のオンボーディングジャーニーを再開します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

エージェント主導の入口画面またはブラウザーの代替を選びます。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

恒久ホスト型メールボックスを冪等に作成し、実際の歓迎メッセージの送受信往復を開始します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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に紐付くエージェント接続証明を正規ホスト型メールボックスに送ります。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

明示的な段階的オンボーディングの選択を1つ記録します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

会社ドメインあり・なしのオンボーディング判断を保存し、正規検出を実行します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

ブラウザーまたは接続エージェントが提供したレビュー済み業務コンテキストを保存します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

実メール有効化が成功した後、個別の次のステップ選択肢を保存します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

機会計画から準備したレビュー済み成果物を記録します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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

エージェントが機密性の高い変更を準備する前に、提案した機会マップを承認します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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 POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/onboarding/agent-state/plan/approve' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/onboarding/agent-state/validate

Banger所有の証明状態から決定的な有効化検証を導出します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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/validate' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "summary": {}
}'
POST/v1/workspaces/{workspaceId}/onboarding/agent-state/complete

決定的検証に合格後、オンボーディングを完了します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
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 POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/onboarding/agent-state/complete' \
  --header "Authorization: Bearer $BANGER_API_KEY"
GET/v1/workspaces/{workspaceId}/onboarding/starter-proof

スターターアドレスの送受信往復の永続状態を取得します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

mailbox_id
query · 必須
  • 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 GET --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/onboarding/starter-proof?mailbox_id=00000000-0000-4000-8000-000000000001' \
  --header "Authorization: Bearer $BANGER_API_KEY"
POST/v1/workspaces/{workspaceId}/onboarding/starter-proof

スターターアドレスの実際の送受信証明を開始または再開します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文 必須

application/json

  • valueobject

    追加プロパティなし

  • mailbox_idstring必須

    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/starter-proof' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "mailbox_id": "00000000-0000-4000-8000-000000000001"
}'
GET/v1/workspaces/{workspaceId}/onboarding/domain-proof

ドメインインフラ確認の永続状態を取得します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文

契約にリクエスト本文の指定はありません。

成功レスポンス 200

現在の証明状態。

application/json

  • valueobject
  • dataobject必須
  • 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必須

curlの例

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

検証済みBangerインフラの実際の送受信チェック2件を開始または再開します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文 必須

application/json

  • valueobject

    追加プロパティなし

  • native_domain_idstring必須

    format: "uuid"

成功レスポンス 200

既存の証明を再開しました。

application/json

  • valueobject
  • dataobject必須
  • 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必須

curlの例

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/onboarding/domain-proof' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "native_domain_id": "00000000-0000-4000-8000-000000000001"
}'
PUT/v1/workspaces/{workspaceId}/onboarding/goal

selectActivationGoal

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文 必須

application/json

  • valueobject

    追加プロパティなし

  • goalstring必須

    enum: "work_inbox", "product_email", "campaign", "company_workflow"

成功レスポンス 200

最初の結果を選択しました。ガイド付き実行がプロダクトシェルで開く場合があります。

application/json

  • valueobject
  • dataobject必須
  • goalstring必須

    enum: "work_inbox", "product_email", "campaign", "company_workflow"

curlの例

curl --request PUT --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/onboarding/goal' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "goal": "work_inbox"
}'
GET/v1/workspaces/{workspaceId}/onboarding/discovery

getWorkspaceDomainDiscovery

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文

契約にリクエスト本文の指定はありません。

成功レスポンス 200

現在の会社とメール構成の検出結果。

application/json

  • valueobject
  • dataobject必須
  • 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必須
  • 各項目string
  • logo_urlstring | null必須

    format: "uri"

  • favicon_urlstring | null必須

    format: "uri"

  • visual_identityobject必須
  • colorsarray必須

    maxItems: 6

  • 各項目string
  • fontsarray必須

    maxItems: 6

  • 各項目string
  • tonearray必須

    maxItems: 6

  • 各項目string
  • source_confidencestring必須

    enum: "high", "medium", "low"

  • hero_image_urlstring

    format: "uri"

  • palettearray必須

    maxItems: 6

  • 各項目object

    追加プロパティなし

  • valuestring必須

    さらに深い入れ子は省略

  • rolestring必須

    enum: "primary", "accent", "background", "surface", "text", "other"

    さらに深い入れ子は省略

  • namestring必須

    さらに深い入れ子は省略

  • typographyarray必須

    maxItems: 6

  • 各項目object

    追加プロパティなし

  • familystring必須

    さらに深い入れ子は省略

  • rolestring必須

    enum: "heading", "body", "mono", "other"

    さらに深い入れ子は省略

  • weightsarray必須

    さらに深い入れ子は省略

  • assetsarray必須

    maxItems: 8

  • 各項目object

    追加プロパティなし

  • urlstring必須

    format: "uri"

    さらに深い入れ子は省略

  • kindstring必須

    enum: "logo", "wordmark", "favicon", "hero"

    さらに深い入れ子は省略

  • sourcestring必須

    さらに深い入れ子は省略

  • brand_summarystring必須
  • imagery_stylearray必須

    maxItems: 6

  • 各項目string
  • source_snapshotobject必須
  • 追加プロパティ任意の値
  • dns_signalsarray必須
  • 各項目object
  • namestring必須
  • typestring必須

    enum: "MX", "TXT", "CNAME", "NS"

  • valuestring必須
  • ttlinteger必須

    minimum: 0

  • dns_provider未指定必須
  • oneOf 1object

    追加プロパティなし

  • keystring必須
  • namestring必須
  • confidencestring必須

    enum: "high", "medium", "low"

  • dashboard_urlstring必須

    format: "uri"

  • evidencearray必須
  • 各項目object
  • namestring必須

    さらに深い入れ子は省略

  • typestring必須

    enum: "MX", "TXT", "CNAME", "NS"

    さらに深い入れ子は省略

  • valuestring必須

    さらに深い入れ子は省略

  • ttlinteger必須

    minimum: 0

    さらに深い入れ子は省略

  • oneOf 2null
  • provider_detectionsarray必須
  • 各項目object
  • keystring必須
  • namestring必須
  • categoriesarray必須
  • 各項目string

    enum: "work_mailbox", "transactional", "marketing", "deliverability"

  • confidencestring必須

    enum: "high", "medium", "low"

  • evidencearray必須
  • 各項目object
  • namestring必須

    さらに深い入れ子は省略

  • typestring必須

    enum: "MX", "TXT", "CNAME", "NS"

    さらに深い入れ子は省略

  • valuestring必須

    さらに深い入れ子は省略

  • ttlinteger必須

    minimum: 0

    さらに深い入れ子は省略

  • capability_summaryarray必須
  • 各項目object
  • kindstring必須

    enum: "work_mailbox", "transactional", "marketing", "deliverability"

  • labelstring必須
  • statusstring必須

    enum: "detected", "missing", "needs_review"

  • provider_keysarray必須
  • 各項目string
  • recommendationstring必須

    enum: "connect", "setup_banger", "review"

  • 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
  • namestring必須

    さらに深い入れ子は省略

  • typestring必須

    enum: "MX", "TXT", "CNAME", "NS"

    さらに深い入れ子は省略

  • valuestring必須

    さらに深い入れ子は省略

  • ttlinteger必須

    minimum: 0

    さらに深い入れ子は省略

  • connection_planarray必須
  • 各項目object

    追加プロパティなし

  • capabilitystring必須

    enum: "work_mailbox", "transactional", "marketing", "deliverability"

  • provider_keystring
  • actionstring必須

    enum: "connect", "setup_banger", "review"

  • domainstring

    minLength: 3 · maxLength: 253

  • limitationsarray必須
  • 各項目string
  • scanned_atstring必須

    format: "date-time"

  • confirmed_atstring | null必須

    format: "date-time"

curlの例

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

scanWorkspaceDomain

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文 必須

application/json

  • valueobject

    追加プロパティなし

  • domainstring必須

    minLength: 3 · maxLength: 253

  • stream_kindstring

    default: "default" · enum: "default", "transactional", "marketing"

成功レスポンス 201

公開DNSとWebサイトの検出を完了し、保存しました。

application/json

  • valueobject
  • dataobject必須
  • 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必須
  • 各項目string
  • logo_urlstring | null必須

    format: "uri"

  • favicon_urlstring | null必須

    format: "uri"

  • visual_identityobject必須
  • colorsarray必須

    maxItems: 6

  • 各項目string
  • fontsarray必須

    maxItems: 6

  • 各項目string
  • tonearray必須

    maxItems: 6

  • 各項目string
  • source_confidencestring必須

    enum: "high", "medium", "low"

  • hero_image_urlstring

    format: "uri"

  • palettearray必須

    maxItems: 6

  • 各項目object

    追加プロパティなし

  • valuestring必須

    さらに深い入れ子は省略

  • rolestring必須

    enum: "primary", "accent", "background", "surface", "text", "other"

    さらに深い入れ子は省略

  • namestring必須

    さらに深い入れ子は省略

  • typographyarray必須

    maxItems: 6

  • 各項目object

    追加プロパティなし

  • familystring必須

    さらに深い入れ子は省略

  • rolestring必須

    enum: "heading", "body", "mono", "other"

    さらに深い入れ子は省略

  • weightsarray必須

    さらに深い入れ子は省略

  • assetsarray必須

    maxItems: 8

  • 各項目object

    追加プロパティなし

  • urlstring必須

    format: "uri"

    さらに深い入れ子は省略

  • kindstring必須

    enum: "logo", "wordmark", "favicon", "hero"

    さらに深い入れ子は省略

  • sourcestring必須

    さらに深い入れ子は省略

  • brand_summarystring必須
  • imagery_stylearray必須

    maxItems: 6

  • 各項目string
  • source_snapshotobject必須
  • 追加プロパティ任意の値
  • dns_signalsarray必須
  • 各項目object
  • namestring必須
  • typestring必須

    enum: "MX", "TXT", "CNAME", "NS"

  • valuestring必須
  • ttlinteger必須

    minimum: 0

  • dns_provider未指定必須
  • oneOf 1object

    追加プロパティなし

  • keystring必須
  • namestring必須
  • confidencestring必須

    enum: "high", "medium", "low"

  • dashboard_urlstring必須

    format: "uri"

  • evidencearray必須
  • 各項目object
  • namestring必須

    さらに深い入れ子は省略

  • typestring必須

    enum: "MX", "TXT", "CNAME", "NS"

    さらに深い入れ子は省略

  • valuestring必須

    さらに深い入れ子は省略

  • ttlinteger必須

    minimum: 0

    さらに深い入れ子は省略

  • oneOf 2null
  • provider_detectionsarray必須
  • 各項目object
  • keystring必須
  • namestring必須
  • categoriesarray必須
  • 各項目string

    enum: "work_mailbox", "transactional", "marketing", "deliverability"

  • confidencestring必須

    enum: "high", "medium", "low"

  • evidencearray必須
  • 各項目object
  • namestring必須

    さらに深い入れ子は省略

  • typestring必須

    enum: "MX", "TXT", "CNAME", "NS"

    さらに深い入れ子は省略

  • valuestring必須

    さらに深い入れ子は省略

  • ttlinteger必須

    minimum: 0

    さらに深い入れ子は省略

  • capability_summaryarray必須
  • 各項目object
  • kindstring必須

    enum: "work_mailbox", "transactional", "marketing", "deliverability"

  • labelstring必須
  • statusstring必須

    enum: "detected", "missing", "needs_review"

  • provider_keysarray必須
  • 各項目string
  • recommendationstring必須

    enum: "connect", "setup_banger", "review"

  • 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
  • namestring必須

    さらに深い入れ子は省略

  • typestring必須

    enum: "MX", "TXT", "CNAME", "NS"

    さらに深い入れ子は省略

  • valuestring必須

    さらに深い入れ子は省略

  • ttlinteger必須

    minimum: 0

    さらに深い入れ子は省略

  • connection_planarray必須
  • 各項目object

    追加プロパティなし

  • capabilitystring必須

    enum: "work_mailbox", "transactional", "marketing", "deliverability"

  • provider_keystring
  • actionstring必須

    enum: "connect", "setup_banger", "review"

  • domainstring

    minLength: 3 · maxLength: 253

  • limitationsarray必須
  • 各項目string
  • scanned_atstring必須

    format: "date-time"

  • confirmed_atstring | null必須

    format: "date-time"

curlの例

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/onboarding/discovery' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "domain": "example",
  "stream_kind": "default"
}'
PUT/v1/workspaces/{workspaceId}/onboarding/discovery

confirmWorkspaceDomainDiscovery

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文 必須

application/json

  • valueobject

    追加プロパティなし

  • company_namestring必須

    minLength: 1 · maxLength: 200

  • summarystring必須

    minLength: 1 · maxLength: 4000

  • audiencestring

    maxLength: 2000

  • offeringsarray

    maxItems: 8

  • 各項目string

    maxLength: 120

  • website_urlstring | null

    format: "uri"

  • connection_planarray必須

    maxItems: 30

  • 各項目object

    追加プロパティなし

  • capabilitystring必須

    enum: "work_mailbox", "transactional", "marketing", "deliverability"

  • provider_keystring
  • actionstring必須

    enum: "connect", "setup_banger", "review"

  • domainstring

    minLength: 3 · maxLength: 253

成功レスポンス 200

会社コンテキストと推奨接続計画を確認しました。

application/json

  • valueobject
  • dataobject必須
  • 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必須
  • 各項目string
  • logo_urlstring | null必須

    format: "uri"

  • favicon_urlstring | null必須

    format: "uri"

  • visual_identityobject必須
  • colorsarray必須

    maxItems: 6

  • 各項目string
  • fontsarray必須

    maxItems: 6

  • 各項目string
  • tonearray必須

    maxItems: 6

  • 各項目string
  • source_confidencestring必須

    enum: "high", "medium", "low"

  • hero_image_urlstring

    format: "uri"

  • palettearray必須

    maxItems: 6

  • 各項目object

    追加プロパティなし

  • valuestring必須

    さらに深い入れ子は省略

  • rolestring必須

    enum: "primary", "accent", "background", "surface", "text", "other"

    さらに深い入れ子は省略

  • namestring必須

    さらに深い入れ子は省略

  • typographyarray必須

    maxItems: 6

  • 各項目object

    追加プロパティなし

  • familystring必須

    さらに深い入れ子は省略

  • rolestring必須

    enum: "heading", "body", "mono", "other"

    さらに深い入れ子は省略

  • weightsarray必須

    さらに深い入れ子は省略

  • assetsarray必須

    maxItems: 8

  • 各項目object

    追加プロパティなし

  • urlstring必須

    format: "uri"

    さらに深い入れ子は省略

  • kindstring必須

    enum: "logo", "wordmark", "favicon", "hero"

    さらに深い入れ子は省略

  • sourcestring必須

    さらに深い入れ子は省略

  • brand_summarystring必須
  • imagery_stylearray必須

    maxItems: 6

  • 各項目string
  • source_snapshotobject必須
  • 追加プロパティ任意の値
  • dns_signalsarray必須
  • 各項目object
  • namestring必須
  • typestring必須

    enum: "MX", "TXT", "CNAME", "NS"

  • valuestring必須
  • ttlinteger必須

    minimum: 0

  • dns_provider未指定必須
  • oneOf 1object

    追加プロパティなし

  • keystring必須
  • namestring必須
  • confidencestring必須

    enum: "high", "medium", "low"

  • dashboard_urlstring必須

    format: "uri"

  • evidencearray必須
  • 各項目object
  • namestring必須

    さらに深い入れ子は省略

  • typestring必須

    enum: "MX", "TXT", "CNAME", "NS"

    さらに深い入れ子は省略

  • valuestring必須

    さらに深い入れ子は省略

  • ttlinteger必須

    minimum: 0

    さらに深い入れ子は省略

  • oneOf 2null
  • provider_detectionsarray必須
  • 各項目object
  • keystring必須
  • namestring必須
  • categoriesarray必須
  • 各項目string

    enum: "work_mailbox", "transactional", "marketing", "deliverability"

  • confidencestring必須

    enum: "high", "medium", "low"

  • evidencearray必須
  • 各項目object
  • namestring必須

    さらに深い入れ子は省略

  • typestring必須

    enum: "MX", "TXT", "CNAME", "NS"

    さらに深い入れ子は省略

  • valuestring必須

    さらに深い入れ子は省略

  • ttlinteger必須

    minimum: 0

    さらに深い入れ子は省略

  • capability_summaryarray必須
  • 各項目object
  • kindstring必須

    enum: "work_mailbox", "transactional", "marketing", "deliverability"

  • labelstring必須
  • statusstring必須

    enum: "detected", "missing", "needs_review"

  • provider_keysarray必須
  • 各項目string
  • recommendationstring必須

    enum: "connect", "setup_banger", "review"

  • 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
  • namestring必須

    さらに深い入れ子は省略

  • typestring必須

    enum: "MX", "TXT", "CNAME", "NS"

    さらに深い入れ子は省略

  • valuestring必須

    さらに深い入れ子は省略

  • ttlinteger必須

    minimum: 0

    さらに深い入れ子は省略

  • connection_planarray必須
  • 各項目object

    追加プロパティなし

  • capabilitystring必須

    enum: "work_mailbox", "transactional", "marketing", "deliverability"

  • provider_keystring
  • actionstring必須

    enum: "connect", "setup_banger", "review"

  • domainstring

    minLength: 3 · maxLength: 253

  • limitationsarray必須
  • 各項目string
  • scanned_atstring必須

    format: "date-time"

  • confirmed_atstring | null必須

    format: "date-time"

curlの例

curl --request PUT --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/onboarding/discovery' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "company_name": "example",
  "summary": "example",
  "audience": "example",
  "offerings": [
    "example"
  ],
  "website_url": "https://example.com",
  "connection_plan": [
    {
      "capability": "work_mailbox",
      "provider_key": "example",
      "action": "connect",
      "domain": "example"
    }
  ]
}'
POST/v1/workspaces/{workspaceId}/onboarding/agent-state/confirm-connection

現在のOAuthエージェント接続を確認

現在のエージェントクライアントに設定されたOAuth認証情報とautomation:readスコープが必要です。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文

契約にリクエスト本文の指定はありません。

成功レスポンス 200

成功レスポンス。

application/json

  • valueobject
  • dataobject必須
  • statusstring必須

    enum: "connected"

  • messagestring必須
  • workspace_idstring必須

    format: "uuid"

  • client_namestring必須
  • confirmed_atstring必須

    format: "date-time"

curlの例

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/onboarding/agent-state/confirm-connection' \
  --header "Authorization: Bearer $BANGER_API_KEY"

アクセス

GET/v1/workspaces/{workspaceId}/access

ワークスペースメンバーと有効な招待を一覧表示します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文

契約にリクエスト本文の指定はありません。

成功レスポンス 200

ワークスペースディレクトリ。

application/json

  • valueobject
  • dataobject必須
  • actorIdstring必須
  • identitiesarray必須
  • 各項目object
  • idstring必須

    format: "uuid"

  • userIdstring必須
  • emailstring

    format: "email"

  • displayNamestring
  • kindstring必須

    const: "user"

  • rolestring必須

    enum: "owner", "admin", "member", "viewer"

  • statusstring必須

    enum: "active", "suspended"

  • pendingInvitationsarray必須
  • 各項目object
  • idstring必須

    format: "uuid"

  • codestring必須

    format: "uuid"

  • inviteCodestring

    format: "uuid"

  • invitedEmailstring

    format: "email"

  • workspaceIdstring必須

    format: "uuid"

  • workspaceNamestring必須
  • rolestring必須

    enum: "admin", "member", "viewer"

  • accessScopestring

    const: "workspace"

  • statusstring必須

    enum: "pending", "accepted"

  • expiresAtstring必須

    format: "date-time"

  • notificationSentboolean

curlの例

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

招待

POST/v1/workspaces/{workspaceId}/invitations

人をワークスペースに招待します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文 必須

application/json

  • valueobject

    追加プロパティなし

  • emailstring必須

    format: "email" · maxLength: 320

  • rolestring

    default: "member" · enum: "admin", "member", "viewer"

  • mailbox_idsarray

    maxItems: 250

  • 各項目string

    format: "uuid"

  • send_modestring

    default: "direct" · enum: "direct", "approval_required"

  • expires_in_hoursinteger

    minimum: 1 · maximum: 720 · default: 168

成功レスポンス 201

招待を作成しました。

application/json

  • valueobject
  • dataobject必須
  • idstring必須

    format: "uuid"

  • codestring必須

    format: "uuid"

  • inviteCodestring

    format: "uuid"

  • invitedEmailstring

    format: "email"

  • workspaceIdstring必須

    format: "uuid"

  • workspaceNamestring必須
  • rolestring必須

    enum: "admin", "member", "viewer"

  • accessScopestring

    const: "workspace"

  • statusstring必須

    enum: "pending", "accepted"

  • expiresAtstring必須

    format: "date-time"

  • notificationSentboolean

curlの例

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/invitations' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "email": "person@example.com",
  "role": "member",
  "mailbox_ids": [
    "00000000-0000-4000-8000-000000000001"
  ],
  "send_mode": "direct",
  "expires_in_hours": 168
}'

APIキー

GET/v1/workspaces/{workspaceId}/api-keys

listWorkspaceApiKeys

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文

契約にリクエスト本文の指定はありません。

成功レスポンス 200

スコープ付きの有効APIキー。秘密の値は返しません。

application/json

  • valueobject
  • dataarray必須
  • 各項目object
  • idstring必須

    format: "uuid"

  • namestring必須
  • prefixstring必須
  • scopesarray必須
  • 各項目string

    enum: "mail:read", "mail:write", "mail:send", "contacts:read", "contacts:write", "campaigns:read", "campaigns:write", "campaigns:send", "automation:read", "automation:execute", "connections:read", "connections:use", "connections:admin", "workspace:admin"

  • expires_atstring

    format: "date-time"

  • last_used_atstring

    format: "date-time"

  • created_atstring必須

    format: "date-time"

curlの例

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

createWorkspaceApiKey

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文 必須

application/json

  • valueobject

    追加プロパティなし

  • namestring必須

    minLength: 1 · maxLength: 100

  • scopesarray必須

    minItems: 1 · uniqueItems: true

  • 各項目string

    enum: "mail:read", "mail:write", "mail:send", "contacts:read", "contacts:write", "campaigns:read", "campaigns:write", "campaigns:send", "automation:read", "automation:execute", "connections:read", "connections:use", "connections:admin", "workspace:admin"

  • expires_atstring

    format: "date-time"

成功レスポンス 201

APIキーを作成しました。トークンは一度だけ返します。

application/json

  • valueobject
  • data未指定必須
  • allOf 1object
  • idstring必須

    format: "uuid"

  • namestring必須
  • prefixstring必須
  • scopesarray必須
  • 各項目string

    enum: "mail:read", "mail:write", "mail:send", "contacts:read", "contacts:write", "campaigns:read", "campaigns:write", "campaigns:send", "automation:read", "automation:execute", "connections:read", "connections:use", "connections:admin", "workspace:admin"

  • expires_atstring

    format: "date-time"

  • last_used_atstring

    format: "date-time"

  • created_atstring必須

    format: "date-time"

  • allOf 2object
  • tokenstring必須
  • smtpobject

    SMTPのみで送信するアプリ(Supabase Auth、Auth0、WordPress、フレームワークのメーラー)がBanger経由で送る方法。パスワードはmail:sendを持つAPIキーです。Bangerは書かれた通りに中継し、全チェック合格後にのみ応答します。送信可能キーで、送信ホストが応答する環境にのみ存在します。

  • hoststring必須
  • portinteger必須

    暗黙的TLS。推奨。

  • starttls_portinteger必須

    AUTHの前にSTARTTLS。

  • alternate_portsobject必須

    465と587を遮断するネットワーク用の、同じ2つのリスナー。

  • tlsinteger必須
  • starttlsinteger必須
  • usernamestring必須

    ユーザー名は任意です。キーだけでワークスペースとプロダクトを識別します。

curlの例

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/api-keys' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "name": "example",
  "scopes": [
    "mail:read"
  ],
  "expires_at": "2026-01-01T00:00:00Z"
}'
DELETE/v1/workspaces/{workspaceId}/api-keys/{apiKeyId}

revokeWorkspaceApiKey

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

apiKeyId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文

契約にリクエスト本文の指定はありません。

成功レスポンス 204

APIキーを失効しました。

レスポンス本文なし。

curlの例

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

請求

GET/v1/workspaces/{workspaceId}/billing

請求、使用量、利用可能プランを取得

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文

契約にリクエスト本文の指定はありません。

成功レスポンス 200

成功レスポンス。

application/json

  • valueobject
  • dataobject必須
  • billingobject必須
  • workspaceIdstring必須

    format: "uuid"

  • tierstring必須

    enum: "free", "starter", "pro", "business", "scale", "enterprise"

  • planKeystring必須

    enum: "free", "starter", "pro", "business", "scale", "enterprise"

  • statusstring必須
  • planIntervalstring | null必須

    enum: "month", "year", null

  • stripeCustomerIdstring | null必須
  • stripeSubscriptionIdstring | null必須
  • currentPeriodEndinteger | null必須

    ミリ秒単位のUnixタイムスタンプ。

  • cancelAtPeriodEndboolean必須
  • prepaidPlanKeystring | null必須
  • prepaidUntilinteger | null必須

    ミリ秒単位のUnixタイムスタンプ。

  • usageobject必須
  • storageBytesnumber必須
  • storageLimitBytesnumber必須
  • sendsThisMonthnumber必須
  • sendLimitnumber必須
  • sendsTodaynumber必須
  • dailySendLimitnumber | null必須
  • periodEndinteger | null必須

    ミリ秒単位のUnixタイムスタンプ。

  • catalogobject必須
  • plansarray必須
  • 各項目object
  • planKeystring必須

    enum: "free", "starter", "pro", "business", "scale", "enterprise"

  • labelstring必須
  • sendLimitnumber必須
  • storageGbnumber必須
  • gmailImportLimitnumber必須
  • triageRuleLimitnumber必須
  • triageRunLimitnumber必須
  • pricesarray必須
  • 各項目object

    さらに深い入れ子は省略

  • addonsarray必須

    maxItems: 0

  • 各項目未指定
  • agentPayment未指定必須
  • anyOf 1object
  • network_idstring必須
  • currencystring必須

    enum: "usd"

  • howstring必須
  • optionsarray必須
  • 各項目object
  • plan_keystring必須

    enum: "starter", "pro"

    さらに深い入れ子は省略

  • intervalstring必須

    enum: "month", "year"

    さらに深い入れ子は省略

  • monthsinteger必須

    enum: 1, 12

    さらに深い入れ子は省略

  • amount_centsinteger必須

    What to mint the token for

    さらに深い入れ子は省略

  • discountobject

    さらに深い入れ子は省略

  • anyOf 2null
  • switchOffer未指定

    The month free on a yearly plan this workspace gets for switching from Mailchimp; null when it doesn't.

  • anyOf 1object
  • offerstring必須

    enum: "switch_from_mailchimp"

  • sourcestring必須

    enum: "signup_campaign", "mailchimp_connection"

  • appliesTostring必須

    enum: "year"

  • plansarray必須
  • 各項目object
  • planKeystring必須

    enum: "starter", "pro", "business", "scale"

    さらに深い入れ子は省略

  • currencystring必須

    さらに深い入れ子は省略

  • yearlyPriceinteger必須

    In the currency's smallest unit.

    さらに深い入れ子は省略

  • firstYearPriceinteger必須

    In the currency's smallest unit.

    さらに深い入れ子は省略

  • messagestring必須
  • anyOf 2null

curlの例

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

Stripeから請求を同期

POST /billing/syncの別名。workspace:adminが必要です。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文

契約にリクエスト本文の指定はありません。

成功レスポンス 200

成功レスポンス。

application/json

  • valueobject
  • dataobject必須
  • billingobject必須
  • workspaceIdstring必須

    format: "uuid"

  • tierstring必須

    enum: "free", "starter", "pro", "business", "scale", "enterprise"

  • planKeystring必須

    enum: "free", "starter", "pro", "business", "scale", "enterprise"

  • statusstring必須
  • planIntervalstring | null必須

    enum: "month", "year", null

  • stripeCustomerIdstring | null必須
  • stripeSubscriptionIdstring | null必須
  • currentPeriodEndinteger | null必須

    ミリ秒単位のUnixタイムスタンプ。

  • cancelAtPeriodEndboolean必須
  • prepaidPlanKeystring | null必須
  • prepaidUntilinteger | null必須

    ミリ秒単位のUnixタイムスタンプ。

  • usageobject必須
  • storageBytesnumber必須
  • storageLimitBytesnumber必須
  • sendsThisMonthnumber必須
  • sendLimitnumber必須
  • sendsTodaynumber必須
  • dailySendLimitnumber | null必須
  • periodEndinteger | null必須

    ミリ秒単位のUnixタイムスタンプ。

  • catalogobject必須
  • plansarray必須
  • 各項目object
  • planKeystring必須

    enum: "free", "starter", "pro", "business", "scale", "enterprise"

  • labelstring必須
  • sendLimitnumber必須
  • storageGbnumber必須
  • gmailImportLimitnumber必須
  • triageRuleLimitnumber必須
  • triageRunLimitnumber必須
  • pricesarray必須
  • 各項目object

    さらに深い入れ子は省略

  • addonsarray必須

    maxItems: 0

  • 各項目未指定
  • agentPayment未指定必須
  • anyOf 1object
  • network_idstring必須
  • currencystring必須

    enum: "usd"

  • howstring必須
  • optionsarray必須
  • 各項目object
  • plan_keystring必須

    enum: "starter", "pro"

    さらに深い入れ子は省略

  • intervalstring必須

    enum: "month", "year"

    さらに深い入れ子は省略

  • monthsinteger必須

    enum: 1, 12

    さらに深い入れ子は省略

  • amount_centsinteger必須

    What to mint the token for

    さらに深い入れ子は省略

  • discountobject

    さらに深い入れ子は省略

  • anyOf 2null
  • switchOffer未指定

    The month free on a yearly plan this workspace gets for switching from Mailchimp; null when it doesn't.

  • anyOf 1object
  • offerstring必須

    enum: "switch_from_mailchimp"

  • sourcestring必須

    enum: "signup_campaign", "mailchimp_connection"

  • appliesTostring必須

    enum: "year"

  • plansarray必須
  • 各項目object
  • planKeystring必須

    enum: "starter", "pro", "business", "scale"

    さらに深い入れ子は省略

  • currencystring必須

    さらに深い入れ子は省略

  • yearlyPriceinteger必須

    In the currency's smallest unit.

    さらに深い入れ子は省略

  • firstYearPriceinteger必須

    In the currency's smallest unit.

    さらに深い入れ子は省略

  • messagestring必須
  • anyOf 2null

curlの例

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

最新のStripeサブスクリプションを同期

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文

契約にリクエスト本文の指定はありません。

成功レスポンス 200

成功レスポンス。

application/json

  • valueobject
  • dataobject必須
  • billingobject必須
  • workspaceIdstring必須

    format: "uuid"

  • tierstring必須

    enum: "free", "starter", "pro", "business", "scale", "enterprise"

  • planKeystring必須

    enum: "free", "starter", "pro", "business", "scale", "enterprise"

  • statusstring必須
  • planIntervalstring | null必須

    enum: "month", "year", null

  • stripeCustomerIdstring | null必須
  • stripeSubscriptionIdstring | null必須
  • currentPeriodEndinteger | null必須

    ミリ秒単位のUnixタイムスタンプ。

  • cancelAtPeriodEndboolean必須
  • prepaidPlanKeystring | null必須
  • prepaidUntilinteger | null必須

    ミリ秒単位のUnixタイムスタンプ。

  • usageobject必須
  • storageBytesnumber必須
  • storageLimitBytesnumber必須
  • sendsThisMonthnumber必須
  • sendLimitnumber必須
  • sendsTodaynumber必須
  • dailySendLimitnumber | null必須
  • periodEndinteger | null必須

    ミリ秒単位のUnixタイムスタンプ。

  • catalogobject必須
  • plansarray必須
  • 各項目object
  • planKeystring必須

    enum: "free", "starter", "pro", "business", "scale", "enterprise"

  • labelstring必須
  • sendLimitnumber必須
  • storageGbnumber必須
  • gmailImportLimitnumber必須
  • triageRuleLimitnumber必須
  • triageRunLimitnumber必須
  • pricesarray必須
  • 各項目object

    さらに深い入れ子は省略

  • addonsarray必須

    maxItems: 0

  • 各項目未指定
  • agentPayment未指定必須
  • anyOf 1object
  • network_idstring必須
  • currencystring必須

    enum: "usd"

  • howstring必須
  • optionsarray必須
  • 各項目object
  • plan_keystring必須

    enum: "starter", "pro"

    さらに深い入れ子は省略

  • intervalstring必須

    enum: "month", "year"

    さらに深い入れ子は省略

  • monthsinteger必須

    enum: 1, 12

    さらに深い入れ子は省略

  • amount_centsinteger必須

    What to mint the token for

    さらに深い入れ子は省略

  • discountobject

    さらに深い入れ子は省略

  • anyOf 2null
  • switchOffer未指定

    The month free on a yearly plan this workspace gets for switching from Mailchimp; null when it doesn't.

  • anyOf 1object
  • offerstring必須

    enum: "switch_from_mailchimp"

  • sourcestring必須

    enum: "signup_campaign", "mailchimp_connection"

  • appliesTostring必須

    enum: "year"

  • plansarray必須
  • 各項目object
  • planKeystring必須

    enum: "starter", "pro", "business", "scale"

    さらに深い入れ子は省略

  • currencystring必須

    さらに深い入れ子は省略

  • yearlyPriceinteger必須

    In the currency's smallest unit.

    さらに深い入れ子は省略

  • firstYearPriceinteger必須

    In the currency's smallest unit.

    さらに深い入れ子は省略

  • messagestring必須
  • anyOf 2null

curlの例

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

決済開始または請求ポータルを開く

workspace:adminが必要です。有料セルフサービスプランのみ販売します。有効なサブスクリプションがあれば顧客ポータルを開きます。snake-caseフィールドはcamel-case別名より優先します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文 必須

application/json

  • valueobject
  • plan_keystring

    enum: "starter", "pro", "business", "scale"

  • planKeystring

    enum: "starter", "pro", "business", "scale"

  • intervalstring

    default: "month" · enum: "month", "year"

  • billing_attempt_idstring

    任意の再試行ID: 8–64文字の英字・数字・ハイフン。不正IDは無視します。

  • billingAttemptIdstring
  • anyOf 1未指定
  • anyOf 2未指定

成功レスポンス 200

成功レスポンス。

application/json

  • valueobject
  • dataobject必須
  • urlstring必須

    format: "uri"

  • kindstring必須

    enum: "checkout", "portal"

  • discount未指定

    The switch-from-Mailchimp month applied to this yearly checkout.

  • allOf 1object

    Switch from Mailchimp: one month off the first yearly invoice.

  • offerstring必須

    enum: "switch_from_mailchimp"

  • sourcestring必須

    enum: "signup_campaign", "mailchimp_connection"

  • planKeystring必須

    enum: "starter", "pro", "business", "scale"

  • intervalstring必須

    enum: "year"

  • currencystring必須

    Lowercase ISO currency the amounts are in.

  • amountOffinteger必須

    In the currency's smallest unit.

  • yearlyPriceinteger必須

    In the currency's smallest unit.

  • firstYearPriceinteger必須

    In the currency's smallest unit.

  • messagestring必須

    A sentence to tell the person.

  • switchOffer未指定

    On a monthly checkout, the month a yearly one would get instead.

  • allOf 1object

    Switch from Mailchimp: one month off the first yearly invoice.

  • offerstring必須

    enum: "switch_from_mailchimp"

  • sourcestring必須

    enum: "signup_campaign", "mailchimp_connection"

  • planKeystring必須

    enum: "starter", "pro", "business", "scale"

  • intervalstring必須

    enum: "year"

  • currencystring必須

    Lowercase ISO currency the amounts are in.

  • amountOffinteger必須

    In the currency's smallest unit.

  • yearlyPriceinteger必須

    In the currency's smallest unit.

  • firstYearPriceinteger必須

    In the currency's smallest unit.

  • messagestring必須

    A sentence to tell the person.

curlの例

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

顧客請求ポータルを開く

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文

契約にリクエスト本文の指定はありません。

成功レスポンス 200

成功レスポンス。

application/json

  • valueobject
  • dataobject必須
  • urlstring必須

    format: "uri"

curlの例

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

Shared Payment Tokenでプラン利用期間を前払い購入

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文 必須

application/json

  • valueobject
  • plan_keystring必須

    enum: "starter", "pro"

  • intervalstring

    default: "month" · enum: "month", "year"

  • shared_payment_tokenstring必須

    pattern: "^spt_[A-Za-z0-9_]{6,200}$"

成功レスポンス 200

成功レスポンス。

application/json

  • valueobject
  • dataobject必須
  • statusstring必須
  • payment_intent_idstring必須
  • messagestring必須
  • plan_keystring

    enum: "starter", "pro"

  • prepaid_untilstring | null

    format: "date-time"

  • amount_centsinteger

    What was charged.

  • discountobject
  • offerstring必須

    enum: "switch_from_mailchimp"

  • amount_off_centsinteger必須
  • full_price_centsinteger必須
  • messagestring必須

curlの例

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces/{workspaceId}/billing/agent-payment' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "plan_key": "starter",
  "interval": "month",
  "shared_payment_token": "example"
}'

ワークスペース

POST/v1/workspaces

createWorkspace

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
Idempotency-Key
header · 必須
  • valuestring

    minLength: 16 · maxLength: 128

リクエスト本文 必須

application/json

  • valueobject

    追加プロパティなし

  • namestring必須

    minLength: 1 · maxLength: 200

成功レスポンス 200

作成済みワークスペースの冪等な再実行。

application/json

  • valueobject
  • data未指定必須
  • allOf 1object
  • idstring必須

    format: "uuid"

  • namestring必須
  • shardstring必須
  • rolestring必須

    enum: "owner", "admin", "member", "viewer"

  • revisioninteger必須

    format: "int64"

  • name_sourcestring必須

    ワークスペース名の由来: signup(自動登録名)、brand(オンボーディングで確認した会社・ブランド)、user(人が入力。以降のブランド確認で改名しません)。

    enum: "signup", "brand", "user"

  • owner_emailstring | null必須

    最も早い有効所有者のメールアドレス。呼び出し元が静的APIキー、または所有者の登録アドレスがなければNull。

  • avatar_urlstring | null必須

    ワークスペースのブランドマーク: 既定プロダクトのブランドロゴ、なければ直近の確認済み会社検出のロゴ。

  • allOf 2object
  • replayedboolean必須

curlの例

curl --request POST --globoff 'https://api.bangermail.com/v1/workspaces' \
  --header "Authorization: Bearer $BANGER_API_KEY" \
  --header 'Idempotency-Key: examplexxxxxxxxx' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "name": "example"
}'
GET/v1/workspaces/{workspaceId}

ワークスペース、所有者、ログインした人の他のワークスペースを取得します。

ワークスペースに認可された実行者は読み取りできます。other_workspacesはログインした人の他の有効所属を列挙します。OAuth認可やAPIキーはこのワークスペースのみ認可され、他の情報は得ないため、other_workspacesは空で、その旨の注記を返します。静的APIキーには個人がいないためowner_emailはnullです。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文

契約にリクエスト本文の指定はありません。

成功レスポンス 200

呼び出し元から見たワークスペース。

application/json

  • valueobject
  • dataobject必須

    追加プロパティなし

  • idstring必須

    format: "uuid"

  • namestring必須
  • name_sourcestring必須

    ワークスペース名の由来: signup(自動登録名)、brand(オンボーディングで確認した会社・ブランド)、user(人が入力。以降のブランド確認で改名しません)。

    enum: "signup", "brand", "user"

  • rolestring必須

    enum: "owner", "admin", "member", "viewer"

  • owner_emailstring | null必須
  • avatar_urlstring | null必須
  • other_workspacesarray必須

    maxItems: 50

  • 各項目object

    追加プロパティなし

  • idstring必須

    format: "uuid"

  • namestring必須
  • rolestring必須

    enum: "owner", "admin", "member", "viewer"

  • notestring

    このワークスペースのみ認可されたAPIキー・OAuth呼び出し元に存在します。

curlの例

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

ワークスペースを改名します。

有効な所有者または管理者が必要で、認証情報にはこのワークスペースのworkspace:adminが必要です。名前は前後空白を除き1-80文字にします。入力名は確定で、後のブランド確認では改名しません(name_sourceはuser)。ワークスペース版を更新し、"workspace"変更を記録します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文 必須

application/json

  • valueobject

    追加プロパティなし

  • namestring必須

    minLength: 1 · maxLength: 80

成功レスポンス 200

ワークスペースを改名しました。

application/json

  • valueobject
  • dataobject必須

    追加プロパティなし

  • idstring必須

    format: "uuid"

  • namestring必須

    minLength: 1 · maxLength: 80

  • name_sourcestring必須

    const: "user"

curlの例

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

所有ワークスペースを完全削除し、物理オブジェクトのクリーンアップをキューに入れます。

認証済み実行者は所有者でなければなりません。静的ワークスペースAPIキーでは削除できず、人のセッションまたはworkspace:admin付きユーザー認可OAuthが必要です。有料サブスクリプションは先に解約してください。PostgreSQL状態は原子的に削除し、ワークスペースプレフィックス配下の全B2オブジェクト版は非同期で消去します。

認証: BearerワークスペースAPIキー。

パラメーター

名前 / 場所スキーマ
workspaceId
path · 必須
  • valuestring

    format: "uuid"

リクエスト本文

契約にリクエスト本文の指定はありません。

成功レスポンス 202

正規ワークスペースを削除し、物理オブジェクトのクリーンアップをキュー登録しました。

application/json

  • valueobject
  • dataobject必須

    追加プロパティなし

  • idstring必須

    format: "uuid"

  • namestring必須
  • deletedboolean必須

    const: true

  • storage_cleanupstring必須

    const: "queued"

  • next_workspace_idstring

    format: "uuid"

curlの例

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