Rotate Background Agent Secret
POST/api/background-agents/:id/rotate-secret
Rotates the agent's gateway secret and returns the new plaintext secret.
The previous secret stops working immediately. The new secret is only returned once — store it securely. If the agent is synced to an external platform, sync it again afterwards so the platform receives the new credentials.
Request
Responses
- 200
- 401
- 404
- 500
Secret rotated successfully
Authentication required or invalid token
Background agent not found
Internal server error