Get object descriptors related to a file

🚧

Premium feature

Private Scanning is only available to VirusTotal Enterprise users with a Private Scanning license.

This endpoint is the same as /private/files/{id}/{relationship} except it returns just the related object descriptors (type and id, plus context attributes if any) instead of full objects.

Available relationships—including sharing relationships (owner as a single user descriptor, and viewers/editors as arrays of user/group descriptors)—are documented in the Private Files object page. Users with viewer-only access can query owner (200 OK), but receive 403 ForbiddenError for viewers and editors.

To modify sharing permissions, see Grant viewer or editor access to a private file and Revoke viewer or editor access from a private file.

Path Params
string
required

File's SHA-256

string
required

Relationship name

Query Params
int32
Defaults to 10

Maximum number of related objects to retrieve

string

Continuation cursor

Headers
string
required

Your API key

Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json