VerifyEnvironment
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/environments |
create |
Existing environment returned for an idempotent replay |
GET |
/api/v1/organizations/{organization_id}/verify/environments/{id} |
load |
Combined Verify environment detail snapshot |
GET |
/api/v1/organizations/{organization_id}/verify/environments |
load |
Success |
PATCH |
/api/v1/organizations/{organization_id}/verify/environments/{id} |
patch |
Updated Verify environment |
DELETE |
/api/v1/organizations/{organization_id}/verify/environments/{id} |
remove |
Success |
DELETE |
/api/v1/organizations/{organization_id}/verify/environments/{verify_environment_id}/first_run |
remove |
Success |
PUT |
/api/v1/organizations/{organization_id}/verify/environments/{id} |
update |
Success |
PUT |
/api/v1/organizations/{organization_id}/verify/environments/{verify_environment_id}/first_run |
update |
The saved choice and, once started, the discovery to open |
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:
verify_environment, err := client.VerifyEnvironment(nil).Load(map[string]any{"organization_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(verify_environment)
created, err := client.VerifyEnvironment(nil).Create(map[string]any{"organization_id": "example", "slug": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(created)
updated, err := client.VerifyEnvironment(nil).Update(map[string]any{"id": "example_id", "organization_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(updated)
patched, err := client.VerifyEnvironment(nil).Patch(map[string]any{"id": "example_id", "organization_id": "example", "allowed_actions": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(patched)
removed, err := client.VerifyEnvironment(nil).Remove(map[string]any{"id": "example_id", "organization_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(removed)
Lua
Construct client as shown in the Lua setup, then call the operations:
local verify_environment, err = client:VerifyEnvironment():load({ organization_id = "example" })
local created, err = client:VerifyEnvironment():create({ organization_id = "example", slug = "example" })
local updated, err = client:VerifyEnvironment():update({ id = "example_id", organization_id = "example" })
local patched, err = client:VerifyEnvironment():patch({ id = "example_id", organization_id = "example", allowed_actions = "example" })
local removed, err = client:VerifyEnvironment():remove({ id = "example_id", organization_id = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$verify_environment = $client->VerifyEnvironment()->load(["organization_id" => "example"]);
$created = $client->VerifyEnvironment()->create(["organization_id" => "example", "slug" => "example"]);
$updated = $client->VerifyEnvironment()->update(["id" => "example_id", "organization_id" => "example"]);
$patched = $client->VerifyEnvironment()->patch(["id" => "example_id", "organization_id" => "example", "allowed_actions" => "example"]);
$client->VerifyEnvironment()->remove(["id" => "example_id", "organization_id" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
verify_environment = client.VerifyEnvironment().load({"organization_id": "example"})
created = client.VerifyEnvironment().create({ "organization_id": "example", "slug": "example" })
updated = client.VerifyEnvironment().update({"id": "example_id", "organization_id": "example"})
patched = client.VerifyEnvironment().patch({"id": "example_id", "organization_id": "example", "allowed_actions": "example"})
client.VerifyEnvironment().remove({"id": "example_id", "organization_id": "example"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
verify_environment = client.VerifyEnvironment.load({ "organization_id" => "example" })
created = client.VerifyEnvironment.create({ "organization_id" => "example", "slug" => "example" })
updated = client.VerifyEnvironment.update({ "id" => "example_id", "organization_id" => "example" })
patched = client.VerifyEnvironment.patch({ "id" => "example_id", "organization_id" => "example", "allowed_actions" => "example" })
client.VerifyEnvironment.remove({ "id" => "example_id", "organization_id" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const verify_environment = await client.VerifyEnvironment().load({ organization_id: "example" })
const created = await client.VerifyEnvironment().create({ organization_id: "example", slug: "example" })
const updated = await client.VerifyEnvironment().update({ id: "example_id", organization_id: "example" })
const patched = await client.VerifyEnvironment().patch({ id: "example_id", organization_id: "example", allowed_actions: "example" })
await client.VerifyEnvironment().remove({ id: "example_id", organization_id: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
active_revision_id |
one,string,null |
Yes | Active Revision Id |
agent_sign_up_available |
boolean |
Yes | Whether the signed-in admin can have Verify's agent create a test user for the included Deep Scan (POST .../first_run/test_user). |
allowed_actions |
string |
Yes | read_only only looks around; writes may create, change and delete data. |
billing |
object |
Yes | Billing |
cleanup |
array |
Yes | Cleanup |
connection |
string |
Yes | Connection |
created_at |
string |
Yes | Created At |
default_policy |
object |
No | Default Policy |
default_policy_json |
object |
Yes | Default Policy Json |
discovery_defaults |
object |
Yes | Discovery Defaults |
environment |
object |
Yes | Environment |
exploration_accounts |
array |
No | Exploration Accounts |
explorations |
array |
No | Explorations |
first_run |
any |
No | First Run |
hosted_app_id |
one,string,null |
Yes | Hosted App Id |
id |
string |
Yes | Id |
imessage_number |
one,string,null |
Yes | International destination number; blank or null clears it on an added environment. |
included_deep_scan |
boolean |
Yes | Whether this app still gets the signed-in user's included Deep Scan (verify_onboarding_deep_scan) once it has a test account or is marked as having no sign-in, so setup asks for one before anything else. |
lock_version |
integer |
Yes | Lock Version |
managed_google_available |
boolean |
Yes | Whether the managed Google account can be offered for this app. |
managed_google_email |
string |
Yes | Managed Google Email |
messaging_tester_number |
one,string,null |
No | One configured tester number. |
name |
string |
Yes | Optional for a website target; defaults to its hostname. |
network_connections |
array |
Yes | Network Connections |
onboarding_discovery |
any |
No | Onboarding Discovery |
organization_id |
string |
Yes | Organization Id |
pending_accounts |
array |
No | Credentials on a Composal address still waiting for the password the customer chose at signup. |
permissions |
object |
Yes | Permissions |
project_id |
one,string,null |
Yes | Owning project. |
repository_id |
one,string,null |
Yes | Repository Id |
revisions |
array |
Yes | Revisions |
setup_discovery_id |
one,string,null |
No | Existing discovery to resume after setup or Checkout, selected within this environment. |
sign_in_check_available |
boolean |
Yes | Whether a test account's live sign-in check can run on this app. |
slug |
string |
Yes | Slug |
status |
string |
Yes | Status |
target_kind |
one,string,null |
Yes | Target Kind |
target_url |
one,string,null |
Yes | Target Url |
test_accounts |
object |
Yes | Test Accounts |
updated_at |
string |
Yes | Updated At |
verify_network_connection_id |
one,string,null |
Yes | Verify Network Connection Id |
version |
integer |
No | Required for target or tester changes; use lock_version from the environment. |
create
POST /api/v1/organizations/{organization_id}/verify/environments
Operation ID: post_api_v1_organizations_organization_id_verify_environments.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
Idempotency-Key |
header |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
allowed_actions |
enum: read_only, writes |
No | read_only only looks around; writes may create, change and delete data. Defaults to read_only for production and writes otherwise. |
default_policy |
object |
No | |
imessage_number |
string |
No | International destination number; blank or null clears it on an added environment. |
messaging_tester_number |
string |
No | One configured tester number. Copied to each preview; may be overridden locally before preparation. |
name |
string |
No | Optional for a website target; defaults to its hostname. Required for a draft environment without a target URL. |
project_id |
string |
No | Project slug or public ID. When omitted, creates a separate project for this environment. |
repository_id |
string |
No | |
slug |
string |
Yes | |
target_kind |
enum: production, staging, preview, development, custom |
No | |
target_url |
string (uri) |
No |
Responses
200: Existing environment returned for an idempotent replay
application/json
| Property | Type | Required | Description |
|---|---|---|---|
active_revision_id |
string |
Yes | |
allowed_actions |
enum: read_only, writes |
Yes | |
connection |
enum: managed, external |
Yes | |
created_at |
string (date-time) |
Yes | |
default_policy_json |
object |
Yes | |
hosted_app_id |
string |
Yes | |
id |
string |
Yes | |
imessage_number |
string |
Yes | International destination number; blank or null clears it on an added environment. |
lock_version |
integer |
Yes | |
name |
string |
Yes | |
organization_id |
string |
Yes | |
project_id |
string |
Yes | Owning project. Null only for unassigned legacy environments. |
repository_id |
string |
Yes | |
slug |
string |
Yes | |
status |
string |
Yes | |
target_kind |
string |
Yes | |
target_url |
string (uri) |
Yes | |
updated_at |
string (date-time) |
Yes | |
verify_network_connection_id |
string |
Yes |
201: Verify environment created
application/json
| Property | Type | Required | Description |
|---|---|---|---|
active_revision_id |
string |
Yes | |
allowed_actions |
enum: read_only, writes |
Yes | |
connection |
enum: managed, external |
Yes | |
created_at |
string (date-time) |
Yes | |
default_policy_json |
object |
Yes | |
hosted_app_id |
string |
Yes | |
id |
string |
Yes | |
imessage_number |
string |
Yes | International destination number; blank or null clears it on an added environment. |
lock_version |
integer |
Yes | |
name |
string |
Yes | |
organization_id |
string |
Yes | |
project_id |
string |
Yes | Owning project. Null only for unassigned legacy environments. |
repository_id |
string |
Yes | |
slug |
string |
Yes | |
status |
string |
Yes | |
target_kind |
string |
Yes | |
target_url |
string (uri) |
Yes | |
updated_at |
string (date-time) |
Yes | |
verify_network_connection_id |
string |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
load
GET /api/v1/organizations/{organization_id}/verify/environments/{id}
Operation ID: api_v1_verify_environment.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
id |
path |
string |
Yes | |
project_id |
query |
string |
No |
Responses
200: Combined Verify environment detail snapshot
application/json
| Property | Type | Required | Description |
|---|---|---|---|
agent_sign_up_available |
boolean |
Yes | Whether the signed-in admin can have Verify's agent create a test user for the included Deep Scan (POST .../first_run/test_user). False once the agent stopped on something only the person can resolve. |
billing |
object |
Yes | |
billing.can_manage |
boolean |
Yes | |
billing.cardless |
boolean |
Yes | |
billing.checkout_available |
boolean |
Yes | |
billing.checkout_blocker |
string |
Yes | |
billing.checkout_required |
boolean |
Yes | |
billing.confirmed |
boolean |
Yes | |
billing.coupon_entry_available |
boolean |
No | Enter a legacy package coupon before opening Stripe. Prepaid packages accept promotion codes in Stripe instead. |
billing.custom_pricing_available |
boolean |
No | Whether the plan picker includes a Custom contact option. |
billing.organization_id |
string |
Yes | |
billing.package |
object |
Yes | |
billing.package_options |
array of object |
No | Ready offers for initial enrollment. Omitted by API versions predating plan selection during a rolling release. |
billing.package_options[].addons |
array of object |
Yes | |
billing.package_options[].addons[].addon_key |
string |
Yes | |
billing.package_options[].addons[].max_quantity |
integer,null |
No | |
billing.package_options[].addons[].monthly_price_cents |
integer |
Yes | |
billing.package_options[].addons[].name |
string |
Yes | |
billing.package_options[].addons[].purchasable |
boolean |
No | Whether new purchases are available. Older API releases omit this field; absence preserves purchase availability. |
billing.package_options[].addons[].raises_meter_key |
string,null |
Yes | |
billing.package_options[].addons[].raises_quantity |
number |
Yes | |
billing.package_options[].addons[].raises_roder_concurrency |
integer |
Yes | |
billing.package_options[].base_price_cents |
integer |
Yes | |
billing.package_options[].billing_interval |
enum: month, year |
Yes | |
billing.package_options[].billing_policy |
enum: metered, prepaid_browser |
Yes | |
billing.package_options[].ci_included_spend_cents |
integer |
No | Monthly USD credit in cents shared by all CI charges, including runners, cache, storage and add-ons; replaces CI unit allowances when positive. Omitted by older API releases. |
billing.package_options[].currency |
string |
Yes | |
billing.package_options[].key |
string |
Yes | |
billing.package_options[].max_seats |
integer,null |
No | |
billing.package_options[].name |
string |
Yes | |
billing.package_options[].pay_as_you_go_enabled |
boolean |
Yes | |
billing.package_options[].rates |
array of object |
Yes | |
billing.package_options[].rates[].dimension_value |
string,null |
No | |
billing.package_options[].rates[].hard_cap |
number,null |
No | |
billing.package_options[].rates[].included_per_organization |
number |
Yes | |
billing.package_options[].rates[].included_per_seat |
number |
Yes | |
billing.package_options[].rates[].meter_key |
string |
Yes | |
billing.package_options[].rates[].unit |
string |
Yes | |
billing.package_options[].rates[].unit_price_dollars |
string |
Yes | Decimal string |
billing.package_options[].rates[].unit_price_nanodollars |
integer |
Yes | |
billing.package_options[].revision |
integer |
Yes | |
billing.package_options[].roder_daily_run_limit |
integer |
No | |
billing.package_options[].roder_run_concurrency_limit |
integer |
No | |
billing.package_options[].seat_price_cents |
integer |
Yes | |
billing.package_options[].trial_days |
integer |
Yes | |
billing.package_options[].visibility |
enum: public, custom |
Yes | |
billing.package_selection_customized |
boolean |
No | |
billing.plan_selection_available |
boolean |
No | Whether to show the plan picker instead of continuing with an accepted package. |
billing.prepaid |
object or null |
Yes | |
billing.prepaid_cents_per_minute |
integer,null |
Yes | |
billing.recurring_price_cents |
integer |
Yes | |
billing.seat_total_cents |
integer |
Yes | |
billing.seats |
integer |
Yes | |
billing.state |
enum: none, trialing, active, past_due, suspended, exempt |
Yes | |
billing.subscription |
object |
Yes | |
billing.trial_credit_cents |
integer |
Yes | |
cleanup |
array of object |
Yes | |
cleanup[].attempts |
integer |
Yes | |
cleanup[].manual_action_reason |
string |
Yes | |
cleanup[].next_retry_at |
string (date-time) |
Yes | |
cleanup[].resource_kind |
string |
Yes | |
cleanup[].resource_reference |
string |
Yes | |
cleanup[].revision_id |
string |
No | |
cleanup[].state |
string |
Yes | |
discovery_defaults |
object |
Yes | |
discovery_defaults.concurrency |
integer |
Yes | |
discovery_defaults.max_seconds |
integer |
Yes | Default discovery duration in seconds. |
discovery_defaults.max_seconds_limit |
integer |
No | Maximum explicitly requested discovery duration in seconds. |
discovery_defaults.max_testers |
integer |
Yes | |
environment |
object |
Yes | |
environment.active_revision_id |
string |
Yes | |
environment.allowed_actions |
enum: read_only, writes |
Yes | |
environment.connection |
enum: managed, external |
Yes | |
environment.created_at |
string (date-time) |
Yes | |
environment.default_policy_json |
object |
Yes | |
environment.hosted_app_id |
string |
Yes | |
environment.id |
string |
Yes | |
environment.imessage_number |
string |
Yes | International destination number; blank or null clears it on an added environment. |
environment.lock_version |
integer |
Yes | |
environment.name |
string |
Yes | |
environment.organization_id |
string |
Yes | |
environment.project_id |
string |
Yes | Owning project. Null only for unassigned legacy environments. |
environment.repository_id |
string |
Yes | |
environment.slug |
string |
Yes | |
environment.status |
string |
Yes | |
environment.target_kind |
string |
Yes | |
environment.target_url |
string (uri) |
Yes | |
environment.updated_at |
string (date-time) |
Yes | |
environment.verify_network_connection_id |
string |
Yes | |
exploration_accounts |
array of object |
No | |
exploration_accounts[].id |
string |
Yes | |
exploration_accounts[].login_method |
string |
Yes | |
exploration_accounts[].managed |
boolean |
Yes | |
exploration_accounts[].name |
string |
Yes | |
exploration_accounts[].selectable |
boolean |
Yes | Whether setup offers it among the saved accounts to pick. Not for a managed Google account, which setup offers on its own, or for a test user Verify's agent made that has not signed up to the app yet. One whose latest sign-up ended without signing up is left out of the list. |
exploration_accounts[].sign_in_check |
object |
Yes | The account's most recent sign-in check today, if any. |
exploration_accounts[].sign_in_check.id |
string |
Yes | |
exploration_accounts[].sign_in_check.outcome |
enum: running, waiting, verified, settings_changed, blocked, firewall_blocked, ... |
Yes | What a sign-in check established. waiting: the agent asked the person something and waits in its browser. verified: the agent signed in with the account as saved now. settings_changed: it signed in, but the account changed afterwards. blocked: it could not sign in. firewall_blocked: a firewall or bot challenge kept its browser from the app. browser_failed: its browser never ran. stopped: the person stopped it. |
exploration_accounts[].sign_in_check.reason |
string |
Yes | Why a waiting, blocked or stopped check needs the person, in the agent's words: its question or first blocker. Null otherwise. |
exploration_accounts[].sign_in_verified |
boolean |
Yes | A sign-in check confirmed this account signs in with its current settings. |
explorations |
array of object |
No | |
explorations[].created_at |
string |
Yes | |
explorations[].goal |
string |
Yes | |
explorations[].id |
string |
Yes | |
explorations[].status |
string |
Yes | |
first_run |
object |
No | |
included_deep_scan |
boolean |
Yes | Whether this app still gets the signed-in user's included Deep Scan (verify_onboarding_deep_scan) once it has a test account or is marked as having no sign-in, so setup asks for one before anything else. |
managed_google_available |
boolean |
Yes | Whether the managed Google account can be offered for this app. |
managed_google_email |
string |
Yes | |
network_connections |
array of object |
Yes | |
network_connections[].created_at |
string (date-time) |
Yes | |
network_connections[].device_tag |
string |
Yes | |
network_connections[].id |
string |
Yes | |
network_connections[].name |
string |
Yes | |
network_connections[].oauth_client_id |
string |
Yes | |
network_connections[].provider |
enum: tailscale, aws_client_vpn |
Yes | |
network_connections[].status |
enum: active, disabled |
Yes | |
network_connections[].updated_at |
string (date-time) |
Yes | |
onboarding_discovery |
object |
No | |
pending_accounts |
array of object |
No | Credentials on a Composal address still waiting for the password the customer chose at signup. |
pending_accounts[].browser_authentication |
object |
No | |
pending_accounts[].browser_authentication.auth_url |
string |
No | |
pending_accounts[].browser_authentication.client_id |
string |
No | |
pending_accounts[].browser_authentication.expires_at |
string (date-time) |
No | |
pending_accounts[].browser_authentication.issuer_origin |
string |
No | Server-assigned OIDC origin, retained when the credential is edited. Older credentials omit it and retain the legacy issuer. |
pending_accounts[].browser_authentication.kind |
enum: webauthn, browser_session, oidc_identity |
No | |
pending_accounts[].browser_authentication.origin |
string |
No | |
pending_accounts[].browser_authentication.provider_id |
string |
No | |
pending_accounts[].browser_authentication.rp_id |
string |
No | |
pending_accounts[].composal_address |
string,null |
Yes | The Composal address provisioned for this account, kept while it signs in with another username so turning the address back on reuses it. Null until one is provisioned. |
pending_accounts[].configured |
boolean |
Yes | |
pending_accounts[].credential_keys |
object |
Yes | |
pending_accounts[].credential_keys.browser |
string |
No | |
pending_accounts[].credential_keys.password |
string |
No | |
pending_accounts[].credential_keys.totp |
string |
No | |
pending_accounts[].credential_keys.username |
string |
Yes | |
pending_accounts[].description |
string |
Yes | |
pending_accounts[].email_link_auth_origins |
array of string (uri) |
Yes | |
pending_accounts[].has_inbox |
boolean |
Yes | Whether Composal provisioned this address and can show the mail it receives |
pending_accounts[].id |
string |
Yes | |
pending_accounts[].identity_provider |
object |
Yes | For oidc_identity accounts, the Composal issuer the app trusts and the persona settings it must match |
pending_accounts[].identity_provider.client_id |
string |
Yes | |
pending_accounts[].identity_provider.discovery_url |
string |
Yes | |
pending_accounts[].identity_provider.email_suffix |
string |
Yes | Every persona signs in as <user> followed by this suffix, for example .acme@cred.composal.ai |
pending_accounts[].identity_provider.issuer |
string |
Yes | |
pending_accounts[].identity_provider.persona_user |
string |
Yes | The user part of this persona's address |
pending_accounts[].identity_provider.provider_id |
string |
Yes | |
pending_accounts[].instructions |
string |
Yes | |
pending_accounts[].login_method |
enum: email_password, email_link, google, github, custom, passkey, ... |
Yes | |
pending_accounts[].login_url |
string |
Yes | |
pending_accounts[].managed |
boolean |
Yes | |
pending_accounts[].mfa_enabled |
boolean |
Yes | |
pending_accounts[].name |
string |
Yes | |
pending_accounts[].provider_guidance |
string |
Yes | |
pending_accounts[].sign_in_verified |
boolean |
Yes | A sign-in check confirmed this account signs in with its current settings |
pending_accounts[].sign_in_verified_at |
string (date-time) |
Yes | |
pending_accounts[].status |
string |
Yes | |
pending_accounts[].updated_at |
string (date-time) |
Yes | |
pending_accounts[].username |
string |
Yes | |
permissions |
object |
Yes | |
permissions.knowledge_connections |
boolean |
No | |
permissions.manage |
boolean |
Yes | |
revisions |
array of object |
Yes | |
revisions[].allowed_origins |
array of string |
Yes | Origins browser testers may visit, subdomains included. Links elsewhere are blocked. |
revisions[].app_environment_id |
string |
Yes | |
revisions[].app_release_id |
string |
Yes | |
revisions[].blueprint_json |
object |
Yes | |
revisions[].cleanup_state |
string |
Yes | |
revisions[].created_at |
string (date-time) |
Yes | |
revisions[].digest |
string |
Yes | |
revisions[].expires_at |
string (date-time) |
Yes | |
revisions[].id |
string |
Yes | |
revisions[].organization_id |
string |
Yes | |
revisions[].ready_at |
string (date-time) |
Yes | |
revisions[].resolved_manifest_json |
object |
Yes | |
revisions[].retention_policy_json |
object |
Yes | |
revisions[].revision |
integer |
Yes | |
revisions[].revoked_at |
string (date-time) |
Yes | |
revisions[].runner_environment_revision_id |
string |
Yes | |
revisions[].safety_policy_json |
object |
Yes | |
revisions[].schema_version |
integer |
Yes | |
revisions[].source_metadata_json |
object |
Yes | |
revisions[].status |
string |
Yes | |
revisions[].updated_at |
string (date-time) |
Yes | |
revisions[].validation_json |
object |
Yes | |
revisions[].verify_environment_id |
string |
Yes | |
setup_discovery_id |
string |
No | Existing discovery to resume after setup or Checkout, selected within this environment. |
sign_in_check_available |
boolean |
Yes | Whether a test account's live sign-in check can run on this app. |
test_accounts |
object |
Yes | |
test_accounts.accounts |
array of object |
Yes | |
test_accounts.accounts[].configured |
boolean |
Yes | |
test_accounts.accounts[].credentials |
array of object |
Yes | |
test_accounts.accounts[].credentials[].configured |
boolean |
Yes | |
test_accounts.accounts[].credentials[].key |
string |
Yes | |
test_accounts.accounts[].credentials[].kind |
enum: literal, totp_seed |
Yes | |
test_accounts.accounts[].credentials[].pinned |
boolean |
Yes | |
test_accounts.accounts[].credentials[].secret_id |
string |
Yes | |
test_accounts.accounts[].credentials[].source |
string |
Yes | |
test_accounts.accounts[].persona |
string |
Yes | |
test_accounts.accounts[].role |
string |
Yes | |
test_accounts.accounts[].tenant |
string |
Yes | |
test_accounts.revision_id |
string |
Yes | |
test_accounts.target_available |
boolean |
Yes | |
test_accounts.unavailable_reason |
string |
No |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
GET /api/v1/organizations/{organization_id}/verify/environments
Operation ID: api_v1_verify_environments.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
project_id |
query |
string |
No |
Responses
200: Success
application/json
The response is object.
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
patch
PATCH /api/v1/organizations/{organization_id}/verify/environments/{id}
Operation ID: patch_api_v1_organizations_organization_id_verify_environments_id_.
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 |
|---|---|---|---|
allowed_actions |
enum: read_only, writes |
No | read_only only looks around; writes may create, change and delete data. |
imessage_number |
string,null |
No | |
messaging_tester_number |
string,null |
No | |
name |
string |
No | |
target_url |
string,null |
No | |
verify_network_connection_id |
string |
No | |
version |
integer |
No | Required for target or tester changes; use lock_version from the environment. |
Responses
200: Updated Verify environment
application/json
| Property | Type | Required | Description |
|---|---|---|---|
active_revision_id |
string |
Yes | |
allowed_actions |
enum: read_only, writes |
Yes | |
connection |
enum: managed, external |
Yes | |
created_at |
string (date-time) |
Yes | |
default_policy_json |
object |
Yes | |
hosted_app_id |
string |
Yes | |
id |
string |
Yes | |
imessage_number |
string |
Yes | International destination number; blank or null clears it on an added environment. |
lock_version |
integer |
Yes | |
name |
string |
Yes | |
organization_id |
string |
Yes | |
project_id |
string |
Yes | Owning project. Null only for unassigned legacy environments. |
repository_id |
string |
Yes | |
slug |
string |
Yes | |
status |
string |
Yes | |
target_kind |
string |
Yes | |
target_url |
string (uri) |
Yes | |
updated_at |
string (date-time) |
Yes | |
verify_network_connection_id |
string |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
remove
DELETE /api/v1/organizations/{organization_id}/verify/environments/{id}
Operation ID: delete_api_v1_organizations_organization_id_verify_environments_id_.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
id |
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
DELETE /api/v1/organizations/{organization_id}/verify/environments/{verify_environment_id}/first_run
Operation ID: delete_api_v1_organizations_organization_id_verify_environments_verify_environment_id_first_run.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
verify_environment_id |
path |
string |
Yes |
Responses
200: Success
application/json
The response is object.
204: The choice is cleared, or was already settled
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
update
PUT /api/v1/organizations/{organization_id}/verify/environments/{id}
Operation ID: put_api_v1_organizations_organization_id_verify_environments_id_.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
id |
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
PUT /api/v1/organizations/{organization_id}/verify/environments/{verify_environment_id}/first_run
Operation ID: api_v1_verify_environment_first_run.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
verify_environment_id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
account_id |
string |
No | Test account the discovery signs in with; null tests public pages only. |
finish |
boolean |
No | Setup is finished. Rails starts the discovery now if billing allows, otherwise when billing is confirmed. Repeating it retries a refused start. |
finish_if_waiting |
boolean |
No | Finish setup only when the workspace's included Deep Scan waits for the chosen account's sign-in check (starts_after_sign_in_check); otherwise only save the choice, since finishing would start a run at once. |
keep_chosen |
boolean |
No | Save the account only while no test access is chosen, for an account adopted automatically; a choice already saved stays and is returned unchanged. |
no_sign_in |
boolean |
No | The app has no sign-in. With no account it gets the workspace's included Deep Scan of public pages. Ignored with an account; omitted keeps the saved choice. |
Responses
200: The saved choice and, once started, the discovery to open
application/json
| Property | Type | Required | Description |
|---|---|---|---|
account_id |
string |
Yes | |
discovery_id |
string |
Yes | The started first discovery. Rails sets it; the wizard opens it. |
included_scan |
object |
Yes | Where the workspace's included scan stands once test access is chosen, and the one action the test account step offers. Null before access is chosen. |
included_scan.action |
enum: start, open_scan, choose_plan, null |
Yes | Start (or retry) the scan, open discovery_id, or open the plan step. Null while Rails works. |
included_scan.discovery_id |
string |
Yes | The run open_scan opens. |
included_scan.firewall |
enum: vercel, cloudflare, other, null |
Yes | For firewall_blocked, whose firewall stopped the browser; other when unknown. Null otherwise. |
included_scan.path |
string |
No | Canonical web path for the run, Deep Scan or Discovery. Null before it starts. |
included_scan.reason |
string |
Yes | In one sentence: for sign_up_stopped, why the agent couldn't create a test user; for firewall_blocked, what stopped the browser. Null otherwise. |
included_scan.state |
enum: ready, checking, sign_in_needed, firewall_blocked, creating_test_user, sign_up_stopped, ... |
Yes | checking and sign_in_needed wait for the account's sign-in check: checking while its agent works, sign_in_needed once it needs the person (waiting for an answer, or failed). firewall_blocked means the app's firewall or bot challenge stopped the check's browser before the app. creating_test_user and sign_up_stopped are the same for a test user Verify's agent made: it is signing up, or it stopped and setup asks for an account instead, saying why in reason; run_started means Rails started a discovery instead (an account the Deep Scan can't use) while the first run waits for a plan; plan_needed means the included scan is no longer on offer and nothing runs. |
no_sign_in |
boolean |
Yes | The person said the app has no sign-in; always false with an account. |
refusal |
object |
Yes | Why the last start was refused. Finishing setup again retries. |
refusal.code |
string |
Yes | |
refusal.message |
string |
Yes | |
setup_finished |
boolean |
Yes | |
starts_after_sign_in_check |
boolean |
Yes | Whether finishing setup with the chosen account waits for its sign-in check to pass before the workspace's included Deep Scan starts (verify_onboarding_deep_scan). When false, finishing starts what it starts at once, so the wizard waits for the person to start it. |
status |
enum: choosing, awaiting_sign_in, awaiting_billing, starting, ready, started, ... |
Yes | Rails' decision. awaiting_sign_in means the workspace's included Deep Scan starts once the chosen test account's sign-in check passes. starting means Rails is starting the discovery, so the wizard keeps checking for it; ready means the user starts it. |