> ## Documentation Index
> Fetch the complete documentation index at: https://docs.opensesame.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Importing Endpoints

> Integrate your endpoints inside a Cell.

Cells can connect directly to your APIs. When you upload an API specification, OpenSesame automatically builds an MCP server behind the scenes. This allows your users to interact with your API through natural language.

<img src="https://mintcdn.com/opensesameaiinc/gK0iEZVNHocZtcJt/images/Screenshot2025-10-15at4.31.00PM.png?fit=max&auto=format&n=gK0iEZVNHocZtcJt&q=85&s=fa04a290b46851231b06b0fae8c9e21f" alt="Screenshot 2025-10-15 at 4.31.00 PM.png" width="3378" height="2090" data-path="images/Screenshot2025-10-15at4.31.00PM.png" />

To add your endpoints:

1. Click **Upload OpenAPI Spec**.
2. Choose your `.yaml` or `.json` file. This file can come from your existing Swagger or OpenAPI documentation.
   * If you do not have a spec file, contact our team and we can generate one for you.
   * You can also enrich your file with additional endpoint descriptions to improve response quality.

<img src="https://mintcdn.com/opensesameaiinc/gK0iEZVNHocZtcJt/images/Screenshot2025-10-15at4.34.02PM.png?fit=max&auto=format&n=gK0iEZVNHocZtcJt&q=85&s=0789e7b1cd36b85f12ff1d315f17aa03" alt="Screenshot 2025-10-15 at 4.34.02 PM.png" width="1384" height="1778" data-path="images/Screenshot2025-10-15at4.34.02PM.png" />

3. **Add your Base URL, authentication tokens, or additional parameters if required.**

   > **Note:**\
   > When setting up for testing, you may use a single static auth token. This is fine for quick verification.\
   > However, this **should not be used in your live embed**, since auth tokens often expire.\
   > For production, replace the static token with a **runtime variable** (for example `${authToken}`) so your application dynamically injects a fresh token whenever the Cell loads. This ensures users remain authenticated and prevents token expiry issues during use.
4. Once uploaded, OpenSesame automatically detects your endpoints and lists them in the panel.

<img src="https://mintcdn.com/opensesameaiinc/gK0iEZVNHocZtcJt/images/Screenshot2025-10-15at4.34.45PM.png?fit=max&auto=format&n=gK0iEZVNHocZtcJt&q=85&s=cecbfe350dc736a77f85a25db0a1af09" alt="Screenshot 2025-10-15 at 4.34.45 PM.png" width="1004" height="2004" data-path="images/Screenshot2025-10-15at4.34.45PM.png" />

You can review each endpoint, view its details, and **import** the ones you want your Cell to use. Imported endpoints become part of the Cell’s knowledge and action set.

We also support **GraphQL** endpoints. Simply provide the schema in the same upload flow.

After importing, your Cell can call these endpoints in real time, turning your existing API into an interactive agent that your users can chat with or embed directly into your product.

<img src="https://mintcdn.com/opensesameaiinc/gK0iEZVNHocZtcJt/images/Screenshot2025-10-15at4.35.13PM.png?fit=max&auto=format&n=gK0iEZVNHocZtcJt&q=85&s=bd4f6561e797bfa07a0c96adcb049e08" alt="Screenshot 2025-10-15 at 4.35.13 PM.png" width="936" height="316" data-path="images/Screenshot2025-10-15at4.35.13PM.png" />
