credential management documentation (#2389)

This commit is contained in:
Shuchang Zheng
2025-05-21 20:06:34 -07:00
committed by GitHub
parent fe97113e0f
commit 87d0f364f5
26 changed files with 417 additions and 6 deletions

View File

@@ -362,16 +362,16 @@ CREATE_CREDENTIAL_CODE_SAMPLE = """from skyvern import Skyvern
skyvern = Skyvern(api_key="your_api_key")
await skyvern.credentials.create_credential(
name="Amazon Login",
name="My Credential",
credential_type="password",
credential={"username": "user@example.com", "password": "myamazonpassword"},
credential={"username": "username", "password": "password"},
)
"""
CREATE_CREDENTIAL_CODE_SAMPLE_CREDIT_CARD = """from skyvern import Skyvern
skyvern = Skyvern(api_key="your_api_key")
await skyvern.credentials.create_credential(
name="Amazon Login",
name="My Credit Card",
credential_type="credit_card",
credential={
"card_number": "4242424242424242",

View File

@@ -47,7 +47,7 @@ async def parse_totp_code(content: str) -> str | None:
"/credentials/totp",
response_model=TOTPCode,
summary="Send TOTP (2FA, MFA) code to Skyvern",
description="Forward a TOTP (2FA, MFA) email or sms message containing the code to Skyvern",
description="Forward a TOTP (2FA, MFA) email or sms message containing the code to Skyvern. This endpoint stores the code in database so that Skyvern can use it while running tasks/workflows.",
tags=["Credentials"],
openapi_extra={
"x-fern-sdk-group-name": "credentials",