Skip to content

Skyvern: Get credential by ID

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

← Credentials operations · Get started

Operation skyvern.get_credential_v1_credentials_credential_id_get

Provider route: GET /v1/credentials/{credential_id}. 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"]["getCredential"]>[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.getCredential(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.get_credential(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.credential_idstringRequired within parentThe unique identifier of the credential

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

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

Create credential — response body — credential brand, last four
FieldTypePresenceDescription and constraints
$objectRootResponse model for credit card credentials — non-sensitive fields only.

SECURITY: Must NEVER include full card number, CVV, expiration date, card holder name,
billing fields, or metadata.
brandstringRequired within parentBrand of the credit card
last_fourstringRequired within parentLast four digits of the credit card number
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
Create credential — response body — credential / totp_type: authenticator, email, text, passkey, none
FieldTypePresenceDescription and constraints
$objectRootResponse model for password credentials — non-sensitive fields only.

SECURITY: Must NEVER include password or TOTP secret.
has_totpbooleanOptionalWhether the stored password credential includes a non-empty TOTP seed. Legacy rows with an unknown value report false until the credential is updated.
Default: false
totp_identifierJSONOptionalIdentifier (email or phone number) used to fetch TOTP codes
totp_identifier (anyOf 1)stringAlternative
totp_identifier (anyOf 2)nullAlternative
totp_typestringOptionalType of 2FA/TOTP method used.
Type of 2FA method used for this credential
Known values: authenticator, email, text, passkey, none
Default: none
usernamestringRequired within parentThe username associated with the credential
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
Create credential — response body — credential secret label
FieldTypePresenceDescription and constraints
$objectRootResponse model for secret credentials — non-sensitive fields only.

SECURITY: Must NEVER include the secret_value.
secret_labelJSONOptionalOptional label for the stored secret
secret_label (anyOf 1)stringAlternative
secret_label (anyOf 2)nullAlternative

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