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": {} }'
{ "status": 200, "response": { "version": "0.91.0 FEB 6 2025" } }
Make a REST API call to a specified endpoint.
Bearer token from your account (https://agent.ai/user/settings#credits)
API response
The response is of type object.
object