# POST /ai/call-coaching

**Resource:** [AI](./ai.md)  
**Scopes:** `ai:use`  
**Write operation:** yes

Analyze a call, meeting, or SMS transcript for coaching insights. Returns performance scores, strengths, improvements, and coaching summary. Costs 3 credits. Provide transcript_id (preferred, auto-resolves text and metadata) or transcript_text (raw text).

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `transcript_id` | body | uuid | no | Transcript UUID (preferred -- auto-resolves transcript text, source type, and context) |
| `transcript_text` | body | string | no | Raw transcript text (use only if no transcript_id). Lines formatted as "Speaker Name: text..." |
| `team_member_name` | body | string | yes | Full name of the team member to coach. Must match a company user. |
| `source_type` | body | string | no | Type of interaction: zoom_call (sales), zoom_meeting (team), sms_conversation. Auto-detected from transcript_id. Defaults to zoom_call. |

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