Search
curl --request POST \
--url https://api.trymaitai.ai/api/v1/search \
--header 'Content-Type: application/json' \
--header 'X-Maitai-Api-Key: <api-key>' \
--data '
{
"query": "how do I import an OpenAI agent",
"limit": 3
}
'import requests
url = "https://api.trymaitai.ai/api/v1/search"
payload = {
"query": "how do I import an OpenAI agent",
"limit": 3
}
headers = {
"X-Maitai-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Maitai-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({query: 'how do I import an OpenAI agent', limit: 3})
};
fetch('https://api.trymaitai.ai/api/v1/search', 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.trymaitai.ai/api/v1/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'query' => 'how do I import an OpenAI agent',
'limit' => 3
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Maitai-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.trymaitai.ai/api/v1/search"
payload := strings.NewReader("{\n \"query\": \"how do I import an OpenAI agent\",\n \"limit\": 3\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Maitai-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.trymaitai.ai/api/v1/search")
.header("X-Maitai-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"how do I import an OpenAI agent\",\n \"limit\": 3\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.trymaitai.ai/api/v1/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Maitai-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"how do I import an OpenAI agent\",\n \"limit\": 3\n}"
response = http.request(request)
puts response.read_body{
"data": {
"results": [
{
"use_case": "Import a code-defined OpenAI Agents SDK agent into Maitai.",
"difficulty": "easy",
"execution_guidance": "Authenticate the CLI, then run the framework-aware import against the user's Python module.",
"recommended_plan_steps": [
{
"index": 1,
"kind": "Required",
"phase": "Prerequisite",
"command": "maitai login --api-key $MAITAI_API_KEY",
"description": "Authenticate the CLI against the Maitai Platform."
},
{
"index": 2,
"kind": "Required",
"phase": "Step",
"command": "maitai agents import ./agents.py --framework openai-agents --application-name <name>",
"description": "Run the framework-aware import against the user's Python module."
},
{
"index": 3,
"kind": "Optional",
"phase": "Next Step",
"command": "maitai agents export <agent_id>",
"description": "Export the imported agent to round-trip the manifest."
}
],
"guardrails": [
"[importAgents] Pass `on_conflict='update'` when re-running against the same application so existing agents are merged in place.",
"[importAgents] Set `execution_mode: 'reasoning'` for OpenAI Agents SDK imports so the runtime uses reasoning-style orchestration."
],
"primary_tool_slugs": [
"importAgents"
],
"related_tool_slugs": [
"listAgents",
"createAgent",
"createAgentAction"
]
}
],
"catalog_size": 339
}
}Search
Search
Return a recommended Maitai CLI/API execution plan for a free-form query.
Useful for agent IDEs (Cursor, Claude Code) that want to translate a natural-language ask like “how do I import an OpenAI agent” into a concrete sequence of Maitai operations, known pitfalls, and related tools — the same shape Composio’s composio.search returns for their toolkits.
POST
/
search
Search
curl --request POST \
--url https://api.trymaitai.ai/api/v1/search \
--header 'Content-Type: application/json' \
--header 'X-Maitai-Api-Key: <api-key>' \
--data '
{
"query": "how do I import an OpenAI agent",
"limit": 3
}
'import requests
url = "https://api.trymaitai.ai/api/v1/search"
payload = {
"query": "how do I import an OpenAI agent",
"limit": 3
}
headers = {
"X-Maitai-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Maitai-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({query: 'how do I import an OpenAI agent', limit: 3})
};
fetch('https://api.trymaitai.ai/api/v1/search', 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.trymaitai.ai/api/v1/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'query' => 'how do I import an OpenAI agent',
'limit' => 3
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Maitai-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.trymaitai.ai/api/v1/search"
payload := strings.NewReader("{\n \"query\": \"how do I import an OpenAI agent\",\n \"limit\": 3\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Maitai-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.trymaitai.ai/api/v1/search")
.header("X-Maitai-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"how do I import an OpenAI agent\",\n \"limit\": 3\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.trymaitai.ai/api/v1/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Maitai-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"how do I import an OpenAI agent\",\n \"limit\": 3\n}"
response = http.request(request)
puts response.read_body{
"data": {
"results": [
{
"use_case": "Import a code-defined OpenAI Agents SDK agent into Maitai.",
"difficulty": "easy",
"execution_guidance": "Authenticate the CLI, then run the framework-aware import against the user's Python module.",
"recommended_plan_steps": [
{
"index": 1,
"kind": "Required",
"phase": "Prerequisite",
"command": "maitai login --api-key $MAITAI_API_KEY",
"description": "Authenticate the CLI against the Maitai Platform."
},
{
"index": 2,
"kind": "Required",
"phase": "Step",
"command": "maitai agents import ./agents.py --framework openai-agents --application-name <name>",
"description": "Run the framework-aware import against the user's Python module."
},
{
"index": 3,
"kind": "Optional",
"phase": "Next Step",
"command": "maitai agents export <agent_id>",
"description": "Export the imported agent to round-trip the manifest."
}
],
"guardrails": [
"[importAgents] Pass `on_conflict='update'` when re-running against the same application so existing agents are merged in place.",
"[importAgents] Set `execution_mode: 'reasoning'` for OpenAI Agents SDK imports so the runtime uses reasoning-style orchestration."
],
"primary_tool_slugs": [
"importAgents"
],
"related_tool_slugs": [
"listAgents",
"createAgent",
"createAgentAction"
]
}
],
"catalog_size": 339
}
}Authorizations
Your Maitai API key from the Portal.
Body
application/json
Response
200 - application/json
Search.
Was this page helpful?
⌘I