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
  • Add profile to database
Documentation for version v72

Add profile to database

tip

The request does not look for existing records and adds any data other than those that duplicate the profile's unique field (email). We recommend using the Import profile request in most cases.

Description​

Adds a new customer profile to a database.

caution

If no data is specified — an empty profile will be created.

Request URL​

Method: POST

https://example.com/api/v1.1/profiles/add

Request parameters​

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
db_idint1YesDatabase ID
dataJSON object
{
"_fname": "John",
"_lname": "Doe"
}
YesProfile fields data
skip_triggersbooltrueNoSkip import trigger events.
By default – false
skip_invalid_subscriptionsbooltrueNoSkip invalid subscriptions.
By default – false

Request example​

  • JSON
  • XML
{
"token": "abcdefghijklmnqrstuvwxyz",
"db_id": 1,
"data": {
"_fname": "Fillipp",
"_lname": "Doe"
},
"skip_triggers": true
}
<xml>
<token>abcdefghijklmnqrstuvwxyz</token>
<db_id>1</db_id>
<skip_triggers>true</skip_triggers>
<data>
<_fname>Fillipp</_fname>
<_lname>Doe</_lname>
</data>
</xml>

Response example​

  • JSON
  • XML
{
"error": 0,
"error_text": "",
"profile_id": "6638e1e8ee44bb50a67115c4"
}
<xml>
<error>0</error>
<error_text>Successful operation</error_text>
<profile_id>6638e1e8ee44bb50a67115c4</profile_id>
</xml>

Response parameters​

ParameterTypeDescription
errorintError code
error_textstringError text
Last updated on Mar 13, 2024
Previous
Add multiple profiles
Next
Quick profile import
  • Description
  • Request URL
  • Request parameters
  • Request example
  • Response example
  • Response parameters
© 2015 - 2025 Altcraft, LLC. All rights reserved.