curl --request POST \
--url https://api.lightspark.com/grid/2025-10-13/agents/{agentId}/device-codes \
--header 'Authorization: Basic <encoded-value>'{
"code": "GRID-AGENT-X7K9-M2P4",
"agentId": "Agent:019542f5-b3e7-1d02-0000-000000000001",
"expiresAt": "2025-07-22T17:32:28Z",
"redeemed": false
}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.
curl --request POST \
--url https://api.lightspark.com/grid/2025-10-13/agents/{agentId}/device-codes \
--header 'Authorization: Basic <encoded-value>'{
"code": "GRID-AGENT-X7K9-M2P4",
"agentId": "Agent:019542f5-b3e7-1d02-0000-000000000001",
"expiresAt": "2025-07-22T17:32:28Z",
"redeemed": false
}Documentation Index
Fetch the complete documentation index at: https://ramps-docs-agents-webhook-and-account-model-links.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
API token authentication using format <api token id>:<api client secret>
System-generated unique agent identifier
New device code generated successfully
Human-readable device code used to install and connect the agent software.
"GRID-AGENT-X7K9-M2P4"
The agent this device code belongs to.
"Agent:019542f5-b3e7-1d02-0000-000000000001"
Timestamp when this device code expires.
"2025-07-22T17:32:28Z"
Whether this device code has already been redeemed by the agent.
false
Was this page helpful?