> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://documents.pyramid-ai.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://documents.pyramid-ai.com/_mcp/server.

# Pyramid AI API

The Pyramid AI API gives you programmatic access to three core capabilities:

#### Pyramid Connect

Upload and manage documents, create projects, and build your knowledge base.

#### Pyramid Agent

Ask questions over your knowledge base — single queries, batch processing, or multi-turn chat.

#### Pyramid Check

Run compliance checks against your documents with AI-powered verification.

## Base URL

All API requests use the following base URLs:

| Environment           | Base URL                                    | API Keys     |
| --------------------- | ------------------------------------------- | ------------ |
| **Production**        | `https://api.pyramid-ai.com/api/v2`         | `pai_live_*` |
| **Staging (sandbox)** | `https://api-staging.pyramid-ai.com/api/v2` | `pai_test_*` |

> **Note**
>
> Staging is a full sandbox environment with its own database. Use `pai_test_*` keys for development and testing.

## Quick example

```bash
curl https://api.pyramid-ai.com/api/v2/organization \
  -H "Authorization: Bearer pai_live_YOUR_KEY_HERE"
```

```json
{
  "success": true,
  "data": {
    "id": "org_abc123",
    "name": "Your Organization"
  },
  "request_id": "550e8400-e29b-41d4-a716-446655440000"
}
```

## What you can build

* **Excel / Office Add-ins** — query project knowledge from spreadsheets
* **Mobile apps** — embed AI-powered Q\&A into iOS and Android apps
* **Compliance workflows** — automate requirement verification at scale
* **Internal tools** — connect your knowledge base to custom dashboards

## Next steps

#### [Getting Started](/getting-started)

Make your first API call in under 5 minutes

#### [How-To Guides](/howto/projects)

Step-by-step recipes for every API operation

#### [Authentication](/authentication)

Learn how API keys work and how to authenticate requests

#### [API Reference](/api-reference)

Interactive endpoint explorer with request/response schemas