Zum Hauptinhalt springen
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 Hub -Starter
この API には、次のいずれかのスコープが必要です。
files
files.ui_hidden.read

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

successful operation

Signed Url object with optional ancillary metadata of requested file

extension
string
required

リクエストされたファイルの拡張子。

size
integer
required

リクエストされたファイルのサイズ(バイト)。

name
string
required

リクエストされたファイルの名前。

type
string
required

ファイルの種類。IMG、DOCUMENT、AUDIO、MOVIE、またはOTHERのいずれかになります。

url
string
required

指定されたファイルにアクセスできる署名付きURL。このURLを知っている人は誰でも有効期限が切れるまでファイルにアクセスできます。

expiresAt
string<date-time>
required

URLでファイルへのアクセス権が付与されなくなる時点のタイムスタンプ。

width
integer

画像や動画ファイル用。ファイルの幅。

height
integer

画像や動画ファイル用。ファイルの高さ。

I