Skip to main content
Altcraft Docs LogoAltcraft Docs Logo
User guideDeveloper guideAdmin guide
Company siteHelp center
English
  • Русский
  • English
v74
  • v74
  • v73
  • v72
Login
  • User API documentation
  • API interaction
  • Matching
  • Profiles
    • Import profile
    • Update profile
    • Import multiple profiles
    • Update multiple profiles
    • Add multiple profiles
    • Add profile to database
    • Quick profile import
    • Import profile to RabbitMQ
    • Get profile data
    • Uploading profiles to a file
    • Suspend all database profiles
    • Unsuspend all profiles in a database
    • Delete profile
    • Subscription fields functional update
    • Database fields functional update
    • Merging multiple profiles
    • Unsubscribe profile from resource
    • Profile splitting
    • Subscriptions
    • Action history
    • Profile relations
      • Attach relation
      • Detach relation
      • Modify relation properties
      • Overwrite relation properties
      • Get profile relations info
      • Get profile relations info
    • Get data for multiple profiles
  • Databases
  • Resources
  • Segments
  • Suppression lists
  • Templates and fragments
  • Campaigns
  • Mailings
  • Automation scenarios
  • Loyalty Programs
  • Promo codes
  • Goals
  • Application push notifications
  • Market
  • Analytic reports
  • SendersDev
  • External datatables queries
  • Objects
  • Miscellaneous
  • Importing the API collection in Postman
  • List of API endpoints
  • SDK
  • Profiles
  • Profile relations
  • Get profile relations info
Documentation for version v74

Get profile relations info

Description​

The request brings a list of all existing links for the specified profile from the database A, including identifiers of linked profiles, types of links and their characteristics.

URL​

Method: POST.

https://example.com/api/v1.1/relations/get

Request parameters​

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
rel_idint3YesRelation ID
profile_idstring"669e6968ebf4ac52b623a997"Yes, if no other search type is specifiedProfile identifier from database A for the search
Profile matching mode
matchingstring"email"
"email_profile"
"phone"
"profile_id"
"custom"
No, if matched by email from profile or subscriptionsProfile matching mode
By default - email
emailstring"john@example.com""matching":"email" - both profile data and subscriptions
"matching":"email_profile" - profile data only
Email address
phonestring"+79000000000""matching":"phone"Phone number
profile_idstring"abcdefghijklmnqrstuvwxyz""matching":"profile_id"Profile ID
field_namestring"CRM_ID""matching":"custom"Custom profile data field name
field_valueint/string"123420""matching":"custom"

Custom profile data field value.

Searching by combination of tags is available for tag type profile fields. Values are recorded as a string: "tag-1, tag-2".

resource_idint24NoResource ID for email and phone matching

Request example​

  • JSON
  • XML
{
"token": "8a28168486844c8bae2673a51d4433ff",
"rel_id": 2,
"profile_id": "669e6968ebf4ac52b623a997"
}
<xml>
<token>8a28168486844c8bae2673a51d4433ff</token>
<rel_id>2</rel_id>
<profile_id>669e6968ebf4ac52b623a997</profile_id>
</xml>

Response example​

  • JSON
  • XML
{
"data": [
{
"profile_id_a": "669e6968ebf4ac52b623a997",
"xxh_a": "5af1023c84f66195",
"profile_id_b": "6751b8f1c5e3db9bcb75befa",
"xxh_b": "879cebbb0e6b6723",
"db_b": 9,
"props": {
"exr": {
"value": 11323123
}
}
}
],
"error": 0,
"error_text": "Successful operation",
"total_count": 1
}
<xml>
<data>
<profile_id_a>669e6968ebf4ac52b623a997</profile_id_a>
<xxh_a>5af1023c84f66195</xxh_a>
<profile_id_b>6751b8f1c5e3db9bcb75befa</profile_id_b>
<xxh_b>879cebbb0e6b6723</xxh_b>
<db_b>9</db_b>
<props>
<exr>
<value>11323123</value>
</exr>
</props>
</relation>
</data>
<error>0</error>
<error_text>Successful operation</error_text>
<total_count>1</total_count>
</data>
<error>0</error>
<error_text>Successful operation</error_text>
</xml>

Response parameters​

ParameterTypeDescription
errorintError code
error_textstringError message
dataobjectInformation about profile relations
data.profile_id_astringID of profile A (the profile to which the relation is directed)
data.xxh_astringHashed ID of profile A
data.profile_id_bstringID of profile B (the profile initiating the relation)
data.xxh_bstringHashed ID of profile B
data.db_bintID of the database containing profile B
data.propsobjectConnection properties
data.total_countintNumber of relations with other profiles
Last updated on Apr 29, 2025
Previous
Get profile relations info
Next
Get data for multiple profiles
  • Description
  • URL
  • Request parameters
  • Request example
  • Response example
  • Response parameters
© 2015 - 2025 Altcraft, LLC. All rights reserved.