List public event types and schema versions
curl --request GET \
--url https://api.occtoo.com/v1/event-typesimport requests
url = "https://api.occtoo.com/v1/event-types"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.occtoo.com/v1/event-types', 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.occtoo.com/v1/event-types",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.occtoo.com/v1/event-types"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.occtoo.com/v1/event-types")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.occtoo.com/v1/event-types")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"type": "source.updated",
"version": "1.0",
"description": "A source configuration changed.",
"schemaUrl": "https://api.occtoo.com/v1/events/schemas/source.updated/1.0",
"filterableProperties": [
"sourceId"
],
"schema": {
"type": "object",
"properties": {
"sourceId": {
"type": "string",
"x-occtoo-filterable": true
},
"changes": {
"type": "array",
"items": {
"type": "string"
}
},
"properties": {
"type": [
"array",
"null"
],
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"change": {
"type": "string"
}
},
"required": [
"id",
"change"
]
},
"default": null
},
"correlationIds": {
"type": "array",
"items": {
"type": "string"
}
},
"actor": {
"type": [
"object",
"null"
],
"properties": {
"id": {
"type": "string"
}
},
"required": [
"id"
]
}
},
"required": [
"sourceId",
"changes",
"correlationIds"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://api.occtoo.com/v1/events/schemas/source.updated/1.0",
"additionalProperties": true
}
}
]Events API
List public event types and schema versions
Returns the public event catalog. Each entry identifies a stable event type, its current payload schema version, the immutable JSON Schema URL, and the entity-level properties accepted by the filter grammar.
Cache the catalog briefly and resolve payload contracts through schemaUrl. Event type names do not contain a schema version.
GET
/
v1
/
event-types
List public event types and schema versions
curl --request GET \
--url https://api.occtoo.com/v1/event-typesimport requests
url = "https://api.occtoo.com/v1/event-types"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.occtoo.com/v1/event-types', 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.occtoo.com/v1/event-types",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.occtoo.com/v1/event-types"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.occtoo.com/v1/event-types")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.occtoo.com/v1/event-types")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"type": "source.updated",
"version": "1.0",
"description": "A source configuration changed.",
"schemaUrl": "https://api.occtoo.com/v1/events/schemas/source.updated/1.0",
"filterableProperties": [
"sourceId"
],
"schema": {
"type": "object",
"properties": {
"sourceId": {
"type": "string",
"x-occtoo-filterable": true
},
"changes": {
"type": "array",
"items": {
"type": "string"
}
},
"properties": {
"type": [
"array",
"null"
],
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"change": {
"type": "string"
}
},
"required": [
"id",
"change"
]
},
"default": null
},
"correlationIds": {
"type": "array",
"items": {
"type": "string"
}
},
"actor": {
"type": [
"object",
"null"
],
"properties": {
"id": {
"type": "string"
}
},
"required": [
"id"
]
}
},
"required": [
"sourceId",
"changes",
"correlationIds"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://api.occtoo.com/v1/events/schemas/source.updated/1.0",
"additionalProperties": true
}
}
]Response
200 - application/json
The currently supported public event catalog.
Stable, unversioned CloudEvent type.
Example:
"source.updated"
Current payload JSON Schema version.
Example:
"1.0"
Human-readable event meaning.
Example:
"A source configuration changed."
Immutable URL used by the CloudEvent dataschema attribute.
Entity-level data properties accepted by the filter grammar for this type.
The current JSON Schema, included inline for discovery clients.
Was this page helpful?