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.

Build on Glean

Placeholder platform image

Search

Custom AI, without the complexity

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

Placeholder platform image

Agents

Context-aware agents

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

Placeholder platform image

Chatbots

Best-in-class retrieval for any AI app

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

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)

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)

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)

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
Use Glean where you work

Glean indexes and understands your data everywhere it lives.

275+ app connectors for personalized and permissions-enforced enterprise search.
View all connectors
View all connectors

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.

See Enterprise AI in action

Get a demo