compatibility_id, which is required by the Compatibility Connection, Compatibility Life, and Compatibility Guidance APIs. The palm images are checked using the same scan process as Get Palm ID, including hand type, major lines, mounts, fingers, and special markings. https://vision.astrologyapi.com/palmistry/get-compatibility-idx-astrologyapi-keystringrequiredAPI access token used to authenticate requests. Send your access token in this custom header.
Accept-LanguagestringPreferred language for the response content. Supported: English - en.
partner_1_image_urlstringrequiredPartner 1 palm image URL or base64 data URL
partner_1_genderstringPartner 1 gender: male, female, or other
partner_1_dayintPartner 1 birth day
partner_1_monthintPartner 1 birth month
partner_1_yearintPartner 1 birth year
partner_2_image_urlstringrequiredPartner 2 palm image URL or base64 data URL; must differ from partner 1
partner_2_genderstringPartner 2 gender: male, female, or other
partner_2_dayintPartner 2 birth day
partner_2_monthintPartner 2 birth month
partner_2_yearintPartner 2 birth year
curl --location 'https://vision.astrologyapi.com/palmistry/get-compatibility-id' \
--header 'Content-Type: application/json' \
--header 'x-astrologyapi-key: <YOUR_ACCESS_TOKEN>' \
--data '{
"partner_1_image_url": "https://sample_image_partner_1.jpg",
"partner_1_gender": "female",
"partner_1_day": 12,
"partner_1_month": 3,
"partner_1_year": 1996,
"partner_2_image_url": "https://sample_image_partner_2.jpg",
"partner_2_gender": "male",
"partner_2_day": 5,
"partner_2_month": 8,
"partner_2_year": 1994
}'
Runs with sample data — no API key needed
{
"status": true,
"message": "success",
"data": {
"compatibility_id": "c5d096cc-0ef2-4c0e-a86b-dcef63e550bc"
}
}