Zum Hauptinhalt springen
GET
/
files
/
v3
/
files
/
stat
/
{path}
Datei nach Pfad abrufen
curl --request GET \
  --url https://api.hubapi.com/files/v3/files/stat/{path} \
  --header 'Authorization: Bearer <token>'
{
  "file": {
    "extension": "<string>",
    "access": "PUBLIC_INDEXABLE",
    "parentFolderId": "<string>",
    "sourceGroup": "<string>",
    "fileMd5": "<string>",
    "encoding": "<string>",
    "type": "<string>",
    "isUsableInContent": true,
    "url": "<string>",
    "expiresAt": 123,
    "createdAt": "2023-11-07T05:31:56Z",
    "archivedAt": "2023-11-07T05:31:56Z",
    "path": "<string>",
    "archived": true,
    "size": 123,
    "name": "<string>",
    "width": 123,
    "id": "<string>",
    "defaultHostingUrl": "<string>",
    "updatedAt": "2023-11-07T05:31:56Z",
    "height": 123
  },
  "folder": {
    "createdAt": "2023-11-07T05:31:56Z",
    "archivedAt": "2023-11-07T05:31:56Z",
    "path": "<string>",
    "archived": true,
    "parentFolderId": "<string>",
    "name": "<string>",
    "id": "<string>",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Unterstützte Produkte

Erfordert eines der folgenden Produkte oder höher.
Marketing HubMarketing Hub -Kostenlos
Sales HubSales Hub -Kostenlos
Service HubService Hub -Kostenlos
Content HubContent Hub -Starter
Diese API erfordert einen der folgenden Bereiche:
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

path
string
required

Der Pfad der Datei.

Query Parameters

properties
string[]

Eigenschaften, die in der Antwort zurückgegeben werden.

Response

successful operation

file
object

File

folder
object
I