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
  • Quick profile import
Documentation for version v72

Quick profile import

Description​

Imports a profile to a database in a quick way. The request has a linear structure and fits simple integrations.

To have access to extended import options please use /api/v1.1/profiles/import.

The request imports or updates the profile;if you pass the resource ID and contact details, it adds subscriptions.

Request URL​

Method: POST. Data can be passed both in URL parameters and in the body of the request.

https://example.com/api/integrations/any/profile_import

Request parameters​

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
db_idint1YesDatabase ID
matchingstring"email"NoProfiles matching mode:
  • email
  • email_profile
  • phone
  • field_name
By default – email
resource_idint1NoSubscribe to a resource using request contact data
emailstring"example@example.com"NoEmail address
phonestring"+75551111444"NoPhone number
_regipstring"172.16.0.1"NoRegistration IPv4 or IPv6. For IPv4 geodata will be retrieved
_regurlstring"https://example.com/?"NoRegistration URL or HTTP head "referer" value.
*

YesSpecify at least one database field. To retrieve field information use /api/v1.1/databases/fields_get
trigger_idint13NoThe ID of the trigger campaign. If the trigger_id is set, the profile will be imported and the trigger campaign will be start at the same time; if not — the profile will be imported in the usual way.
workflow_idint1NoScenario ID. If workflow_id is set, there will be a simultaneous import of the profile and adding the profile to the scenario; if not — the profile will be imported in the usual way.

Response parameters​

Quick import returns HTTP code and response description.

HTTP codeDescription
200Import successful
400Bad request, please verify request parameters
402Tariff account limit reached
403Invalid API key
404No database or subscription resource found
402Account exceeds tariff limits
409More than one profiles matches, inaccurate matching
435Unable to keep field unique - this can be email while matching by other parameters
500Internal server error

Request example​

curl "https://example.com/api/integrations/any/profile_import" \
-d token="abcdefghijklmnqrstuvwxyz" \
-d db_id=1 \
-d resource_id=1 \
-d email="example@example.com" \
-d _fname="John" \
-d _lname="Doe"

Response example​

Successfully added 5beeea0ad861602a078a6f34
Last updated on May 12, 2024
Previous
Add profile to database
Next
Import profile to RabbitMQ
  • Description
  • Request URL
  • Request parameters
  • Response parameters
  • Request example
  • Response example
© 2015 - 2025 Altcraft, LLC. All rights reserved.