Preview a Linear config
curl --request POST \
--url https://api.statisfy.com/v1/integrations/linear/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"config": {
"customer_resolution": [
{
"column": "<string>",
"abbreviations": {},
"custom_field_key": "<string>",
"cutoff": 123,
"exclude_keywords": [
"<string>"
],
"field_to_parse": "<string>",
"value_transform": {
"regex_extract": "<string>",
"skip_if_contains": "<string>",
"skip_if_equals": "<string>",
"split_first_token": "<string>",
"strip_prefix": "<string>"
}
}
],
"field_whitelist": {
"account_field_mappings": [
{
"linear_field": "<string>",
"target_field_key": "<string>"
}
],
"task_field_mappings": [
{
"linear_field": "<string>",
"target_field_key": "<string>"
}
]
},
"project_ids": [
"<string>"
],
"project_rules": [
{
"customer_resolution": [
{
"column": "<string>",
"abbreviations": {},
"custom_field_key": "<string>",
"cutoff": 123,
"exclude_keywords": [
"<string>"
],
"field_to_parse": "<string>",
"value_transform": {
"regex_extract": "<string>",
"skip_if_contains": "<string>",
"skip_if_equals": "<string>",
"split_first_token": "<string>",
"strip_prefix": "<string>"
}
}
],
"project_id": "<string>",
"creates_task": true,
"field_whitelist": {
"account_field_mappings": [
{
"linear_field": "<string>",
"target_field_key": "<string>"
}
],
"task_field_mappings": [
{
"linear_field": "<string>",
"target_field_key": "<string>"
}
]
},
"id": "<string>",
"is_active": true
}
],
"status_mappings": [
{
"project_id": "<string>",
"workflow_state_id": "<string>",
"workflow_state_name": "<string>"
}
]
},
"project_id": "<string>",
"sample_size": 10
}
'import requests
url = "https://api.statisfy.com/v1/integrations/linear/preview"
payload = {
"config": {
"customer_resolution": [
{
"column": "<string>",
"abbreviations": {},
"custom_field_key": "<string>",
"cutoff": 123,
"exclude_keywords": ["<string>"],
"field_to_parse": "<string>",
"value_transform": {
"regex_extract": "<string>",
"skip_if_contains": "<string>",
"skip_if_equals": "<string>",
"split_first_token": "<string>",
"strip_prefix": "<string>"
}
}
],
"field_whitelist": {
"account_field_mappings": [
{
"linear_field": "<string>",
"target_field_key": "<string>"
}
],
"task_field_mappings": [
{
"linear_field": "<string>",
"target_field_key": "<string>"
}
]
},
"project_ids": ["<string>"],
"project_rules": [
{
"customer_resolution": [
{
"column": "<string>",
"abbreviations": {},
"custom_field_key": "<string>",
"cutoff": 123,
"exclude_keywords": ["<string>"],
"field_to_parse": "<string>",
"value_transform": {
"regex_extract": "<string>",
"skip_if_contains": "<string>",
"skip_if_equals": "<string>",
"split_first_token": "<string>",
"strip_prefix": "<string>"
}
}
],
"project_id": "<string>",
"creates_task": True,
"field_whitelist": {
"account_field_mappings": [
{
"linear_field": "<string>",
"target_field_key": "<string>"
}
],
"task_field_mappings": [
{
"linear_field": "<string>",
"target_field_key": "<string>"
}
]
},
"id": "<string>",
"is_active": True
}
],
"status_mappings": [
{
"project_id": "<string>",
"workflow_state_id": "<string>",
"workflow_state_name": "<string>"
}
]
},
"project_id": "<string>",
"sample_size": 10
}
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({
config: {
customer_resolution: [
{
column: '<string>',
abbreviations: {},
custom_field_key: '<string>',
cutoff: 123,
exclude_keywords: ['<string>'],
field_to_parse: '<string>',
value_transform: {
regex_extract: '<string>',
skip_if_contains: '<string>',
skip_if_equals: '<string>',
split_first_token: '<string>',
strip_prefix: '<string>'
}
}
],
field_whitelist: {
account_field_mappings: [{linear_field: '<string>', target_field_key: '<string>'}],
task_field_mappings: [{linear_field: '<string>', target_field_key: '<string>'}]
},
project_ids: ['<string>'],
project_rules: [
{
customer_resolution: [
{
column: '<string>',
abbreviations: {},
custom_field_key: '<string>',
cutoff: 123,
exclude_keywords: ['<string>'],
field_to_parse: '<string>',
value_transform: {
regex_extract: '<string>',
skip_if_contains: '<string>',
skip_if_equals: '<string>',
split_first_token: '<string>',
strip_prefix: '<string>'
}
}
],
project_id: '<string>',
creates_task: true,
field_whitelist: {
account_field_mappings: [{linear_field: '<string>', target_field_key: '<string>'}],
task_field_mappings: [{linear_field: '<string>', target_field_key: '<string>'}]
},
id: '<string>',
is_active: true
}
],
status_mappings: [
{
project_id: '<string>',
workflow_state_id: '<string>',
workflow_state_name: '<string>'
}
]
},
project_id: '<string>',
sample_size: 10
})
};
fetch('https://api.statisfy.com/v1/integrations/linear/preview', 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/linear/preview",
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([
'config' => [
'customer_resolution' => [
[
'column' => '<string>',
'abbreviations' => [
],
'custom_field_key' => '<string>',
'cutoff' => 123,
'exclude_keywords' => [
'<string>'
],
'field_to_parse' => '<string>',
'value_transform' => [
'regex_extract' => '<string>',
'skip_if_contains' => '<string>',
'skip_if_equals' => '<string>',
'split_first_token' => '<string>',
'strip_prefix' => '<string>'
]
]
],
'field_whitelist' => [
'account_field_mappings' => [
[
'linear_field' => '<string>',
'target_field_key' => '<string>'
]
],
'task_field_mappings' => [
[
'linear_field' => '<string>',
'target_field_key' => '<string>'
]
]
],
'project_ids' => [
'<string>'
],
'project_rules' => [
[
'customer_resolution' => [
[
'column' => '<string>',
'abbreviations' => [
],
'custom_field_key' => '<string>',
'cutoff' => 123,
'exclude_keywords' => [
'<string>'
],
'field_to_parse' => '<string>',
'value_transform' => [
'regex_extract' => '<string>',
'skip_if_contains' => '<string>',
'skip_if_equals' => '<string>',
'split_first_token' => '<string>',
'strip_prefix' => '<string>'
]
]
],
'project_id' => '<string>',
'creates_task' => true,
'field_whitelist' => [
'account_field_mappings' => [
[
'linear_field' => '<string>',
'target_field_key' => '<string>'
]
],
'task_field_mappings' => [
[
'linear_field' => '<string>',
'target_field_key' => '<string>'
]
]
],
'id' => '<string>',
'is_active' => true
]
],
'status_mappings' => [
[
'project_id' => '<string>',
'workflow_state_id' => '<string>',
'workflow_state_name' => '<string>'
]
]
],
'project_id' => '<string>',
'sample_size' => 10
]),
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/linear/preview"
payload := strings.NewReader("{\n \"config\": {\n \"customer_resolution\": [\n {\n \"column\": \"<string>\",\n \"abbreviations\": {},\n \"custom_field_key\": \"<string>\",\n \"cutoff\": 123,\n \"exclude_keywords\": [\n \"<string>\"\n ],\n \"field_to_parse\": \"<string>\",\n \"value_transform\": {\n \"regex_extract\": \"<string>\",\n \"skip_if_contains\": \"<string>\",\n \"skip_if_equals\": \"<string>\",\n \"split_first_token\": \"<string>\",\n \"strip_prefix\": \"<string>\"\n }\n }\n ],\n \"field_whitelist\": {\n \"account_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"task_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ]\n },\n \"project_ids\": [\n \"<string>\"\n ],\n \"project_rules\": [\n {\n \"customer_resolution\": [\n {\n \"column\": \"<string>\",\n \"abbreviations\": {},\n \"custom_field_key\": \"<string>\",\n \"cutoff\": 123,\n \"exclude_keywords\": [\n \"<string>\"\n ],\n \"field_to_parse\": \"<string>\",\n \"value_transform\": {\n \"regex_extract\": \"<string>\",\n \"skip_if_contains\": \"<string>\",\n \"skip_if_equals\": \"<string>\",\n \"split_first_token\": \"<string>\",\n \"strip_prefix\": \"<string>\"\n }\n }\n ],\n \"project_id\": \"<string>\",\n \"creates_task\": true,\n \"field_whitelist\": {\n \"account_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"task_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ]\n },\n \"id\": \"<string>\",\n \"is_active\": true\n }\n ],\n \"status_mappings\": [\n {\n \"project_id\": \"<string>\",\n \"workflow_state_id\": \"<string>\",\n \"workflow_state_name\": \"<string>\"\n }\n ]\n },\n \"project_id\": \"<string>\",\n \"sample_size\": 10\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/linear/preview")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"config\": {\n \"customer_resolution\": [\n {\n \"column\": \"<string>\",\n \"abbreviations\": {},\n \"custom_field_key\": \"<string>\",\n \"cutoff\": 123,\n \"exclude_keywords\": [\n \"<string>\"\n ],\n \"field_to_parse\": \"<string>\",\n \"value_transform\": {\n \"regex_extract\": \"<string>\",\n \"skip_if_contains\": \"<string>\",\n \"skip_if_equals\": \"<string>\",\n \"split_first_token\": \"<string>\",\n \"strip_prefix\": \"<string>\"\n }\n }\n ],\n \"field_whitelist\": {\n \"account_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"task_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ]\n },\n \"project_ids\": [\n \"<string>\"\n ],\n \"project_rules\": [\n {\n \"customer_resolution\": [\n {\n \"column\": \"<string>\",\n \"abbreviations\": {},\n \"custom_field_key\": \"<string>\",\n \"cutoff\": 123,\n \"exclude_keywords\": [\n \"<string>\"\n ],\n \"field_to_parse\": \"<string>\",\n \"value_transform\": {\n \"regex_extract\": \"<string>\",\n \"skip_if_contains\": \"<string>\",\n \"skip_if_equals\": \"<string>\",\n \"split_first_token\": \"<string>\",\n \"strip_prefix\": \"<string>\"\n }\n }\n ],\n \"project_id\": \"<string>\",\n \"creates_task\": true,\n \"field_whitelist\": {\n \"account_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"task_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ]\n },\n \"id\": \"<string>\",\n \"is_active\": true\n }\n ],\n \"status_mappings\": [\n {\n \"project_id\": \"<string>\",\n \"workflow_state_id\": \"<string>\",\n \"workflow_state_name\": \"<string>\"\n }\n ]\n },\n \"project_id\": \"<string>\",\n \"sample_size\": 10\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/integrations/linear/preview")
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 \"config\": {\n \"customer_resolution\": [\n {\n \"column\": \"<string>\",\n \"abbreviations\": {},\n \"custom_field_key\": \"<string>\",\n \"cutoff\": 123,\n \"exclude_keywords\": [\n \"<string>\"\n ],\n \"field_to_parse\": \"<string>\",\n \"value_transform\": {\n \"regex_extract\": \"<string>\",\n \"skip_if_contains\": \"<string>\",\n \"skip_if_equals\": \"<string>\",\n \"split_first_token\": \"<string>\",\n \"strip_prefix\": \"<string>\"\n }\n }\n ],\n \"field_whitelist\": {\n \"account_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"task_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ]\n },\n \"project_ids\": [\n \"<string>\"\n ],\n \"project_rules\": [\n {\n \"customer_resolution\": [\n {\n \"column\": \"<string>\",\n \"abbreviations\": {},\n \"custom_field_key\": \"<string>\",\n \"cutoff\": 123,\n \"exclude_keywords\": [\n \"<string>\"\n ],\n \"field_to_parse\": \"<string>\",\n \"value_transform\": {\n \"regex_extract\": \"<string>\",\n \"skip_if_contains\": \"<string>\",\n \"skip_if_equals\": \"<string>\",\n \"split_first_token\": \"<string>\",\n \"strip_prefix\": \"<string>\"\n }\n }\n ],\n \"project_id\": \"<string>\",\n \"creates_task\": true,\n \"field_whitelist\": {\n \"account_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"task_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ]\n },\n \"id\": \"<string>\",\n \"is_active\": true\n }\n ],\n \"status_mappings\": [\n {\n \"project_id\": \"<string>\",\n \"workflow_state_id\": \"<string>\",\n \"workflow_state_name\": \"<string>\"\n }\n ]\n },\n \"project_id\": \"<string>\",\n \"sample_size\": 10\n}"
response = http.request(request)
puts response.read_body{
"issues": [
{
"fields_preview": {},
"identifier": "<string>",
"issue_id": "<string>",
"matched": true,
"resolved_account_id": "<string>",
"resolved_account_name": "<string>",
"resolved_via": "<string>",
"title": "<string>"
}
],
"match_rate": 123,
"warnings": [
"<string>"
]
}integrations
Preview a Linear config
A dry run: tries a draft config on recent issues and says which account each would go to, writing nothing. Needs integrations:write: the issues are Linear data. Calls Linear: a 409 when Linear is not connected, a 502 when Linear refuses or does not answer.
POST
/
v1
/
integrations
/
linear
/
preview
Preview a Linear config
curl --request POST \
--url https://api.statisfy.com/v1/integrations/linear/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"config": {
"customer_resolution": [
{
"column": "<string>",
"abbreviations": {},
"custom_field_key": "<string>",
"cutoff": 123,
"exclude_keywords": [
"<string>"
],
"field_to_parse": "<string>",
"value_transform": {
"regex_extract": "<string>",
"skip_if_contains": "<string>",
"skip_if_equals": "<string>",
"split_first_token": "<string>",
"strip_prefix": "<string>"
}
}
],
"field_whitelist": {
"account_field_mappings": [
{
"linear_field": "<string>",
"target_field_key": "<string>"
}
],
"task_field_mappings": [
{
"linear_field": "<string>",
"target_field_key": "<string>"
}
]
},
"project_ids": [
"<string>"
],
"project_rules": [
{
"customer_resolution": [
{
"column": "<string>",
"abbreviations": {},
"custom_field_key": "<string>",
"cutoff": 123,
"exclude_keywords": [
"<string>"
],
"field_to_parse": "<string>",
"value_transform": {
"regex_extract": "<string>",
"skip_if_contains": "<string>",
"skip_if_equals": "<string>",
"split_first_token": "<string>",
"strip_prefix": "<string>"
}
}
],
"project_id": "<string>",
"creates_task": true,
"field_whitelist": {
"account_field_mappings": [
{
"linear_field": "<string>",
"target_field_key": "<string>"
}
],
"task_field_mappings": [
{
"linear_field": "<string>",
"target_field_key": "<string>"
}
]
},
"id": "<string>",
"is_active": true
}
],
"status_mappings": [
{
"project_id": "<string>",
"workflow_state_id": "<string>",
"workflow_state_name": "<string>"
}
]
},
"project_id": "<string>",
"sample_size": 10
}
'import requests
url = "https://api.statisfy.com/v1/integrations/linear/preview"
payload = {
"config": {
"customer_resolution": [
{
"column": "<string>",
"abbreviations": {},
"custom_field_key": "<string>",
"cutoff": 123,
"exclude_keywords": ["<string>"],
"field_to_parse": "<string>",
"value_transform": {
"regex_extract": "<string>",
"skip_if_contains": "<string>",
"skip_if_equals": "<string>",
"split_first_token": "<string>",
"strip_prefix": "<string>"
}
}
],
"field_whitelist": {
"account_field_mappings": [
{
"linear_field": "<string>",
"target_field_key": "<string>"
}
],
"task_field_mappings": [
{
"linear_field": "<string>",
"target_field_key": "<string>"
}
]
},
"project_ids": ["<string>"],
"project_rules": [
{
"customer_resolution": [
{
"column": "<string>",
"abbreviations": {},
"custom_field_key": "<string>",
"cutoff": 123,
"exclude_keywords": ["<string>"],
"field_to_parse": "<string>",
"value_transform": {
"regex_extract": "<string>",
"skip_if_contains": "<string>",
"skip_if_equals": "<string>",
"split_first_token": "<string>",
"strip_prefix": "<string>"
}
}
],
"project_id": "<string>",
"creates_task": True,
"field_whitelist": {
"account_field_mappings": [
{
"linear_field": "<string>",
"target_field_key": "<string>"
}
],
"task_field_mappings": [
{
"linear_field": "<string>",
"target_field_key": "<string>"
}
]
},
"id": "<string>",
"is_active": True
}
],
"status_mappings": [
{
"project_id": "<string>",
"workflow_state_id": "<string>",
"workflow_state_name": "<string>"
}
]
},
"project_id": "<string>",
"sample_size": 10
}
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({
config: {
customer_resolution: [
{
column: '<string>',
abbreviations: {},
custom_field_key: '<string>',
cutoff: 123,
exclude_keywords: ['<string>'],
field_to_parse: '<string>',
value_transform: {
regex_extract: '<string>',
skip_if_contains: '<string>',
skip_if_equals: '<string>',
split_first_token: '<string>',
strip_prefix: '<string>'
}
}
],
field_whitelist: {
account_field_mappings: [{linear_field: '<string>', target_field_key: '<string>'}],
task_field_mappings: [{linear_field: '<string>', target_field_key: '<string>'}]
},
project_ids: ['<string>'],
project_rules: [
{
customer_resolution: [
{
column: '<string>',
abbreviations: {},
custom_field_key: '<string>',
cutoff: 123,
exclude_keywords: ['<string>'],
field_to_parse: '<string>',
value_transform: {
regex_extract: '<string>',
skip_if_contains: '<string>',
skip_if_equals: '<string>',
split_first_token: '<string>',
strip_prefix: '<string>'
}
}
],
project_id: '<string>',
creates_task: true,
field_whitelist: {
account_field_mappings: [{linear_field: '<string>', target_field_key: '<string>'}],
task_field_mappings: [{linear_field: '<string>', target_field_key: '<string>'}]
},
id: '<string>',
is_active: true
}
],
status_mappings: [
{
project_id: '<string>',
workflow_state_id: '<string>',
workflow_state_name: '<string>'
}
]
},
project_id: '<string>',
sample_size: 10
})
};
fetch('https://api.statisfy.com/v1/integrations/linear/preview', 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/linear/preview",
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([
'config' => [
'customer_resolution' => [
[
'column' => '<string>',
'abbreviations' => [
],
'custom_field_key' => '<string>',
'cutoff' => 123,
'exclude_keywords' => [
'<string>'
],
'field_to_parse' => '<string>',
'value_transform' => [
'regex_extract' => '<string>',
'skip_if_contains' => '<string>',
'skip_if_equals' => '<string>',
'split_first_token' => '<string>',
'strip_prefix' => '<string>'
]
]
],
'field_whitelist' => [
'account_field_mappings' => [
[
'linear_field' => '<string>',
'target_field_key' => '<string>'
]
],
'task_field_mappings' => [
[
'linear_field' => '<string>',
'target_field_key' => '<string>'
]
]
],
'project_ids' => [
'<string>'
],
'project_rules' => [
[
'customer_resolution' => [
[
'column' => '<string>',
'abbreviations' => [
],
'custom_field_key' => '<string>',
'cutoff' => 123,
'exclude_keywords' => [
'<string>'
],
'field_to_parse' => '<string>',
'value_transform' => [
'regex_extract' => '<string>',
'skip_if_contains' => '<string>',
'skip_if_equals' => '<string>',
'split_first_token' => '<string>',
'strip_prefix' => '<string>'
]
]
],
'project_id' => '<string>',
'creates_task' => true,
'field_whitelist' => [
'account_field_mappings' => [
[
'linear_field' => '<string>',
'target_field_key' => '<string>'
]
],
'task_field_mappings' => [
[
'linear_field' => '<string>',
'target_field_key' => '<string>'
]
]
],
'id' => '<string>',
'is_active' => true
]
],
'status_mappings' => [
[
'project_id' => '<string>',
'workflow_state_id' => '<string>',
'workflow_state_name' => '<string>'
]
]
],
'project_id' => '<string>',
'sample_size' => 10
]),
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/linear/preview"
payload := strings.NewReader("{\n \"config\": {\n \"customer_resolution\": [\n {\n \"column\": \"<string>\",\n \"abbreviations\": {},\n \"custom_field_key\": \"<string>\",\n \"cutoff\": 123,\n \"exclude_keywords\": [\n \"<string>\"\n ],\n \"field_to_parse\": \"<string>\",\n \"value_transform\": {\n \"regex_extract\": \"<string>\",\n \"skip_if_contains\": \"<string>\",\n \"skip_if_equals\": \"<string>\",\n \"split_first_token\": \"<string>\",\n \"strip_prefix\": \"<string>\"\n }\n }\n ],\n \"field_whitelist\": {\n \"account_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"task_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ]\n },\n \"project_ids\": [\n \"<string>\"\n ],\n \"project_rules\": [\n {\n \"customer_resolution\": [\n {\n \"column\": \"<string>\",\n \"abbreviations\": {},\n \"custom_field_key\": \"<string>\",\n \"cutoff\": 123,\n \"exclude_keywords\": [\n \"<string>\"\n ],\n \"field_to_parse\": \"<string>\",\n \"value_transform\": {\n \"regex_extract\": \"<string>\",\n \"skip_if_contains\": \"<string>\",\n \"skip_if_equals\": \"<string>\",\n \"split_first_token\": \"<string>\",\n \"strip_prefix\": \"<string>\"\n }\n }\n ],\n \"project_id\": \"<string>\",\n \"creates_task\": true,\n \"field_whitelist\": {\n \"account_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"task_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ]\n },\n \"id\": \"<string>\",\n \"is_active\": true\n }\n ],\n \"status_mappings\": [\n {\n \"project_id\": \"<string>\",\n \"workflow_state_id\": \"<string>\",\n \"workflow_state_name\": \"<string>\"\n }\n ]\n },\n \"project_id\": \"<string>\",\n \"sample_size\": 10\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/linear/preview")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"config\": {\n \"customer_resolution\": [\n {\n \"column\": \"<string>\",\n \"abbreviations\": {},\n \"custom_field_key\": \"<string>\",\n \"cutoff\": 123,\n \"exclude_keywords\": [\n \"<string>\"\n ],\n \"field_to_parse\": \"<string>\",\n \"value_transform\": {\n \"regex_extract\": \"<string>\",\n \"skip_if_contains\": \"<string>\",\n \"skip_if_equals\": \"<string>\",\n \"split_first_token\": \"<string>\",\n \"strip_prefix\": \"<string>\"\n }\n }\n ],\n \"field_whitelist\": {\n \"account_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"task_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ]\n },\n \"project_ids\": [\n \"<string>\"\n ],\n \"project_rules\": [\n {\n \"customer_resolution\": [\n {\n \"column\": \"<string>\",\n \"abbreviations\": {},\n \"custom_field_key\": \"<string>\",\n \"cutoff\": 123,\n \"exclude_keywords\": [\n \"<string>\"\n ],\n \"field_to_parse\": \"<string>\",\n \"value_transform\": {\n \"regex_extract\": \"<string>\",\n \"skip_if_contains\": \"<string>\",\n \"skip_if_equals\": \"<string>\",\n \"split_first_token\": \"<string>\",\n \"strip_prefix\": \"<string>\"\n }\n }\n ],\n \"project_id\": \"<string>\",\n \"creates_task\": true,\n \"field_whitelist\": {\n \"account_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"task_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ]\n },\n \"id\": \"<string>\",\n \"is_active\": true\n }\n ],\n \"status_mappings\": [\n {\n \"project_id\": \"<string>\",\n \"workflow_state_id\": \"<string>\",\n \"workflow_state_name\": \"<string>\"\n }\n ]\n },\n \"project_id\": \"<string>\",\n \"sample_size\": 10\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/integrations/linear/preview")
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 \"config\": {\n \"customer_resolution\": [\n {\n \"column\": \"<string>\",\n \"abbreviations\": {},\n \"custom_field_key\": \"<string>\",\n \"cutoff\": 123,\n \"exclude_keywords\": [\n \"<string>\"\n ],\n \"field_to_parse\": \"<string>\",\n \"value_transform\": {\n \"regex_extract\": \"<string>\",\n \"skip_if_contains\": \"<string>\",\n \"skip_if_equals\": \"<string>\",\n \"split_first_token\": \"<string>\",\n \"strip_prefix\": \"<string>\"\n }\n }\n ],\n \"field_whitelist\": {\n \"account_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"task_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ]\n },\n \"project_ids\": [\n \"<string>\"\n ],\n \"project_rules\": [\n {\n \"customer_resolution\": [\n {\n \"column\": \"<string>\",\n \"abbreviations\": {},\n \"custom_field_key\": \"<string>\",\n \"cutoff\": 123,\n \"exclude_keywords\": [\n \"<string>\"\n ],\n \"field_to_parse\": \"<string>\",\n \"value_transform\": {\n \"regex_extract\": \"<string>\",\n \"skip_if_contains\": \"<string>\",\n \"skip_if_equals\": \"<string>\",\n \"split_first_token\": \"<string>\",\n \"strip_prefix\": \"<string>\"\n }\n }\n ],\n \"project_id\": \"<string>\",\n \"creates_task\": true,\n \"field_whitelist\": {\n \"account_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ],\n \"task_field_mappings\": [\n {\n \"linear_field\": \"<string>\",\n \"target_field_key\": \"<string>\"\n }\n ]\n },\n \"id\": \"<string>\",\n \"is_active\": true\n }\n ],\n \"status_mappings\": [\n {\n \"project_id\": \"<string>\",\n \"workflow_state_id\": \"<string>\",\n \"workflow_state_name\": \"<string>\"\n }\n ]\n },\n \"project_id\": \"<string>\",\n \"sample_size\": 10\n}"
response = http.request(request)
puts response.read_body{
"issues": [
{
"fields_preview": {},
"identifier": "<string>",
"issue_id": "<string>",
"matched": true,
"resolved_account_id": "<string>",
"resolved_account_name": "<string>",
"resolved_via": "<string>",
"title": "<string>"
}
],
"match_rate": 123,
"warnings": [
"<string>"
]
}Authorizations
An API key, sent as Authorization: Bearer stfy_live_…. See Authentication for how to get one and which scopes it needs.
Body
application/json
Was this page helpful?