> 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.

# View Your Organization

## Before you begin

* You have an API key (`pai_test_*` or `pai_live_*`)

## Get your organization

Every API key is scoped to a single organization. Use this endpoint to verify which org your key belongs to:

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

```json
{
  "success": true,
  "data": {
    "id": "org_abc123",
    "name": "Your Organization"
  },
  "request_id": "..."
}
```

## When to use this

* **Verify your key works** — this is the quickest authenticated call to confirm your API key is valid and active
* **Confirm org scope** — if you manage multiple organizations, use this to check which org your current key is scoped to
* **Debug authorization issues** — if other endpoints return `403`, check that your key's org has the required features enabled

## What's next

* [Create a Project](/howto/projects) — start building your knowledge base
* [Authentication](/authentication) — learn about key rotation and environments