API

AgentWebPreview

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
GET /api/v1/agent_web_previews load Optional public metadata, or image bytes when asset is supplied

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

agent_web_preview, err := client.AgentWebPreview(nil).Load(map[string]any{"token": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(agent_web_preview)

Lua

Construct client as shown in the Lua setup, then call the operations:

local agent_web_preview, err = client:AgentWebPreview():load({ token = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$agent_web_preview = $client->AgentWebPreview()->load(["token" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

agent_web_preview = client.AgentWebPreview().load({"token": "example"})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

agent_web_preview = client.AgentWebPreview.load({ "token" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const agent_web_preview = await client.AgentWebPreview().load({ token: "example" })

Fields

Field Type Required Description
description one,string,null Yes Description
icon_url one,string,null Yes Icon Url
image_url one,string,null Yes Image Url
title one,string,null Yes Title

load

GET /api/v1/agent_web_previews

Operation ID: api_v1_agent_web_previews.

Authentication: not required.

Parameters

Parameter In Type Required Description
token query string Yes Expiring capability issued in an authorized agent transcript.
asset query enum: icon, image No

Responses

200: Optional public metadata, or image bytes when asset is supplied

application/json

Property Type Required Description
description string Yes
icon_url string (uri) Yes
image_url string (uri) Yes
title string Yes

image/png

The response is string (binary).

image/jpeg

The response is string (binary).

image/webp

The response is string (binary).

image/vnd.microsoft.icon

The response is string (binary).

401: Unauthorized
403: Forbidden
404: Invalid or expired capability, or unavailable image
422: Unprocessable entity
429: Too many preview requests from this caller
502: Bad gateway
503: Preview fetch capacity is busy; retry later