# POST /reputation/profile

**Resource:** [Reputation](./reputation.md)  
**Scopes:** `reputation:write`  
**Write operation:** yes

Create or update the company's Reputation profile (upsert). On creation, slug and display_name are required. On update, only the provided fields are changed.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `slug` | body | string | no | URL slug (e.g. "acme-agency"). Required on first creation. Lowercase letters, numbers, hyphens. |
| `display_name` | body | string | no | Business display name shown on the public page. Required on first creation. |
| `category_id` | body | string | no | Company profile category UUID. |
| `tagline` | body | string | no | Short positioning line. |
| `description` | body | string | no | Longer about-us paragraph. |
| `logo_url` | body | string | no | URL to logo image. |
| `cover_image_url` | body | string | no | URL to cover/hero image. |
| `website_url` | body | string | no | Business website URL. |
| `linkedin_url` | body | string | no | Company LinkedIn URL. |
| `settings` | body | object | no | Widget style, theme, and CTA config. |
| `is_published` | body | boolean | no | true = live at trustpager.com/reputation/<slug>. |

## Request example

```bash
curl -X POST https://ucqwijexmjctglmrxlej.supabase.co/functions/v1/api/v1/reputation/profile \
  -H "Authorization: Bearer tp_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "slug": "acme-agency",
    "display_name": "Acme Agency",
    "tagline": "B2B marketing for SaaS founders",
    "is_published": true
  }'
```

## Response example

```json
{
  "data": {
    "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "slug": "acme-agency",
    "display_name": "Acme Agency",
    "tagline": "B2B marketing for SaaS founders",
    "is_published": true,
    "overall_rating": 0,
    "total_reviews": 0,
    "total_case_studies": 0,
    "created_at": "2026-04-24T00:00:00.000Z",
    "updated_at": "2026-04-24T00:00:00.000Z"
  },
  "meta": { "credits_remaining": 4499, "url": "https://app.trustpager.com/tools/reputation/profile" }
}
```

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