コンタクト活動を作成
curl --request POST \
--url https://api.strixai.jp/v1/contact-activities/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"properties": {
"contact_id": "Co7XkQpYz3Lh9vMs2N",
"subject": "問い合わせフォーム送信",
"occurred_at": "2026-06-12T05:00:00Z",
"genre": "inbound",
"content": "資料請求フォームから問い合わせ。予算検討中との記載あり。"
}
}
'import requests
url = "https://api.strixai.jp/v1/contact-activities/"
payload = { "properties": {
"contact_id": "Co7XkQpYz3Lh9vMs2N",
"subject": "問い合わせフォーム送信",
"occurred_at": "2026-06-12T05:00:00Z",
"genre": "inbound",
"content": "資料請求フォームから問い合わせ。予算検討中との記載あり。"
} }
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({
properties: {
contact_id: 'Co7XkQpYz3Lh9vMs2N',
subject: '問い合わせフォーム送信',
occurred_at: '2026-06-12T05:00:00Z',
genre: 'inbound',
content: '資料請求フォームから問い合わせ。予算検討中との記載あり。'
}
})
};
fetch('https://api.strixai.jp/v1/contact-activities/', 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/contact-activities/",
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([
'properties' => [
'contact_id' => 'Co7XkQpYz3Lh9vMs2N',
'subject' => '問い合わせフォーム送信',
'occurred_at' => '2026-06-12T05:00:00Z',
'genre' => 'inbound',
'content' => '資料請求フォームから問い合わせ。予算検討中との記載あり。'
]
]),
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/contact-activities/"
payload := strings.NewReader("{\n \"properties\": {\n \"contact_id\": \"Co7XkQpYz3Lh9vMs2N\",\n \"subject\": \"問い合わせフォーム送信\",\n \"occurred_at\": \"2026-06-12T05:00:00Z\",\n \"genre\": \"inbound\",\n \"content\": \"資料請求フォームから問い合わせ。予算検討中との記載あり。\"\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.strixai.jp/v1/contact-activities/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"properties\": {\n \"contact_id\": \"Co7XkQpYz3Lh9vMs2N\",\n \"subject\": \"問い合わせフォーム送信\",\n \"occurred_at\": \"2026-06-12T05:00:00Z\",\n \"genre\": \"inbound\",\n \"content\": \"資料請求フォームから問い合わせ。予算検討中との記載あり。\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.strixai.jp/v1/contact-activities/")
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 \"properties\": {\n \"contact_id\": \"Co7XkQpYz3Lh9vMs2N\",\n \"subject\": \"問い合わせフォーム送信\",\n \"occurred_at\": \"2026-06-12T05:00:00Z\",\n \"genre\": \"inbound\",\n \"content\": \"資料請求フォームから問い合わせ。予算検討中との記載あり。\"\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "Ca7XkQpYz3Lh9vMs2N",
"properties": {
"contact_id": "Co7XkQpYz3Lh9vMs2N",
"subject": "問い合わせフォーム送信",
"occurred_at": "2026-06-12T05:00:00Z",
"genre": "inbound",
"content": "資料請求フォームから問い合わせ。予算検討中との記載あり。"
},
"created_at": "2026-06-12T05:10:00Z",
"updated_at": "2026-06-12T05:30:00Z",
"summaries": [
{
"summary_type": "問い合わせ要約",
"result_type": "text",
"text": "## 関心\n- 価格と導入期間\n## 温度感\n- 中(予算検討中)",
"selections": [],
"reason": "",
"status": "completed",
"updated_at": "2026-06-12T05:30:00Z"
}
]
}{
"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": "この項目は必須です。"
}
]
}
}Contact Activities
コンタクト活動を作成
新しいコンタクト活動を作成する。properties.contact_id で親コンタクトに紐付ける。
レスポンスの id(record_id)を保存し、以降の参照・更新に使う。
POST
/
v1
/
contact-activities
/
コンタクト活動を作成
curl --request POST \
--url https://api.strixai.jp/v1/contact-activities/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"properties": {
"contact_id": "Co7XkQpYz3Lh9vMs2N",
"subject": "問い合わせフォーム送信",
"occurred_at": "2026-06-12T05:00:00Z",
"genre": "inbound",
"content": "資料請求フォームから問い合わせ。予算検討中との記載あり。"
}
}
'import requests
url = "https://api.strixai.jp/v1/contact-activities/"
payload = { "properties": {
"contact_id": "Co7XkQpYz3Lh9vMs2N",
"subject": "問い合わせフォーム送信",
"occurred_at": "2026-06-12T05:00:00Z",
"genre": "inbound",
"content": "資料請求フォームから問い合わせ。予算検討中との記載あり。"
} }
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({
properties: {
contact_id: 'Co7XkQpYz3Lh9vMs2N',
subject: '問い合わせフォーム送信',
occurred_at: '2026-06-12T05:00:00Z',
genre: 'inbound',
content: '資料請求フォームから問い合わせ。予算検討中との記載あり。'
}
})
};
fetch('https://api.strixai.jp/v1/contact-activities/', 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/contact-activities/",
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([
'properties' => [
'contact_id' => 'Co7XkQpYz3Lh9vMs2N',
'subject' => '問い合わせフォーム送信',
'occurred_at' => '2026-06-12T05:00:00Z',
'genre' => 'inbound',
'content' => '資料請求フォームから問い合わせ。予算検討中との記載あり。'
]
]),
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/contact-activities/"
payload := strings.NewReader("{\n \"properties\": {\n \"contact_id\": \"Co7XkQpYz3Lh9vMs2N\",\n \"subject\": \"問い合わせフォーム送信\",\n \"occurred_at\": \"2026-06-12T05:00:00Z\",\n \"genre\": \"inbound\",\n \"content\": \"資料請求フォームから問い合わせ。予算検討中との記載あり。\"\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.strixai.jp/v1/contact-activities/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"properties\": {\n \"contact_id\": \"Co7XkQpYz3Lh9vMs2N\",\n \"subject\": \"問い合わせフォーム送信\",\n \"occurred_at\": \"2026-06-12T05:00:00Z\",\n \"genre\": \"inbound\",\n \"content\": \"資料請求フォームから問い合わせ。予算検討中との記載あり。\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.strixai.jp/v1/contact-activities/")
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 \"properties\": {\n \"contact_id\": \"Co7XkQpYz3Lh9vMs2N\",\n \"subject\": \"問い合わせフォーム送信\",\n \"occurred_at\": \"2026-06-12T05:00:00Z\",\n \"genre\": \"inbound\",\n \"content\": \"資料請求フォームから問い合わせ。予算検討中との記載あり。\"\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "Ca7XkQpYz3Lh9vMs2N",
"properties": {
"contact_id": "Co7XkQpYz3Lh9vMs2N",
"subject": "問い合わせフォーム送信",
"occurred_at": "2026-06-12T05:00:00Z",
"genre": "inbound",
"content": "資料請求フォームから問い合わせ。予算検討中との記載あり。"
},
"created_at": "2026-06-12T05:10:00Z",
"updated_at": "2026-06-12T05:30:00Z",
"summaries": [
{
"summary_type": "問い合わせ要約",
"result_type": "text",
"text": "## 関心\n- 価格と導入期間\n## 温度感\n- 中(予算検討中)",
"selections": [],
"reason": "",
"status": "completed",
"updated_at": "2026-06-12T05:30:00Z"
}
]
}{
"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 参照)。
ボディ
application/json
Show child attributes
Show child attributes
レスポンス
作成成功
コンタクト活動の単一レコード表現。ContactActivity に要約(summaries)を加えたもの。
取得 / 作成 / 更新の応答で返る(一覧・検索では返らない)。
Stockwork record_id(18 文字)
例:
"Ca7XkQpYz3Lh9vMs2N"
活動のプロパティ集合。contact_id(親コンタクト)・occurred_at・content を中心に、
subject / genre 等のコアフィールドとカスタムプロパティが同じ namespace。
Show child attributes
Show child attributes
レコードの値が最後に変わった日時。コアフィールド・カスタムプロパティ・アクティビティ件数などの集計値のいずれかが実際に変わったときに進む。商談ログやメールなどの活動を記録した場合も、それが集計値を動かすためこの日時が進む。同じ値での再保存や、他レコードとの紐付け変更では進まない。
紐づく要約。read-only。未生成時は空配列。
Show child attributes
Show child attributes