---
title: Legacy API payloads (customers before June 2026)
description: This article is only for customers whose integration already uses our legacy API (built before June 2026). The legacy API is still supported, so if you're…
---

[Skip to content](https://help.getenrola.com/enrola-help-centre/sending-leads/legacy-api-payloads#main-content)

English - Australia

Show submenu for translations

![Enrola](https://help.getenrola.com/hs-fs/hubfs/enrola-logo.png?width=180&height=38&name=enrola-logo.png)

Open main navigation

Close main navigation

- English - Australia
  
  Show submenu for translations
- [Contact us](https://7bxqhs.share-ap1.hsforms.com/282EeUu3oRNqC2l1stSeTBw)

[Contact us](https://7bxqhs.share-ap1.hsforms.com/282EeUu3oRNqC2l1stSeTBw)

 How can we help you?

- There are no suggestions because the search field is empty.

1. [Enrola Help Centre](https://443312992.hs-sites-ap1.com/enrola-help-centre?hsLang=en-au)
2. [Sending Leads](https://443312992.hs-sites-ap1.com/enrola-help-centre/sending-leads?hsLang=en-au)

# Legacy API payloads (customers before June 2026)

**Short answer:** This article is only for customers whose integration already uses our legacy API (built before June 2026). The legacy API is still supported, so if you're on it, there's nothing you need to change. **New customers and new integrations should use API v2.** See [Lead fields reference: Course Advisor agent](https://443312992.hs-sites-ap1.com/enrola-help-centre/sending-leads/lead-fields-course-advisor-agent?hsLang=en-au) or [Lead fields reference: B2C agent](https://443312992.hs-sites-ap1.com/enrola-help-centre/sending-leads/lead-fields-b2c-agent?hsLang=en-au).

**Customers also ask:**

- Should we use the legacy endpoint or API v2?
- How do I know if we're on the legacy API?
- Where are the legacy API docs?

### Are you on the legacy API?

Check the address your integration sends leads to:

- **Legacy, Course Advisor agent:** `https://platform.enrola.com.au/api/lead`
- **Legacy, B2C agent:** `https://platform.enrola.com.au/api/bookacall/leads`
- **API v2:** `https://platform.enrola.com.au/api/v2/leads`. See [Lead fields reference: Course Advisor agent](https://443312992.hs-sites-ap1.com/enrola-help-centre/sending-leads/lead-fields-course-advisor-agent?hsLang=en-au) or [Lead fields reference: B2C agent](https://443312992.hs-sites-ap1.com/enrola-help-centre/sending-leads/lead-fields-b2c-agent?hsLang=en-au) instead.

### Legacy API docs

Go to **Admin \> Integrations \> API Docs** ([open API Docs](https://platform.enrola.com.au/api-docs)), select **v2** in the top left, and choose **Legacy**.

### Headers

Both legacy endpoints use `POST` and need two headers:

- `Authorization`: your Authorization Header from **Admin \> Integrations \> API Keys** ([open API Keys](https://platform.enrola.com.au/api-keys)), pasted exactly as shown. It already starts with `Basic`. If your tool has a Basic Auth option, you can enter your Key and Secret there instead.
- `Content-Type`: `application/json`

The URL must start with `https://platform.enrola.com.au`. Other Enrola addresses won't work.

### Course Advisor agent

**Endpoint:** `POST https://platform.enrola.com.au/api/lead`

This endpoint takes **one lead per request**, sent as a plain object (no `leads` list).

**Required fields:**

- `givenName`: the lead's first name.
- `phone`: the lead's mobile number. AU (`04` or `+614`), NZ (`+642`), UK (`+44`), IE (`+3538`) or US (`+1`).
- `ownerGivenName`: the first name of the lead's owner (the advisor). The agent uses this name in conversation.
- `ownerEmail`: the lead owner's email address.
- `productName`: the course or product name, as the agent will say it.
- `productSlug`: the product's slug in Enrola. It can't be changed on an existing lead.

**Optional fields:**

- `email` and `familyName`: only send these if your integration needs them.
- `ownerFamilyName`: the lead owner's last name.
- `bookMeetingLink`: a booking link for the lead to book a call. Without one, the agent arranges a time with the lead and passes it on to the lead owner.
- `enrolmentApplicationLink`: a link to your enrolment or application form.
- `campaignTag`: the campaign the lead goes to. It must match your campaign name exactly.
- `addressState`: the lead's Australian state (ACT, NSW, NT, QLD, SA, TAS, VIC or WA). Sets the lead's time zone, so include it for Australian leads whenever you have it.
- `addressCountry`: AU, IE, NZ, UK or US. Defaults to AU, and must match the phone number.
- `utmSource`, `crmId`, `crmOwnerId`: for your own tracking. `crmId` comes back to you on the webhook.

**Example:**

```
{
  "phone": "+61412345678",
  "givenName": "Taylor",
  "familyName": "Nguyen",
  "email": "taylor.nguyen@example.com",
  "ownerGivenName": "Sarah",
  "ownerEmail": "sarah.chen@yourorg.com.au",
  "productName": "Certificate IV in Accounting",
  "productSlug": "cert-iv-accounting",
  "addressState": "VIC",
  "bookMeetingLink": "https://calendly.com/sarah-chen/30min",
  "campaignTag": "Spring Intake",
  "crmId": "CRM-98765"
}
```

**Response:**

```
{
  "id": "206168c2-0eb1-4932-b3f1-dca3905617f6",
  "phone": "+61412345678",
  "crmId": "CRM-98765",
  "createdFlag": true,
  "updatedFlag": false,
  "errorFlag": false,
  "message": "processed"
}
```

### B2C agent (book a call)

**Endpoint:** `POST https://platform.enrola.com.au/api/bookacall/leads`

This endpoint takes up to 100 leads per request, inside a `leads` list.

**Required fields:**

- `givenName`: the lead's first name.
- `phone`: the lead's mobile number, in the same formats as above.
- `productName`: the product or service name, as the agent will say it.
- `productSlug`: the product's slug in Enrola. It can't be changed on an existing lead.
- `bookingLink`: the booking link the agent shares with the lead.

**Optional fields:**

- `email` and `familyName`: only send these if your integration needs them. **Using Calendly?** Calendly needs an email address to complete a booking. Without one, the agent shares your booking link instead of booking the lead in. If you don't collect emails, you can send a placeholder email address.
- `campaignTag`: the campaign the lead goes to. It must match your campaign name exactly.
- `addressState` and `addressCountry`: as above.
- `utmSource`, `crmId`: for your own tracking.
- `metaData`: extra details about the lead for the agent to use. Talk to your onboarding specialist before using it.

**Example:**

```
{
  "leads": [
    {
      "phone": "+61412345678",
      "givenName": "Taylor",
      "email": "taylor.nguyen@example.com",
      "addressState": "NSW",
      "productName": "Your Service",
      "productSlug": "your-service",
      "bookingLink": "https://calendly.com/yourteam/30min",
      "campaignTag": "Spring Intake",
      "crmId": "CRM-98765"
    }
  ]
}
```

**Response:** a result for each lead, inside `processedLeads`, in the same order you sent them.

```
{
  "processedLeads": [
    {
      "id": "206168c2-0eb1-4932-b3f1-dca3905617f6",
      "phone": "+61412345678",
      "crmId": "CRM-98765",
      "createdFlag": true,
      "updatedFlag": false,
      "errorFlag": false,
      "message": "processed"
    }
  ]
}
```

### Reading the response

- `createdFlag: true`: a new lead was created and the agent will start.
- `updatedFlag: true`: an existing lead was updated.
- `errorFlag: true`: the lead wasn't processed. `message` explains why.
- `id`: the Enrola lead ID. Store it if you want to look up or delete the lead later.

A successful response means the request was received, not that every lead was processed. Check `errorFlag` for each lead.

### If something goes wrong

- **400 Bad Request:** something in the request is wrong, usually a missing required field, a badly formatted phone number or invalid JSON.
- **404 Not Found:** the URL is wrong. Check it starts with `https://platform.enrola.com.au`.

If your Authorization header is missing or wrong, the request is rejected. Copy it again from **Admin \> Integrations \> API Keys**.

### Good to know

- **Leads are matched by phone number.** A new number creates a lead; an existing number updates it.
- **`productSlug` can't be changed** on an existing lead. Delete the lead and send it again.
- **Changing `campaignTag`** on an existing lead deletes it and creates it again in the new campaign, with a new conversation.

See [Duplicate leads and sending a lead again](https://443312992.hs-sites-ap1.com/enrola-help-centre/sending-leads/duplicate-leads-and-re-sending-leads?hsLang=en-au).

### Related articles

- [Lead fields reference: Course Advisor agent](https://443312992.hs-sites-ap1.com/enrola-help-centre/sending-leads/lead-fields-course-advisor-agent?hsLang=en-au)
- [Lead fields reference: B2C agent](https://443312992.hs-sites-ap1.com/enrola-help-centre/sending-leads/lead-fields-b2c-agent?hsLang=en-au)
- [Finding your API keys and API documentation](https://443312992.hs-sites-ap1.com/enrola-help-centre/account-and-access/finding-your-api-keys-and-api-documentation?hsLang=en-au)
- [Duplicate leads and sending a lead again](https://443312992.hs-sites-ap1.com/enrola-help-centre/sending-leads/duplicate-leads-and-re-sending-leads?hsLang=en-au)

- [Account and Access](https://443312992.hs-sites-ap1.com/enrola-help-centre/account-and-access?hsLang=en-au)
- [Sending Leads](https://443312992.hs-sites-ap1.com/enrola-help-centre/sending-leads?hsLang=en-au)
- [Testing Leads](https://443312992.hs-sites-ap1.com/enrola-help-centre/testing-leads?hsLang=en-au)
- [Integrations](https://443312992.hs-sites-ap1.com/enrola-help-centre/integrations?hsLang=en-au)
- [Campaigns and Messaging](https://443312992.hs-sites-ap1.com/enrola-help-centre/campaigns-and-messaging?hsLang=en-au)
- [Your AI Agent](https://443312992.hs-sites-ap1.com/enrola-help-centre/your-ai-agent?hsLang=en-au)
- [Leads and Conversations](https://443312992.hs-sites-ap1.com/enrola-help-centre/leads-and-conversations?hsLang=en-au)
- [Reporting and Exports](https://443312992.hs-sites-ap1.com/enrola-help-centre/reporting-and-exports?hsLang=en-au)
- [Opt-outs and Compliance](https://443312992.hs-sites-ap1.com/enrola-help-centre/opt-outs-and-compliance?hsLang=en-au)
- [Security and Privacy](https://443312992.hs-sites-ap1.com/enrola-help-centre/security-and-privacy?hsLang=en-au)

[![Enrola](https://help.getenrola.com/hs-fs/hubfs/enrola-logo.png?width=140&height=30&name=enrola-logo.png "Enrola")](https://help.getenrola.com/?hsLang=en-au)

[mailto:support@getenrola.com](mailto:support@getenrola.com)

Copyright © 2026, Enrola Pty Ltd