curl --request POST \
--url https://api-lr.agent.ai/v1/action/rest_call \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://api.example.com/data",
"method": "POST",
"body": "<string>",
"headers": {}
}
'{
"status": 200,
"response": {
"version": "0.92.0 AUG 21 2025"
}
}Make a RESTful API call to external endpoints for data retrieval or updates.
curl --request POST \
--url https://api-lr.agent.ai/v1/action/rest_call \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://api.example.com/data",
"method": "POST",
"body": "<string>",
"headers": {}
}
'{
"status": 200,
"response": {
"version": "0.92.0 AUG 21 2025"
}
}Bearer token from your account (https://agent.ai/user/integrations#api)