curl --request GET \
--url https://api.goyappr.com/tool-connection-auth-attempts/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.goyappr.com/tool-connection-auth-attempts/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.goyappr.com/tool-connection-auth-attempts/{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-connection-auth-attempts/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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-connection-auth-attempts/{id}"
req, _ := http.NewRequest("GET", 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.get("https://api.goyappr.com/tool-connection-auth-attempts/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goyappr.com/tool-connection-auth-attempts/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"attempt": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"connection_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending_human",
"expires_at": "2023-11-07T05:31:56Z",
"next_poll_at": "2023-11-07T05:31:56Z",
"error_code": "<string>",
"return_path": "/en/tools"
},
"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>"
}
]
}Read authorization status
Requires tool-connections:read. Poll only this returned local ID, using increasing intervals and stopping at expires_at or a terminal status. Browser redirects are hints, not completion evidence. completed means consent was processed; inspect connection.state separately for ready. Unknown redemption requires reconciliation and must never be redeemed again blindly.
curl --request GET \
--url https://api.goyappr.com/tool-connection-auth-attempts/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.goyappr.com/tool-connection-auth-attempts/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.goyappr.com/tool-connection-auth-attempts/{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-connection-auth-attempts/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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-connection-auth-attempts/{id}"
req, _ := http.NewRequest("GET", 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.get("https://api.goyappr.com/tool-connection-auth-attempts/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goyappr.com/tool-connection-auth-attempts/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"attempt": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"connection_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending_human",
"expires_at": "2023-11-07T05:31:56Z",
"next_poll_at": "2023-11-07T05:31:56Z",
"error_code": "<string>",
"return_path": "/en/tools"
},
"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:read. Use the exact attempt.id returned by connection creation or replacement.
The same read is served at GET /tool-connections/attempts/{id}, beside where an attempt is cancelled (POST /tool-connections/attempts/{id}/cancel); both paths answer the same. A segment that is not an id is 404 RESOURCE_ID_INVALID.
curl https://api.goyappr.com/tool-connection-auth-attempts/ATTEMPT_ID \
-H "Authorization: Bearer YOUR_API_KEY"
expires_at or a terminal state: completed, failed, expired, cancelled, or reconciliation_required. The response contains safe attempt and connection metadata. Never detect success from account-list differences, window messages, or redirect query flags.
error_code says why an attempt ended when the status alone does not:
error_code | Status | What happened, and what to do |
|---|---|---|
null | any | Still open, finished, or cancelled by a person with POST /tool-connections/attempts/{id}/cancel or a disconnect. |
AUTH_SUPERSEDED | cancelled | A reconnect replaced it before anyone opened its link. Use the attempt the reconnect returned. |
AUTH_EXPIRED | expired | Its ten minutes ran out, or the clean-up closed it after they had. Connect again for a new link. |
MEMBERSHIP_REMOVED, AUTHORITY_REMOVED | cancelled | The member who was signing in left the workspace, or lost the right to connect accounts. Someone who can connect accounts starts a new one. |
AUTH_ACCOUNT_MISMATCH | failed | The account signed in to is not the one this connection was opened for. Reconnect and sign in with the right account. |
AUTH_CONFIG_CHANGED | failed | The app’s connection settings changed while the sign-in was open. Connect again. |
AUTH_LINK_UNKNOWN, AUTH_REDEMPTION_UNKNOWN | failed or reconciliation_required | The sign-in did not complete. Start a fresh connection rather than reusing the handoff. |
completed means the authorization flow has been processed. A connection can still be verifying until its identity/scope readiness checks pass. reconciliation_required means the exchange outcome could not be established safely; do not automatically redeem the callback again or start duplicate connections. Removing the consenting member cancels their pending attempts without deleting company-owned connections.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).