curl --request POST \
--url https://api.statisfy.com/v1/integrations/imports/feeds \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"match": {
"column": "<string>",
"field": "<string>"
},
"name": "<string>",
"period": {
"date_column": "<string>",
"week_start": "monday"
},
"source": {
"attachment_filter": "<string>",
"bucket": "<string>",
"connection": "<string>",
"prefix": "<string>",
"region": "<string>",
"subject_filter": "<string>"
},
"allow_multiple_rows": false,
"clear_token": "<string>",
"columns": [
{
"column": "<string>",
"target": "<string>",
"date_format": "<string>",
"transform": "<string>"
}
],
"create_missing_people": false,
"custom_object_append_only": false,
"header_layout": {
"group_row": 2,
"header_row": 1
},
"row": "account",
"validation_rules": {
"allow_partial_success": true,
"required_columns": [
"<string>"
],
"skip_on_error": false
}
}
'import requests
url = "https://api.statisfy.com/v1/integrations/imports/feeds"
payload = {
"match": {
"column": "<string>",
"field": "<string>"
},
"name": "<string>",
"period": {
"date_column": "<string>",
"week_start": "monday"
},
"source": {
"attachment_filter": "<string>",
"bucket": "<string>",
"connection": "<string>",
"prefix": "<string>",
"region": "<string>",
"subject_filter": "<string>"
},
"allow_multiple_rows": False,
"clear_token": "<string>",
"columns": [
{
"column": "<string>",
"target": "<string>",
"date_format": "<string>",
"transform": "<string>"
}
],
"create_missing_people": False,
"custom_object_append_only": False,
"header_layout": {
"group_row": 2,
"header_row": 1
},
"row": "account",
"validation_rules": {
"allow_partial_success": True,
"required_columns": ["<string>"],
"skip_on_error": False
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
match: {column: '<string>', field: '<string>'},
name: '<string>',
period: {date_column: '<string>', week_start: 'monday'},
source: {
attachment_filter: '<string>',
bucket: '<string>',
connection: '<string>',
prefix: '<string>',
region: '<string>',
subject_filter: '<string>'
},
allow_multiple_rows: false,
clear_token: '<string>',
columns: [
{
column: '<string>',
target: '<string>',
date_format: '<string>',
transform: '<string>'
}
],
create_missing_people: false,
custom_object_append_only: false,
header_layout: {group_row: 2, header_row: 1},
row: 'account',
validation_rules: {
allow_partial_success: true,
required_columns: ['<string>'],
skip_on_error: false
}
})
};
fetch('https://api.statisfy.com/v1/integrations/imports/feeds', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.statisfy.com/v1/integrations/imports/feeds",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'match' => [
'column' => '<string>',
'field' => '<string>'
],
'name' => '<string>',
'period' => [
'date_column' => '<string>',
'week_start' => 'monday'
],
'source' => [
'attachment_filter' => '<string>',
'bucket' => '<string>',
'connection' => '<string>',
'prefix' => '<string>',
'region' => '<string>',
'subject_filter' => '<string>'
],
'allow_multiple_rows' => false,
'clear_token' => '<string>',
'columns' => [
[
'column' => '<string>',
'target' => '<string>',
'date_format' => '<string>',
'transform' => '<string>'
]
],
'create_missing_people' => false,
'custom_object_append_only' => false,
'header_layout' => [
'group_row' => 2,
'header_row' => 1
],
'row' => 'account',
'validation_rules' => [
'allow_partial_success' => true,
'required_columns' => [
'<string>'
],
'skip_on_error' => false
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.statisfy.com/v1/integrations/imports/feeds"
payload := strings.NewReader("{\n \"match\": {\n \"column\": \"<string>\",\n \"field\": \"<string>\"\n },\n \"name\": \"<string>\",\n \"period\": {\n \"date_column\": \"<string>\",\n \"week_start\": \"monday\"\n },\n \"source\": {\n \"attachment_filter\": \"<string>\",\n \"bucket\": \"<string>\",\n \"connection\": \"<string>\",\n \"prefix\": \"<string>\",\n \"region\": \"<string>\",\n \"subject_filter\": \"<string>\"\n },\n \"allow_multiple_rows\": false,\n \"clear_token\": \"<string>\",\n \"columns\": [\n {\n \"column\": \"<string>\",\n \"target\": \"<string>\",\n \"date_format\": \"<string>\",\n \"transform\": \"<string>\"\n }\n ],\n \"create_missing_people\": false,\n \"custom_object_append_only\": false,\n \"header_layout\": {\n \"group_row\": 2,\n \"header_row\": 1\n },\n \"row\": \"account\",\n \"validation_rules\": {\n \"allow_partial_success\": true,\n \"required_columns\": [\n \"<string>\"\n ],\n \"skip_on_error\": false\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.statisfy.com/v1/integrations/imports/feeds")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"match\": {\n \"column\": \"<string>\",\n \"field\": \"<string>\"\n },\n \"name\": \"<string>\",\n \"period\": {\n \"date_column\": \"<string>\",\n \"week_start\": \"monday\"\n },\n \"source\": {\n \"attachment_filter\": \"<string>\",\n \"bucket\": \"<string>\",\n \"connection\": \"<string>\",\n \"prefix\": \"<string>\",\n \"region\": \"<string>\",\n \"subject_filter\": \"<string>\"\n },\n \"allow_multiple_rows\": false,\n \"clear_token\": \"<string>\",\n \"columns\": [\n {\n \"column\": \"<string>\",\n \"target\": \"<string>\",\n \"date_format\": \"<string>\",\n \"transform\": \"<string>\"\n }\n ],\n \"create_missing_people\": false,\n \"custom_object_append_only\": false,\n \"header_layout\": {\n \"group_row\": 2,\n \"header_row\": 1\n },\n \"row\": \"account\",\n \"validation_rules\": {\n \"allow_partial_success\": true,\n \"required_columns\": [\n \"<string>\"\n ],\n \"skip_on_error\": false\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/integrations/imports/feeds")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"match\": {\n \"column\": \"<string>\",\n \"field\": \"<string>\"\n },\n \"name\": \"<string>\",\n \"period\": {\n \"date_column\": \"<string>\",\n \"week_start\": \"monday\"\n },\n \"source\": {\n \"attachment_filter\": \"<string>\",\n \"bucket\": \"<string>\",\n \"connection\": \"<string>\",\n \"prefix\": \"<string>\",\n \"region\": \"<string>\",\n \"subject_filter\": \"<string>\"\n },\n \"allow_multiple_rows\": false,\n \"clear_token\": \"<string>\",\n \"columns\": [\n {\n \"column\": \"<string>\",\n \"target\": \"<string>\",\n \"date_format\": \"<string>\",\n \"transform\": \"<string>\"\n }\n ],\n \"create_missing_people\": false,\n \"custom_object_append_only\": false,\n \"header_layout\": {\n \"group_row\": 2,\n \"header_row\": 1\n },\n \"row\": \"account\",\n \"validation_rules\": {\n \"allow_partial_success\": true,\n \"required_columns\": [\n \"<string>\"\n ],\n \"skip_on_error\": false\n }\n}"
response = http.request(request)
puts response.read_body{
"active": true,
"allow_multiple_rows": true,
"clear_token": "<string>",
"columns": [
{
"column": "<string>",
"target": "<string>",
"date_format": "<string>",
"transform": "<string>"
}
],
"create_missing_people": true,
"created_at": "2023-11-07T05:31:56Z",
"custom_object_append_only": true,
"header_layout": {
"group_row": 123,
"header_row": 123
},
"match": {
"column": "<string>",
"field": "<string>"
},
"name": "<string>",
"period": {
"date_column": "<string>",
"snapshot": "daily",
"week_start": "monday"
},
"row": "account",
"source": {
"kind": "email",
"address": "<string>",
"attachment_filter": "<string>",
"bucket": "<string>",
"connection": "<string>",
"prefix": "<string>",
"region": "<string>",
"subject_filter": "<string>"
},
"updated_at": "2023-11-07T05:31:56Z",
"validation_rules": {
"allow_partial_success": true,
"required_columns": [
"<string>"
],
"skip_on_error": false
},
"version": "2023-11-07T05:31:56Z"
}Create a file import feed
A new recurring file feed (Periodic Data Import), switched off until update_feed switches it on: an email feed holds each file it receives (status held) and an S3 feed isn’t polled; run_feed imports one file meanwhile. A feed reads as get_feed shows it: source (email, or s3 on an AWS S3 connection made in the app), row (account or person), match (the column that names each row’s account, and the account field it matches), period, and columns, one entry per mapped column naming its target (see integrations.import_targets). The save runs the app’s checks: a refused column comes back as a 422 naming each column and why. Saving locks each mapped field, so it is read-only in the app. Test the mapping (integrations.test_mapping) before switching the feed on.
curl --request POST \
--url https://api.statisfy.com/v1/integrations/imports/feeds \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"match": {
"column": "<string>",
"field": "<string>"
},
"name": "<string>",
"period": {
"date_column": "<string>",
"week_start": "monday"
},
"source": {
"attachment_filter": "<string>",
"bucket": "<string>",
"connection": "<string>",
"prefix": "<string>",
"region": "<string>",
"subject_filter": "<string>"
},
"allow_multiple_rows": false,
"clear_token": "<string>",
"columns": [
{
"column": "<string>",
"target": "<string>",
"date_format": "<string>",
"transform": "<string>"
}
],
"create_missing_people": false,
"custom_object_append_only": false,
"header_layout": {
"group_row": 2,
"header_row": 1
},
"row": "account",
"validation_rules": {
"allow_partial_success": true,
"required_columns": [
"<string>"
],
"skip_on_error": false
}
}
'import requests
url = "https://api.statisfy.com/v1/integrations/imports/feeds"
payload = {
"match": {
"column": "<string>",
"field": "<string>"
},
"name": "<string>",
"period": {
"date_column": "<string>",
"week_start": "monday"
},
"source": {
"attachment_filter": "<string>",
"bucket": "<string>",
"connection": "<string>",
"prefix": "<string>",
"region": "<string>",
"subject_filter": "<string>"
},
"allow_multiple_rows": False,
"clear_token": "<string>",
"columns": [
{
"column": "<string>",
"target": "<string>",
"date_format": "<string>",
"transform": "<string>"
}
],
"create_missing_people": False,
"custom_object_append_only": False,
"header_layout": {
"group_row": 2,
"header_row": 1
},
"row": "account",
"validation_rules": {
"allow_partial_success": True,
"required_columns": ["<string>"],
"skip_on_error": False
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
match: {column: '<string>', field: '<string>'},
name: '<string>',
period: {date_column: '<string>', week_start: 'monday'},
source: {
attachment_filter: '<string>',
bucket: '<string>',
connection: '<string>',
prefix: '<string>',
region: '<string>',
subject_filter: '<string>'
},
allow_multiple_rows: false,
clear_token: '<string>',
columns: [
{
column: '<string>',
target: '<string>',
date_format: '<string>',
transform: '<string>'
}
],
create_missing_people: false,
custom_object_append_only: false,
header_layout: {group_row: 2, header_row: 1},
row: 'account',
validation_rules: {
allow_partial_success: true,
required_columns: ['<string>'],
skip_on_error: false
}
})
};
fetch('https://api.statisfy.com/v1/integrations/imports/feeds', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.statisfy.com/v1/integrations/imports/feeds",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'match' => [
'column' => '<string>',
'field' => '<string>'
],
'name' => '<string>',
'period' => [
'date_column' => '<string>',
'week_start' => 'monday'
],
'source' => [
'attachment_filter' => '<string>',
'bucket' => '<string>',
'connection' => '<string>',
'prefix' => '<string>',
'region' => '<string>',
'subject_filter' => '<string>'
],
'allow_multiple_rows' => false,
'clear_token' => '<string>',
'columns' => [
[
'column' => '<string>',
'target' => '<string>',
'date_format' => '<string>',
'transform' => '<string>'
]
],
'create_missing_people' => false,
'custom_object_append_only' => false,
'header_layout' => [
'group_row' => 2,
'header_row' => 1
],
'row' => 'account',
'validation_rules' => [
'allow_partial_success' => true,
'required_columns' => [
'<string>'
],
'skip_on_error' => false
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.statisfy.com/v1/integrations/imports/feeds"
payload := strings.NewReader("{\n \"match\": {\n \"column\": \"<string>\",\n \"field\": \"<string>\"\n },\n \"name\": \"<string>\",\n \"period\": {\n \"date_column\": \"<string>\",\n \"week_start\": \"monday\"\n },\n \"source\": {\n \"attachment_filter\": \"<string>\",\n \"bucket\": \"<string>\",\n \"connection\": \"<string>\",\n \"prefix\": \"<string>\",\n \"region\": \"<string>\",\n \"subject_filter\": \"<string>\"\n },\n \"allow_multiple_rows\": false,\n \"clear_token\": \"<string>\",\n \"columns\": [\n {\n \"column\": \"<string>\",\n \"target\": \"<string>\",\n \"date_format\": \"<string>\",\n \"transform\": \"<string>\"\n }\n ],\n \"create_missing_people\": false,\n \"custom_object_append_only\": false,\n \"header_layout\": {\n \"group_row\": 2,\n \"header_row\": 1\n },\n \"row\": \"account\",\n \"validation_rules\": {\n \"allow_partial_success\": true,\n \"required_columns\": [\n \"<string>\"\n ],\n \"skip_on_error\": false\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.statisfy.com/v1/integrations/imports/feeds")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"match\": {\n \"column\": \"<string>\",\n \"field\": \"<string>\"\n },\n \"name\": \"<string>\",\n \"period\": {\n \"date_column\": \"<string>\",\n \"week_start\": \"monday\"\n },\n \"source\": {\n \"attachment_filter\": \"<string>\",\n \"bucket\": \"<string>\",\n \"connection\": \"<string>\",\n \"prefix\": \"<string>\",\n \"region\": \"<string>\",\n \"subject_filter\": \"<string>\"\n },\n \"allow_multiple_rows\": false,\n \"clear_token\": \"<string>\",\n \"columns\": [\n {\n \"column\": \"<string>\",\n \"target\": \"<string>\",\n \"date_format\": \"<string>\",\n \"transform\": \"<string>\"\n }\n ],\n \"create_missing_people\": false,\n \"custom_object_append_only\": false,\n \"header_layout\": {\n \"group_row\": 2,\n \"header_row\": 1\n },\n \"row\": \"account\",\n \"validation_rules\": {\n \"allow_partial_success\": true,\n \"required_columns\": [\n \"<string>\"\n ],\n \"skip_on_error\": false\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/integrations/imports/feeds")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"match\": {\n \"column\": \"<string>\",\n \"field\": \"<string>\"\n },\n \"name\": \"<string>\",\n \"period\": {\n \"date_column\": \"<string>\",\n \"week_start\": \"monday\"\n },\n \"source\": {\n \"attachment_filter\": \"<string>\",\n \"bucket\": \"<string>\",\n \"connection\": \"<string>\",\n \"prefix\": \"<string>\",\n \"region\": \"<string>\",\n \"subject_filter\": \"<string>\"\n },\n \"allow_multiple_rows\": false,\n \"clear_token\": \"<string>\",\n \"columns\": [\n {\n \"column\": \"<string>\",\n \"target\": \"<string>\",\n \"date_format\": \"<string>\",\n \"transform\": \"<string>\"\n }\n ],\n \"create_missing_people\": false,\n \"custom_object_append_only\": false,\n \"header_layout\": {\n \"group_row\": 2,\n \"header_row\": 1\n },\n \"row\": \"account\",\n \"validation_rules\": {\n \"allow_partial_success\": true,\n \"required_columns\": [\n \"<string>\"\n ],\n \"skip_on_error\": false\n }\n}"
response = http.request(request)
puts response.read_body{
"active": true,
"allow_multiple_rows": true,
"clear_token": "<string>",
"columns": [
{
"column": "<string>",
"target": "<string>",
"date_format": "<string>",
"transform": "<string>"
}
],
"create_missing_people": true,
"created_at": "2023-11-07T05:31:56Z",
"custom_object_append_only": true,
"header_layout": {
"group_row": 123,
"header_row": 123
},
"match": {
"column": "<string>",
"field": "<string>"
},
"name": "<string>",
"period": {
"date_column": "<string>",
"snapshot": "daily",
"week_start": "monday"
},
"row": "account",
"source": {
"kind": "email",
"address": "<string>",
"attachment_filter": "<string>",
"bucket": "<string>",
"connection": "<string>",
"prefix": "<string>",
"region": "<string>",
"subject_filter": "<string>"
},
"updated_at": "2023-11-07T05:31:56Z",
"validation_rules": {
"allow_partial_success": true,
"required_columns": [
"<string>"
],
"skip_on_error": false
},
"version": "2023-11-07T05:31:56Z"
}Authorizations
An API key, sent as Authorization: Bearer stfy_live_…. See Authentication for how to get one and which scopes it needs.
Body
Response
Successful Response
Was this page helpful?