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.
When you provide site or location, the API automatically fills:
key)form_code)account_id)location_id)source_url)When you provide sponsor, protocol, and location, the API automatically builds your campaign_name.
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.
POST /api/scr/send-to-advicemedia
Sends lead data to Advicemedia API at https://api.advicemedia.com/v1/forms/submit
Content-Type: application/jsonNote: The API key is auto-filled from your site configuration. You can override it by providing key in the request body.
Skin Care - Boca RatonSkin Care - HollywoodSkin & Beauty CenterDermatology Treatment and Research CenterFirst OC Dermatology ResearchYou can also use the site ID format (e.g., skin-care-boca-raton).
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"
}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"
}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.
siteorlocation→ Auto-fills configsponsor+protocol→ Auto-builds campaign_nameemailphone_numberfirst_namelast_namepostal_codedate_of_birthgenderrecruitment_statuspatient_photo_urlSupport up to 15 question/answer pairs. Use question_1 through question_15 and answer_1 through answer_15.
{
"success": true,
"message": "Data successfully sent to Advicemedia",
"advicemediaResponse": {
// Response from Advicemedia API
}
}