Send to Advicemedia

Send leads to Advicemedia API with automatic configuration. Simply provide your site and campaign details, and the API will auto-fill all configuration values for you.

Auto-Fill Configuration

When you provide site or location, the API automatically fills:

  • API Key (key)
  • Form Code (form_code)
  • Account ID (account_id)
  • Location ID (location_id)
  • Source URL (source_url)

When you provide sponsor, protocol, and location, the API automatically builds your campaign_name.

Quick Start - Minimal Request
The easiest way to send leads. Just provide site, campaign details, and contact information.

Minimal Request Body

{
  "site": "Dermatology Treatment and Research Center",
  "sponsor": "Sun Pharmaceutical Industries - CP543.3101",
  "protocol": "CP543.3101",
  "location": "Boca Raton",
  "email": "john.doe@example.com",
  "phone_number": "555-123-4567",
  "first_name": "John",
  "last_name": "Doe",
  "postal_code": "12345",
  "date_of_birth": "1990-01-15",
  "gender": "M",
  "recruitment_status": "Qualified"
}

What gets auto-filled: API key, form_code, account_id, location_id, source_url, and campaign_name are all automatically set based on your site and campaign details.

Endpoint Information
API endpoint details

Endpoint

POST /api/scr/send-to-advicemedia

Sends lead data to Advicemedia API at https://api.advicemedia.com/v1/forms/submit

Headers

  • Content-Type: application/json

Note: The API key is auto-filled from your site configuration. You can override it by providing key in the request body.

Available Sites
Use any of these site names to auto-fill configuration
Skin Care - Boca Raton
Skin Care - Hollywood
Skin & Beauty Center
Dermatology Treatment and Research Center
First OC Dermatology Research

You can also use the site ID format (e.g., skin-care-boca-raton).

Request Examples
Different ways to use the endpoint

RecommendedMinimal Request (Auto-Fill Everything)

Only provide site, campaign details, and contact info

{
  "site": "Dermatology Treatment and Research Center",
  "sponsor": "Sun Pharmaceutical Industries - CP543.3101",
  "protocol": "CP543.3101",
  "location": "Boca Raton",
  "email": "john.doe@example.com",
  "phone_number": "555-123-4567",
  "first_name": "John",
  "last_name": "Doe",
  "postal_code": "12345",
  "date_of_birth": "1990-01-15",
  "gender": "M",
  "recruitment_status": "Qualified"
}

Full Request (With Questions)

Include prescreen questions and photo URL

{
  "site": "Dermatology Treatment and Research Center",
  "sponsor": "Sun Pharmaceutical Industries - CP543.3101",
  "protocol": "CP543.3101",
  "location": "Boca Raton",
  "email": "john.doe@example.com",
  "phone_number": "555-123-4567",
  "first_name": "John",
  "last_name": "Doe",
  "postal_code": "12345",
  "date_of_birth": "1990-01-15",
  "gender": "M",
  "i_agree": true,
  "recruitment_status": "Qualified",
  "question_1": "Has the potential participant had alopecia areata for at least 6 months?",
  "answer_1": "Yes",
  "question_2": "Is the potential participant between the ages of 12 and 17 years old?",
  "answer_2": "No",
  "patient_photo_url": "https://pvipimgs.vercel.app/?url=https://example.com/photo.jpg"
}

Manual Configuration (Override Auto-Fill)

Explicitly provide all configuration values

{
  "key": "your-api-key-here",
  "form_code": "skin_care_research_patients_vip_lead_form",
  "account_id": 15913,
  "location_id": "1403",
  "source_url": "PatientsVIP",
  "campaign_name": "Sun Pharmaceutical Industries - CP543.3101 - Dermatology Treatment and Research Center",
  "email": "john.doe@example.com",
  "phone_number": "555-123-4567",
  "first_name": "John",
  "last_name": "Doe"
}

Any explicitly provided values will override the auto-filled values from site configuration.

Field Reference
Available fields and their usage

Auto-Fill Fields

siteorlocation→ Auto-fills config
sponsor+protocol→ Auto-builds campaign_name

Contact Fields

email
phone_number
first_name
last_name
postal_code
date_of_birth
gender
recruitment_status
patient_photo_url

Prescreen Questions

Support up to 15 question/answer pairs. Use question_1 through question_15 and answer_1 through answer_15.

Response Format
What you'll receive back
{
  "success": true,
  "message": "Data successfully sent to Advicemedia",
  "advicemediaResponse": {
    // Response from Advicemedia API
  }
}