GET
/
files
/
v3
/
files
/
{fileId}
/
signed-url
非公開ファイルにアクセスするための署名付きURLを取得
curl --request GET \
  --url https://api.hubapi.com/files/v3/files/{fileId}/signed-url \
  --header 'Authorization: Bearer <token>'
{
  "extension": "<string>",
  "size": 123,
  "name": "<string>",
  "width": 123,
  "type": "<string>",
  "url": "<string>",
  "expiresAt": "2023-11-07T05:31:56Z",
  "height": 123
}
サポートされる製品
次のいずれかの製品またはそれ以上が必要です。
Marketing HubMarketing Hub無料ツール
Sales HubSales Hub無料ツール
Service HubService Hub無料ツール
Content HubContent HubStarter

必須スコープ

この API には、次のいずれかのスコープが必要です。
  • files.ui_hidden.read
  • files

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

fileId
string
required

ファイルのID。

Query Parameters

size
enum<string>

画像ファイル用。これにより、共有前に画像のサイズが目的のサイズに変更されます。元のファイルには影響せず、影響するのはこの署名付きURLによって提供されるファイルのみです。

Available options:
thumb,
icon,
medium,
preview
expirationSeconds
integer

リンクでファイルへのアクセス権が提供される秒数。

upscale
boolean

サイズを指定すると、サイズのディメンションに合わせて画像がアップスケールされます。

Response

200
application/json

successful operation

Signed Url object with optional ancillary metadata of requested file