Skip to main content
GET
List the choices an account offers for an action input
Requires tool-connections:read. The values an action input can be fixed to on a connected account, so you pick one instead of typing its id. Today the one resource is calendars: the calendars of a Google Calendar account that the account can write to, the main one first with the value primary.
Fix an input to one of them - {"kind": "literal", "value": ["c_1a2b3c@group.calendar.google.com"]} for find free time’s items, the id as text for calendar_id - or offer several as a list the agent chooses from by name. See setting inputs. The list is read live from the account through its own “List calendars” action, a read with no effect, made ready on the first call (an API key doing that also needs tools:create, and tools:update to run it). A listing waits up to about ten seconds. When the account is still answering then, the answer is 202 with Retry-After and the listing goes on; ask again after that many seconds and the same listing answers:
Your listings of one account within two minutes share one read, so asking again (or asking from several places at once) does not start another. Each read leaves one ordinary test of the account’s “List calendars” tool behind (a test, not a delivery: the deliveries log does not list it). Cache the answer for a few minutes; the dashboard keeps it for five. Refusals: 404 TOOL_CONNECTION_NOT_FOUND, 409 TOOL_CONNECTION_NOT_READY or 409 RESOURCE_OPTIONS_RECONNECT_REQUIRED (Google refused the account’s read, so its sign-in expired or lost access: reconnect it with POST /tool-connections/{id}/reconnect), 422 RESOURCE_UNSUPPORTED (another resource, or an account that is not Google Calendar), 429 RESOURCE_OPTIONS_BUSY (too many tests running in the workspace; Retry-After), 400 TOOL_CONNECTIONS_QUERY_INVALID (a query parameter). 503 RESOURCE_OPTIONS_PROVIDER_UNAVAILABLE means Google Calendar did not answer usefully three times (Retry-After: 30); 503 RESOURCE_OPTIONS_UNAVAILABLE means the listing failed on our side. In every case you can type the calendar ID instead.

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

Path Parameters

id
string<uuid>
required
resource
enum<string>
required
Available options:
calendars

Response

The account's choices.

resource
enum<string>
required
Available options:
calendars
data
object[]
required