Skip to content

Skyvern: Create a browser profile

Skyvern browserProfiles.createBrowserProfile: arguments, response, policy and SDK examples.

← Browser profiles operations · Get started

Operation skyvern.create_browser_profile_v1_browser_profiles_post

Provider route: POST /v1/browser_profiles. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/skyvern with npm, or alter-sdk-skyvern with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { SkyvernIntegration } from "@alter-ai/skyvern";
async function execute(input: Parameters<SkyvernIntegration["browserProfiles"]["createBrowserProfile"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new SkyvernIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.browserProfiles.createBrowserProfile(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_skyvern import SkyvernIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = SkyvernIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.browser_profiles.create_browser_profile(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
bodyModelRequired within parentExpand Create a browser profile — request body — body

Referenced models: Create a browser profile — request body — body

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$ModelRootExpand Get browser profile — response body

Referenced models: Get browser profile — response body

Create a browser profile — request body — body
FieldTypePresenceDescription and constraints
$objectRoot
browser_session_idJSONOptionalPersistent browser session to convert into a profile. Omit for a blank profile.
browser_session_id (anyOf 1)stringAlternativeMinimum length: 1
browser_session_id (anyOf 2)nullAlternative
descriptionJSONOptionalOptional profile description
description (anyOf 1)stringAlternative
description (anyOf 2)nullAlternative
namestringRequired within parentName for the browser profile
Minimum length: 1
proxy_locationJSONOptionalOptional proxy location for this profile's pinned proxy identity.
proxy_location (anyOf 1)stringAlternativeOne of: RESIDENTIAL, US-CA, US-NY, US-TX, US-FL, US-WA, RESIDENTIAL_ES, RESIDENTIAL_IE, RESIDENTIAL_GB, RESIDENTIAL_IN, RESIDENTIAL_JP, RESIDENTIAL_FR, RESIDENTIAL_DE, RESIDENTIAL_NZ, RESIDENTIAL_ZA, RESIDENTIAL_AR, RESIDENTIAL_AU, RESIDENTIAL_BR, RESIDENTIAL_TR, RESIDENTIAL_CA, RESIDENTIAL_MX, RESIDENTIAL_IT, RESIDENTIAL_NL, RESIDENTIAL_PH, RESIDENTIAL_KR, RESIDENTIAL_SA, RESIDENTIAL_ISP, NONE
proxy_location (anyOf 2)ModelAlternativeExpand Update an agent — response body — proxy location city, country, is ISP, subdivision
proxy_location (anyOf 3)objectAlternativeAdditional keys: allowed
proxy_location (anyOf 4)nullAlternative
proxy_session_idJSONOptionalExplicit sticky-session id for this profile's pinned proxy identity.
proxy_session_id (anyOf 1)stringAlternative
proxy_session_id (anyOf 2)nullAlternative
workflow_run_idJSONOptionalWorkflow run whose persisted session should be captured. Omit for a blank profile.
workflow_run_id (anyOf 1)stringAlternativeMinimum length: 1
workflow_run_id (anyOf 2)nullAlternative

Referenced models: Update an agent — response body — proxy location city, country, is ISP, subdivision

Get browser profile — response body
FieldTypePresenceDescription and constraints
$objectRoot
browser_profile_idstringRequired within parent
browser_profile_key_digestJSONOptional
browser_profile_key_digest (anyOf 1)stringAlternative
browser_profile_key_digest (anyOf 2)nullAlternative
created_atstringRequired within parentFormat: date-time
deleted_atJSONOptional
deleted_at (anyOf 1)stringAlternativeFormat: date-time
deleted_at (anyOf 2)nullAlternative
descriptionJSONOptional
description (anyOf 1)stringAlternative
description (anyOf 2)nullAlternative
is_managedbooleanOptionalDefault: false
last_verified_login_atJSONOptional
last_verified_login_at (anyOf 1)stringAlternativeFormat: date-time
last_verified_login_at (anyOf 2)nullAlternative
linked_credential_idJSONOptional
linked_credential_id (anyOf 1)stringAlternative
linked_credential_id (anyOf 2)nullAlternative
linked_credential_nameJSONOptional
linked_credential_name (anyOf 1)stringAlternative
linked_credential_name (anyOf 2)nullAlternative
modified_atstringRequired within parentFormat: date-time
namestringRequired within parent
organization_idstringRequired within parent
proxy_locationJSONOptional
proxy_location (anyOf 1)ModelAlternativeExpand Update an agent — response body — proxy location string
proxy_location (anyOf 2)ModelAlternativeExpand Update an agent — response body — proxy location city, country, is ISP, subdivision
proxy_location (anyOf 3)objectAlternativeAdditional keys: allowed
proxy_location (anyOf 4)nullAlternative
proxy_session_idJSONOptional
proxy_session_id (anyOf 1)stringAlternative
proxy_session_id (anyOf 2)nullAlternative
source_browser_typeJSONOptional
source_browser_type (anyOf 1)stringAlternative
source_browser_type (anyOf 2)nullAlternative
workflow_permanent_idJSONOptional
workflow_permanent_id (anyOf 1)stringAlternative
workflow_permanent_id (anyOf 2)nullAlternative

Referenced models: Update an agent — response body — proxy location city, country, is ISP, subdivision, Update an agent — response body — proxy location string

Update an agent — response body — proxy location city, country, is ISP, subdivision
FieldTypePresenceDescription and constraints
$objectRootGranular proxy geo-targeting request with country, optional subdivision, and optional city.
cityJSONOptionalCity name in English from GeoNames (e.g., 'New York', 'Los Angeles', 'London')
city (anyOf 1)stringAlternativeMaximum length: 100
city (anyOf 2)nullAlternative
countrystringRequired within parentISO 3166-1 alpha-2 country code (e.g., 'US', 'GB', 'DE')
Maximum length: 2
Minimum length: 2
isISPbooleanOptionalWhether this geo target is marked as an ISP proxy location.
Default: false
subdivisionJSONOptionalISO 3166-2 subdivision code without country prefix (e.g., 'CA' for California, 'NY' for New York)
subdivision (anyOf 1)stringAlternativeMaximum length: 10
subdivision (anyOf 2)nullAlternative
Update an agent — response body — proxy location string
FieldTypePresenceDescription and constraints
$stringRootKnown values: RESIDENTIAL, US-CA, US-NY, US-TX, US-FL, US-WA, RESIDENTIAL_ES, RESIDENTIAL_IE, RESIDENTIAL_GB, RESIDENTIAL_IN, RESIDENTIAL_JP, RESIDENTIAL_FR, RESIDENTIAL_DE, RESIDENTIAL_NZ, RESIDENTIAL_ZA, RESIDENTIAL_AR, RESIDENTIAL_AU, RESIDENTIAL_BR, RESIDENTIAL_TR, RESIDENTIAL_CA, RESIDENTIAL_MX, RESIDENTIAL_IT, RESIDENTIAL_NL, RESIDENTIAL_PH, RESIDENTIAL_KR, RESIDENTIAL_SA, RESIDENTIAL_ISP, NONE

SDK function policy ID: skyvern.create_browser_profile_v1_browser_profiles_post. Catalog operation: create_browser_profile_v1_browser_profiles_post. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.