cURL
curl --request POST \ --url https://api-lr.agent.ai/v1/action/get_variable_from_database \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "variable": "<string>", "variable_retrieval_depth": "most_recent_value", "agent_db_historical_values": "last hour", "agent_db_variable_retrieval_count": "<string>" }'
{ "status": 123, "response": {} }
Retrieve a variable from the agent’s database
Bearer token from your account (https://agent.ai/user/settings#credits)
Retrieved variable data
The response is of type object.
object