Reply in an Instagram Direct conversation
instagram.instagram.message.sendSend an Instagram Direct reply to a customer who has messaged your account
- Price
- freeAt provider cost
- Success rate
- —No success-rate data yetNo success-rate data yet
- Latency p50
- ——
- Last verified
- —Not verified yet
POSThttps://toolswitch.dev/v1/tools/instagram.instagram.message.sendPreview- Uses platform quota
- Synchronous response
- Reads public data
Parameters
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.
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Path parameters | ||||
page_id | string | Required | required with Facebook Page authorization: linked Facebook Page id | 123456789012345 |
ig_user_id | string | Required | required with Instagram Login: numeric Instagram Professional account id | 17841400000000000 |
- Path parameters
page_idstringRequiredrequired with Facebook Page authorization: linked Facebook Page id
Example:
123456789012345ig_user_idstringRequiredrequired with Instagram Login: numeric Instagram Professional account id
Example:
17841400000000000
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
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());This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at free, including the service fee.