# Connect ChatGPT to Aisenhour

> Connect ChatGPT or custom GPT actions to your Eisenhower Matrix via the OpenAPI specification.

Aisenhour provides standard REST endpoints at `https://aisenhour.com/api/v1` with an OpenAPI specification at `https://aisenhour.com/api/openapi.json`. You can configure Custom GPT Actions using OAuth 2.1 URL sign-in or API keys to inspect your matrix summary, read delegated tasks, and capture new tasks for you.

*Not yet verified*

## Setup Steps

### Step 1: Configure Custom GPT Actions
In OpenAI's GPT builder, create a new Action pointing to the Aisenhour OpenAPI specification at `https://aisenhour.com/api/openapi.json` (or base URL `https://aisenhour.com/api/v1`).

### Step 2: Choose Authentication Method
- **OAuth 2.1 URL Sign-In (Recommended):** Set authentication type to OAuth, with Authorization URL `https://aisenhour.com/api/oauth/authorize` and Token URL `https://aisenhour.com/api/oauth/token`.
- **API Key (Bearer Fallback):** In Aisenhour, open Settings > My agents, click "Add agent", and create an agent key. Configure Custom GPT Actions with Authentication: API Key (Bearer).

### Step 3: Example Endpoints
- Matrix Summary: `GET https://aisenhour.com/api/v1/summary`
- Delegate Queue: `GET https://aisenhour.com/api/v1/delegate-queue`
- Capture Task: `POST https://aisenhour.com/api/v1/tasks` with body `{"assignTo": "me", "title": "...", "quadrant": "doFirst"}`

## Your First Handoff Prompt

Paste this prompt into ChatGPT:

```text
Check my Aisenhour matrix summary for today's highest priority items, or capture a new task for me with assignTo: "me".
```

## What Your Assistant Can See
- Tasks in your Delegate queue assigned to the assistant
- Active board tasks across quadrants when whole-board reading is enabled in Settings > My agents
- Matrix summaries and quadrant statistics

## What Stays Private
- Account credentials, billing details, and payment information
- Private task notes and comments
- Archived tasks and pending contact invitations

## Plan Access and Pricing
Connecting an external assistant is free on both Free and Pro plans (Free includes up to 25 active tasks, Pro includes unlimited active tasks). ChatGPT queries use your own OpenAI account quota.

## Disconnecting or Rotating Access
You can revoke or rotate this assistant's key at any time in Aisenhour Settings > My agents.
