API

OrganizationApp

Operations

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

Method Route SDK operation Returns
GET /api/v1/spark/organizations/{organization_id}/apps load Team app catalog or agent context
DELETE /api/v1/spark/organizations/{organization_id}/apps/{name}/install remove Success
PUT /api/v1/spark/organizations/{organization_id}/apps/{name}/install update Success

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:

organization_app, err := client.OrganizationApp(nil).Load(map[string]any{"organization_id": "example", "native_agent_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(organization_app)

Lua

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

local organization_app, err = client:OrganizationApp():load({ organization_id = "example", native_agent_id = "example" })

PHP

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

$organization_app = $client->OrganizationApp()->load(["organization_id" => "example", "native_agent_id" => "example"]);

Python

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

organization_app = client.OrganizationApp().load({"organization_id": "example", "native_agent_id": "example"})

Ruby

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

organization_app = client.OrganizationApp.load({ "organization_id" => "example", "native_agent_id" => "example" })

TypeScript

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

const organization_app = await client.OrganizationApp().load({ organization_id: "example", native_agent_id: "example" })

Fields

Field Type Required Description
id string No Id

load

GET /api/v1/spark/organizations/{organization_id}/apps

Operation ID: get_api_v1_spark_organizations_organization_id_apps.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
native_agent_id query string Yes The calling agent's native id
installed query boolean No List manual installs when context is omitted
context query boolean No Return a bounded list of recently published and manually installed team apps for agent context

Responses

200: Team app catalog or agent context

application/json

The response is object or object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

remove

DELETE /api/v1/spark/organizations/{organization_id}/apps/{name}/install

Operation ID: delete_api_v1_spark_organizations_organization_id_apps_name_install.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
name path string Yes

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

update

PUT /api/v1/spark/organizations/{organization_id}/apps/{name}/install

Operation ID: put_api_v1_spark_organizations_organization_id_apps_name_install.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
name path string Yes

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway