---
title: "APIs"
description: "Import OpenAPI schemas so agents and MCP can call REST operations."
canonical_url: "https://docs.vettero.com/integrations/apis"
---
# APIs

> Import OpenAPI schemas so agents and MCP can call REST operations.

**APIs** (API Schemas) let you import an **OpenAPI 3.0 / 3.1** document into the workspace. Each operation becomes a callable tool for agents and workflows. You set a **base URL** and shared **auth** once on the schema.

Use them when you already have a REST API description and want the model to call those endpoints without writing custom glue for every path.

## When to use

- Attach REST operations from an existing OpenAPI spec as agent tools
- Centralize token, API key, basic, or OAuth credentials for many endpoints
- Expose selected operations on a workspace [MCP Server](https://docs.vettero.com/configuration/mcp-servers)

## Add an API schema

Open **Integrations → APIs** and choose **Add Schema**. A wizard opens on the same page.

1. Choose **Import URL** or **Paste schema**.
2. Enter the OpenAPI JSON URL, or paste the OpenAPI **JSON**.
3. Confirm **Name** and **Description** (filled from the document). Set **Base URL** if it was not inferred from `servers`.
4. Choose **Auth** (None, Token, Api Key, Basic, or OAuth).
5. Review the operations, then **Create**. The schema detail page opens.

The detail page is read-only. **Edit** on the name card changes the display name and description. **Edit** on Connection opens a dialog for base URL, auth, and the OpenAPI document. **Activity** shows outbound calls when agents or MCP use this schema. Changing the schema is also recorded in the workspace audit log.

OAuth can be authorized from the details card after create (**Authorize**).

### Auth options

<table>
<thead>
  <tr>
    <th>
      Auth
    </th>
    
    <th>
      What you configure
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        None
      </strong>
    </td>
    
    <td>
      No credentials
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Token
      </strong>
    </td>
    
    <td>
      Token value (literal or <code>
        env.*
      </code>
      
      ), type Bearer / Basic / Custom (optional header name)
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Api Key
      </strong>
    </td>
    
    <td>
      Key value, location (Header / Query / Cookie), and parameter name
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Basic
      </strong>
    </td>
    
    <td>
      Username and password
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        OAuth
      </strong>
    </td>
    
    <td>
      Save the schema first, then complete authorization in the popup
    </td>
  </tr>
</tbody>
</table>

Prefer storing secrets as [environment variables](https://docs.vettero.com/configuration/environment-variables) and referencing them as `env.MY_KEY` instead of pasting tokens into the schema.

## Limits

- Base URL must be a valid non-loopback `https://` URL.
- Hard delete removes the schema and its agent tool bindings — it does not appear in Trash.
- OAuth schemas need a successful save (the create wizard already does this) before you can authorize.

## Details and activity

Open a schema from the list to see **Setup** and **Activity**.

<table>
<thead>
  <tr>
    <th>
      Tab
    </th>
    
    <th>
      What you see
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        Setup
      </strong>
    </td>
    
    <td>
      Name, description, base URL, auth type (not secret values), OpenAPI version, and the operation list. Name/description and connection (base URL, auth, schema) each have their own <strong>
        Edit
      </strong>
      
       dialog.
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Activity
      </strong>
    </td>
    
    <td>
      Outbound operation calls (method, path, status). Request and response bodies are not stored. Schema create/update/delete stays in the audit log.
    </td>
  </tr>
</tbody>
</table>

## Where APIs are used

<table>
<thead>
  <tr>
    <th>
      Place
    </th>
    
    <th>
      How
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        <a href="https://docs.vettero.com/build/agents">
          Agents
        </a>
        
         / <a href="https://docs.vettero.com/build/workflows">
          workflows
        </a>
      </strong>
    </td>
    
    <td>
      Tools per OpenAPI operation
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        <a href="https://docs.vettero.com/configuration/mcp-servers">
          MCP Servers
        </a>
      </strong>
    </td>
    
    <td>
      <code>
        apiOperations
      </code>
      
       (<code>
        schemaId:operationId
      </code>
      
      )
    </td>
  </tr>
</tbody>
</table>


## Sitemap

See the full [sitemap](https://docs.vettero.com/sitemap.md) for all pages.
