Skip to main content
Altcraft Docs LogoAltcraft Docs Logo
User guideDeveloper guideAdmin guide
Company siteHelp center
English
  • Русский
  • English
v72
  • 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
    • Get data for multiple profiles
  • Databases
  • Resources
  • Segments
  • Static segments
  • Suppression lists
  • Templates and fragments
  • Campaigns
  • Automation scenarios
  • Promo codes
  • Goals
  • Application push notifications
  • Market
  • Analytic reports
  • SendersDevv71
  • External datatables queries
  • Objects
  • Miscellaneous
  • Importing the API collection in Postman
  • List of API endpoints
  • SDK
This is documentation for Altcraft Platform v72. This documentation is no longer maintained.
The information for up-to-date platform version at this page is available (v74).
  • Profiles
  • Import profile to RabbitMQ
Documentation for version v72

Import profile to RabbitMQ

Description​

Imports or updates customer profiles via RabbitMQ message broker queue. Useful for extensive data transfers.

You will need a queue named "database_import". Therefore it must be available in the same message broker instance as the rest of the system.

Import results are processed in another queue – "database_import_result". The default queue time-to-live is 24 hours. Although you can reconfigure TTL in main.json configuration file:

RABBITMQ_X_MESSAGE_TTL : "%seconds%"

Use one of these parameters to identify and match profiles:

  • email
  • field_name, field_value
  • phone
  • profile_id

To identify your requests you can use an extra field – "feedback_id". It will appear in server response and in case mistakes occur – they will be logged in "job_server.log".

Message parameters​

ParameterTypeExampleRequiredDescription
account_idint1YesAccount ID
dataJSON object

{    "_fname": "John",    "_lname": "Doe" }

YesProfile fields data
db_idint1YesDatabase ID
feedback_idstring"abcdefghijklmnqrstuvwxyz"NoRequest ID
skip_triggersbooltrueNoSkip trigger events.
By default – false
update_onlybooltrueNoOnly update.
By default – false
Profile matching mode
matchingstring"email"
"phone"
"profile_id"
"custom"
No, if matched by emailProfile matching mode
By default - email
emailstring"john@example.com""matching":"email"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.

tip

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

Message example​

{
"account_id": 1,
"data": {
"_fname": "John",
"_lname": "Doe"
},
"db_id": 1,
"email": "example@example.com",
"feedback_id": "abcdefghijklmnqrstuvwxyz",
"update_only": true
}

Response example​

{
"error": 0,
"error_text": "",
"feedback_id": "abcdefghijklmnqrstuvwxyz",
"matching_field": "email",
"profile_id": "abcdefghijklmnqrstuvwxyz"
}

Response parameters​

ParameterTypeDescription
errorintError code
error_textstringError text
feedback_idstringRequest ID
matching_fieldstringProfile matching
profile_idstringProfile ID
Last updated on Aug 16, 2024
Previous
Quick profile import
Next
Get profile data
  • Description
  • Message parameters
  • Message example
  • Response example
  • Response parameters
© 2015 - 2025 Altcraft, LLC. All rights reserved.