API

AgentVerifyProject

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/verify_projects list Granted Verify projects, choices and optimistic version
PUT /api/v1/organizations/{organization_id}/agents/{id}/spark/verify_projects update Granted Verify projects, choices and optimistic version

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_verify_projects, err := client.AgentVerifyProject(nil).List(map[string]any{"agent_id": "example", "organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(agent_verify_projects)
updated, err := client.AgentVerifyProject(nil).Update(map[string]any{"agent_id": "example", "organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(updated)

Lua

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

local agent_verify_projects, err = client:AgentVerifyProject():list({ agent_id = "example", organization_id = "example" })
local updated, err = client:AgentVerifyProject():update({ agent_id = "example", organization_id = "example" })

PHP

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

$agent_verify_projects = $client->AgentVerifyProject()->list(["agent_id" => "example", "organization_id" => "example"]);
$updated = $client->AgentVerifyProject()->update(["agent_id" => "example", "organization_id" => "example"]);

Python

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

agent_verify_projects = client.AgentVerifyProject().list({"agent_id": "example", "organization_id": "example"})
updated = client.AgentVerifyProject().update({"agent_id": "example", "organization_id": "example"})

Ruby

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

agent_verify_projects = client.AgentVerifyProject.list({ "agent_id" => "example", "organization_id" => "example" })
updated = client.AgentVerifyProject.update({ "agent_id" => "example", "organization_id" => "example" })

TypeScript

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

const agent_verify_projects = await client.AgentVerifyProject().list({ agent_id: "example", organization_id: "example" })
const updated = await client.AgentVerifyProject().update({ agent_id: "example", organization_id: "example" })

Fields

Field Type Required Description
available boolean Yes Whether Verify is on for the organization; hide Verify access when false.
can_manage boolean Yes Whether the viewer can manage the agent and is a Verify admin.
expected_version integer Yes Expected Version
id string Yes Id
name string Yes Name
project_choices array Yes Every granted project, then other Verify projects up to the choice limit.
project_choices_truncated boolean Yes Project Choices Truncated
slug string Yes Slug
verify_projects array Yes Verify Projects
version integer Yes Version

list

GET /api/v1/organizations/{organization_id}/agents/{id}/spark/verify_projects

Operation ID: spark_verify_projects_api_v1_organization_persistent_agent.

Authentication: bearer token (bearerAuth).

Parameters

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

Responses

200: Granted Verify projects, choices and optimistic version

application/json

Property Type Required Description
available boolean Yes Whether Verify is on for the organization; hide Verify access when false.
can_manage boolean Yes Whether the viewer can manage the agent and is a Verify admin.
project_choices array of object Yes Every granted project, then other Verify projects up to the choice limit.
project_choices[].id string Yes
project_choices[].name string Yes
project_choices[].slug string Yes
project_choices_truncated boolean Yes
verify_projects array of object Yes
verify_projects[].id string Yes
verify_projects[].name string Yes
verify_projects[].slug string Yes
version integer Yes
401: Unauthorized
403: Agent access required
404: Agent not found or disabled
422: Unprocessable entity
502: Bad gateway

update

PUT /api/v1/organizations/{organization_id}/agents/{id}/spark/verify_projects

Operation ID: put_api_v1_organizations_organization_id_agents_id_spark_verify_projects.

Authentication: bearer token (bearerAuth).

Parameters

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

Request body

application/json

Property Type Required Description
expected_version integer Yes
verify_projects array of string Yes

Responses

200: Granted Verify projects, choices and optimistic version

application/json

Property Type Required Description
available boolean Yes Whether Verify is on for the organization; hide Verify access when false.
can_manage boolean Yes Whether the viewer can manage the agent and is a Verify admin.
project_choices array of object Yes Every granted project, then other Verify projects up to the choice limit.
project_choices[].id string Yes
project_choices[].name string Yes
project_choices[].slug string Yes
project_choices_truncated boolean Yes
verify_projects array of object Yes
verify_projects[].id string Yes
verify_projects[].name string Yes
verify_projects[].slug string Yes
version integer Yes
401: Unauthorized
403: Agent management and Verify admin authority required
404: Agent not found or disabled
409: Configuration changed; read current version
422: Invalid project selection
502: Bad gateway