ドキュメント本文へスキップ
API

ファイルを取得する

1 つのファイルを id で。

GETapi.openemail.uk/files/{id}

実際の呼び出しを、ご自身のキーで自分のワークスペースに対して実行します。

GET /files/{id}

1 つのファイルを id で。

threads:read が必要。

curl
curl "$OE/files/file_6bb640f5b99e47deb758f1f5" -H "$AUTH"
レスポンス
{  "object": "file",  "id": "file_6bb640f5b99e47deb758f1f5",  "filename": "invoice-0912.pdf",  "mimeType": "application/pdf",  "sizeBytes": 184233,  "direction": "inbound",  "threadId": "thread_2f9b…",  "messageId": "<CAF7x…@mail.gmail.com>",  "deliveredTo": "[email protected]",  "createdAt": "2026-09-12T08:41:03.000Z"}

削除したファイル、制限付きキーが持つアドレスの外にあるファイル、不明な id はいずれも 404 を返す。