curl "https://api.magpipe.ai/functions/v1/manage-dynamic-variables/789e0123-e89b-12d3-a456-426614174000" \
-H "Authorization: Bearer YOUR_API_KEY"
{
"id": "789e0123-e89b-12d3-a456-426614174000",
"agent_id": "123e4567-e89b-12d3-a456-426614174000",
"user_id": "456e7890-e89b-12d3-a456-426614174000",
"name": "caller_name",
"description": "The full name of the caller",
"var_type": "text",
"enum_options": null,
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
}
{
"error": "Dynamic variable not found"
}
Dynamic Variables
Get Dynamic Variable
Get a specific dynamic variable by ID
GET
/
manage-dynamic-variables
/
{id}
curl "https://api.magpipe.ai/functions/v1/manage-dynamic-variables/789e0123-e89b-12d3-a456-426614174000" \
-H "Authorization: Bearer YOUR_API_KEY"
{
"id": "789e0123-e89b-12d3-a456-426614174000",
"agent_id": "123e4567-e89b-12d3-a456-426614174000",
"user_id": "456e7890-e89b-12d3-a456-426614174000",
"name": "caller_name",
"description": "The full name of the caller",
"var_type": "text",
"enum_options": null,
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
}
{
"error": "Dynamic variable not found"
}
Retrieve details of a specific dynamic variable.
Path Parameters
Response
curl "https://api.magpipe.ai/functions/v1/manage-dynamic-variables/789e0123-e89b-12d3-a456-426614174000" \
-H "Authorization: Bearer YOUR_API_KEY"
{
"id": "789e0123-e89b-12d3-a456-426614174000",
"agent_id": "123e4567-e89b-12d3-a456-426614174000",
"user_id": "456e7890-e89b-12d3-a456-426614174000",
"name": "caller_name",
"description": "The full name of the caller",
"var_type": "text",
"enum_options": null,
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
}
{
"error": "Dynamic variable not found"
}