Integration API
InstReg, Mass & Autoboost
Внешний API для другого сайта: Instagram-регистрация, результаты, импорт профилей, autoboost, комментарии, заказы, баланс и услуги.
Authorization
const headers = {
"Authorization": "Bearer tb_int_YOUR_KEY",
"Content-Type": "application/json"
};
Ключ можно передать и через X-Integration-Key, но Bearer лучше для стандартных клиентов. Старый ключ без InstReg-разрешений нужно пересоздать в кабинете.
Methods
Examples
await fetch("https://myrzboss.com/api/integrations/autoboost/import", {
method: "POST",
headers,
body: JSON.stringify({
source: "client-site-1",
instagramProfiles: ["oliviascarters", "https://instagram.com/philysanto"],
telegramChannels: ["MikeCapital"],
youtubeChannels: ["@channel", "https://www.youtube.com/@channel2"],
tiktokProfiles: ["@profile", "https://www.tiktok.com/@profile2"],
instagramServices: [
{ "serviceId": "4362", "min": 20, "max": 35, "scope": "all" },
{ "serviceId": "1006", "min": 10, "max": 20, "scope": "all" }
],
youtubeServices: [
{ "serviceId": "1933", "min": 15, "max": 20 },
{ "serviceId": "4451", "min": 600, "max": 999 },
{ "serviceId": "1919", "min": 70, "max": 99 }
],
tiktokServices: [
{ "serviceId": "1002", "min": 900, "max": 1500 },
{ "serviceId": "4660", "min": 20, "max": 40 },
{ "serviceId": "4009", "min": 90, "max": 140 }
]
})
});
await fetch("https://myrzboss.com/api/integrations/comments/generate", {
method: "POST",
headers,
body: JSON.stringify({
minComments: 10,
maxComments: 20,
modelName: "Olivia",
allowedEmojis: ["😍", "🔥", "✨"],
styleExample: "Olivia this looks clean\nsoft vibe here ✨",
items: [{ "link": "https://www.instagram.com/p/SHORTCODE/" }]
})
});
await fetch("https://myrzboss.com/api/integrations/orders/create", {
method: "POST",
headers,
body: JSON.stringify({
serviceId: "4362",
orderKind: "quantity",
fixedQuantity: 25,
items: [
{ "link": "https://www.instagram.com/p/SHORTCODE1/" },
{ "link": "https://www.instagram.com/reel/SHORTCODE2/" }
]
})
});
await fetch("https://myrzboss.com/api/integrations/balance", {
method: "POST",
headers,
body: "{}"
});
InstReg API v1
Integration key храните только на backend внешнего сайта. Перед первым запуском запросите capabilities и используйте лимиты из ответа. Доступ к credentials CSV включается отдельной галочкой при создании ключа.
Create batch
const response = await fetch(
"https://myrzboss.com/api/integrations/v1/registration/batches",
{
method: "POST",
headers: {
...headers,
"Idempotency-Key": "site-order-10482"
},
body: JSON.stringify({
count: 2,
contactMode: "anymessage",
emailDomain: "gmail.com",
commonPassword: "StrongPassword123!",
proxyFormat: "jarvee",
proxyText: [
"[HTTP] 1.2.3.4:10000:user1:pass1",
"[SOCKS5] 1.2.3.5:10000:user2:pass2"
].join("\n"),
create2fa: false
})
}
);
const payload = await response.json();
const batchId = payload.batch.batchId;
Polling and results
GET /api/integrations/v1/registration/batches/{batchId}
GET /api/integrations/v1/registration/results?batchId={batchId}
GET /api/integrations/v1/registration/results.csv
Proxy formats
auto
jarvee [HTTP] host:10000:user:pass
[SOCKS5] host:10000:user:pass
url socks5://user:pass@host:10000
host_port_user_pass host:10000:user:pass
user_pass_host_port user:pass@host:10000
host_port host:10000
Autoboost Import
Для внешнего сайта поток такой: клиент вставляет integration key, сайт вызывает catalog, при вставке ссылки вызывает resolve, рисует карточки услуг из ответа и отправляет выбранные диапазоны в import.
Catalog + link resolve
const catalog = await fetch("https://myrzboss.com/api/integrations/autoboost/catalog", {
headers
}).then((response) => response.json());
const resolved = await fetch("https://myrzboss.com/api/integrations/autoboost/resolve", {
method: "POST",
headers,
body: JSON.stringify({ link: "https://www.youtube.com/@channel" })
}).then((response) => response.json());
// resolved.first.services уже содержит serviceId, label, kind, min, max.
// Эти значения можно сразу показать карточками и дать клиенту поменять min/max.
Import payload
{
"instagramProfiles": ["https://instagram.com/profile"],
"telegramChannels": ["https://t.me/channel"],
"youtubeChannels": ["https://www.youtube.com/@channel"],
"tiktokProfiles": ["https://www.tiktok.com/@profile"],
"instagramServices": "all:1006:10-20,reel:3319:300-650",
"telegramServices": "4188:70-115@1,1993:2300-4300",
"youtubeServices": "1933:15-20,4451:600-999,1919:70-99",
"tiktokServices": "1002:900-1500,4660:20-40,4009:90-140"
}
Mass Orders
Для лайков, просмотров и охватов передавайте количество. Для комментариев передавайте комментарии строками.
Instagram likes
await fetch("https://myrzboss.com/api/integrations/orders/create", {
method: "POST",
headers,
body: JSON.stringify({
serviceId: "4362",
orderKind: "quantity",
fixedQuantity: 90,
items: [
{ "link": "https://www.instagram.com/p/SHORTCODE/" }
]
})
});
Instagram views
await fetch("https://myrzboss.com/api/integrations/orders/create", {
method: "POST",
headers,
body: JSON.stringify({
serviceId: "3319",
orderKind: "quantity",
fixedQuantity: 1000,
items: [
{ "link": "https://www.instagram.com/reel/SHORTCODE/" }
]
})
});
YouTube likes
await fetch("https://myrzboss.com/api/integrations/orders/create", {
method: "POST",
headers,
body: JSON.stringify({
serviceId: "1919",
orderKind: "quantity",
fixedQuantity: 80,
items: [
{ "link": "https://www.youtube.com/watch?v=VIDEO_ID" }
]
})
});
YouTube views
await fetch("https://myrzboss.com/api/integrations/orders/create", {
method: "POST",
headers,
body: JSON.stringify({
serviceId: "4451",
orderKind: "quantity",
fixedQuantity: 750,
items: [
{ "link": "https://www.youtube.com/watch?v=VIDEO_ID" }
]
})
});
TikTok likes
await fetch("https://myrzboss.com/api/integrations/orders/create", {
method: "POST",
headers,
body: JSON.stringify({
serviceId: "4009",
orderKind: "quantity",
fixedQuantity: 120,
items: [
{ "link": "https://www.tiktok.com/@profile/video/VIDEO_ID" }
]
})
});
TikTok views
await fetch("https://myrzboss.com/api/integrations/orders/create", {
method: "POST",
headers,
body: JSON.stringify({
serviceId: "1002",
orderKind: "quantity",
fixedQuantity: 1200,
items: [
{ "link": "https://www.tiktok.com/@profile/video/VIDEO_ID" }
]
})
});
Comment order
await fetch("https://myrzboss.com/api/integrations/orders/create", {
method: "POST",
headers,
body: JSON.stringify({
serviceId: "1006",
orderKind: "comment",
items: [{
"link": "https://www.instagram.com/p/SHORTCODE/",
"comments": "clean look here\nthis one hits different\nsoft energy ✨"
}]
})
});
Telegram reaction
await fetch("https://myrzboss.com/api/integrations/orders/create", {
method: "POST",
headers,
body: JSON.stringify({
serviceId: "4188",
orderKind: "quantity",
fixedQuantity: 90,
answerNumber: 1,
items: [
{ "link": "https://t.me/channel/123" }
]
})
});
Order maintenance
GET /api/integrations/orders
POST /api/integrations/orders/refresh
POST /api/integrations/orders/import
POST /api/integrations/orders/clear
Instagram Actions
POST /api/integrations/autoboost/instagram/profiles
POST /api/integrations/autoboost/instagram/profile/refresh
POST /api/integrations/autoboost/instagram/profile/comments
POST /api/integrations/autoboost/instagram/retry-failed
Эти действия нужны для ручного контроля: заменить список, форснуть обновление профиля, посмотреть последние сгенерированные комментарии и повторить ошибки.
Comment Generation
Ручка только генерирует текст. Заказ создаётся через
orders/createили автоматически внутри Instagram autoboost.minCommentsиmaxCommentsзадают диапазон.styleExampleпомогает держать нужный стиль.allowedEmojisограничивает эмодзи.forceLocalвключает локальный генератор без OpenAI.