curl --request POST \
--url https://api.goyappr.com/shared-links \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"expires_at": "2023-11-07T05:31:56Z"
}
'import requests
url = "https://api.goyappr.com/shared-links"
payload = {
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"expires_at": "2023-11-07T05:31:56Z"
}
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({
agent_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
expires_at: '2023-11-07T05:31:56Z'
})
};
fetch('https://api.goyappr.com/shared-links', 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/shared-links",
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([
'agent_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'expires_at' => '2023-11-07T05:31:56Z'
]),
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/shared-links"
payload := strings.NewReader("{\n \"agent_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"expires_at\": \"2023-11-07T05:31:56Z\"\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.goyappr.com/shared-links")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"agent_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"expires_at\": \"2023-11-07T05:31:56Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goyappr.com/shared-links")
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 \"agent_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"expires_at\": \"2023-11-07T05:31:56Z\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"token": "<string>",
"url": "<string>",
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"company_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"expires_at": "2023-11-07T05:31:56Z",
"is_revoked": true,
"status": "active",
"created_at": "2023-11-07T05:31:56Z"
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}Create Shared Link
Generate a shareable URL that lets anyone speak to a voice agent in a browser without logging in. Calls placed through it are real: billed to your company, listed by GET /calls with direction web_call, and recorded and analysed like a phone call.
curl --request POST \
--url https://api.goyappr.com/shared-links \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"expires_at": "2023-11-07T05:31:56Z"
}
'import requests
url = "https://api.goyappr.com/shared-links"
payload = {
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"expires_at": "2023-11-07T05:31:56Z"
}
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({
agent_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
expires_at: '2023-11-07T05:31:56Z'
})
};
fetch('https://api.goyappr.com/shared-links', 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/shared-links",
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([
'agent_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'expires_at' => '2023-11-07T05:31:56Z'
]),
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/shared-links"
payload := strings.NewReader("{\n \"agent_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"expires_at\": \"2023-11-07T05:31:56Z\"\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.goyappr.com/shared-links")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"agent_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"expires_at\": \"2023-11-07T05:31:56Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goyappr.com/shared-links")
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 \"agent_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"expires_at\": \"2023-11-07T05:31:56Z\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"token": "<string>",
"url": "<string>",
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"company_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"expires_at": "2023-11-07T05:31:56Z",
"is_revoked": true,
"status": "active",
"created_at": "2023-11-07T05:31:56Z"
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}shared_links:manage.
This is the shortest path to hearing an agent you have just built: publish the
agent’s workflow, create a link, open it, and speak to it. It is also the path
you hand to a colleague or a client for review — the person who opens it needs
nothing but the URL and a microphone. Calls placed through a link are real
calls: they are billed to your workspace, they appear in
List calls with direction: "web_call", and they
produce the same transcript, recording and follow-ups as a phone call.
transfer step in the agent’s workflow therefore does nothing when it is
reached this way — the caller hears the conversation carry on, and no one is
brought onto the call. The workflow still publishes: an agent that answers on
["phone","web"] is the ordinary shape, and
Check workflow reports it as the
binding_channel_unsupported advisory, naming the step in node_id. Before
you hand a link to a reviewer, either take the transfer out of the workflow or
tell them that one step is not part of what they are reviewing.curl --request POST "$YAPPR_API_URL/shared-links" \
--header "Authorization: Bearer $YAPPR_API_KEY" \
--header "Content-Type: application/json" \
--data '{"agent_id":"45a766a4-a0d2-4003-9d75-3b3effe823bf","expires_at":"2026-10-01T00:00:00Z"}'
| Field | Required | Notes |
|---|---|---|
agent_id | yes | An agent of this workspace. The link is bound to it for life; point a link at a different agent by creating a new one. |
expires_at | no | ISO 8601 timestamp. Omit it, or send null, for a link that never expires. A value the platform cannot read as a timestamp, or one already in the past, is refused and nothing is created — a link born expired could never be opened. |
Response
201:
{
"id": "069fb691-f36e-4329-8e3c-59b0bbe487fb",
"token": "670363d2-489f-4186-a12e-61e261d5af46",
"agent_id": "45a766a4-a0d2-4003-9d75-3b3effe823bf",
"company_id": "1f2e3d4c-5b6a-4790-8123-456789abcdef",
"created_by": null,
"expires_at": null,
"is_revoked": false,
"created_at": "2026-09-20T19:12:29.091811+00:00",
"url": "https://app.goyappr.com/share/670363d2-489f-4186-a12e-61e261d5af46",
"status": "active"
}
url is the whole deliverable — hand that to the person who should hear the
agent. created_by is null for a link created with an API key, because a key
is not a person; links made in the dashboard carry the user who made them.
status is derived, never stored: revoked once it is revoked, expired once
expires_at has passed, otherwise active.
A link is reusable and has no call cap of its own. The limits that apply are the
workspace’s: the agent has to be switched on, the balance has to clear the
billing floor, and concurrent calls share the workspace’s lines.
Turning one off
There is no delete. Revoke it — the link stops working immediately and stays in the list as an audit trail:curl --request PATCH "$YAPPR_API_URL/shared-links/$LINK_ID" \
--header "Authorization: Bearer $YAPPR_API_KEY" \
--header "Content-Type: application/json" \
--data '{"is_revoked":true}'
false to bring the same URL back.
Errors
| HTTP | Body | When |
|---|---|---|
400 | {"error":"Creating a shared link does not take max_uses. It takes agent_id, expires_at — …","code":"SHARED_LINK_REQUEST_INVALID"} | A body field this route does not read — a misspelling included. Nothing was written. |
400 | {"error":"agent_id is required","code":"SHARED_LINK_REQUEST_INVALID"} | The field is missing or empty. |
404 | {"error":"No agent with this id in this workspace …","code":"AGENT_NOT_FOUND"} | The agent belongs to another workspace, or does not exist. |
403 | {"error":"This key does not hold …","code":"INSUFFICIENT_SCOPE"} | The key does not hold shared_links:manage. |
400 | {"error":"expires_at is in the past …","code":"SHARED_LINK_EXPIRY_INVALID"} | expires_at is already in the past. It used to create a link with status: "expired" that nobody could open. No link was created. |
400 | {"error":"expires_at could not be read as a timestamp …","code":"SHARED_LINK_EXPIRY_INVALID"} | expires_at is not ISO 8601. No link was created; resend with, for example, 2026-10-01T00:00:00Z, or omit the field for a link that never expires. |
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).