curl --request PATCH \
--url https://api.goyappr.com/tool-connections/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"label": "Front desk calendar"
}
'import requests
url = "https://api.goyappr.com/tool-connections/{id}"
payload = { "label": "Front desk calendar" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({label: 'Front desk calendar'})
};
fetch('https://api.goyappr.com/tool-connections/{id}', 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.goyappr.com/tool-connections/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'label' => 'Front desk calendar'
]),
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.goyappr.com/tool-connections/{id}"
payload := strings.NewReader("{\n \"label\": \"Front desk calendar\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.goyappr.com/tool-connections/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"label\": \"Front desk calendar\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goyappr.com/tool-connections/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"label\": \"Front desk calendar\"\n}"
response = http.request(request)
puts response.read_body{
"connection": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"toolkit": "<string>",
"label": "<string>",
"state": "disconnected",
"connected": true,
"enabled": true,
"binding_revision": "<string>",
"authorization_epoch": "<string>",
"disconnect_progress": "none",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"provider_identity": "<string>",
"removed_at": "2023-11-07T05:31:56Z",
"created_by": {
"type": "user",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"started_by": {
"type": "user",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"app_name": "<string>",
"open_attempt": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending_human",
"expires_at": "2023-11-07T05:31:56Z"
},
"last_attempt": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending_human",
"error_code": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"check": {
"status": "app_reports_problem",
"code": "nothing_set_up",
"reading": "Connected, but WhatsApp says no phone numbers are set up.",
"reason": "(#100) Tried accessing nonexisting field (phone_numbers)",
"action": "WHATSAPP_GET_PHONE_NUMBERS",
"checked_at": "2026-11-02T11:20:41.000Z"
}
}
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}Rename an account
Requires tool-connections:manage. Changes the label the account is shown and picked under - in GET /tool-connections, in a tool’s connection and in a call’s timeline - and nothing else. The account stays connected (or not) exactly as it was, its binding_revision and authorization_epoch do not move, and no tool, revision or accepted run changes. The label is trimmed, 1 to 200 characters, with no control characters. Sending the label the account already has changes nothing and answers the account. A record taken off the list (POST /tool-connections//remove) answers 404 CONNECTION_NOT_FOUND.
curl --request PATCH \
--url https://api.goyappr.com/tool-connections/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"label": "Front desk calendar"
}
'import requests
url = "https://api.goyappr.com/tool-connections/{id}"
payload = { "label": "Front desk calendar" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({label: 'Front desk calendar'})
};
fetch('https://api.goyappr.com/tool-connections/{id}', 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.goyappr.com/tool-connections/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'label' => 'Front desk calendar'
]),
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.goyappr.com/tool-connections/{id}"
payload := strings.NewReader("{\n \"label\": \"Front desk calendar\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.goyappr.com/tool-connections/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"label\": \"Front desk calendar\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goyappr.com/tool-connections/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"label\": \"Front desk calendar\"\n}"
response = http.request(request)
puts response.read_body{
"connection": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"toolkit": "<string>",
"label": "<string>",
"state": "disconnected",
"connected": true,
"enabled": true,
"binding_revision": "<string>",
"authorization_epoch": "<string>",
"disconnect_progress": "none",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"provider_identity": "<string>",
"removed_at": "2023-11-07T05:31:56Z",
"created_by": {
"type": "user",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"started_by": {
"type": "user",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"app_name": "<string>",
"open_attempt": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending_human",
"expires_at": "2023-11-07T05:31:56Z"
},
"last_attempt": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending_human",
"error_code": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"check": {
"status": "app_reports_problem",
"code": "nothing_set_up",
"reading": "Connected, but WhatsApp says no phone numbers are set up.",
"reason": "(#100) Tried accessing nonexisting field (phone_numbers)",
"action": "WHATSAPP_GET_PHONE_NUMBERS",
"checked_at": "2026-11-02T11:20:41.000Z"
}
}
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}tool-connections:manage. An app can hold several connected accounts — a clinic calendar and a front-desk calendar, two mailboxes — and each one is told apart by its label. This changes that label and nothing else.
curl -X PATCH https://api.goyappr.com/tool-connections/CONNECTION_ID \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"label": "Front desk calendar"}'
{
"connection": {
"id": "3f2c8a8e-6c1d-4f0e-9a51-2b7f4c9d1e20",
"toolkit": "googlecalendar",
"label": "Front desk calendar",
"state": "ready",
"connected": true,
"binding_revision": "1",
"authorization_epoch": "1"
}
}
| Field | Type | Required | Description |
|---|---|---|---|
label | string | Yes | The new name, 1 to 200 characters once leading and trailing spaces are dropped. No control characters (tabs, line breaks). |
- The new label shows wherever the account is read:
GET /tool-connections, a tool’sconnection_label, and a call’s timeline. In the dashboard it is the name under Tools & Integrations → Integrations. - The account stays exactly as connected as it was.
binding_revisionandauthorization_epochdo not move, so no tool, workflow revision or accepted run is touched, and nobody has to sign in again. - Sending the label the account already has changes nothing and answers the account.
| Request | Answer |
|---|---|
A body other than {"label": "..."}, a blank label, one over 200 characters or one with a control character | 400 CONNECTION_INVALID, with the field in issues[].path (/label, or the field to leave out). |
| A connection that does not exist, belongs to another workspace, or was taken off the list | 404 CONNECTION_NOT_FOUND. |
A key without tool-connections:manage | 403 INSUFFICIENT_SCOPE. |
Authorizations
Your Yappr API key (e.g. ypr_live_...). Generate one in the dashboard under Settings → API Keys. No key is 401 MISSING_KEY; a key that is not one of ours, or is revoked, is 401 INVALID_KEY; an expired one is 401 EXPIRED_KEY. A valid key without the scope an operation needs is 403 INSUFFICIENT_SCOPE on every operation, and the message names the scope. Every response, a 401 included, carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset: the budget is 60 requests a minute per API key. Every 429, whatever its code, carries Retry-After (whole seconds, never zero): the per-key budget's RATE_LIMIT asks for what is left of the minute, a route's daily cap (RATE_LIMITED) for the time until that cap resets. All four headers are listed in Access-Control-Expose-Headers, so a browser can read them. A path the API does not serve (an unknown sub-path, an id left empty) is 404 ROUTE_NOT_FOUND, and a method a served path does not take is 405 METHOD_NOT_ALLOWED with an Allow header; both are answered before any scope check, and nothing is read or changed. A trailing slash is ignored where it cannot be an id left empty (POST /calls/ is POST /calls) and refused where it can (GET /calls/). A doubled slash inside a path is merged into one before the request reaches the API (GET //calls is GET /calls).