Get a schema
Returns one schema of a model. A public model’s schemas are readable without credentials; a private model’s follow the model’s read rules.
GET
/
models
/
{id}
/
schemas
/
{schema_id}
Get a schema
curl --request GET \
--url https://api.reactor.inc/models/{id}/schemas/{schema_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.reactor.inc/models/{id}/schemas/{schema_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.reactor.inc/models/{id}/schemas/{schema_id}', 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.reactor.inc/models/{id}/schemas/{schema_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.reactor.inc/models/{id}/schemas/{schema_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.reactor.inc/models/{id}/schemas/{schema_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.reactor.inc/models/{id}/schemas/{schema_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "cf868483-fa9f-4744-a4ce-aa2724e45f0a",
"model_id": "7b3f1bc2-a4e5-4d78-b9c1-0e6c2f9a1d34",
"release": "v1.0.5-ge6187a05",
"schema": {
"openapi": "3.0.0",
"info": {
"title": "your-org/your-model",
"version": "1.0.5"
},
"paths": {}
},
"created_at": "2025-05-11T21:46:40Z",
"updated_at": "2025-05-11T21:46:40Z"
}{
"error": "<string>",
"message": "<string>",
"resource": "<string>",
"reason": "<string>"
}{
"error": "<string>",
"message": "<string>",
"resource": "<string>",
"reason": "<string>"
}{
"error": "<string>",
"message": "<string>",
"resource": "<string>",
"reason": "<string>"
}Authorizations
A Reactor API key (rk_...), sent as Authorization: Bearer rk_.... Keep it on a server.
Path Parameters
The model's ID (not its project ID). Find it with GET /models?name=your-org/your-model.
The schema's ID.
Response
The schema.
The OpenAPI document, stored as sent.
When it was created, as an RFC 3339 timestamp.
Example:
"2026-01-15T10:30:00Z"
When it was last updated, as an RFC 3339 timestamp.
Example:
"2026-01-15T10:30:00Z"
⌘I
Get a schema
curl --request GET \
--url https://api.reactor.inc/models/{id}/schemas/{schema_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.reactor.inc/models/{id}/schemas/{schema_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.reactor.inc/models/{id}/schemas/{schema_id}', 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.reactor.inc/models/{id}/schemas/{schema_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.reactor.inc/models/{id}/schemas/{schema_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.reactor.inc/models/{id}/schemas/{schema_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.reactor.inc/models/{id}/schemas/{schema_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "cf868483-fa9f-4744-a4ce-aa2724e45f0a",
"model_id": "7b3f1bc2-a4e5-4d78-b9c1-0e6c2f9a1d34",
"release": "v1.0.5-ge6187a05",
"schema": {
"openapi": "3.0.0",
"info": {
"title": "your-org/your-model",
"version": "1.0.5"
},
"paths": {}
},
"created_at": "2025-05-11T21:46:40Z",
"updated_at": "2025-05-11T21:46:40Z"
}{
"error": "<string>",
"message": "<string>",
"resource": "<string>",
"reason": "<string>"
}{
"error": "<string>",
"message": "<string>",
"resource": "<string>",
"reason": "<string>"
}{
"error": "<string>",
"message": "<string>",
"resource": "<string>",
"reason": "<string>"
}