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

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

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

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

const result = await client.executionPolicies.list();
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.List(ctx)
if err != nil {
log.Fatal(err)
}
fmt.Println(result)
curl --request GET \
--url https://api.meibel.ai/v2/execution-policies \
--header 'Meibel-API-Key: <api-key>'
const options = {method: 'GET', headers: {'Meibel-API-Key': '<api-key>'}};

fetch('https://api.meibel.ai/v2/execution-policies', 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",
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")
.header("Meibel-API-Key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

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

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
{
  "data": [
    {
      "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>"
    }
  ],
  "pagination": {
    "total": 123,
    "offset": 123,
    "limit": 123
  }
}
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}

Authorizations

Meibel-API-Key
string
header
required

Response

Successful Response

GetExecutionPoliciesResponse

data
ExecutionPolicyResponse · object[]
required
pagination
PaginationMeta · object
required

Pagination metadata included in list responses.