Webhook
管理画面でWebhookタイプを「GET request」に設定した場合の例です。
パスパラメータ
unique_idstring必須
ウィザードに表示されているパスを指定します。
クエリパラメータ
your_paramstringオプション
管理画面で設定したパラメータに準じます。
レスポンス
200
200
application/json
statusstringオプションExample:
ok400
400
application/json
404
404
application/json
500
500
application/json
get/unique_id
GET /general/unique_id HTTP/1.1
Host: hooks.embed.anyflow.jp
Accept: */*
{ "status": "ok" }管理画面でWebhookタイプを「PUT/POST with JSON payload」に設定した場合の例です。PUT/POSTどちらでも実行できます。
パスパラメータ
unique_idstring必須
ウィザードに表示されているパスを指定します。
本文
your_paramstring必須
管理画面で設定したパラメータに準じます。
レスポンス
200
200
application/json
statusstringオプションExample:
ok400
400
application/json
404
404
application/json
500
500
application/json
post/unique_id
POST /general/unique_id HTTP/1.1
Host: hooks.embed.anyflow.jp
Content-Type: application/json
Accept: */*
Content-Length: 21
{
"your_param": "text"
}{ "status": "ok" }管理画面でWebhookタイプを「PUT/POST with unicode text data」に設定した場合の例です。PUT/POSTどちらでも実行できます。
パスパラメータ
unique_idstring必須
ウィザードに表示されているパスを指定します。
本文
RAW_BODYstring · binary必須
送信するファイルを指定します。
レスポンス
200
200
application/json
statusstringオプションExample:
ok400
400
application/json
404
404
application/json
500
500
application/json
put/unique_id
PUT /general/unique_id HTTP/1.1
Host: hooks.embed.anyflow.jp
Content-Type: application/json
Accept: */*
Content-Length: 21
{
"RAW_BODY": "binary"
}{ "status": "ok" }