Skip to main content

Overview

Relaunch an ended agent by resetting it to setup_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

id
string
required
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 ended to setup_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

  1. Status Verification: Always check agent status before relaunching
  2. Configuration Ready: Have new configuration ready for immediate setup
  3. Error Handling: Handle all possible error scenarios
  4. Monitoring: Monitor agent status after relaunch
  5. Documentation: Document why agents are being relaunched
  6. Rate Limiting: Avoid relaunching too many agents simultaneously

Next Steps After Relaunch

After successfully relaunching an agent:
  1. Setup Agent: Use the /agents/{id}/setup endpoint to configure credentials
  2. Verify Configuration: Check agent status and configuration
  3. Monitor Health: Watch for any setup issues or alerts
  4. 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.
Last modified on September 3, 2025