Skip to content
English - Australia
  • There are no suggestions because the search field is empty.

Lead fields reference: Course Advisor agent

Short answer: To send a lead to the Course Advisor agent, POST it to https://platform.enrola.com.au/api/v2/leads with at least phone, givenName, ownerGivenName, ownerEmail and one product (name and slug). Every other field is optional. Your onboarding specialist provides your product slugs, and the campaignTag is the name of the campaign you're sending to.

Customers also ask:

  • Which fields are required when sending a lead?
  • Can a required field be optional, or can we send a placeholder value?
  • Do I need to send the lead's email and last name?
  • What does the agent field do?

Which agent are you on?

This article covers the Course Advisor agent. The Course Advisor agent is used by most education providers. It qualifies and engages each lead, then either shares your booking link or arranges a call time conversationally and passes it to the assigned advisor. If you're not sure which agent your account uses, contact support@getenrola.com.

This article covers API v2, which all new customers use. If you've been with Enrola since before June 2026, your integration may use a legacy payload. You only need the legacy reference if you're troubleshooting an existing connection: see Legacy API payloads (customers before June 2026).

The basics

  • URL: https://platform.enrola.com.au/api/v2/leads (it must start with platform.enrola.com.au; enrola.com.au and getenrola.com won't work)
  • Method: POST
  • Header 1: Authorization, using the full Authorization Header value (starting with Basic) from Admin > Integrations > API Keys in the Enrola Customer App (open API Keys). If your tool has a built-in Basic Auth option, you can enter your Key and Secret there instead.
  • Header 2: Content-Type: application/json
  • Batch size: 1 to 100 leads per request.
  • Full API documentation: platform.enrola.com.au/api-docs

Required fields

  • phone: the lead's mobile number. Accepted formats: AU (+614... or 04...), NZ (+642...), UK (+44...), IE (+3538...), US (+1...).
  • givenName: the lead's first name.
  • products: at least one product (maximum 3), each with:
    • products[].name: the course name. This is what the agent calls it in conversation.
    • products[].slug: the identifier for the course in Enrola. Provided by your onboarding specialist; don't create your own. Once set on a lead, it can't be changed.
  • ownerGivenName: first name of the assigned course advisor. The agent uses it in conversation, for example "I'll let Sarah know you're free Thursday afternoon."
  • ownerEmail: email address of the assigned course advisor. Used to route the lead internally.

Optional fields

  • email and familyName: the lead's email address and last name. Only send these if your setup needs them, for example if the agent needs to confirm the lead's email.
  • products[].purchaseLink: a direct link to the online enrolment or application form for this course. The agent shares this with the lead as the enrolment link, so make sure it's the right URL.
  • ownerFamilyName: last name of the assigned advisor.
  • bookingLink: a calendar booking link for the lead to schedule a call with the advisor (Calendly, HubSpot Meetings, Salesforce Scheduler or similar). If you leave it out, the agent arranges a time conversationally and passes it to the advisor.

  • addressState: the Australian state the lead is in (ACT, NSW, NT, QLD, SA, TAS, VIC or WA). Sets the lead's time zone. Leave it out for non-Australian leads.

  • addressCountry: AU, IE, NZ, UK or US. Defaults to AU. It must match the phone number format, or the lead is rejected.
  • campaignTag: the campaign the lead goes to. It's the campaign's name, shown on the campaign in Agent > Campaigns (open Campaigns). It's case-sensitive and must match the campaign name exactly. If you leave it out, the lead goes to your Default campaign. See What is a campaign?
  • utmSource: the marketing source for the lead, for example google_ads.
  • crmId: your CRM's ID for the lead. It's returned in the webhook so you can match Enrola activity to the right CRM record.
  • crmOwnerId: your CRM's ID for the advisor.
  • metaData: extra information about the lead as a JSON object. The Course Advisor agent can't see or use this data in conversation. It's stored with the lead and returned when you retrieve the lead through the API, so you can use it for your own reference.

Example payload

The minimum a lead needs. Your automation tool builds this for you when you map your CRM fields.

{
  "leads": [
    {
      "phone": "+61412345678",
      "givenName": "Taylor",
      "ownerGivenName": "Sarah",
      "ownerEmail": "sarah@yourorg.com.au",
      "products": [
        {
          "name": "Certificate IV in Accounting",
          "slug": "your-product-slug"
        }
      ]
    }
  ]
}

New and existing leads

Leads are matched by phone number.

  • New phone number: Enrola creates the lead.
  • Existing phone number: Enrola updates the lead with the new details. The agent reads a lead's details once, when it first replies, so changes made after the conversation starts don't affect it. See Duplicate leads and sending a lead again.
  • products[].slug can't be changed on an existing lead. Contact your onboarding specialist if it needs to change.
  • Changing campaignTag on an existing lead permanently deletes the lead and all its data, then recreates it in the new campaign. This can't be undone.

What comes back

Enrola returns one result per lead, in the order you sent them:

  • CREATED: new lead; the agent will start.
  • UPDATED: existing lead updated.
  • ERROR: the lead wasn't processed. Check errorMessage for the reason.

Each result includes id, Enrola's ID for the lead. Store it if you want to look up or delete the lead later.

A successful response doesn't mean every lead succeeded. One failed lead doesn't block the rest of the batch, so always check the status of each item.

If something goes wrong

  • 400 Bad Request: usually a missing required field, a badly formatted phone number or invalid JSON.
  • 403 Forbidden: your credentials are wrong or missing. Check the Authorization header value.
  • 404 Not Found: the URL is wrong. Check it starts with platform.enrola.com.au.

Good to know

  • Two sets of API keys: you can create up to two sets of API keys. This lets you rotate keys without downtime (switch your integration to the new key, then delete the old one), or give separate integrations their own key so you can revoke one without breaking the other.
  • The agent field: you may see agent in the API documentation. It's reserved for future use and isn't currently used. Ignore it and leave it out of your payload.

Related articles