メインコンテンツへスキップ
GET
/
api
/
v1
/
sessions
List sessions
curl --request GET \
  --url https://assist.i.moneyforward.com/api/v1/sessions \
  --header 'X-API-Key: <api-key>'
import requests

url = "https://assist.i.moneyforward.com/api/v1/sessions"

headers = {"X-API-Key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};

fetch('https://assist.i.moneyforward.com/api/v1/sessions', 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://assist.i.moneyforward.com/api/v1/sessions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://assist.i.moneyforward.com/api/v1/sessions"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("X-API-Key", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://assist.i.moneyforward.com/api/v1/sessions")
.header("X-API-Key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://assist.i.moneyforward.com/api/v1/sessions")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "ok": true,
  "sessions": [
    {
      "sessionKey": "<string>",
      "channelId": "<string>",
      "threadTs": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "ticketNumber": 0,
      "title": "<string>",
      "summary": "<string>",
      "closedAt": "2023-11-07T05:31:56Z",
      "closeReason": "<string>",
      "messageCount": 0,
      "requesterId": "<string>",
      "assignedUserId": "<string>"
    }
  ],
  "count": 0
}
{
"ok": true,
"error": "<string>"
}
{
"ok": true,
"error": "<string>"
}

承認

X-API-Key
string
header
必須

API key created via the Admina admin panel (Settings → API Keys → Create). Format: mb_live_<40-hex>.

クエリパラメータ

status
enum<string>

Filter by status (pushed to DynamoDB — accurate)

利用可能なオプション:
open,
in_progress,
pending_approval,
resolved
assigneeType
enum<string>

Filter by assignee. NOTE: this filter is applied in-memory AFTER limit is enforced at the database layer, so when assigneeType is set the count in the response reflects matches within the first limit rows only — not the tenant-wide total. For exhaustive enumeration, call without assigneeType and filter client-side.

利用可能なオプション:
unassigned,
ai_agent,
human_agent,
requester
limit
number
デフォルト:50

Max results — 1..100, default 50

必須範囲: 1 <= x <= 100

レスポンス

Session list

ok
boolean
必須
sessions
object[]
必須
count
integer
必須
必須範囲: -9007199254740991 <= x <= 9007199254740991
最終更新日 2026年6月23日