personalize.marketing

API Reference

Complete API reference for personalize.marketing

API Reference

Endpoint

POST https://personalize.marketing/api/v1/personalize-api

Authentication

Include your API key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

Request Body

FieldTypeRequiredDescription
profile_urlstringYesLinkedIn, Instagram, or TikTok profile URL (e.g., https://linkedin.com/in/username)
templatestringYesYour message template. Must contain at least one {{instruction}} placeholder (e.g., {{first name}}, {{topic from recent post}})
ai_instructionsstringNoCustom instructions for the AI (e.g., "Keep it casual", "Be professional")
brand_contextstringNoDescribe your brand so the AI picks relevant posts to reference
enable_variationsbooleanNoRephrase each message uniquely to avoid spam detection
enable_brand_fit_scorebooleanNoReturns a 1-10 score of how well the prospect fits your brand
include_profile_reportbooleanNoReturns a detailed analysis of the prospect
include_raw_databooleanNoReturns the raw profile data used for personalization (see warning below)

About include_raw_data: This field returns the raw profile data for informational/debugging purposes only. Do not rely on this data structure - it changes frequently as we improve our algorithm. Use it to inspect what data is available, but do not build integrations that depend on its format.

Response

Success Response

{
  "success": true,
  "personalized_text": "Hey Arnold! Saw your post about building The Pump app...",
  "profile_url": "https://linkedin.com/in/arnold-schwarzenegger/",
  "brand_fit_score": 9,
  "profile_report": "## Overview\nEntrepreneur and actor...",
  "raw_data": { "profile": { ... }, "posts": [ ... ] }
}
FieldTypeDescription
successbooleanAlways true on success
personalized_textstringYour template with all {{instruction}} placeholders replaced
profile_urlstringThe original profile URL
brand_fit_scorenumber1-10 score (only if enable_brand_fit_score: true)
profile_reportstringMarkdown report (only if include_profile_report: true)
raw_dataobjectRaw profile data (only if include_raw_data: true) - structure may change

Error Response

{
  "success": false,
  "error": {
    "code": "PROFILE_NOT_FOUND",
    "message": "Could not find the profile"
  },
  "profile_url": "https://instagram.com/nonexistent"
}

Error Codes

CodeDescription
INVALID_INPUTMissing required fields or invalid format
INVALID_URLURL could not be parsed
UNSUPPORTED_PLATFORMOnly LinkedIn, Instagram, and TikTok are supported
PROFILE_NOT_FOUNDProfile doesn't exist
PROFILE_PRIVATEProfile is private and cannot be analyzed
DATA_FETCH_FAILEDFailed to fetch profile data
AI_GENERATION_FAILEDAI failed to generate personalized message
INTERNAL_ERRORUnexpected server error

Rate Limits

  • Requests may take up to 300 seconds to complete
  • Set your HTTP client timeout to at least 300 seconds (5 minutes)

Supported Platforms

PlatformURL Format
LinkedInhttps://linkedin.com/in/username
Instagramhttps://instagram.com/username
TikTokhttps://tiktok.com/@username

On this page