curl --request POST \
--url https://app.goosybear.ai/api/v1/tools/email_message.set_addressing \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"step_key": "<string>",
"flow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"flow_name": "<string>",
"from": "<string>",
"reply_to": "<string>",
"cc": [
"<string>"
],
"cc_add": [
"<string>"
],
"cc_remove": [
"<string>"
],
"bcc": [
"<string>"
],
"bcc_add": [
"<string>"
],
"bcc_remove": [
"<string>"
],
"workspace": "<string>"
}
'import requests
url = "https://app.goosybear.ai/api/v1/tools/email_message.set_addressing"
payload = {
"step_key": "<string>",
"flow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"flow_name": "<string>",
"from": "<string>",
"reply_to": "<string>",
"cc": ["<string>"],
"cc_add": ["<string>"],
"cc_remove": ["<string>"],
"bcc": ["<string>"],
"bcc_add": ["<string>"],
"bcc_remove": ["<string>"],
"workspace": "<string>"
}
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({
step_key: '<string>',
flow_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
flow_name: '<string>',
from: '<string>',
reply_to: '<string>',
cc: ['<string>'],
cc_add: ['<string>'],
cc_remove: ['<string>'],
bcc: ['<string>'],
bcc_add: ['<string>'],
bcc_remove: ['<string>'],
workspace: '<string>'
})
};
fetch('https://app.goosybear.ai/api/v1/tools/email_message.set_addressing', 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://app.goosybear.ai/api/v1/tools/email_message.set_addressing",
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([
'step_key' => '<string>',
'flow_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'flow_name' => '<string>',
'from' => '<string>',
'reply_to' => '<string>',
'cc' => [
'<string>'
],
'cc_add' => [
'<string>'
],
'cc_remove' => [
'<string>'
],
'bcc' => [
'<string>'
],
'bcc_add' => [
'<string>'
],
'bcc_remove' => [
'<string>'
],
'workspace' => '<string>'
]),
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://app.goosybear.ai/api/v1/tools/email_message.set_addressing"
payload := strings.NewReader("{\n \"step_key\": \"<string>\",\n \"flow_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"flow_name\": \"<string>\",\n \"from\": \"<string>\",\n \"reply_to\": \"<string>\",\n \"cc\": [\n \"<string>\"\n ],\n \"cc_add\": [\n \"<string>\"\n ],\n \"cc_remove\": [\n \"<string>\"\n ],\n \"bcc\": [\n \"<string>\"\n ],\n \"bcc_add\": [\n \"<string>\"\n ],\n \"bcc_remove\": [\n \"<string>\"\n ],\n \"workspace\": \"<string>\"\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://app.goosybear.ai/api/v1/tools/email_message.set_addressing")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"step_key\": \"<string>\",\n \"flow_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"flow_name\": \"<string>\",\n \"from\": \"<string>\",\n \"reply_to\": \"<string>\",\n \"cc\": [\n \"<string>\"\n ],\n \"cc_add\": [\n \"<string>\"\n ],\n \"cc_remove\": [\n \"<string>\"\n ],\n \"bcc\": [\n \"<string>\"\n ],\n \"bcc_add\": [\n \"<string>\"\n ],\n \"bcc_remove\": [\n \"<string>\"\n ],\n \"workspace\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.goosybear.ai/api/v1/tools/email_message.set_addressing")
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 \"step_key\": \"<string>\",\n \"flow_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"flow_name\": \"<string>\",\n \"from\": \"<string>\",\n \"reply_to\": \"<string>\",\n \"cc\": [\n \"<string>\"\n ],\n \"cc_add\": [\n \"<string>\"\n ],\n \"cc_remove\": [\n \"<string>\"\n ],\n \"bcc\": [\n \"<string>\"\n ],\n \"bcc_add\": [\n \"<string>\"\n ],\n \"bcc_remove\": [\n \"<string>\"\n ],\n \"workspace\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"ok": true,
"message_id": "<string>",
"step_key": "<string>",
"revision": 123,
"channel": "email",
"subject": "<string>",
"preview_text": "<string>",
"words": "<string>",
"look": "plain",
"reply_to": "<string>",
"cc": [
"<string>"
],
"bcc": [
"<string>"
],
"button_styles": "<unknown>",
"workspace": "<string>",
"working_in": {
"label": "<string>",
"note": "<string>",
"workspace": "<string>",
"source": "call-override"
},
"from": "<string>"
}{
"ok": false,
"code": "<string>",
"message": "<string>",
"error": {
"code": "<string>",
"message": "<string>",
"retry_after_seconds": 123
},
"retry_after_seconds": 123
}{
"ok": false,
"code": "<string>",
"message": "<string>",
"error": {
"code": "<string>",
"message": "<string>",
"retry_after_seconds": 123
},
"retry_after_seconds": 123
}{
"ok": false,
"code": "<string>",
"message": "<string>",
"error": {
"code": "<string>",
"message": "<string>",
"retry_after_seconds": 123
},
"retry_after_seconds": 123
}{
"ok": false,
"code": "<string>",
"message": "<string>",
"error": {
"code": "<string>",
"message": "<string>",
"retry_after_seconds": 123
},
"retry_after_seconds": 123
}{
"ok": false,
"code": "<string>",
"message": "<string>",
"error": {
"code": "<string>",
"message": "<string>",
"retry_after_seconds": 123
},
"retry_after_seconds": 123
}Call email_message.set_addressing
Set who one email in an Email & text flow or an automation’s email step is sent from, where replies to it go, and who it copies: its sender, its reply-to, its CC (seen by every reader) and its BCC (hidden) — ‘send the sequence emails from scott@send.acme.com’, ‘change who the welcome comes from to our support address’, ‘have replies to the welcome go to support@acme.com’, ‘CC alex@acme.com on email 2’, ‘BCC the owner on the follow-up’, ‘stop copying Sam’, ‘send replies back to the normal address’. Call it on the ask with only what the member changed: from for the sending address (null puts it back to the workspace’s default), reply_to for the reply address (null puts it back to the sender’s own), cc_add or bcc_add for each address to copy, cc_remove or bcc_remove for each to stop copying, and cc or bcc for the whole list when the member says who is copied instead (‘CC just alex@acme.com’, ‘only BCC the owner’); everything else on the email stays as it is. One email per call: for every email of a sequence, call it once per email, all in the same turn. Every value is a full email address, typed exactly as the member typed it: never complete or correct one. A teammate named by name or role (‘the owner’, ‘Sam’): read their email from members.read first; one of the workspace’s own mailboxes named by what it is (‘the front desk’, ‘our support inbox’): read it from sender.list first; a copy to stop: as email_flow.read_messages lists it. A reply-to that is one of the workspace’s own sending addresses threads replies into the Goosy inbox, any other is a plain mailbox. The sender must be one of the workspace’s own active sending addresses; another is refused with the ones it has, and nothing is saved. Each address is checked and an email copies at most 10 addresses together: something that is not an email address is refused with its reason and nothing is saved, so say that reason and ask for the address. A copy only receives the email: it is never added as a contact or enrolled. It saves the email’s draft; it spends nothing and sends nothing; a text has no sender address, reply-to or copies. Not for adding a new sending address, which is sender.create; the words or subject, which is email_message.write; or reading what an email copies now, which is email_flow.read_messages.
Every result names the workspace it ran in. Say which workspace the answer is about. When the account has more than one workspace and none is selected, this tool refuses with workspace_ambiguous and lists the choices — offer them, never pick one.
curl --request POST \
--url https://app.goosybear.ai/api/v1/tools/email_message.set_addressing \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"step_key": "<string>",
"flow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"flow_name": "<string>",
"from": "<string>",
"reply_to": "<string>",
"cc": [
"<string>"
],
"cc_add": [
"<string>"
],
"cc_remove": [
"<string>"
],
"bcc": [
"<string>"
],
"bcc_add": [
"<string>"
],
"bcc_remove": [
"<string>"
],
"workspace": "<string>"
}
'import requests
url = "https://app.goosybear.ai/api/v1/tools/email_message.set_addressing"
payload = {
"step_key": "<string>",
"flow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"flow_name": "<string>",
"from": "<string>",
"reply_to": "<string>",
"cc": ["<string>"],
"cc_add": ["<string>"],
"cc_remove": ["<string>"],
"bcc": ["<string>"],
"bcc_add": ["<string>"],
"bcc_remove": ["<string>"],
"workspace": "<string>"
}
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({
step_key: '<string>',
flow_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
flow_name: '<string>',
from: '<string>',
reply_to: '<string>',
cc: ['<string>'],
cc_add: ['<string>'],
cc_remove: ['<string>'],
bcc: ['<string>'],
bcc_add: ['<string>'],
bcc_remove: ['<string>'],
workspace: '<string>'
})
};
fetch('https://app.goosybear.ai/api/v1/tools/email_message.set_addressing', 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://app.goosybear.ai/api/v1/tools/email_message.set_addressing",
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([
'step_key' => '<string>',
'flow_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'flow_name' => '<string>',
'from' => '<string>',
'reply_to' => '<string>',
'cc' => [
'<string>'
],
'cc_add' => [
'<string>'
],
'cc_remove' => [
'<string>'
],
'bcc' => [
'<string>'
],
'bcc_add' => [
'<string>'
],
'bcc_remove' => [
'<string>'
],
'workspace' => '<string>'
]),
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://app.goosybear.ai/api/v1/tools/email_message.set_addressing"
payload := strings.NewReader("{\n \"step_key\": \"<string>\",\n \"flow_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"flow_name\": \"<string>\",\n \"from\": \"<string>\",\n \"reply_to\": \"<string>\",\n \"cc\": [\n \"<string>\"\n ],\n \"cc_add\": [\n \"<string>\"\n ],\n \"cc_remove\": [\n \"<string>\"\n ],\n \"bcc\": [\n \"<string>\"\n ],\n \"bcc_add\": [\n \"<string>\"\n ],\n \"bcc_remove\": [\n \"<string>\"\n ],\n \"workspace\": \"<string>\"\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://app.goosybear.ai/api/v1/tools/email_message.set_addressing")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"step_key\": \"<string>\",\n \"flow_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"flow_name\": \"<string>\",\n \"from\": \"<string>\",\n \"reply_to\": \"<string>\",\n \"cc\": [\n \"<string>\"\n ],\n \"cc_add\": [\n \"<string>\"\n ],\n \"cc_remove\": [\n \"<string>\"\n ],\n \"bcc\": [\n \"<string>\"\n ],\n \"bcc_add\": [\n \"<string>\"\n ],\n \"bcc_remove\": [\n \"<string>\"\n ],\n \"workspace\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.goosybear.ai/api/v1/tools/email_message.set_addressing")
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 \"step_key\": \"<string>\",\n \"flow_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"flow_name\": \"<string>\",\n \"from\": \"<string>\",\n \"reply_to\": \"<string>\",\n \"cc\": [\n \"<string>\"\n ],\n \"cc_add\": [\n \"<string>\"\n ],\n \"cc_remove\": [\n \"<string>\"\n ],\n \"bcc\": [\n \"<string>\"\n ],\n \"bcc_add\": [\n \"<string>\"\n ],\n \"bcc_remove\": [\n \"<string>\"\n ],\n \"workspace\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"ok": true,
"message_id": "<string>",
"step_key": "<string>",
"revision": 123,
"channel": "email",
"subject": "<string>",
"preview_text": "<string>",
"words": "<string>",
"look": "plain",
"reply_to": "<string>",
"cc": [
"<string>"
],
"bcc": [
"<string>"
],
"button_styles": "<unknown>",
"workspace": "<string>",
"working_in": {
"label": "<string>",
"note": "<string>",
"workspace": "<string>",
"source": "call-override"
},
"from": "<string>"
}{
"ok": false,
"code": "<string>",
"message": "<string>",
"error": {
"code": "<string>",
"message": "<string>",
"retry_after_seconds": 123
},
"retry_after_seconds": 123
}{
"ok": false,
"code": "<string>",
"message": "<string>",
"error": {
"code": "<string>",
"message": "<string>",
"retry_after_seconds": 123
},
"retry_after_seconds": 123
}{
"ok": false,
"code": "<string>",
"message": "<string>",
"error": {
"code": "<string>",
"message": "<string>",
"retry_after_seconds": 123
},
"retry_after_seconds": 123
}{
"ok": false,
"code": "<string>",
"message": "<string>",
"error": {
"code": "<string>",
"message": "<string>",
"retry_after_seconds": 123
},
"retry_after_seconds": 123
}{
"ok": false,
"code": "<string>",
"message": "<string>",
"error": {
"code": "<string>",
"message": "<string>",
"retry_after_seconds": 123
},
"retry_after_seconds": 123
}Authorizations
An API key minted at Settings › API & MCP. Send it as Authorization: Bearer <key>. A key carries its holder's own permissions, resolved on every call — revoking a membership closes the key's reach immediately. Keep it in an environment variable (GOOSY_API_KEY), never in a committed file.
Headers
Body
The workspace's own sending address this email goes out from, exactly as the member typed it or as sender.list lists it (scott@send.acme.com); null sends it from the workspace's default address. Leave it out to keep the sender as it is.
320The one full email address replies to this email go to, exactly as the member typed it (support@acme.com), or a mailbox sender.list names. null returns replies to the sender's own address. Leave it out to keep the reply-to as it is.
320Every address this email copies (CC) from now on, replacing the ones it has: 'CC just alex@acme.com' is ["alex@acme.com"], and [] stops every CC. Never with cc_add or cc_remove.
1001 - 320Response
The call was admitted and dispatched. ok says whether the tool succeeded — a refusal the tool itself produced is still a 200, exactly as it is a successful JSON-RPC result over MCP.
- Option 1
- Option 2
The tool ran and answered.