Agent Management
Regenerate a device code
Generate a new device code for an existing agent. Use this when the original device code has expired before being redeemed, or when the agent software needs to be reinstalled. Any previously issued unredeemed device codes for this agent are invalidated.
post/agents/{agentId}/device-codes
Response
New device code generated successfully
Example response
{
"code": "GRID-AGENT-X7K9-M2P4",
"agentId": "Agent:019542f5-b3e7-1d02-0000-000000000001",
"expiresAt": "2025-07-22T17:32:28Z"
}