# Assigned Rep, Conversations, and Status Updates

Source: https://docs.premiumqualifiedleads.com/webhooks-delivery-testing/assigned-rep-conversations-and-status-updates

Three optional ways for your CRM to work with us after a lead arrives. All use your partner API key in the `x-api-key` header. `:leadId` is the `lead_record_id` from the lead payload.

#### Show the applicant their rep

When the applicant finishes, we show a confirmation page. If you tell us which rep will call, we show the rep's name, phone and photo there, which makes the applicant far more likely to answer.

Option 1: include the rep in your reply to our delivery:

```json
{
  "status": "ok",
  "rep": {
    "name": "Jane Smith",
    "phone": "+15551234567",
    "email": "jane@yourcompany.com",
    "photo_url": "https://yourcompany.com/reps/jane.jpg"
  }
}

```

We also recognise `agent`, `assigned_rep`, `loan_officer` and flat fields such as `agent_name` and `agent_phone`.

Option 2: send it shortly after:

```plaintext
POST /api/v1/partners/:partnerKey/leads/:leadId/rep
x-api-key: YOUR_PARTNER_API_KEY
Content-Type: application/json

{ "name": "Jane Smith", "phone": "+15551234567", "photo_url": "https://yourcompany.com/reps/jane.jpg" }

```

The name is required. The photo must be an https URL. Send it within a few seconds of delivery so the applicant sees it.

#### Pull the conversation

Get the texts and emails exchanged with the applicant, for example to save them as notes in your CRM:

```plaintext
GET /api/v1/partners/:partnerKey/leads/:leadId/conversation?since=2026-11-25T00:00:00Z
x-api-key: YOUR_PARTNER_API_KEY

```

The response has `lead_record_id`, the contact's name, email and phone, `message_count` and `messages`. Each message has its direction, channel (`sms`, `email`, `call`), body and time. Use `since` to fetch only new messages, and `limit` (up to 200). You only see messages from your own delivery onward.

#### Send status updates

Let us know what happened in your CRM:

```plaintext
POST /api/v1/partners/:partnerKey/events
x-api-key: YOUR_PARTNER_API_KEY
Content-Type: application/json

{
  "event_type": "contacted",
  "lead_id": "rec8x2LmQp41Abcde",
  "event_id": "your-unique-event-id"
}

```

`event_type` is one of: `contacted`, `callback_scheduled`, `appointment_booked`, `appointment_completed`, `no_show`, `disqualified`, `closed_lost`, `duplicate`, `do_not_contact`, `enrollment`. Send `event_type` at the top level of the JSON. If you can't send `lead_id`, send the lead's `email` or `phone` instead. `event_id` is your own ID for the event; repeats with the same ID are ignored. Funded deals go through `POST /api/v1/buyer/conversions`.
