Get an environment access grant
Returns one account’s access to your model, including this environment. Requires the
account_admin or developer role in the owning account.
GET
/
projects
/
{proj_id}
/
environments
/
{env}
/
accounts
/
{account_id}
Get an environment access grant
curl --request GET \
--url https://api.reactor.inc/projects/{proj_id}/environments/{env}/accounts/{account_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.reactor.inc/projects/{proj_id}/environments/{env}/accounts/{account_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/projects/{proj_id}/environments/{env}/accounts/{account_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/projects/{proj_id}/environments/{env}/accounts/{account_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/projects/{proj_id}/environments/{env}/accounts/{account_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/projects/{proj_id}/environments/{env}/accounts/{account_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.reactor.inc/projects/{proj_id}/environments/{env}/accounts/{account_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{
"model": {
"id": "7b3f1a2c-4d5e-4f60-8a1b-2c3d4e5f6a7b",
"name": "your-org/your-model"
},
"account": {
"id": "3c1d2e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
"slug": "partner-co",
"name": "Partner Co"
},
"environments": [
{
"name": "staging",
"granted_by": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
"granted_at": "2026-11-10T09:05:00Z"
}
]
}{
"error": "<string>",
"message": "<string>",
"resource": "<string>",
"reason": "<string>"
}{
"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 project's ID, a UUID. It is not the model's ID.
The environment's ID (a UUID) or its name, such as production. A name matches only a live environment; a deleted environment is reachable by its ID only.
The ID of the account that gets or holds access. A member finds it with GET /me.
⌘I
Get an environment access grant
curl --request GET \
--url https://api.reactor.inc/projects/{proj_id}/environments/{env}/accounts/{account_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.reactor.inc/projects/{proj_id}/environments/{env}/accounts/{account_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/projects/{proj_id}/environments/{env}/accounts/{account_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/projects/{proj_id}/environments/{env}/accounts/{account_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/projects/{proj_id}/environments/{env}/accounts/{account_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/projects/{proj_id}/environments/{env}/accounts/{account_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.reactor.inc/projects/{proj_id}/environments/{env}/accounts/{account_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{
"model": {
"id": "7b3f1a2c-4d5e-4f60-8a1b-2c3d4e5f6a7b",
"name": "your-org/your-model"
},
"account": {
"id": "3c1d2e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
"slug": "partner-co",
"name": "Partner Co"
},
"environments": [
{
"name": "staging",
"granted_by": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
"granted_at": "2026-11-10T09:05:00Z"
}
]
}{
"error": "<string>",
"message": "<string>",
"resource": "<string>",
"reason": "<string>"
}{
"error": "<string>",
"message": "<string>",
"resource": "<string>",
"reason": "<string>"
}{
"error": "<string>",
"message": "<string>",
"resource": "<string>",
"reason": "<string>"
}{
"error": "<string>",
"message": "<string>",
"resource": "<string>",
"reason": "<string>"
}