curl --request POST \
--url https://api.opal.dev/v1/agent-activity/ai-sightings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"sightings": [
{
"tool": "<string>",
"host": "<string>",
"day": "<string>",
"first_seen": "2023-11-07T05:31:56Z",
"last_seen": "2023-11-07T05:31:56Z",
"visits": 123,
"id": "<string>",
"uses": 123,
"last_used": "2023-11-07T05:31:56Z",
"account_domain": "<string>",
"plan": "<string>",
"account_structure": "<string>",
"account_hash": "<string>",
"dev_capture": {}
}
],
"dev_capture": {
"hosts": [
{
"host": "<string>",
"day": "<string>",
"first_seen": "2023-11-07T05:31:56Z",
"last_seen": "2023-11-07T05:31:56Z",
"visits": 123
}
],
"raw": [
{}
]
}
}
'import requests
url = "https://api.opal.dev/v1/agent-activity/ai-sightings"
payload = {
"sightings": [
{
"tool": "<string>",
"host": "<string>",
"day": "<string>",
"first_seen": "2023-11-07T05:31:56Z",
"last_seen": "2023-11-07T05:31:56Z",
"visits": 123,
"id": "<string>",
"uses": 123,
"last_used": "2023-11-07T05:31:56Z",
"account_domain": "<string>",
"plan": "<string>",
"account_structure": "<string>",
"account_hash": "<string>",
"dev_capture": {}
}
],
"dev_capture": {
"hosts": [
{
"host": "<string>",
"day": "<string>",
"first_seen": "2023-11-07T05:31:56Z",
"last_seen": "2023-11-07T05:31:56Z",
"visits": 123
}
],
"raw": [{}]
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
sightings: [
{
tool: '<string>',
host: '<string>',
day: '<string>',
first_seen: '2023-11-07T05:31:56Z',
last_seen: '2023-11-07T05:31:56Z',
visits: 123,
id: '<string>',
uses: 123,
last_used: '2023-11-07T05:31:56Z',
account_domain: '<string>',
plan: '<string>',
account_structure: '<string>',
account_hash: '<string>',
dev_capture: {}
}
],
dev_capture: {
hosts: [
{
host: '<string>',
day: '<string>',
first_seen: '2023-11-07T05:31:56Z',
last_seen: '2023-11-07T05:31:56Z',
visits: 123
}
],
raw: [{}]
}
})
};
fetch('https://api.opal.dev/v1/agent-activity/ai-sightings', 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://api.opal.dev/v1/agent-activity/ai-sightings",
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([
'sightings' => [
[
'tool' => '<string>',
'host' => '<string>',
'day' => '<string>',
'first_seen' => '2023-11-07T05:31:56Z',
'last_seen' => '2023-11-07T05:31:56Z',
'visits' => 123,
'id' => '<string>',
'uses' => 123,
'last_used' => '2023-11-07T05:31:56Z',
'account_domain' => '<string>',
'plan' => '<string>',
'account_structure' => '<string>',
'account_hash' => '<string>',
'dev_capture' => [
]
]
],
'dev_capture' => [
'hosts' => [
[
'host' => '<string>',
'day' => '<string>',
'first_seen' => '2023-11-07T05:31:56Z',
'last_seen' => '2023-11-07T05:31:56Z',
'visits' => 123
]
],
'raw' => [
[
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://api.opal.dev/v1/agent-activity/ai-sightings"
payload := strings.NewReader("{\n \"sightings\": [\n {\n \"tool\": \"<string>\",\n \"host\": \"<string>\",\n \"day\": \"<string>\",\n \"first_seen\": \"2023-11-07T05:31:56Z\",\n \"last_seen\": \"2023-11-07T05:31:56Z\",\n \"visits\": 123,\n \"id\": \"<string>\",\n \"uses\": 123,\n \"last_used\": \"2023-11-07T05:31:56Z\",\n \"account_domain\": \"<string>\",\n \"plan\": \"<string>\",\n \"account_structure\": \"<string>\",\n \"account_hash\": \"<string>\",\n \"dev_capture\": {}\n }\n ],\n \"dev_capture\": {\n \"hosts\": [\n {\n \"host\": \"<string>\",\n \"day\": \"<string>\",\n \"first_seen\": \"2023-11-07T05:31:56Z\",\n \"last_seen\": \"2023-11-07T05:31:56Z\",\n \"visits\": 123\n }\n ],\n \"raw\": [\n {}\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://api.opal.dev/v1/agent-activity/ai-sightings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"sightings\": [\n {\n \"tool\": \"<string>\",\n \"host\": \"<string>\",\n \"day\": \"<string>\",\n \"first_seen\": \"2023-11-07T05:31:56Z\",\n \"last_seen\": \"2023-11-07T05:31:56Z\",\n \"visits\": 123,\n \"id\": \"<string>\",\n \"uses\": 123,\n \"last_used\": \"2023-11-07T05:31:56Z\",\n \"account_domain\": \"<string>\",\n \"plan\": \"<string>\",\n \"account_structure\": \"<string>\",\n \"account_hash\": \"<string>\",\n \"dev_capture\": {}\n }\n ],\n \"dev_capture\": {\n \"hosts\": [\n {\n \"host\": \"<string>\",\n \"day\": \"<string>\",\n \"first_seen\": \"2023-11-07T05:31:56Z\",\n \"last_seen\": \"2023-11-07T05:31:56Z\",\n \"visits\": 123\n }\n ],\n \"raw\": [\n {}\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.opal.dev/v1/agent-activity/ai-sightings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"sightings\": [\n {\n \"tool\": \"<string>\",\n \"host\": \"<string>\",\n \"day\": \"<string>\",\n \"first_seen\": \"2023-11-07T05:31:56Z\",\n \"last_seen\": \"2023-11-07T05:31:56Z\",\n \"visits\": 123,\n \"id\": \"<string>\",\n \"uses\": 123,\n \"last_used\": \"2023-11-07T05:31:56Z\",\n \"account_domain\": \"<string>\",\n \"plan\": \"<string>\",\n \"account_structure\": \"<string>\",\n \"account_hash\": \"<string>\",\n \"dev_capture\": {}\n }\n ],\n \"dev_capture\": {\n \"hosts\": [\n {\n \"host\": \"<string>\",\n \"day\": \"<string>\",\n \"first_seen\": \"2023-11-07T05:31:56Z\",\n \"last_seen\": \"2023-11-07T05:31:56Z\",\n \"visits\": 123\n }\n ],\n \"raw\": [\n {}\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"received": 123,
"recorded": 123
}Report AI tools seen in a browser
Prototype (AG-457). Reports the AI tools one person was seen using in a browser that runs the Opal browser extension: one sighting per tool, account and day. The extension reports a tool only when a page’s host is one of the tool’s own hosts in Opal’s catalog of AI tools (sent in the client settings), and never sends paths, page titles or page text. For an account it sends only the email domain, from which Opal decides whether the account is the organization’s or personal.
A sighting tells a visit from use. Opal marks it USED when the person sent something to the tool (uses), SIGNED_IN when the page showed a signed-in account (account_domain), and VISITED when the site was only opened.
The person is the holder of the sign-in token. With the organization’s hooks key, the person is the user X-Opal-Actor names, and a report naming no user of the organization is dropped. Answers 200 and stores nothing while shadow AI detection is off for the organization.
curl --request POST \
--url https://api.opal.dev/v1/agent-activity/ai-sightings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"sightings": [
{
"tool": "<string>",
"host": "<string>",
"day": "<string>",
"first_seen": "2023-11-07T05:31:56Z",
"last_seen": "2023-11-07T05:31:56Z",
"visits": 123,
"id": "<string>",
"uses": 123,
"last_used": "2023-11-07T05:31:56Z",
"account_domain": "<string>",
"plan": "<string>",
"account_structure": "<string>",
"account_hash": "<string>",
"dev_capture": {}
}
],
"dev_capture": {
"hosts": [
{
"host": "<string>",
"day": "<string>",
"first_seen": "2023-11-07T05:31:56Z",
"last_seen": "2023-11-07T05:31:56Z",
"visits": 123
}
],
"raw": [
{}
]
}
}
'import requests
url = "https://api.opal.dev/v1/agent-activity/ai-sightings"
payload = {
"sightings": [
{
"tool": "<string>",
"host": "<string>",
"day": "<string>",
"first_seen": "2023-11-07T05:31:56Z",
"last_seen": "2023-11-07T05:31:56Z",
"visits": 123,
"id": "<string>",
"uses": 123,
"last_used": "2023-11-07T05:31:56Z",
"account_domain": "<string>",
"plan": "<string>",
"account_structure": "<string>",
"account_hash": "<string>",
"dev_capture": {}
}
],
"dev_capture": {
"hosts": [
{
"host": "<string>",
"day": "<string>",
"first_seen": "2023-11-07T05:31:56Z",
"last_seen": "2023-11-07T05:31:56Z",
"visits": 123
}
],
"raw": [{}]
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
sightings: [
{
tool: '<string>',
host: '<string>',
day: '<string>',
first_seen: '2023-11-07T05:31:56Z',
last_seen: '2023-11-07T05:31:56Z',
visits: 123,
id: '<string>',
uses: 123,
last_used: '2023-11-07T05:31:56Z',
account_domain: '<string>',
plan: '<string>',
account_structure: '<string>',
account_hash: '<string>',
dev_capture: {}
}
],
dev_capture: {
hosts: [
{
host: '<string>',
day: '<string>',
first_seen: '2023-11-07T05:31:56Z',
last_seen: '2023-11-07T05:31:56Z',
visits: 123
}
],
raw: [{}]
}
})
};
fetch('https://api.opal.dev/v1/agent-activity/ai-sightings', 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://api.opal.dev/v1/agent-activity/ai-sightings",
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([
'sightings' => [
[
'tool' => '<string>',
'host' => '<string>',
'day' => '<string>',
'first_seen' => '2023-11-07T05:31:56Z',
'last_seen' => '2023-11-07T05:31:56Z',
'visits' => 123,
'id' => '<string>',
'uses' => 123,
'last_used' => '2023-11-07T05:31:56Z',
'account_domain' => '<string>',
'plan' => '<string>',
'account_structure' => '<string>',
'account_hash' => '<string>',
'dev_capture' => [
]
]
],
'dev_capture' => [
'hosts' => [
[
'host' => '<string>',
'day' => '<string>',
'first_seen' => '2023-11-07T05:31:56Z',
'last_seen' => '2023-11-07T05:31:56Z',
'visits' => 123
]
],
'raw' => [
[
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://api.opal.dev/v1/agent-activity/ai-sightings"
payload := strings.NewReader("{\n \"sightings\": [\n {\n \"tool\": \"<string>\",\n \"host\": \"<string>\",\n \"day\": \"<string>\",\n \"first_seen\": \"2023-11-07T05:31:56Z\",\n \"last_seen\": \"2023-11-07T05:31:56Z\",\n \"visits\": 123,\n \"id\": \"<string>\",\n \"uses\": 123,\n \"last_used\": \"2023-11-07T05:31:56Z\",\n \"account_domain\": \"<string>\",\n \"plan\": \"<string>\",\n \"account_structure\": \"<string>\",\n \"account_hash\": \"<string>\",\n \"dev_capture\": {}\n }\n ],\n \"dev_capture\": {\n \"hosts\": [\n {\n \"host\": \"<string>\",\n \"day\": \"<string>\",\n \"first_seen\": \"2023-11-07T05:31:56Z\",\n \"last_seen\": \"2023-11-07T05:31:56Z\",\n \"visits\": 123\n }\n ],\n \"raw\": [\n {}\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://api.opal.dev/v1/agent-activity/ai-sightings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"sightings\": [\n {\n \"tool\": \"<string>\",\n \"host\": \"<string>\",\n \"day\": \"<string>\",\n \"first_seen\": \"2023-11-07T05:31:56Z\",\n \"last_seen\": \"2023-11-07T05:31:56Z\",\n \"visits\": 123,\n \"id\": \"<string>\",\n \"uses\": 123,\n \"last_used\": \"2023-11-07T05:31:56Z\",\n \"account_domain\": \"<string>\",\n \"plan\": \"<string>\",\n \"account_structure\": \"<string>\",\n \"account_hash\": \"<string>\",\n \"dev_capture\": {}\n }\n ],\n \"dev_capture\": {\n \"hosts\": [\n {\n \"host\": \"<string>\",\n \"day\": \"<string>\",\n \"first_seen\": \"2023-11-07T05:31:56Z\",\n \"last_seen\": \"2023-11-07T05:31:56Z\",\n \"visits\": 123\n }\n ],\n \"raw\": [\n {}\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.opal.dev/v1/agent-activity/ai-sightings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"sightings\": [\n {\n \"tool\": \"<string>\",\n \"host\": \"<string>\",\n \"day\": \"<string>\",\n \"first_seen\": \"2023-11-07T05:31:56Z\",\n \"last_seen\": \"2023-11-07T05:31:56Z\",\n \"visits\": 123,\n \"id\": \"<string>\",\n \"uses\": 123,\n \"last_used\": \"2023-11-07T05:31:56Z\",\n \"account_domain\": \"<string>\",\n \"plan\": \"<string>\",\n \"account_structure\": \"<string>\",\n \"account_hash\": \"<string>\",\n \"dev_capture\": {}\n }\n ],\n \"dev_capture\": {\n \"hosts\": [\n {\n \"host\": \"<string>\",\n \"day\": \"<string>\",\n \"first_seen\": \"2023-11-07T05:31:56Z\",\n \"last_seen\": \"2023-11-07T05:31:56Z\",\n \"visits\": 123\n }\n ],\n \"raw\": [\n {}\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"received": 123,
"recorded": 123
}Authorizations
Headers
Body
AiToolSightingsReport Object
Description
AI tools one person was seen using in a browser, at most 200 sightings per report.
Response
How many sightings were read and recorded.
AiToolSightingsResult Object
Description
What one sightings report did.
Was this page helpful?