POST
/
action
/
rest_call
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"
  }
}

Authorizations

Authorization
string
header
required

Bearer token from your account (https://agent.ai/user/settings#credits)

Body

application/json

Response

200 - application/json

API response

The response is of type object.