Download OpenAPI specification:
SAVS (Smart Access Vehicle Service) Open APIリファレンス
本ドキュメントは、外部連携を目的としたSAVSの公開APIリファレンスです。
現在は乗客用アプリの開発に必要となる基本機能(必要最小限のAPIセット)に絞って公開しています。
提供するエンドポイントや機能については、今後段階的に拡大・更新していく予定です。
本APIはバックエンドサーバー間(Server-to-Server)の通信専用です。
ネットワーク制限 (IP Whitelisting)
認証方式 (Static Bearer Token)
Authorization: Bearer <savs_live_token_string>新規の配車リクエストを作成します。
配車リクエスト情報
| userId required | integer 配車をリクエストするユーザーのID |
required | object (Location) 乗車場所 |
required | object (Location) 降車場所 |
required | Array of objects (PassengerCount) 乗車人数の内訳 |
| shareable required | boolean 乗合を許容するかどうか |
| pickupTime | string or null <date-time> 希望乗車日時(指定がない場合は即時配車) |
{- "userId": 1,
- "pickupLocation": {
- "lat": 41.7738,
- "lng": 140.7264,
- "name": "函館駅"
}, - "dropoffLocation": {
- "lat": 41.7738,
- "lng": 140.7264,
- "name": "函館駅"
}, - "passengers": [
- {
- "type": "ADULT",
- "count": 2
}
], - "shareable": true,
- "pickupTime": "2025-12-27T10:30:00Z"
}{- "demandId": 3,
- "userId": 1,
- "vehicle": {
- "vehicleId": 2,
- "name": "1号車",
- "location": {
- "lat": 41.7738,
- "lng": 140.7264,
- "located_at": "2026-01-27T19:30:00+09:00"
}, - "heading": 180.5
}, - "pickupLocation": {
- "lat": 41.7738,
- "lng": 140.7264,
- "name": "函館駅"
}, - "dropoffLocation": {
- "lat": 41.7738,
- "lng": 140.7264,
- "name": "函館駅"
}, - "shareable": true,
- "status": "ASSIGNED",
- "estimatedPickupTime": "2025-12-27T10:45:00Z",
- "estimatedDropoffTime": "2025-12-27T11:00:00Z",
- "createdAt": "2025-12-27T10:00:00Z",
- "updatedAt": "2025-12-27T10:15:00Z"
}条件を指定してデマンドを検索します。
userId を指定status=assigned,assigning... を指定| userId | integer ユーザーIDで絞り込み |
| status | string ステータスによる絞り込み(カンマ区切り)。
例: |
| limit | integer [ 1 .. 100 ] Default: 20 取得件数 (ページネーション) |
| offset | integer >= 0 Default: 0 取得開始位置 (ページネーション) |
{- "data": [
- {
- "demandId": 3,
- "userId": 1,
- "vehicle": {
- "vehicleId": 2,
- "name": "1号車",
- "location": {
- "lat": 41.7738,
- "lng": 140.7264,
- "located_at": "2026-01-27T19:30:00+09:00"
}, - "heading": 180.5
}, - "pickupLocation": {
- "lat": 41.7738,
- "lng": 140.7264,
- "name": "函館駅"
}, - "dropoffLocation": {
- "lat": 41.7738,
- "lng": 140.7264,
- "name": "函館駅"
}, - "shareable": true,
- "status": "ASSIGNED",
- "estimatedPickupTime": "2025-12-27T10:45:00Z",
- "estimatedDropoffTime": "2025-12-27T11:00:00Z",
- "createdAt": "2025-12-27T10:00:00Z",
- "updatedAt": "2025-12-27T10:15:00Z"
}
], - "pagination": {
- "total": 150,
- "limit": 20,
- "offset": 0
}
}{- "demandId": 3,
- "userId": 1,
- "vehicle": {
- "vehicleId": 2,
- "name": "1号車",
- "location": {
- "lat": 41.7738,
- "lng": 140.7264,
- "located_at": "2026-01-27T19:30:00+09:00"
}, - "heading": 180.5
}, - "pickupLocation": {
- "lat": 41.7738,
- "lng": 140.7264,
- "name": "函館駅"
}, - "dropoffLocation": {
- "lat": 41.7738,
- "lng": 140.7264,
- "name": "函館駅"
}, - "shareable": true,
- "status": "ASSIGNED",
- "estimatedPickupTime": "2025-12-27T10:45:00Z",
- "estimatedDropoffTime": "2025-12-27T11:00:00Z",
- "createdAt": "2025-12-27T10:00:00Z",
- "updatedAt": "2025-12-27T10:15:00Z"
}指定した座標周辺の車両情報を取得します。
| lat required | number <double> 中心点の緯度 (WGS84) |
| lng required | number <double> 中心点の経度 (WGS84) |
| radius | integer Default: 1000 検索半径 (メートル) |
{- "data": [
- {
- "vehicleId": 2,
- "name": "1号車",
- "location": {
- "lat": 41.7738,
- "lng": 140.7264,
- "located_at": "2026-01-27T19:30:00+09:00"
}, - "heading": 180.5
}
]
}ユーザーを新規作成します。
登録するユーザーの情報
| name required | string ユーザーの氏名 |
| email required | string <email> メールアドレス |
| tel required | string^\+[1-9]\d{1,14}$ 国際電話番号 (E.164形式) プラス記号(+)と国番号から始まり、ハイフンやスペースは含めないでください。 |
{- "name": "未来 太郎",
- "email": "taro.mirai@example.com",
- "tel": "+819012345678"
}{- "userId": 1,
- "name": "未来 太郎",
- "email": "taro.mirai@example.com",
- "tel": "+819012345678"
}指定されたユーザーの情報を部分更新します。 変更したい項目のみをリクエストボディに含めてください。
| userId required | integer |
更新するユーザーの情報(変更項目のみ)
| name | string ユーザーの氏名 |
string <email> メールアドレス | |
| tel | string^\+[1-9]\d{1,14}$ 国際電話番号 (E.164形式) プラス記号(+)と国番号から始まり、ハイフンやスペースは含めないでください。 |
{- "name": "未来 太郎 (更新)",
- "email": "new.taro.mirai@example.com",
- "tel": "+818098765432"
}{- "userId": 1,
- "name": "未来 太郎",
- "email": "taro.mirai@example.com",
- "tel": "+819012345678"
}