API

Binary

Operations

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

Method Route SDK operation Returns
POST /api/v1/organizations/{organization_id}/verify/binaries/{id}/archive create Safe project-scoped binary response
POST /api/v1/organizations/{organization_id}/verify/binaries create Safe project-scoped binary response
GET /api/v1/organizations/{organization_id}/verify/binaries list Safe project-scoped binary response
GET /api/v1/organizations/{organization_id}/verify/binaries/{id} load Safe project-scoped binary response

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:

binarys, err := client.Binary(nil).List(map[string]any{"organization_id": "example", "project_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(binarys)
binary, err := client.Binary(nil).Load(map[string]any{"id": "example_id", "organization_id": "example", "project_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(binary)
created, err := client.Binary(nil).Create(map[string]any{"organization_id": "example", "project_id": "example", "download_url": "example", "executable": "example", "format": "example", "idempotency_key": "example", "name": "example", "slug": "example", "window_title": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)

Lua

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

local binarys, err = client:Binary():list({ organization_id = "example", project_id = "example" })
local binary, err = client:Binary():load({ id = "example_id", organization_id = "example", project_id = "example" })
local created, err = client:Binary():create({ organization_id = "example", project_id = "example", download_url = "example", executable = "example", format = "example", idempotency_key = "example", name = "example", slug = "example", window_title = "example" })

PHP

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

$binarys = $client->Binary()->list(["organization_id" => "example", "project_id" => "example"]);
$binary = $client->Binary()->load(["id" => "example_id", "organization_id" => "example", "project_id" => "example"]);
$created = $client->Binary()->create(["organization_id" => "example", "project_id" => "example", "download_url" => "example", "executable" => "example", "format" => "example", "idempotency_key" => "example", "name" => "example", "slug" => "example", "window_title" => "example"]);

Python

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

binarys = client.Binary().list({"organization_id": "example", "project_id": "example"})
binary = client.Binary().load({"id": "example_id", "organization_id": "example", "project_id": "example"})
created = client.Binary().create({ "organization_id": "example", "project_id": "example", "download_url": "example", "executable": "example", "format": "example", "idempotency_key": "example", "name": "example", "slug": "example", "window_title": "example" })

Ruby

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

binarys = client.Binary.list({ "organization_id" => "example", "project_id" => "example" })
binary = client.Binary.load({ "id" => "example_id", "organization_id" => "example", "project_id" => "example" })
created = client.Binary.create({ "organization_id" => "example", "project_id" => "example", "download_url" => "example", "executable" => "example", "format" => "example", "idempotency_key" => "example", "name" => "example", "slug" => "example", "window_title" => "example" })

TypeScript

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

const binarys = await client.Binary().list({ organization_id: "example", project_id: "example" })
const binary = await client.Binary().load({ id: "example_id", organization_id: "example", project_id: "example" })
const created = await client.Binary().create({ organization_id: "example", project_id: "example", download_url: "example", executable: "example", format: "example", idempotency_key: "example", name: "example", slug: "example", window_title: "example" })

Fields

Field Type Required Description
accepts_versions boolean Yes Accepts Versions
arch any No Arch
archived_at one,string,null Yes Archived At
binary object Yes Binary
created_at string Yes Created At
download_secret string No Download Secret
download_url string Yes Download Url
executable string Yes Executable
format any Yes Format
id string Yes Id
idempotency_key string Yes Idempotency Key
latest_version any Yes Latest Version
launch_args array No Launch Args
name string Yes Name
needs_refresh boolean Yes Needs Refresh
operation object Yes Operation
pagination object Yes Pagination
permissions object Yes Permissions
platform any No Platform
project_id string Yes Project Id
sha256 string No Sha256
slug string Yes Slug
version object Yes Version
version_defaults any No Version Defaults
versions array Yes Versions
window_title string Yes Window Title

create

POST /api/v1/organizations/{organization_id}/verify/binaries/{id}/archive

Operation ID: archive_api_v1_binary.

Authentication: bearer token (bearerAuth).

Parameters

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

Request body

application/json

The request body is object.

Responses

200: Safe project-scoped binary response

application/json

Property Type Required Description
binary object Yes
binary.accepts_versions boolean Yes
binary.archived_at string,null Yes
binary.created_at string Yes
binary.id string Yes
binary.latest_version object or null Yes
binary.name string Yes
binary.project_id string Yes
binary.slug string Yes
permissions object Yes
permissions.manage boolean Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

POST /api/v1/organizations/{organization_id}/verify/binaries

Operation ID: post_api_v1_organizations_organization_id_verify_binaries.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
project_id query string Yes

Request body

application/json

Property Type Required Description
arch any No
download_secret string No
download_url string Yes
executable string Yes
format enum: deb, tar.gz Yes
idempotency_key string Yes
launch_args array of string No
name string Yes
platform any No
sha256 string No
slug string Yes
window_title string Yes

Responses

200: Safe project-scoped binary response

application/json

Property Type Required Description
binary object Yes
binary.accepts_versions boolean Yes
binary.archived_at string,null Yes
binary.created_at string Yes
binary.id string Yes
binary.latest_version object or null Yes
binary.name string Yes
binary.project_id string Yes
binary.slug string Yes
operation object Yes
operation.base_image string Yes
operation.failure_phase string,null Yes
operation.id string Yes
operation.image_digest string,null Yes
operation.image_reference string,null Yes
operation.installer_version string Yes
operation.ready_at string,null Yes
operation.receipt object,null Yes
operation.safe_error string,null Yes
operation.started_at string,null Yes
operation.status enum: queued, acquiring, preparing, ready, failed, canceled Yes
version object Yes
version.cancelable boolean Yes
version.configuration object Yes
version.configuration.arch any Yes
version.configuration.executable string Yes
version.configuration.format enum: deb, tar.gz Yes
version.configuration.launch_args array of string Yes
version.configuration.platform any Yes
version.configuration.window_title string Yes
version.configuration_digest string Yes
version.created_at string Yes
version.deletable boolean Yes
version.environment_uses array of object Yes
version.environment_uses[].id string Yes
version.environment_uses[].name string Yes
version.id string Yes
version.package_sha256 string,null Yes
version.package_size integer,null Yes
version.preparations array of object Yes
version.preparations[].base_image string Yes
version.preparations[].failure_phase string,null Yes
version.preparations[].id string Yes
version.preparations[].image_digest string,null Yes
version.preparations[].image_reference string,null Yes
version.preparations[].installer_version string Yes
version.preparations[].ready_at string,null Yes
version.preparations[].receipt object,null Yes
version.preparations[].safe_error string,null Yes
version.preparations[].started_at string,null Yes
version.preparations[].status enum: queued, acquiring, preparing, ready, failed, canceled Yes
version.retryable boolean Yes
version.status enum: queued, acquiring, preparing, ready, failed, canceled Yes
201: Safe project-scoped binary response

application/json

Property Type Required Description
binary object Yes
binary.accepts_versions boolean Yes
binary.archived_at string,null Yes
binary.created_at string Yes
binary.id string Yes
binary.latest_version object or null Yes
binary.name string Yes
binary.project_id string Yes
binary.slug string Yes
operation object Yes
operation.base_image string Yes
operation.failure_phase string,null Yes
operation.id string Yes
operation.image_digest string,null Yes
operation.image_reference string,null Yes
operation.installer_version string Yes
operation.ready_at string,null Yes
operation.receipt object,null Yes
operation.safe_error string,null Yes
operation.started_at string,null Yes
operation.status enum: queued, acquiring, preparing, ready, failed, canceled Yes
version object Yes
version.cancelable boolean Yes
version.configuration object Yes
version.configuration.arch any Yes
version.configuration.executable string Yes
version.configuration.format enum: deb, tar.gz Yes
version.configuration.launch_args array of string Yes
version.configuration.platform any Yes
version.configuration.window_title string Yes
version.configuration_digest string Yes
version.created_at string Yes
version.deletable boolean Yes
version.environment_uses array of object Yes
version.environment_uses[].id string Yes
version.environment_uses[].name string Yes
version.id string Yes
version.package_sha256 string,null Yes
version.package_size integer,null Yes
version.preparations array of object Yes
version.preparations[].base_image string Yes
version.preparations[].failure_phase string,null Yes
version.preparations[].id string Yes
version.preparations[].image_digest string,null Yes
version.preparations[].image_reference string,null Yes
version.preparations[].installer_version string Yes
version.preparations[].ready_at string,null Yes
version.preparations[].receipt object,null Yes
version.preparations[].safe_error string,null Yes
version.preparations[].started_at string,null Yes
version.preparations[].status enum: queued, acquiring, preparing, ready, failed, canceled Yes
version.retryable boolean Yes
version.status enum: queued, acquiring, preparing, ready, failed, canceled Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

list

GET /api/v1/organizations/{organization_id}/verify/binaries

Operation ID: api_v1_binaries.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
project_id query string Yes
page query integer No

Responses

200: Safe project-scoped binary response

application/json

Property Type Required Description
binaries array of object Yes
binaries[].accepts_versions boolean Yes
binaries[].archived_at string,null Yes
binaries[].created_at string Yes
binaries[].id string Yes
binaries[].latest_version object or null Yes
binaries[].name string Yes
binaries[].project_id string Yes
binaries[].slug string Yes
needs_refresh boolean Yes
pagination object Yes
pagination.count integer Yes
pagination.last integer Yes
pagination.limit integer Yes
pagination.next integer Yes
pagination.page integer Yes
pagination.previous integer Yes
pagination.series array of integer or string Yes
permissions object Yes
permissions.manage boolean Yes
project object Yes
project.archived_at string,null Yes
project.demo boolean Yes A signup's demo project, copied from the Acme Notes template. Archiving removes it.
project.execution_mode enum: website, computer_use Yes
project.icon_url string,null Yes
project.id string Yes
project.lock_version integer Yes
project.name string Yes
project.slug string Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

load

GET /api/v1/organizations/{organization_id}/verify/binaries/{id}

Operation ID: api_v1_binary.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
id path string Yes
project_id query string Yes
page query integer No

Responses

200: Safe project-scoped binary response

application/json

Property Type Required Description
binary object Yes
binary.accepts_versions boolean Yes
binary.archived_at string,null Yes
binary.created_at string Yes
binary.id string Yes
binary.latest_version object or null Yes
binary.name string Yes
binary.project_id string Yes
binary.slug string Yes
needs_refresh boolean Yes
pagination object Yes
pagination.count integer Yes
pagination.last integer Yes
pagination.limit integer Yes
pagination.next integer Yes
pagination.page integer Yes
pagination.previous integer Yes
pagination.series array of integer or string Yes
permissions object Yes
permissions.manage boolean Yes
version_defaults object or null No
versions array of object Yes
versions[].cancelable boolean Yes
versions[].configuration object Yes
versions[].configuration.arch any Yes
versions[].configuration.executable string Yes
versions[].configuration.format enum: deb, tar.gz Yes
versions[].configuration.launch_args array of string Yes
versions[].configuration.platform any Yes
versions[].configuration.window_title string Yes
versions[].configuration_digest string Yes
versions[].created_at string Yes
versions[].deletable boolean Yes
versions[].environment_uses array of object Yes
versions[].environment_uses[].id string Yes
versions[].environment_uses[].name string Yes
versions[].id string Yes
versions[].package_sha256 string,null Yes
versions[].package_size integer,null Yes
versions[].preparations array of object Yes
versions[].preparations[].base_image string Yes
versions[].preparations[].failure_phase string,null Yes
versions[].preparations[].id string Yes
versions[].preparations[].image_digest string,null Yes
versions[].preparations[].image_reference string,null Yes
versions[].preparations[].installer_version string Yes
versions[].preparations[].ready_at string,null Yes
versions[].preparations[].receipt object,null Yes
versions[].preparations[].safe_error string,null Yes
versions[].preparations[].started_at string,null Yes
versions[].preparations[].status enum: queued, acquiring, preparing, ready, failed, canceled Yes
versions[].retryable boolean Yes
versions[].status enum: queued, acquiring, preparing, ready, failed, canceled Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway