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
url
string
required

API endpoint URL.

method
enum<string>
default:
POST
required

HTTP method.

Available options:
POST,
GET,
PUT,
HEAD
headers
object

Request headers (JSON format).

body
object

Request body (JSON format).

Response

200 - application/json
API response
status
integer

HTTP status code of the action response

response
object

Response data from the action