Download OpenAPI specification:
AIによるタスク生成アプリのAPI
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "title": "string",
- "source": "manual",
- "description": "string",
- "due_at": "2019-08-24T14:15:22Z",
- "status": "todo",
- "priority": "low",
- "interpretation_id": "fb746e7d-efab-4269-b8d8-74bd8aa7a79d",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]タスクの新規作成
| title required | string [ 1 .. 255 ] characters タスクのタイトル |
| description | string or null タスクの説明 |
| due_at | string or null <date-time> タスクの期限 |
| status | string Default: "todo" Enum: "todo" "in_progress" "done" タスクの状態 |
| priority | string or null Enum: "low" "medium" "high" タスクの優先度 |
| interpretation_id | string or null <uuid> このタスクを作成したAI解釈のID |
{- "title": "string",
- "description": "string",
- "due_at": "2019-08-24T14:15:22Z",
- "status": "todo",
- "priority": "low",
- "interpretation_id": "fb746e7d-efab-4269-b8d8-74bd8aa7a79d"
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "title": "string",
- "source": "manual",
- "description": "string",
- "due_at": "2019-08-24T14:15:22Z",
- "status": "todo",
- "priority": "low",
- "interpretation_id": "fb746e7d-efab-4269-b8d8-74bd8aa7a79d",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "title": "string",
- "source": "manual",
- "description": "string",
- "due_at": "2019-08-24T14:15:22Z",
- "status": "todo",
- "priority": "low",
- "interpretation_id": "fb746e7d-efab-4269-b8d8-74bd8aa7a79d",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}タスクの更新
| id required | string <uuid> |
| title required | string [ 1 .. 255 ] characters タスクのタイトル |
| description | string or null タスクの説明 |
| due_at | string or null <date-time> タスクの期限 |
| status required | string Enum: "todo" "in_progress" "done" タスクの状態 |
| priority | string or null Enum: "low" "medium" "high" タスクの優先度 |
{- "title": "string",
- "description": "string",
- "due_at": "2019-08-24T14:15:22Z",
- "status": "todo",
- "priority": "low"
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "title": "string",
- "source": "manual",
- "description": "string",
- "due_at": "2019-08-24T14:15:22Z",
- "status": "todo",
- "priority": "low",
- "interpretation_id": "fb746e7d-efab-4269-b8d8-74bd8aa7a79d",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}タスクの編集
| id required | string <uuid> |
| title | string [ 1 .. 255 ] characters タスクのタイトル |
| description | string or null タスクの説明 |
| due_at | string or null <date-time> タスクの期限 |
| status | string Enum: "todo" "in_progress" "done" タスクの状態 |
{- "title": "string",
- "description": "string",
- "due_at": "2019-08-24T14:15:22Z",
- "status": "todo"
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "title": "string",
- "source": "manual",
- "description": "string",
- "due_at": "2019-08-24T14:15:22Z",
- "status": "todo",
- "priority": "low",
- "interpretation_id": "fb746e7d-efab-4269-b8d8-74bd8aa7a79d",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}Google OAuth 2.0コールバック処理
| code required | string Google OAuthから返されたauthorization code |
{- "code": "string"
}{- "jwt_token": "string",
- "user": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "nickname": "string",
- "avatar": "string",
- "created_at": "2019-08-24T14:15:22Z"
}
}自然言語入力によるAI解析
| input_text required | string [ 1 .. 10000 ] characters 自然言語テキスト |
{- "input_text": "string"
}{- "type": "todo",
- "interpretation": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "input_text": "string",
- "structured_result": {
- "type": "todo",
- "title": "大根を買う",
- "description": "スーパーで購入",
- "metadata": {
- "deadline": "2025-01-15T00:00:00Z",
- "priority": "high",
- "tags": [
- "買い物",
- "食材"
]
}
}, - "ai_model": "string",
- "ai_prompt_tokens": 0,
- "ai_completion_tokens": 0,
- "created_at": "2019-08-24T14:15:22Z"
}, - "message": "string"
}AI解析履歴の取得
| type | string Enum: "todo" "event" "reminder" "note" "expense" "unknown" AI解析のtype絞り込み |
| limit | integer [ 1 .. 100 ] Default: 20 取得件数(デフォルト: 20) |
| offset | integer >= 0 Default: 0 オフセット(ページネーション) |
{- "interpretations": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "input_text": "string",
- "structured_result": {
- "type": "todo",
- "title": "大根を買う",
- "description": "スーパーで購入",
- "metadata": {
- "deadline": "2025-01-15T00:00:00Z",
- "priority": "high",
- "tags": [
- "買い物",
- "食材"
]
}
}, - "ai_model": "string",
- "ai_prompt_tokens": 0,
- "ai_completion_tokens": 0,
- "created_at": "2019-08-24T14:15:22Z"
}
], - "total": 0,
- "limit": 0,
- "offset": 0
}特定のAI解析結果の詳細取得
| id required | string <uuid> AI解釈ID |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "input_text": "string",
- "structured_result": {
- "type": "todo",
- "title": "大根を買う",
- "description": "スーパーで購入",
- "metadata": {
- "deadline": "2025-01-15T00:00:00Z",
- "priority": "high",
- "tags": [
- "買い物",
- "食材"
]
}
}, - "ai_model": "string",
- "ai_prompt_tokens": 0,
- "ai_completion_tokens": 0,
- "created_at": "2019-08-24T14:15:22Z"
}{- "items": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "interpretation_id": "fb746e7d-efab-4269-b8d8-74bd8aa7a79d",
- "item_index": 0,
- "resource_type": "task",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "status": "pending",
- "data": { },
- "original_data": { },
- "reviewed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}複数のアイテムを一括承認してリソースを作成(トランザクション)
| id required | string <uuid> AI解釈ID |
| item_ids required | Array of strings <uuid> non-empty [ items <uuid > ] 承認するアイテムIDの配列 |
{- "item_ids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}{- "resource_ids": {
- "property1": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "property2": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "interpretation_id": "fb746e7d-efab-4269-b8d8-74bd8aa7a79d",
- "item_index": 0,
- "resource_type": "task",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "status": "pending",
- "data": { },
- "original_data": { },
- "reviewed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}アイテムのdata内容を編集(pending状態のみ)
| id required | string <uuid> アイテムID |
required | object 更新後のアイテム内容(JSON) |
{- "data": { }
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "interpretation_id": "fb746e7d-efab-4269-b8d8-74bd8aa7a79d",
- "item_index": 0,
- "resource_type": "task",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f",
- "status": "pending",
- "data": { },
- "original_data": { },
- "reviewed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}