Skip to main content
GET
/
execution-policies
/
{policy_id}
Python
from meibel import MeibelClient

client = MeibelClient(api_key="your-api-key")

result = client.execution_policies.get("policy_id_value")
print(result)
import { MeibelClient } from 'meibel';

const client = new MeibelClient({ apiKey: 'your-api-key' });

const result = await client.executionPolicies.get('policy_id_value');
console.log(result);
import v2 "github.com/meibel-ai/meibel-go/v2"

client := v2.NewClient(v2.WithAPIKey("your-api-key"))
ctx := context.Background()

result, err := client.ExecutionPolicies.Get(ctx, "policy_id_value")
if err != nil {
log.Fatal(err)
}
fmt.Println(result)
curl --request GET \
--url https://api.meibel.ai/v2/execution-policies/{policy_id} \
--header 'Meibel-API-Key: <api-key>'
const options = {method: 'GET', headers: {'Meibel-API-Key': '<api-key>'}};

fetch('https://api.meibel.ai/v2/execution-policies/{policy_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.meibel.ai/v2/execution-policies/{policy_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 => [
"Meibel-API-Key: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
HttpResponse<String> response = Unirest.get("https://api.meibel.ai/v2/execution-policies/{policy_id}")
.header("Meibel-API-Key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.meibel.ai/v2/execution-policies/{policy_id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Meibel-API-Key"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "id": "<string>",
  "customer_id": "<string>",
  "project_id": "<string>",
  "name": "<string>",
  "execution_policy": {
    "datasources": {},
    "tools": {}
  },
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "description": "<string>"
}
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}

Authorizations

Meibel-API-Key
string
header
required

Path Parameters

policy_id
string
required

Response

Successful Response

ExecutionPolicyResponse

id
string
required
customer_id
string
required
project_id
string
required
name
string
required
execution_policy
ExecutionPolicy · object
required

Session-level access constraints (hardrails) for data and tools. Controls what data an agent session can access and what tools it can use. Constraints are enforced by the platform at runtime — the agent cannot bypass them. Multiple policies can be composed: stored policies (by ID) and/or an inline policy are structurally merged. Overlapping datasource or tool entries are combined with $and (intersection semantics). All filter fields use MongoDB-style constraint operators. Plain values are automatically normalized to {"$eq": value}.

created_at
string<date-time>
required
updated_at
string<date-time>
required
description
string | null