Link a WhatsApp account by scanning a QR code with it, as for WhatsApp Web (WhatsApp, Linked devices).
curl -X POST -H "Authorization: Bearer $TPC_KEY" https://tpcopier.com/api/v1/whatsapp/link # start linking
curl -H "Authorization: Bearer $TPC_KEY" https://tpcopier.com/api/v1/whatsapp
# "qr": an image (a data: address) to show - <img src="..."> - and scan; then "status": "connected" and its chats
curl -X POST -H "Authorization: Bearer $TPC_KEY" https://tpcopier.com/api/v1/whatsapp/sync # load its groups
curl -X PATCH -H "Authorization: Bearer $TPC_KEY" -H "Content-Type: application/json" \
-d '{"monitored":true}' https://tpcopier.com/api/v1/channels/C # read this group
Discord
Sign in by QR code (scan it in the Discord app), with e-mail and password (and its 2FA code), or with a token - a bot's, or your own.
curl -X POST -H "Authorization: Bearer $TPC_KEY" https://tpcopier.com/api/v1/discord/qr # then GET /discord: "qr" to scan
curl -X POST -H "Authorization: Bearer $TPC_KEY" -H "Content-Type: application/json" \
-d '{"login":"me@example.com","password":"..."}' https://tpcopier.com/api/v1/discord/login
curl -X POST -H "Authorization: Bearer $TPC_KEY" -H "Content-Type: application/json" \
-d '{"code":"123456"}' https://tpcopier.com/api/v1/discord/2fa
curl -X POST -H "Authorization: Bearer $TPC_KEY" -H "Content-Type: application/json" \
-d '{"token":"...","is_bot":true}' https://tpcopier.com/api/v1/discord/token
curl -X POST -H "Authorization: Bearer $TPC_KEY" https://tpcopier.com/api/v1/discord/sync # load its channels
curl -X PATCH -H "Authorization: Bearer $TPC_KEY" -H "Content-Type: application/json" \
-d '{"monitored":true}' https://tpcopier.com/api/v1/channels/C
A group or channel that is read is linked to accounts like a Telegram channel: binary options or MetaTrader 4/5.
Further reading: WhatsApp's help on linked devices.
Endpoints in this guide
Base address https://tpcopier.com. Send your key with every request -
Authorization: Bearer tpc_... - up to 120 requests a minute. Open an endpoint for its fields,
its answers and an example.
GET/api/v1/channelsChannels
One source's chats - Telegram's unless asked (WhatsApp and Discord have their own pages).
Parameters
| source | query | string |
Responses
200 Successful Response · 422 Validation Error · 401 402 403 429 - see Errors
Example
curl -H "Authorization: Bearer $TPC_KEY" \
"https://tpcopier.com/api/v1/channels"PATCH/api/v1/channels/{cid}Patch Channel
Parameters
| cid * | path | integer |
Request body
{
"monitored": false,
"favorite": false,
"color": "",
"category": "",
"min_confidence": "",
"min_payout": 0,
"max_signals_per_hour": 0,
"stake_override": 0,
"allowed_directions": "",
"entry_mode": "",
"tz_offset_min": 0,
"default_duration": 0,
"read_images": ""
}Responses
200 Successful Response · 422 Validation Error · 401 402 403 429 - see Errors
Example
curl -X PATCH -H "Authorization: Bearer $TPC_KEY" -H "Content-Type: application/json" \
-d '{"monitored": false, "favorite": false, "color": "", "category": "", "min_confidence": "", "min_payout": 0, "max_signals_per_hour": 0, "stake_override": 0, "allowed_directions": "", "entry_mode": "", "tz_offset_min": 0, "default_duration": 0, "read_images": ""}' \
"https://tpcopier.com/api/v1/channels/{cid}"GET/api/v1/whatsappWa Status
Responses
200 Successful Response · 422 Validation Error · 401 402 403 429 - see Errors
Example
curl -H "Authorization: Bearer $TPC_KEY" \
"https://tpcopier.com/api/v1/whatsapp"POST/api/v1/whatsapp/linkWa Link
Responses
200 Successful Response · 422 Validation Error · 401 402 403 429 - see Errors
Example
curl -X POST -H "Authorization: Bearer $TPC_KEY" \
"https://tpcopier.com/api/v1/whatsapp/link"POST/api/v1/whatsapp/syncWa Sync
Responses
200 Successful Response · 422 Validation Error · 401 402 403 429 - see Errors
Example
curl -X POST -H "Authorization: Bearer $TPC_KEY" \
"https://tpcopier.com/api/v1/whatsapp/sync"POST/api/v1/whatsapp/logoutWa Logout
Responses
200 Successful Response · 422 Validation Error · 401 402 403 429 - see Errors
Example
curl -X POST -H "Authorization: Bearer $TPC_KEY" \
"https://tpcopier.com/api/v1/whatsapp/logout"GET/api/v1/discordDc Status
Responses
200 Successful Response · 422 Validation Error · 401 402 403 429 - see Errors
Example
curl -H "Authorization: Bearer $TPC_KEY" \
"https://tpcopier.com/api/v1/discord"POST/api/v1/discord/qrDc Qr
Responses
200 Successful Response · 422 Validation Error · 401 402 403 429 - see Errors
Example
curl -X POST -H "Authorization: Bearer $TPC_KEY" \
"https://tpcopier.com/api/v1/discord/qr"POST/api/v1/discord/loginDc Login
Request body
{
"login": "",
"password": ""
}Responses
200 Successful Response · 422 Validation Error · 401 402 403 429 - see Errors
Example
curl -X POST -H "Authorization: Bearer $TPC_KEY" -H "Content-Type: application/json" \
-d '{"login": "", "password": ""}' \
"https://tpcopier.com/api/v1/discord/login"POST/api/v1/discord/2faDc 2Fa
Request body
{
"code": ""
}Responses
200 Successful Response · 422 Validation Error · 401 402 403 429 - see Errors
Example
curl -X POST -H "Authorization: Bearer $TPC_KEY" -H "Content-Type: application/json" \
-d '{"code": ""}' \
"https://tpcopier.com/api/v1/discord/2fa"POST/api/v1/discord/tokenDc Token
Request body
{
"token": "",
"is_bot": false
}Responses
200 Successful Response · 422 Validation Error · 401 402 403 429 - see Errors
Example
curl -X POST -H "Authorization: Bearer $TPC_KEY" -H "Content-Type: application/json" \
-d '{"token": "", "is_bot": false}' \
"https://tpcopier.com/api/v1/discord/token"POST/api/v1/discord/syncDc Sync
Responses
200 Successful Response · 422 Validation Error · 401 402 403 429 - see Errors
Example
curl -X POST -H "Authorization: Bearer $TPC_KEY" \
"https://tpcopier.com/api/v1/discord/sync"POST/api/v1/discord/logoutDc Logout
Responses
200 Successful Response · 422 Validation Error · 401 402 403 429 - see Errors
Example
curl -X POST -H "Authorization: Bearer $TPC_KEY" \
"https://tpcopier.com/api/v1/discord/logout"