Overview
Relaunch an ended agent by resetting it tosetup_needed status. This endpoint allows you to restart an agent that has ended, clearing its configuration and allowing it to be set up again from scratch. Unlike deletion, this preserves the agent entity while resetting its state.
Prerequisites
- Agent must have status
ended - You must have access to the agent (same team)
- Agent must exist in your account
Use Cases
- Agent Recovery: Restart agents that ended due to issues
- Reconfiguration: Reset agent to change LinkedIn credentials or country
- Redeployment: Restart agents with fresh configuration
- Testing: Reset agents for testing different configurations
Path Parameters
The unique identifier of the agent to relaunch
Response Examples
Success Response
Error Responses
What Happens During Relaunch
When an agent is relaunched, the following changes occur:- Status Reset: Agent status changes from
endedtosetup_needed - Configuration Cleared: LinkedIn credentials and passwords are removed
- External Resources: GoLogin tokens and proxy assignments are cleared
- Alerts Cleared: All alerts and notifications are removed
- Tasks Cleared: Current tasks and actions are reset
- Agent Preserved: The agent entity and ID remain the same
Testing Examples
Error Handling
Status Code Reference
Comprehensive Error Handling
Integration Examples
Complete Relaunch Workflow
Bulk Agent Relaunch
Agent Status Monitoring
Best Practices
- Status Verification: Always check agent status before relaunching
- Configuration Ready: Have new configuration ready for immediate setup
- Error Handling: Handle all possible error scenarios
- Monitoring: Monitor agent status after relaunch
- Documentation: Document why agents are being relaunched
- Rate Limiting: Avoid relaunching too many agents simultaneously
Next Steps After Relaunch
After successfully relaunching an agent:- Setup Agent: Use the
/agents/{id}/setupendpoint to configure credentials - Verify Configuration: Check agent status and configuration
- Monitor Health: Watch for any setup issues or alerts
- Test Functionality: Verify the agent is working as expected
Comparison: Relaunch vs Delete
Relaunch is ideal when you want to reconfigure an agent with different settings, while delete is for permanent removal when the agent is no longer needed.

