---
source_url: "https://www.glean.com/product/api?utm_source=openai"
title: "Glean APIs: Build Secure Enterprise AI Agents & Integrations"
mirrored_at: 2026-08-11T13:02:23.111Z
host: www.glean.com
cited_in_42a: true
mirror_canonical: "https://index.42a.ai/www.glean.com/product/api__q__utm_source_openai"
---

> **Original source:** https://www.glean.com/product/api?utm_source=openai

API

## Build your own AI agents on full enterprise context.

Context is the next data platform. Glean provides the foundation for chatbots and agents to become the new tools of work.

![](https://cdn.prod.website-files.com/6127a84dfe068e153ef20572/699f815e3fc4c8c16a46fe66_api_build.webp)

Search

Custom AI, without the complexity

Bring all enterprise knowledge together with secure, permissions-aware search.

![](https://cdn.prod.website-files.com/6127a84dfe068e153ef20572/699f815ec21f3a2cbbabc38e_api_build-1.webp)

Agents

Context-aware agents

Build in any framework and give your agents the full context of your company.

![](https://cdn.prod.website-files.com/6127a84dfe068e153ef20572/699f815efc56fc2196529401_api_build-2.webp)

Chatbots

Best-in-class retrieval for any AI app

Deliver grounded answers right inside the tools your team works in everyday.

## Get started in minutes.

Search API

```
from glean.api_client import Glean

with Glean(api_token="YOUR_GLEAN_API_TOKEN", instance="your-company") as glean:
     res = glean.client.agents.create_and_wait_run(
     agent_id="agent_123",
     input={"query":"Analyze monthly sales performance"}
     )
     print(res)
```

Copy code

Chat API

```
from glean.api_client import Glean

with Glean(api_token="YOUR_GLEAN_API_TOKEN", instance="your-company") as glean:
     res=glean.client.chat.create(
     messages=[{“fragments":[{“text”: “Summarize our Q4 goals”}]}]
     )
     print(res)
```

Copy code

Agent API

```
from glean.api_client import Glean

with Glean(api_token="YOUR_GLEAN_API_TOKEN", instance="your-company") as glean:
     res = glean.client.search.search
     (query="vacation policy")
     print(res)
```

Copy code

## Build your way with open APIs

### Indexing SDK

Bring custom, permission-aware data into Glean alongside 100+ out-of-the-box connectors.

### Web SDK

Embed Glean’s UI in your apps to power context-aware chatbots and agents where work happens.

### Agent toolkit

Build agents in your preferred framework — OpenAI, LangChain, Google ADK, CrewAI, and more — all grounded in the full context of your enterprise.

### Remote MCP servers

Run Glean in MCP-enabled IDEs and apps like Cursor, VS Code, Windsurf, and Claude Desktop.

### Custom actions

Automate your work with 100+ native actions, or create your own using MCP and the OpenAPI spec.

Build in your language

Build in your agent framework

![](https://cdn.prod.website-files.com/6127a84dfe068e153ef20572/699f5d219bb47dd13cc1e86c_icon_s.svg)

Use Glean where you work

![](https://cdn.prod.website-files.com/6127a84dfe068e153ef20572/6989b786de2fccca4e11ef62_dcf3ee844d75c005f44f2ad6955e67d9_dots.webp)

## Explore more resources

## FAQs

What can developers build with Glean APIs?

Developers can build AI agents, chatbots, search experiences, and context-aware enterprise applications on Glean’s search and context platform.

What APIs and SDKs does Glean provide?

Glean provides APIs and tools for search, chat, agents, indexing, web embedding, remote MCP, and custom actions.

Can developers bring custom enterprise data into Glean?

Yes. The Indexing SDK lets teams add custom, permission-aware data alongside Glean’s existing connectors.

Can Glean APIs support custom agents in other frameworks?

Yes. Glean supports agents built with preferred frameworks such as OpenAI, LangChain, Google ADK, CrewAI, and others.

Can teams embed Glean inside their own products or workflows?

Yes. The Web SDK helps teams embed Glean UI and context-aware chat or agent experiences where work already happens.

Does Glean support custom actions and MCP-enabled workflows?

Yes. Teams can automate work with native actions, create custom actions using OpenAPI and MCP, and use Glean in MCP-enabled IDEs and apps.

![](https://cdn.prod.website-files.com/6127a84dfe068e153ef20572/69cb2e8bf65178f31d8136e2_career_hero-cta.webp)![](https://cdn.prod.website-files.com/6127a84dfe068e153ef20572/69cb2e8bf65178f31d8136e2_career_hero-cta.webp)![CTA Background Gradient 2](https://cdn.prod.website-files.com/6127a84dfe068e153ef20572/686c170144dca2c694924bde_40106bcbd58ff05381b4a609edc8f248_Group%202083936655-1.webp)![CTA Background Gradient 2 - Mobile](https://cdn.prod.website-files.com/6127a84dfe068e153ef20572/686d18a0442119d801986e9f_49f6945b6b449aeffda727e038aa97cf_CTA%20Background%20Gradient%202%20-%20Mobile.webp)![CTA Background Gradient 3](https://cdn.prod.website-files.com/6127a84dfe068e153ef20572/686c0ef31e585c1c0c9eb2a0_CTA%20Background.webp)![CTA Background Gradient 3](https://cdn.prod.website-files.com/6127a84dfe068e153ef20572/686c0ef31e585c1c0c9eb2a0_CTA%20Background.webp)![CTA Background Mobile](https://cdn.prod.website-files.com/6127a84dfe068e153ef20572/686cd671fb4cd509db55077c_CTA%20Background%20Mobile.webp)