API

AgentFile

Operations

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

Method Route SDK operation Returns
GET /api/v1/organizations/{organization_id}/agents/{id}/spark/relay/files/{file_id} load Receipt-bound file download

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_file, err := client.AgentFile(nil).Load(map[string]any{"agent_id": "example", "id": "example_id", "organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(agent_file)

Lua

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

local agent_file, err = client:AgentFile():load({ agent_id = "example", id = "example_id", organization_id = "example" })

PHP

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

$agent_file = $client->AgentFile()->load(["agent_id" => "example", "id" => "example_id", "organization_id" => "example"]);

Python

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

agent_file = client.AgentFile().load({"agent_id": "example", "id": "example_id", "organization_id": "example"})

Ruby

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

agent_file = client.AgentFile.load({ "agent_id" => "example", "id" => "example_id", "organization_id" => "example" })

TypeScript

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

const agent_file = await client.AgentFile().load({ agent_id: "example", id: "example_id", organization_id: "example" })

Fields

Field Type Required Description
content_type string Yes Content Type
download_url string Yes Download Url
filename string Yes Filename
id string Yes Id
size_bytes integer Yes Size Bytes

load

GET /api/v1/organizations/{organization_id}/agents/{id}/spark/relay/files/{file_id}

Operation ID: get_api_v1_organizations_organization_id_agents_id_spark_relay_files_file_id_.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
id path string Yes
file_id path string Yes

Responses

200: Receipt-bound file download

application/json

Property Type Required Description
content_type string Yes
download_url string Yes
filename string Yes
id string Yes
size_bytes integer Yes
403: Current requester access required
404: Agent unavailable
422: Invalid file selection
503: File unavailable