# GET /service-requests

**Resource:** [Service Requests](./service-requests.md)  
**Scopes:** `service-requests:read`  
**Write operation:** no

List service requests for the authenticated company. Supports cursor pagination and multiple filters. Returns requests in reverse-chronological order with full note threads and related_ids.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `status` | query | string | no | Filter by status: pending, in_progress, resolved, closed |
| `category` | query | string | no | Filter by category stored in context JSON: missing_tool, missing_field, missing_filter, better_errors, new_capability, workflow_improvement, documentation, bug_report, other |
| `priority` | query | string | no | Filter by priority stored in context JSON: low, medium, high, critical |
| `search` | query | string | no | Case-insensitive search across title and description fields |
| `affected_tool` | query | string | no | Filter to requests that list this tool name in context.affected_tools |
| `submitted_by_me` | query | boolean | no | If true, return only requests submitted by the API key owner (user_id match) |
| `cursor` | query | string | no | Pagination cursor from a previous response |
| `limit` | query | number | no | Page size (default 25, max 100) |

## Request example

```bash
curl https://ucqwijexmjctglmrxlej.supabase.co/functions/v1/api/v1/service-requests?status=pending&priority=high \
  -H "Authorization: Bearer tp_live_..."
```

## Response example

```json
{
  "data": [
    {
      "id": "f112de7b-c7df-4193-bacd-2d43c31c1f11",
      "title": "Add status filter to list_opportunities",
      "description": "Cannot filter opportunities by status (won/lost/open).",
      "status": "pending",
      "context": {
        "source": "api",
        "category": "missing_filter",
        "priority": "high",
        "affected_tools": ["list_opportunities"]
      },
      "related_ids": [],
      "notes": [],
      "created_at": "2026-04-19T05:08:56.498025+00:00",
      "updated_at": "2026-04-19T05:08:56.498025+00:00",
      "user_id": "771a4a38-3a5d-4a9b-98c3-e10879850c9d"
    }
  ],
  "meta": {
    "credits_remaining": 3457,
    "pagination": { "has_more": false, "next_cursor": null, "count": 1 }
  }
}
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`