curl --request POST \
--url https://api.goyappr.com/tool-connections/{id}/remove \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.goyappr.com/tool-connections/{id}/remove"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.goyappr.com/tool-connections/{id}/remove', 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}/remove",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.goyappr.com/tool-connections/{id}/remove"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.goyappr.com/tool-connections/{id}/remove")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goyappr.com/tool-connections/{id}/remove")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
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>"
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}Take an account off the list
Requires tool-connections:manage. Takes a record that is already disconnected off GET /tool-connections. Nothing is disconnected, revoked or deleted by this - the record and its history are kept, and state=removed still reads it back. A record that is not disconnected answers 409 CONNECTION_STILL_CONNECTED; disconnect it first. A record somebody is connecting again right now (an authorization started with POST /tool-connections//reconnect that has not finished, been cancelled or expired) answers 409 CONNECTION_ATTEMPT_OPEN. Repeating the call answers 200 with the same record, so a bulk pass that overlaps another one is safe. A removed record that is reconnected later comes back to the list when that authorization completes.
curl --request POST \
--url https://api.goyappr.com/tool-connections/{id}/remove \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.goyappr.com/tool-connections/{id}/remove"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.goyappr.com/tool-connections/{id}/remove', 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}/remove",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.goyappr.com/tool-connections/{id}/remove"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.goyappr.com/tool-connections/{id}/remove")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goyappr.com/tool-connections/{id}/remove")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
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>"
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}tool-connections:manage. Use this on a record that is already disconnected and that nobody needs to look at again. To clear every attempt nobody finished in one request, use POST /tool-connections/cleanup - and those also leave the list by themselves a day after they start.
curl -X POST https://api.goyappr.com/tool-connections/CONNECTION_ID/remove \
-H "Authorization: Bearer YOUR_API_KEY"
DELETE:
DELETE /tool-connections/{id} | POST /tool-connections/{id}/remove | |
|---|---|---|
| What it does | Blocks new tool actions on the account and advances the authorization epoch of a bound account (one that never connected stays at 0). | Stops listing the record. |
| What it needs first | A connection in any state. | A connection that is already disconnected. |
| Repeating it | Safe; the epoch advances once. | Safe; answers the same record. |
GET /tool-connections stops returning it, which is what makes a workspace holding a hundred abandoned connect attempts readable again.
removed_at on the answer is when it left the list. To read those records back, ask for them by name:
curl "https://api.goyappr.com/tool-connections?state=removed" \
-H "Authorization: Bearer YOUR_API_KEY"
POST /tool-connections/{id}/reconnect still works on a removed id, and the moment that authorization completes the connection is working again, removed_at is null and it is back on the list. If that authorization is never finished, the record stays off the list. Connecting the app with POST /tool-connections instead gives you a new account with a new id.
A connection that has not been disconnected answers 409 CONNECTION_STILL_CONNECTED, and the message names the DELETE for that connection. Send DELETE /tool-connections/{id} first, read disconnect_progress on that answer (see Disconnect an account — a bound account still needs its grant revoked at the provider), and then remove the record.
That includes a connection whose sign-in was cancelled or ran out before it ever connected: it stays connecting with connected: false and open_attempt: null, and nothing is waiting on it. Its DELETE revokes nothing (disconnect_progress: "record_deleted"), and the remove after it takes it off the list. POST /tool-connections/cleanup does both for every such connection in the workspace at once.
A connection somebody is connecting again right now answers 409 CONNECTION_ATTEMPT_OPEN. When both apply — still connected, and an authorization open — the answer is CONNECTION_STILL_CONNECTED: disconnect first, then wait for or cancel the attempt. CONNECTION_ATTEMPT_OPEN means taking it off the list would hide the account the moment that authorization completes. Wait for it to finish or expire — an authorization lives ten minutes — or cancel it with POST /tool-connections/attempts/{id}/cancel, and then remove the record.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).