Affiliates API

Create a new lead (with errors)

Creates a new lead for General Assembly's admissions team.

Returns a JSON object of errors if any parameter validations failed.

Parameters

Name Description
name Name
email Email Address
program Program Slug (from /programs)
external_id External Identifier
ip_address IP Address
phone Phone Number
lead_submission_url The URL where the form was submitted from
lead_landing_url The URL where the lead initially landed
lead_consent_url Lead consenting to being contacted by GA
utm_source UTM Source
utm_campaign UTM Campaign
utm_medium UTM Medium
utm_content UTM Content
utm_term UTM Term
visitor_id Visitor ID

Request

Headers

Authorization: [your_auth_token]
Accept: application/json
Content-Type: application/x-www-form-urlencoded

Route

POST /api/v1/affiliates/leads

Response

Headers

Content-Type: text/html;charset=utf-8

Status

422

Body