GET
/v1/projects/{project_id}/agent-variables/{variable_id}Get an Agent VariableReturns the specified template variable
Parameters
project_idstringpathrequiredThe unique identifier of the project
variable_idstringpathrequiredThe unique identifier of the agent variable
Responses
objectAgentVariableV1
AgentVariableV1
A template variable for agent configurations
created_atstring · date-timeTimestamp when the variable was created
keystringrequiredThe variable name, following the DG_<VARIABLE_NAME> format
updated_atstring · date-timeTimestamp when the variable was last updated
valuevaluerequiredThe value to substitute. Can be any valid JSON type
variable_idstringrequiredThe unique identifier of the variable
{
"created_at": "2026-06-09T00:00:00Z",
"key": "string",
"updated_at": "2026-06-09T00:00:00Z",
"value": null,
"variable_id": "string"
}valueErrorResponse
ErrorResponse
oneOf · 3 options
Option 1stringErrorResponseTextError
ErrorResponseTextError
Option 2objectErrorResponseLegacyError
ErrorResponseLegacyError
err_codestringThe error code
err_msgstringThe error message
request_idstringThe request ID
Option 3objectErrorResponseModernError
ErrorResponseModernError
categorystringThe category of the error
detailsstringA description of the error
messagestringA message about the error
request_idstringThe unique identifier of the request
{
"err_code": "string",
"err_msg": "string",
"request_id": "string"
}