curl --request POST \
--url https://api.strixai.jp/v1/contacts/search/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"filter_groups": [
{
"conditions": [
{
"field": "amount",
"value": "<string>"
}
],
"name": "高額の継続中案件"
}
],
"sort_by": [
"<string>"
],
"sort_order": [],
"page": 1,
"page_size": 100
}
'import requests
url = "https://api.strixai.jp/v1/contacts/search/"
payload = {
"filter_groups": [
{
"conditions": [
{
"field": "amount",
"value": "<string>"
}
],
"name": "高額の継続中案件"
}
],
"sort_by": ["<string>"],
"sort_order": [],
"page": 1,
"page_size": 100
}
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({
filter_groups: [{conditions: [{field: 'amount', value: '<string>'}], name: '高額の継続中案件'}],
sort_by: ['<string>'],
sort_order: [],
page: 1,
page_size: 100
})
};
fetch('https://api.strixai.jp/v1/contacts/search/', 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.strixai.jp/v1/contacts/search/",
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([
'filter_groups' => [
[
'conditions' => [
[
'field' => 'amount',
'value' => '<string>'
]
],
'name' => '高額の継続中案件'
]
],
'sort_by' => [
'<string>'
],
'sort_order' => [
],
'page' => 1,
'page_size' => 100
]),
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.strixai.jp/v1/contacts/search/"
payload := strings.NewReader("{\n \"filter_groups\": [\n {\n \"conditions\": [\n {\n \"field\": \"amount\",\n \"value\": \"<string>\"\n }\n ],\n \"name\": \"高額の継続中案件\"\n }\n ],\n \"sort_by\": [\n \"<string>\"\n ],\n \"sort_order\": [],\n \"page\": 1,\n \"page_size\": 100\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.strixai.jp/v1/contacts/search/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"filter_groups\": [\n {\n \"conditions\": [\n {\n \"field\": \"amount\",\n \"value\": \"<string>\"\n }\n ],\n \"name\": \"高額の継続中案件\"\n }\n ],\n \"sort_by\": [\n \"<string>\"\n ],\n \"sort_order\": [],\n \"page\": 1,\n \"page_size\": 100\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.strixai.jp/v1/contacts/search/")
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 \"filter_groups\": [\n {\n \"conditions\": [\n {\n \"field\": \"amount\",\n \"value\": \"<string>\"\n }\n ],\n \"name\": \"高額の継続中案件\"\n }\n ],\n \"sort_by\": [\n \"<string>\"\n ],\n \"sort_order\": [],\n \"page\": 1,\n \"page_size\": 100\n}"
response = http.request(request)
puts response.read_body{
"results": [
{
"id": "Co7XkQpYz3Lh9vMs2N",
"properties": {
"last_name": "山田",
"first_name": "太郎",
"email": "yamada@example.co.jp",
"account_id": "Ac7XkQpYz3Lh9vMs2N"
},
"created_at": "2026-05-21T09:00:00Z",
"updated_at": "2026-06-11T02:00:00Z"
}
],
"paging": {
"next": {
"after": "<string>",
"link": "<string>"
}
}
}{
"error": {
"code": "validation_error",
"message": "リクエストの検証に失敗しました。",
"fields": [
{
"name": "properties.name",
"code": "required",
"message": "この項目は必須です。"
}
]
}
}{
"error": {
"code": "validation_error",
"message": "リクエストの検証に失敗しました。",
"fields": [
{
"name": "properties.name",
"code": "required",
"message": "この項目は必須です。"
}
]
}
}{
"error": {
"code": "validation_error",
"message": "リクエストの検証に失敗しました。",
"fields": [
{
"name": "properties.name",
"code": "required",
"message": "この項目は必須です。"
}
]
}
}{
"error": {
"code": "validation_error",
"message": "リクエストの検証に失敗しました。",
"fields": [
{
"name": "properties.name",
"code": "required",
"message": "この項目は必須です。"
}
]
}
}コンタクトを検索(フィルタ + 自由文字列 + ソート + ページネーション)
GUI 一覧画面と同等の表現力でコンタクトを検索する。必要 role: read。
注意: Contact のカスタムプロパティ対応(ExtendedContactFilter 新設)は
後続実装チケットで提供予定。現時点ではコアフィールド + account.name のみ。
curl --request POST \
--url https://api.strixai.jp/v1/contacts/search/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"filter_groups": [
{
"conditions": [
{
"field": "amount",
"value": "<string>"
}
],
"name": "高額の継続中案件"
}
],
"sort_by": [
"<string>"
],
"sort_order": [],
"page": 1,
"page_size": 100
}
'import requests
url = "https://api.strixai.jp/v1/contacts/search/"
payload = {
"filter_groups": [
{
"conditions": [
{
"field": "amount",
"value": "<string>"
}
],
"name": "高額の継続中案件"
}
],
"sort_by": ["<string>"],
"sort_order": [],
"page": 1,
"page_size": 100
}
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({
filter_groups: [{conditions: [{field: 'amount', value: '<string>'}], name: '高額の継続中案件'}],
sort_by: ['<string>'],
sort_order: [],
page: 1,
page_size: 100
})
};
fetch('https://api.strixai.jp/v1/contacts/search/', 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.strixai.jp/v1/contacts/search/",
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([
'filter_groups' => [
[
'conditions' => [
[
'field' => 'amount',
'value' => '<string>'
]
],
'name' => '高額の継続中案件'
]
],
'sort_by' => [
'<string>'
],
'sort_order' => [
],
'page' => 1,
'page_size' => 100
]),
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.strixai.jp/v1/contacts/search/"
payload := strings.NewReader("{\n \"filter_groups\": [\n {\n \"conditions\": [\n {\n \"field\": \"amount\",\n \"value\": \"<string>\"\n }\n ],\n \"name\": \"高額の継続中案件\"\n }\n ],\n \"sort_by\": [\n \"<string>\"\n ],\n \"sort_order\": [],\n \"page\": 1,\n \"page_size\": 100\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.strixai.jp/v1/contacts/search/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"filter_groups\": [\n {\n \"conditions\": [\n {\n \"field\": \"amount\",\n \"value\": \"<string>\"\n }\n ],\n \"name\": \"高額の継続中案件\"\n }\n ],\n \"sort_by\": [\n \"<string>\"\n ],\n \"sort_order\": [],\n \"page\": 1,\n \"page_size\": 100\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.strixai.jp/v1/contacts/search/")
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 \"filter_groups\": [\n {\n \"conditions\": [\n {\n \"field\": \"amount\",\n \"value\": \"<string>\"\n }\n ],\n \"name\": \"高額の継続中案件\"\n }\n ],\n \"sort_by\": [\n \"<string>\"\n ],\n \"sort_order\": [],\n \"page\": 1,\n \"page_size\": 100\n}"
response = http.request(request)
puts response.read_body{
"results": [
{
"id": "Co7XkQpYz3Lh9vMs2N",
"properties": {
"last_name": "山田",
"first_name": "太郎",
"email": "yamada@example.co.jp",
"account_id": "Ac7XkQpYz3Lh9vMs2N"
},
"created_at": "2026-05-21T09:00:00Z",
"updated_at": "2026-06-11T02:00:00Z"
}
],
"paging": {
"next": {
"after": "<string>",
"link": "<string>"
}
}
}{
"error": {
"code": "validation_error",
"message": "リクエストの検証に失敗しました。",
"fields": [
{
"name": "properties.name",
"code": "required",
"message": "この項目は必須です。"
}
]
}
}{
"error": {
"code": "validation_error",
"message": "リクエストの検証に失敗しました。",
"fields": [
{
"name": "properties.name",
"code": "required",
"message": "この項目は必須です。"
}
]
}
}{
"error": {
"code": "validation_error",
"message": "リクエストの検証に失敗しました。",
"fields": [
{
"name": "properties.name",
"code": "required",
"message": "この項目は必須です。"
}
]
}
}{
"error": {
"code": "validation_error",
"message": "リクエストの検証に失敗しました。",
"fields": [
{
"name": "properties.name",
"code": "required",
"message": "この項目は必須です。"
}
]
}
}承認
Stockwork が発行する API キー(sk_ プレフィックス、base62 ランダム ≥ 40 文字)。
キーには 1 つの role(read / analyst / write / admin)が紐付き、
各エンドポイントの必要 role 以上であることが要求される(対応表は info.description 参照)。
ボディ
検索リクエストの共通 schema。 フィルタ・自由文字列・ソート・ページネーションを一括で受け付ける。
フィルタグループの配列。グループ間は OR で結合(GUI と同じ意味論)。
グループ内の conditions は AND。最大 10 グループまで。
空配列または省略時は全レコードが対象。
「複数フィールドへの横断キーワード検索」(GUI の検索ボックス相当)も、
複数グループに同じ値の contains 条件を入れて表現できる(search のような
専用フィールドは提供しない)。
10Show child attributes
Show child attributes
ソート対象のフィールド(複数指定でセカンダリーソート)。
例: ["close_date", "amount"]
ソート順。sort_by と同じ長さで指定する。
例: ["asc", "desc"]
asc, desc ページ番号(1 始まり)。
page * page_size が 10,000 を超える指定は 400 で拒否される
(深い OFFSET 走査の防止)。全件走査にはリスト GET のカーソルを使う。
x >= 11 ページあたりの件数
1 <= x <= 200