VerifyBrowserSession
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/browser_sessions/{id}/save |
create |
Account metadata; browser cookies and storage remain write-only |
POST |
/api/v1/organizations/{organization_id}/verify/browser_sessions |
create |
Expiring owner browser session metadata |
GET |
/api/v1/organizations/{organization_id}/verify/browser_sessions/{id} |
load |
Owner-only metadata; no application cookies or storage values |
DELETE |
/api/v1/organizations/{organization_id}/verify/browser_sessions/{id} |
remove |
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:
verify_browser_session, err := client.VerifyBrowserSession(nil).Load(map[string]any{"id": "example_id", "organization_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(verify_browser_session)
created, err := client.VerifyBrowserSession(nil).Create(map[string]any{"organization_id": "example", "project_id": "example", "url": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(created)
removed, err := client.VerifyBrowserSession(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_browser_session, err = client:VerifyBrowserSession():load({ id = "example_id", organization_id = "example" })
local created, err = client:VerifyBrowserSession():create({ organization_id = "example", project_id = "example", url = "example" })
local removed, err = client:VerifyBrowserSession():remove({ id = "example_id", organization_id = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$verify_browser_session = $client->VerifyBrowserSession()->load(["id" => "example_id", "organization_id" => "example"]);
$created = $client->VerifyBrowserSession()->create(["organization_id" => "example", "project_id" => "example", "url" => "example"]);
$client->VerifyBrowserSession()->remove(["id" => "example_id", "organization_id" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
verify_browser_session = client.VerifyBrowserSession().load({"id": "example_id", "organization_id": "example"})
created = client.VerifyBrowserSession().create({ "organization_id": "example", "project_id": "example", "url": "example" })
client.VerifyBrowserSession().remove({"id": "example_id", "organization_id": "example"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
verify_browser_session = client.VerifyBrowserSession.load({ "id" => "example_id", "organization_id" => "example" })
created = client.VerifyBrowserSession.create({ "organization_id" => "example", "project_id" => "example", "url" => "example" })
client.VerifyBrowserSession.remove({ "id" => "example_id", "organization_id" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const verify_browser_session = await client.VerifyBrowserSession().load({ id: "example_id", organization_id: "example" })
const created = await client.VerifyBrowserSession().create({ organization_id: "example", project_id: "example", url: "example" })
await client.VerifyBrowserSession().remove({ id: "example_id", organization_id: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
account_id |
string |
Yes | The project's active credential to refresh; omit to create a credential. |
expires_at |
string |
Yes | Expires At |
id |
string |
Yes | Id |
name |
string |
No | Required when opening a browser for a new credential. |
origin |
string |
Yes | Origin |
project_id |
string |
Yes | The project (slug or ID) whose credential receives the session. |
status |
string |
Yes | Status |
url |
string |
Yes | Url |
viewer_url |
one,string,null |
Yes | Owner-only bearer link. |
create
POST /api/v1/organizations/{organization_id}/verify/browser_sessions/{id}/save
Operation ID: save_api_v1_browser_session.
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 |
|---|---|---|---|
confirm_account |
enum: true |
Yes |
Responses
200: Account metadata; browser cookies and storage remain write-only
application/json
| Property | Type | Required | Description |
|---|---|---|---|
browser_authentication |
object |
No | |
browser_authentication.auth_url |
string |
No | |
browser_authentication.client_id |
string |
No | |
browser_authentication.expires_at |
string (date-time) |
No | |
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. |
browser_authentication.kind |
enum: webauthn, browser_session, oidc_identity |
No | |
browser_authentication.origin |
string |
No | |
browser_authentication.provider_id |
string |
No | |
browser_authentication.rp_id |
string |
No | |
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. |
configured |
boolean |
Yes | |
credential_keys |
object |
Yes | |
credential_keys.browser |
string |
No | |
credential_keys.password |
string |
No | |
credential_keys.totp |
string |
No | |
credential_keys.username |
string |
Yes | |
description |
string |
Yes | |
email_link_auth_origins |
array of string (uri) |
Yes | |
has_inbox |
boolean |
Yes | Whether Composal provisioned this address and can show the mail it receives |
id |
string |
Yes | |
identity_provider |
object |
Yes | For oidc_identity accounts, the Composal issuer the app trusts and the persona settings it must match |
identity_provider.client_id |
string |
Yes | |
identity_provider.discovery_url |
string |
Yes | |
identity_provider.email_suffix |
string |
Yes | Every persona signs in as <user> followed by this suffix, for example .acme@cred.composal.ai |
identity_provider.issuer |
string |
Yes | |
identity_provider.persona_user |
string |
Yes | The user part of this persona's address |
identity_provider.provider_id |
string |
Yes | |
instructions |
string |
Yes | |
login_method |
enum: email_password, email_link, google, github, custom, passkey, ... |
Yes | |
login_url |
string |
Yes | |
managed |
boolean |
Yes | |
mfa_enabled |
boolean |
Yes | |
name |
string |
Yes | |
provider_guidance |
string |
Yes | |
sign_in_verified |
boolean |
Yes | A sign-in check confirmed this account signs in with its current settings |
sign_in_verified_at |
string (date-time) |
Yes | |
status |
string |
Yes | |
updated_at |
string (date-time) |
Yes | |
username |
string |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
POST /api/v1/organizations/{organization_id}/verify/browser_sessions
Operation ID: api_v1_browser_sessions.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
account_id |
string |
No | The project's active credential to refresh; omit to create a credential. |
name |
string |
No | Required when opening a browser for a new credential. |
project_id |
string |
Yes | The project (slug or ID) whose credential receives the session. |
url |
string (uri) |
Yes |
Responses
200: Expiring owner browser session metadata
application/json
| Property | Type | Required | Description |
|---|---|---|---|
account_id |
string |
Yes | |
expires_at |
string (date-time) |
Yes | |
id |
string |
Yes | |
origin |
string |
Yes | |
status |
enum: pending, starting, ready, saved, closed, failed |
Yes | |
viewer_url |
string |
Yes | Owner-only bearer link. Do not share; expires with the browser lease. |
201: Expiring owner browser session metadata
application/json
| Property | Type | Required | Description |
|---|---|---|---|
account_id |
string |
Yes | |
expires_at |
string (date-time) |
Yes | |
id |
string |
Yes | |
origin |
string |
Yes | |
status |
enum: pending, starting, ready, saved, closed, failed |
Yes | |
viewer_url |
string |
Yes | Owner-only bearer link. Do not share; expires with the browser lease. |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
load
GET /api/v1/organizations/{organization_id}/verify/browser_sessions/{id}
Operation ID: api_v1_browser_session.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Responses
200: Owner-only metadata; no application cookies or storage values
application/json
| Property | Type | Required | Description |
|---|---|---|---|
account_id |
string |
Yes | |
expires_at |
string (date-time) |
Yes | |
id |
string |
Yes | |
origin |
string |
Yes | |
status |
enum: pending, starting, ready, saved, closed, failed |
Yes | |
viewer_url |
string |
Yes | Owner-only bearer link. Do not share; expires with the browser lease. |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
remove
DELETE /api/v1/organizations/{organization_id}/verify/browser_sessions/{id}
Operation ID: delete_api_v1_organizations_organization_id_verify_browser_sessions_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.