cURL
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", "headers": {}, "body": "<string>" }'
{ "status": 200, "response": { "version": "0.92.0 AUG 21 2025" } }
Make a REST API call to a specified endpoint.
Bearer token from your account (https://agent.ai/user/integrations#api)
API endpoint URL.
"https://api.example.com/data"
HTTP method.
POST
GET
PUT
HEAD
Request body (string)
Request headers (JSON format)
API response
HTTP status code of the action response
Response data from the action