Skip to content

Skyvern: Create credential

Skyvern credentials.createCredential: arguments, response, policy and SDK examples.

← Credentials operations · Get started

Operation skyvern.create_credential_v1_credentials_post

Provider route: POST /v1/credentials. 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["credentials"]["createCredential"]>[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.credentials.createCredential(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.credentials.create_credential(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
bodyModelRequired within parentExpand Create credential — request body — body
The credential data to create

Referenced models: Create credential — 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 Create credential — response body

Referenced models: Create credential — response body

8 more schemas are linked from the tables above, on the schema pages.

Create credential — request body — body
FieldTypePresenceDescription and constraints
$objectRootRequest model for creating a new credential.
auto_profile_disabledbooleanOptionalDisable automatic saving and reuse of this credential's browser profile.
Default: false
browser_profile_idJSONOptionalOptional plain browser profile to link as this credential's saved profile. Must be an unmanaged profile in your organization that no other credential already owns.
browser_profile_id (anyOf 1)stringAlternative
browser_profile_id (anyOf 2)nullAlternative
credentialJSONRequired within parentThe credential data to store
credential (anyOf 1)ModelAlternativeExpand Create credential — request body — body / credential / totp_type: authenticator, email, text, passkey, none
credential (anyOf 2)ModelAlternativeExpand Create credential — request body — body credential billing address, billing email, billing phone, card brand, card cvv, card exp month, card exp year, card holder name, card number, metadata
credential (anyOf 3)ModelAlternativeExpand Create credential — request body — body credential Generic secret credential
credential_typestringRequired within parentType of credential stored in the system.
Type of credential to create
One of: password, credit_card, secret
namestringRequired within parentName of the credential
pin_saved_session_ipbooleanOptionalKeep the same IP across sign-ins that reuse this credential's saved profile.
Default: false
proxy_locationJSONOptionalOptional proxy location for this credential'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_idJSONOptionalOptional advanced reuse key for this credential's pinned proxy identity.
proxy_session_id (anyOf 1)stringAlternative
proxy_session_id (anyOf 2)nullAlternative
rotate_proxy_session_idbooleanOptionalRotate the Skyvern-managed proxy sticky-session id when updating this credential.
Default: false
tested_urlJSONOptionalLogin page URL used during the credential test
tested_url (anyOf 1)stringAlternative
tested_url (anyOf 2)nullAlternative
vault_typeJSONOptionalWhich vault to store this credential in. If omitted, uses the instance default. Use this to mix Skyvern-hosted and custom credentials within the same organization.
vault_type (anyOf 1)stringAlternativeOne of: skyvern, bitwarden, azure_vault, gcp, custom, onepassword, bitwarden_connected
vault_type (anyOf 2)nullAlternative

Referenced models: Update an agent — response body — proxy location city, country, is ISP, subdivision, Create credential — request body — body credential billing address, billing email, billing phone, card brand, card cvv, card exp month, card exp year, card holder name, card number, metadata, Create credential — request body — body / credential / totp_type: authenticator, email, text, passkey, none, Create credential — request body — body credential Generic secret credential

Create credential — response body
FieldTypePresenceDescription and constraints
$objectRootResponse model for credential operations.
auto_profile_disabledJSONOptionalWhether automatic saving and reuse of this credential's browser profile is disabled.
auto_profile_disabled (anyOf 1)booleanAlternative
auto_profile_disabled (anyOf 2)nullAlternative
browser_profile_idJSONOptionalBrowser profile ID linked to this credential
browser_profile_id (anyOf 1)stringAlternative
browser_profile_id (anyOf 2)nullAlternative
created_byJSONOptionalID of the user who created the credential
created_by (anyOf 1)stringAlternative
created_by (anyOf 2)nullAlternative
credentialJSONRequired within parentThe credential data
credential (anyOf 1)ModelAlternativeExpand Create credential — response body — credential / totp_type: authenticator, email, text, passkey, none
credential (anyOf 2)ModelAlternativeExpand Create credential — response body — credential brand, last four
credential (anyOf 3)ModelAlternativeExpand Create credential — response body — credential secret label
credential_idstringRequired within parentUnique identifier for the credential
credential_typestringRequired within parentType of credential stored in the system.
Type of the credential
Known values: password, credit_card, secret
folder_idJSONOptionalID of the credential folder this credential belongs to, if any
folder_id (anyOf 1)stringAlternative
folder_id (anyOf 2)nullAlternative
item_idJSONOptional1Password item ID for linked credentials
item_id (anyOf 1)stringAlternative
item_id (anyOf 2)nullAlternative
namestringRequired within parentName of the credential
pin_saved_session_ipbooleanOptionalWhether sign-ins reusing this credential's saved profile keep the same IP
Default: false
proxy_locationJSONOptionalOptional proxy location used for the credential's pinned proxy identity.
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_idJSONOptionalOpaque Skyvern-managed proxy sticky-session id.
proxy_session_id (anyOf 1)stringAlternative
proxy_session_id (anyOf 2)nullAlternative
run_sequentiallybooleanOptionalDefault: false
save_browser_session_intentJSONOptionalWhether the user intends to save a browser session, regardless of test outcome
save_browser_session_intent (anyOf 1)booleanAlternative
save_browser_session_intent (anyOf 2)nullAlternative
tested_urlJSONOptionalLogin page URL used during the credential test
tested_url (anyOf 1)stringAlternative
tested_url (anyOf 2)nullAlternative
upstream_missing_atJSONOptionalWhen the linked 1Password item was last found missing upstream
upstream_missing_at (anyOf 1)stringAlternativeFormat: date-time
upstream_missing_at (anyOf 2)nullAlternative
user_contextJSONOptionalUser-provided context describing the login sequence (e.g., 'click SSO button first')
user_context (anyOf 1)stringAlternative
user_context (anyOf 2)nullAlternative
vault_idJSONOptional1Password vault ID for linked credentials
vault_id (anyOf 1)stringAlternative
vault_id (anyOf 2)nullAlternative
vault_typeJSONOptionalWhich vault stores this credential (e.g., 'skyvern', 'bitwarden', 'azure_vault', 'custom')
vault_type (anyOf 1)stringAlternativeKnown values: skyvern, bitwarden, azure_vault, gcp, custom, onepassword, bitwarden_connected
vault_type (anyOf 2)nullAlternative

Referenced models: Create credential — response body — credential brand, last four, Update an agent — response body — proxy location city, country, is ISP, subdivision, Create credential — response body — credential / totp_type: authenticator, email, text, passkey, none, Update an agent — response body — proxy location string, Create credential — response body — credential secret label

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

SDK function policy ID: skyvern.create_credential_v1_credentials_post. Catalog operation: create_credential_v1_credentials_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.