Skip to main content
For an overview of how profiles work, see Persistent Sessions.

Create a Profile

Before using a profile, you must create it:
from smooth import SmoothClient

client = SmoothClient(api_key="cmzr-YOUR_API_KEY")

# Create a new profile
client.create_profile(profile_id="my-profile")

Use a Profile

Pass the profile_id when creating a session or running a task:
# Use the profile in a session
with client.session(profile_id="my-profile", url="https://example.com") as session:
    session.run_task("Log in with my credentials")
    # Authentication is now saved to the profile

List Profiles

response = client.list_profiles()
print(f"Profile IDs: {response.profile_ids}")

Delete a Profile

client.delete_profile(profile_id="my-profile")
If Python is not your language of choice, check out our API Reference.