Skip to main content
POST
/
tools
/
import
Preview an import of tool definitions from an OpenAPI spec or connector YAML manifest.
curl --request POST \
  --url https://api.mnemom.ai/v1/tools/import \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "content": "<string>",
  "url": "<string>",
  "infer_class_domain": true
}
'
{
  "ok": true,
  "imported": [
    {}
  ],
  "inferred_class_domain": {},
  "conflicts": [
    {}
  ],
  "commit_url": "<string>",
  "preview_token": "<string>"
}

Authorizations

Authorization
string
header
required

Supabase JWT token in Authorization: Bearer header

Body

application/json
format
enum<string>
required
Available options:
openapi,
connector_yaml
source
enum<string>
required
Available options:
inline,
url
content
string

Raw spec text. Required when source=inline.

url
string

Public URL to fetch the spec. Required when source=url.

infer_class_domain
boolean

When true (default), calls the LLM to infer class + domain per tool.

Response

Preview of the imported tool definitions.

ok
boolean
required
imported
object[]
required
inferred_class_domain
object
required
conflicts
object[]
required
commit_url
string
required
preview_token
string
required