Reply in an Instagram Direct conversation
instagram.instagram.message.sendSend an Instagram Direct reply to a customer who has messaged your account
- Price
- freeプロバイダー原価
- Success rate
- —成功率データはまだありません成功率データはまだありません
- Latency p50
- ——
- Last verified
- —Not verified yet
POSThttps://toolswitch.dev/v1/tools/instagram.instagram.message.sendPreview- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
Direct Instagram Login uses the Instagram Professional account id and an Instagram User token. Existing Facebook-backed connections keep the Page route and Page token. This is a reply surface, not cold outreach: the recipient must have initiated contact and Meta's messaging-window and policy rules apply.
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| パスパラメータ | ||||
page_id | 文字列 | 必須 | required with Facebook Page authorization: linked Facebook Page id | 123456789012345 |
ig_user_id | 文字列 | 必須 | required with Instagram Login: numeric Instagram Professional account id | 17841400000000000 |
- パスパラメータ
page_id文字列必須required with Facebook Page authorization: linked Facebook Page id
例:
123456789012345ig_user_id文字列必須required with Instagram Login: numeric Instagram Professional account id
例:
17841400000000000
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
Preview
curl -X POST 'https://toolswitch.dev/v1/tools/instagram.instagram.message.send' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/instagram.instagram.message.send",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/instagram.instagram.message.send", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());このゲートウェイ API はプレビュー版です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は free です。サービス料を含みます。