Create agent from website
curl --request POST \
--url https://revor.ai/api/v2/agents/from-website \
--header 'Content-Type: application/json' \
--data '
{
"company_website": "<string>",
"mode": "<string>",
"locale": "<string>",
"name": "<string>"
}
'import requests
url = "https://revor.ai/api/v2/agents/from-website"
payload = {
"company_website": "<string>",
"mode": "<string>",
"locale": "<string>",
"name": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
company_website: '<string>',
mode: '<string>',
locale: '<string>',
name: '<string>'
})
};
fetch('https://revor.ai/api/v2/agents/from-website', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://revor.ai/api/v2/agents/from-website",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'company_website' => '<string>',
'mode' => '<string>',
'locale' => '<string>',
'name' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://revor.ai/api/v2/agents/from-website"
payload := strings.NewReader("{\n \"company_website\": \"<string>\",\n \"mode\": \"<string>\",\n \"locale\": \"<string>\",\n \"name\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://revor.ai/api/v2/agents/from-website")
.header("Content-Type", "application/json")
.body("{\n \"company_website\": \"<string>\",\n \"mode\": \"<string>\",\n \"locale\": \"<string>\",\n \"name\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://revor.ai/api/v2/agents/from-website")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"company_website\": \"<string>\",\n \"mode\": \"<string>\",\n \"locale\": \"<string>\",\n \"name\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyAgents
Create agent from website
Create a draft agent from a company website.
POST
/
api
/
v2
/
agents
/
from-website
Create agent from website
curl --request POST \
--url https://revor.ai/api/v2/agents/from-website \
--header 'Content-Type: application/json' \
--data '
{
"company_website": "<string>",
"mode": "<string>",
"locale": "<string>",
"name": "<string>"
}
'import requests
url = "https://revor.ai/api/v2/agents/from-website"
payload = {
"company_website": "<string>",
"mode": "<string>",
"locale": "<string>",
"name": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
company_website: '<string>',
mode: '<string>',
locale: '<string>',
name: '<string>'
})
};
fetch('https://revor.ai/api/v2/agents/from-website', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://revor.ai/api/v2/agents/from-website",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'company_website' => '<string>',
'mode' => '<string>',
'locale' => '<string>',
'name' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://revor.ai/api/v2/agents/from-website"
payload := strings.NewReader("{\n \"company_website\": \"<string>\",\n \"mode\": \"<string>\",\n \"locale\": \"<string>\",\n \"name\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://revor.ai/api/v2/agents/from-website")
.header("Content-Type", "application/json")
.body("{\n \"company_website\": \"<string>\",\n \"mode\": \"<string>\",\n \"locale\": \"<string>\",\n \"name\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://revor.ai/api/v2/agents/from-website")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"company_website\": \"<string>\",\n \"mode\": \"<string>\",\n \"locale\": \"<string>\",\n \"name\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyCreate a draft agent from a company website.
Overview
| Method | POST |
| Path | /api/v2/agents/from-website |
| Permission | agents:write |
| Idempotency | Required (Idempotency-Key header) |
| Returns | Public job (poll GET /api/v2/jobs/{id}) |
Request body
cURL
curl -X POST "https://revor.ai/api/v2/agents/from-website" \
-H "Authorization: Bearer sk-revor-REPLACE_ME" \
-H "Idempotency-Key: agent-from-web-001" \
-H "Content-Type: application/json" \
-d '{
"company_website": "example.com",
"mode": "icebreaker",
"locale": "en",
"name": "Example outreach agent"
}'
Response
202
{
"ok": true,
"request_id": "req_xxx",
"item": {
"id": "job-uuid",
"status": "queued",
"type": "agent_from_website"
}
}
Behavior
- Returns
202withitem(public job). - Poll
GET /api/v2/jobs/{id}; successfulresult.item.ididentifies the agent. - Both modes create a draft without binding or publishing.
- Outreach (
icebreaker) uses V2; customer service (autoreply) uses V1. - Reuse the same idempotency key for retries of the same request.
Errors
| HTTP | Code | Meaning |
|---|---|---|
400 | agent_input_invalid | Request does not match the contract |
403 | permission_denied | Missing required permission |
500 | agent_operation_failed | Operation failed. Read current state before retrying |

