Create a mailbox connection link
curl --request POST \
--url https://api.reply.io/v3/email-accounts/connection-link \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"provider": "gmail",
"name": "Sales mailbox for Dana"
}
'import requests
url = "https://api.reply.io/v3/email-accounts/connection-link"
payload = {
"provider": "gmail",
"name": "Sales mailbox for Dana"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({provider: 'gmail', name: 'Sales mailbox for Dana'})
};
fetch('https://api.reply.io/v3/email-accounts/connection-link', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.reply.io/v3/email-accounts/connection-link",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'provider' => 'gmail',
'name' => 'Sales mailbox for Dana'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.reply.io/v3/email-accounts/connection-link"
payload := strings.NewReader("{\n \"provider\": \"gmail\",\n \"name\": \"Sales mailbox for Dana\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.reply.io/v3/email-accounts/connection-link")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"provider\": \"gmail\",\n \"name\": \"Sales mailbox for Dana\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.reply.io/v3/email-accounts/connection-link")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"provider\": \"gmail\",\n \"name\": \"Sales mailbox for Dana\"\n}"
response = http.request(request)
puts response.read_body{
"connectionLink": "https://run.reply.io/email-connect/3f9c1a7e5b2d48c0a6e1d4f7b9c20a85",
"pendingAccountId": 50,
"provider": "gmail",
"expiresAtUtc": "2026-11-18T12:00:00Z"
}Email Accounts
Create a mailbox connection link
Coming soon. This endpoint will be available by mid November 2026.
channels:write scope (or a broader one that includes it).
Create a link that connects one Gmail or Office 365 mailbox, to hand to the mailbox owner. The link opens a page that needs no Reply sign-in, connects exactly one mailbox, works once, and expires after 7 days.
The link is shown only in this response and cannot be read back later. If it is lost, revoke the pending entry and create a new link. The Location header points at the pending entry.
Use name to label the link in the pending list. The request is refused when the team has no room for another email account.
POST
/
v3
/
email-accounts
/
connection-link
Create a mailbox connection link
curl --request POST \
--url https://api.reply.io/v3/email-accounts/connection-link \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"provider": "gmail",
"name": "Sales mailbox for Dana"
}
'import requests
url = "https://api.reply.io/v3/email-accounts/connection-link"
payload = {
"provider": "gmail",
"name": "Sales mailbox for Dana"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({provider: 'gmail', name: 'Sales mailbox for Dana'})
};
fetch('https://api.reply.io/v3/email-accounts/connection-link', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.reply.io/v3/email-accounts/connection-link",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'provider' => 'gmail',
'name' => 'Sales mailbox for Dana'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.reply.io/v3/email-accounts/connection-link"
payload := strings.NewReader("{\n \"provider\": \"gmail\",\n \"name\": \"Sales mailbox for Dana\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.reply.io/v3/email-accounts/connection-link")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"provider\": \"gmail\",\n \"name\": \"Sales mailbox for Dana\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.reply.io/v3/email-accounts/connection-link")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"provider\": \"gmail\",\n \"name\": \"Sales mailbox for Dana\"\n}"
response = http.request(request)
puts response.read_body{
"connectionLink": "https://run.reply.io/email-connect/3f9c1a7e5b2d48c0a6e1d4f7b9c20a85",
"pendingAccountId": 50,
"provider": "gmail",
"expiresAtUtc": "2026-11-18T12:00:00Z"
}Authorizations
Body
application/json
Response
Connection link created
A link that connects one mailbox. The link is returned only in this response.