Skip to main content

Importing the API collection in Postman

This guide will help you import and configure the API methods collection to work with Altcraft Platform via Postman. By following the steps below, you can quickly add API methods in Postman, configure environment variables, and start sending test requests to interact with the platform.

Importing the collection

1. First, make sure you have Postman installed. You can download it from the official website.

2. Download the API methods collection to your device.

tip

If the file doesn't start downloading, right-click the link and choose "Save link as".

3. In Postman, go to the "Collections" section and click the "Import" button:

4. Import the collection file via the upload window:

After the import is complete, all API methods will appear in the sidebar:

5. The collection includes Postman environment variables. Go to the "Variables" section to view the list of variables.

6. The "Initial value" column contains default values for each variable. These act as examples. Replace them with actual values for your account in the "Current value" column.

7. Save the changes by clicking the "Save" button or using Ctrl + S.

caution

Make sure to save any changes to the variable list after editing.

Collection Variables List

Postman VariableDescription
urlThe URL address of the platform's control panel

If you are using a cloud account for Altcraft Platform, use ru.altkraft.com. For on-premise installations, use your own URL.
tokenThe platform token
(created in the "Settings" section => "Tokens")
Core Platform Objects
resource_idResource ID
db_idProfile database ID
db_custom_fieldName of the custom field in the profile database

Note that all collection requests use a custom field of type "Integer". If you are working with other field types, make sure to insert values in the correct format.
stsegment_idStatic segment ID
dynsegment_idDynamic segment ID
segment_idStatic or dynamic segment ID
suplist_idSuppression list ID
template_idMessage template ID
campaign_idCampaign ID
workflow_idWorkflow ID
pixel_idPixel ID
loyalty_idLoyalty program ID
vsender_idVirtual sender ID
System Parameters
profile_idProfile ID
smidMessage send ID
(can be found in the email header X-AKMTA-FSMID)
subscription_idProfile push subscription ID (push token)
rtokenResource token
(can be found in the resource editing window on the "Details" tab — button in the top right corner)
launch_idInternal send ID, unique within the mailing
Market
product_idAdditional product identifier
sku_idAdditional SKU identifier
order_external_idAdditional order identifier (string)
order_internal_idOrder ID (integer)
line_idAdditional order line item ID
market_endpointAdditional endpoint identifier
market_regionAdditional region identifier
market_categoryAdditional product or SKU category identifier
market_currencyCurrency identifier