&frankly upload API & service API Reference
This service and API endpoint provides customers means to upload files (CSV, XLS and XLSX) to &frankly to be used in e.g. automated processing, for example for providing user & organization data to us for import into &frankly. The upload service is available as an API (allowing files to be uploaded and listed via REST/HTTPS), or as an Secure FTP (SFTP - also allowing only file upload and listing, not retrieve of data). Both means of transferring data to &frankly is encrypted and secure. Note that the service only allows uploading and listing files, not downloading files (meaning even someone that would get access to the credentials used to upload files would not be able to download the data, which reduces potential issues with GDPR in use of this specific service). The hostname/base URL is the same for both endpoints: upload.api.andfrankly.com.
For SFTP access, log in to upload.api.andfrankly.com (port 22) using an API token as password and username as specified on the Accounts => API Access page in your &frankly account. If you cannot connect, it may be because you need to allow SFTP traffic in your firewalls, and/or that you need to whitelist your sending IP-adresses in &frankly. Contact
help@andfrankly.com for more information if you are having troubles connecting.
The below documentation provides details for the HTTPS API endpoint.
The OpenAPI/Swagger definition of this API is avalable
here.
API Endpoint
https://upload.api.andfrankly.com
Contact: help@andfrankly.com
Schemes: https
Version: 0.1
Authentication
api_key
Paths
POST /v1/storage/uploadFile
Uploads a file to our secure storage area
The file to upload. Max file size 10Mb, allowed file formats: CSV, XLS, XLSX.
Successful upload (text/plain)
Invalid token, Not allowed IP address (no response, text/plain) or error processing the file (JSON response explaining the error, application/json)
Response Content-Types: text/plain, application/json
Response Example (200 OK)
"file.csv"
Response Example (400 Bad Request)
{
"details": [
{
"type": "file validation",
"message": "Too big file"
}
],
"id": "82d83de3-0c6a-441b-9158-9d7de686fdc4",
"message": "Incorrect file size"
}
GET /v1/storage/files
List all files currently uploaded
List of all files (by name) currently on the file area
Invalid token or not allowed IP address
Response Content-Types: application/json
Response Example (200 OK)
[
"file.csv"
]