Link a channel ID to a contact
PUT
/api/v1/contacts/{contact_id}/channels/{channel}
const url = 'https://renotify.app/api/v1/contacts/ct_jss32memeMpC/channels/telegram';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"external_id":"123456789"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://renotify.app/api/v1/contacts/ct_jss32memeMpC/channels/telegram \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "external_id": "123456789" }'The ID moves from any other contact in the workspace that had it.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”contact_id
required
string
The ID of the contact.
Example
ct_jss32memeMpCchannel
required
string
One of telegram, messenger, instagram, browser_push.
Example
telegramcontact
required
integer
The contact ID.
Example
42Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
external_id
required
The contact’s ID on the channel: the Telegram chat ID for your bot, the Messenger or Instagram ID scoped to your page or account, or for browser_push the subscriber’s SendSeven contact ID. IDs from another bot, page or account don’t work.
string
Example
123456789