Skip to main content
POST
Create shared link
Mint a URL that lets anyone talk to one of your agents in a browser, with no login and no API key. Required scope: 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.
A call through a link is a browser call, and a browser call has no second leg. A 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.

Response

201:
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:
See Revoke shared link. Revoking is reversible — send false to bring the same URL back.

Errors

Authorizations

Authorization
string
header
required

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).

Body

application/json
agent_id
string<uuid>
required

Agent to create a share link for

expires_at
string<date-time> | null

When the link expires. Omit or null for never. A value that cannot be read as a timestamp, or one already in the past, is 400 SHARED_LINK_EXPIRY_INVALID and nothing is created.

Response

Created shared link

id
string<uuid>
token
string
url
string

Full shareable URL

agent_id
string<uuid>
company_id
string<uuid>
created_by
string<uuid> | null
expires_at
string<date-time> | null
is_revoked
boolean
status
enum<string>
Available options:
active,
expired,
revoked
created_at
string<date-time>