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
  • 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
    • Upload file
    • Get message web version
    • Push providers
    • Deduplication of requests
    • How to send API request with RabbitMQ
    • List of gender identifications
    • Obtain valid values for fields: browsers, devices, tz, oses, languages
  • 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).
  • Miscellaneous
  • Upload file
Documentation for version v72

Upload file

Description​

Uploads a file.

Request URL​

Method: POST

https://example.com/api/v1.1/file_upload

Request parameters​

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
formatstring"json"NoResponse data format.
By default– json
headerstring"emails.csv"YesFile name
datastring"data:text/csv;base64,YQpi..."Yesbase64 encoded file

Request example​

  • JSON
  • XML
{
"token": "abcdefghijklmnqrstuvwxyz",
"data": "data:text/csv;base64,SEVMTE8K",
"header": "US.csv"
}
<xml>
<token>abcdefghijklmnqrstuvwxyz</token>
<data>data:text/csv;base64,SEVMTE8K</data>
<header>US.csv</header>
</xml>

Response example​

  • JSON
  • XML
{
"data": {
"file": "fd7006e5-5c42-4eba-aa6a-f6cb7f5cb6f2"
},
"error": 0,
"error_text": "Successful operation"
}
<xml>
<data>
<file>fd7006e5-5c42-4eba-aa6a-f6cb7f5cb6f2</file>
</data>
<error>0</error>
<error_text>Successful operation</error_text>
</xml>

Response parameters​

ParameterTypeDescription
errorintError code
error_textstringError text
filestringUnique file ID
Last updated on May 16, 2024
Previous
Miscellaneous
Next
Get message web version
  • Description
  • Request URL
  • Request parameters
  • Request example
  • Response example
  • Response parameters
© 2015 - 2025 Altcraft, LLC. All rights reserved.