Create Session
Establishes a connection to CapMonster Cloud by creating a session with your API key. This session is required for all captcha solving operations.
Common Properties
- Name - The custom name of the node.
- Color - The custom color of the node.
- Delay Before (sec) - Waits in seconds before executing the node.
- Delay After (sec) - Waits in seconds after executing node.
- Continue On Error - Automation will continue regardless of any error. The default value is false.
info
If the ContinueOnError property is true, no error is caught when the project is executed, even if a Catch node is used.
Options
- API Key - The CapMonster Cloud API key credential from your account. This should be stored as a credential in Robomotion for security.
Output
- Session - A unique session ID that must be passed to all other CapMonster nodes to authenticate API requests.
How It Works
The Create Session node is the entry point for all CapMonster operations. When executed, it:
- Retrieves your API key from the provided credential
- Creates a CapMonster Cloud client instance
- Generates a unique session ID
- Stores the client instance for use by other nodes
- Returns the session ID for use in subsequent operations
Requirements
- A valid CapMonster Cloud account
- An API key from your CapMonster dashboard
- The API key must be stored as a credential in Robomotion
Getting Your API Key
- Sign up or log in to CapMonster Cloud
- Navigate to your dashboard
- Find the API key section
- Copy your API key
- Store it as a credential in Robomotion
Error Handling
The node will fail in the following cases:
- Missing or invalid API key credential
- Empty API key value
- Unable to create CapMonster client
Usage Notes
- The Create Session node must be executed before any captcha solving operations
- The session ID should be stored in a message variable for easy access
- Each Create Session creates a new client instance
- Sessions are stored in memory and persist throughout the flow execution
- Multiple sessions can be created if you need to use different API keys
Best Practices
- Store your API key as a credential, never hardcode it in your flow
- Use a single Create Session node at the beginning of your captcha solving workflow
- Pass the session ID to all subsequent CapMonster nodes
- Consider checking your balance after creating a session to ensure sufficient funds
- Handle connection errors gracefully to avoid flow interruptions
Example Flow
Create Session (API Key credential)
→ Session ID stored in message
→ Get Balance (verify funds)
→ Solve Captcha nodes (use session ID)
Security Considerations
- API keys provide full access to your CapMonster account
- Always use Robomotion's credential storage for API keys
- Never log or expose API keys in error messages
- Rotate your API keys periodically for enhanced security
- Monitor your account usage to detect unauthorized access