http
GET /projects/{project_reference}/external-files/{provider}/{file_id}Return external file.
Servers
JSON
[ { "url": "https://api.veryfront.com" }]Authentication
JSON
[ { "bearerAuth": [] }, { "apiKeyAuth": [] }]JSON
{ "bearerAuth": { "type": "http", "scheme": "bearer", "bearerFormat": "JWT or API Key", "description": "Use a JWT bearer token or a Veryfront API key in the `Authorization` header." }, "apiKeyAuth": { "type": "apiKey", "in": "header", "name": "X-API-Key", "description": "Alternative API key header for `vf_<prefix>_<secret>` tokens." }}Parameters
Parameter contracts
JSON
[ { "schema": { "$ref": "#/components/schemas/ProjectReference" }, "required": true, "description": "Project slug, UUID, or domain that identifies the project.", "name": "project_reference", "in": "path" }, { "schema": { "type": "string", "enum": [ "onedrive", "sharepoint", "drive" ], "description": "External file provider: `onedrive`, `sharepoint` or `drive` (Google Drive)." }, "required": true, "name": "provider", "in": "path" }, { "schema": { "type": "string", "minLength": 1, "maxLength": 1024, "description": "Provider item ID from listExternalFiles. Opaque; percent-encode it. Missing or inaccessible items return not_found." }, "required": true, "name": "file_id", "in": "path" }]Responses
200
The external file.
JSON
{ "description": "The external file.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExternalFile" } } }}400
Bad request
JSON
{ "description": "Bad request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ExternalFileProblem" } } }}401
Unauthorized
JSON
{ "description": "Unauthorized", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ExternalFileProblem" } } }}403
Forbidden
JSON
{ "description": "Forbidden", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ExternalFileProblem" } } }}404
Not found
JSON
{ "description": "Not found", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ExternalFileProblem" } } }}413
Payload too large
JSON
{ "description": "Payload too large", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ExternalFileProblem" } } }}428
Precondition required
JSON
{ "description": "Precondition required", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ExternalFileProblem" } } }}429
Rate limit exceeded
JSON
{ "description": "Rate limit exceeded", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ExternalFileProblem" } } }}500
Server error
JSON
{ "description": "Server error", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ExternalFileProblem" } } }}503
Service unavailable
JSON
{ "description": "Service unavailable", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ExternalFileProblem" } } }}Referenced contracts
components/parameters/ProjectReference
JSON
{ "schema": { "$ref": "#/components/schemas/ProjectReference" }, "required": true, "description": "Project slug, UUID, or domain that identifies the project.", "name": "project_reference", "in": "path"}components/schemas/ProjectReference
JSON
{ "type": "string"}components/schemas/ExternalFile
JSON
{ "type": "object", "properties": { "id": { "type": "string", "minLength": 1, "maxLength": 1024, "description": "Provider item ID. Opaque. SharePoint items use `{siteId}|{itemId}` and site roots `sp-site:{siteId}`. Site IDs also accept Microsoft Graph root and hostname aliases." }, "provider": { "type": "string", "enum": [ "onedrive", "sharepoint", "drive" ], "description": "Provider that stores the item." }, "name": { "type": "string", "description": "File or folder name." }, "kind": { "type": "string", "enum": [ "file", "folder" ], "description": "Whether the item is a file or a folder." }, "parent_id": { "type": [ "string", "null" ], "minLength": 1, "maxLength": 1024, "description": "Provider ID of the parent folder, or null." }, "path": { "type": "string", "description": "Provider path of the item, with the same meaning as on the legacy routes." }, "mime_type": { "type": "string", "minLength": 1, "description": "MIME type. Folders report the provider folder type or `folder`." }, "size_bytes": { "type": "integer", "minimum": 0, "maximum": 9007199254740991, "description": "Size in bytes. Folders may report 0." }, "modified_at": { "type": [ "string", "null" ], "format": "date-time", "description": "Last modification time in RFC 3339 UTC, or null when the provider reports none.", "example": "2026-03-02T09:15:27.000Z" }, "etag": { "type": [ "string", "null" ], "minLength": 1, "maxLength": 1024, "pattern": "^(?:\\*|(?:W\\/)?\"[\\x21\\x23-\\x7e]*\"(?:[ \\t]*,[ \\t]*(?:W\\/)?\"[\\x21\\x23-\\x7e]*\")*|[!#$%&'*+.^_`|~0-9A-Za-z-]+)$", "description": "Provider version tag. Send it as `If-Match` on update to refuse a stale write." }, "thumbnail_url": { "type": [ "string", "null" ], "description": "Provider thumbnail URL (https), or null." }, "web_url": { "type": [ "string", "null" ], "description": "Provider URL (https) that opens the item, or null." } }, "required": [ "id", "provider", "name", "kind", "parent_id", "path", "mime_type", "size_bytes", "modified_at", "etag", "thumbnail_url", "web_url" ]}components/schemas/ExternalFileProblem
JSON
{ "allOf": [ { "$ref": "#/components/schemas/Problem" }, { "type": "object", "properties": { "code": { "type": "string", "enum": [ "invalid_input", "unauthenticated", "not_found", "forbidden", "conflict", "limit_exceeded", "not_ready", "internal" ], "description": "Stable error code." }, "reason": { "type": "string", "enum": [ "provider_connection_required", "personal_connection_required", "provider_unavailable", "provider_rate_limited", "file_too_large", "content_too_large", "storage_quota_exceeded" ], "description": "Why the error happened, where a code has more than one cause." }, "provider": { "type": "string", "enum": [ "onedrive", "sharepoint", "drive" ], "description": "Provider of the request." }, "connect_url": { "type": "string", "format": "uri", "description": "With not_ready: URL that starts connecting your own provider account. A hint, not a redirect." }, "retry_after_seconds": { "type": "integer", "minimum": 0, "description": "Seconds to wait before retrying." }, "size_bytes": { "type": "integer", "minimum": 0, "description": "Size of the file that hit a limit." }, "limit_bytes": { "type": "integer", "minimum": 0, "description": "Byte limit that was exceeded." }, "limit_chars": { "type": "integer", "minimum": 0, "description": "Character limit that was exceeded." } }, "required": [ "code" ] } ]}components/schemas/Problem
JSON
{ "type": "object", "properties": { "cause": { "type": "string", "enum": [ "schedule_concurrency_forbidden", "schedule_fire_in_progress", "schedule_run_limit_reached" ], "description": "Schedule admission refusal." }, "idempotency": { "type": "object", "properties": { "state": { "type": "string", "enum": [ "in_progress", "payload_mismatch", "outcome_unknown" ] }, "operation": { "type": "string", "minLength": 1 }, "retryable": { "type": "boolean" }, "retry_after_seconds": { "type": [ "integer", "null" ], "minimum": 0 }, "expires_at": { "type": [ "string", "null" ] }, "recovery": { "type": "object", "properties": { "available": { "type": "boolean" }, "description": { "type": "string" }, "resource_url": { "type": "string" } }, "required": [ "available", "description" ] } }, "required": [ "state", "operation", "retryable", "retry_after_seconds", "expires_at" ], "description": "Replay status, retry timing, and recovery lookup." }, "type": { "type": "string", "description": "URI reference identifying the problem type", "example": "https://api.veryfront.com/errors/validation-failed" }, "title": { "type": "string", "description": "Short human-readable summary of the problem", "example": "Validation Failed" }, "status": { "type": "integer", "minimum": 100, "maximum": 599, "description": "HTTP status code", "example": 400 }, "code": { "type": "string", "description": "Stable machine-readable error code", "example": "RUN_INVALID_INPUT" }, "detail": { "type": "string", "description": "Human-readable explanation specific to this occurrence", "example": "The 'email' field must be a valid email address" }, "instance": { "type": "string", "description": "URI reference identifying the specific occurrence", "example": "/projects/my-project/members" }, "slug": { "type": "string", "description": "Stable identifier for the problem type", "example": "validation-failed" }, "category": { "type": "string", "enum": [ "AUTH", "RESOURCE", "VALIDATION", "DATABASE", "SUBSCRIPTION", "INTEGRATION", "INTERNAL" ], "description": "API error category", "example": "VALIDATION" }, "suggestion": { "type": "string", "description": "Suggested action to resolve the problem", "example": "Check the request body and query parameters against the API documentation." }, "errors": { "type": "array", "items": { "type": "object", "properties": { "field": { "type": "string", "description": "Field path that caused the error", "example": "email" }, "message": { "type": "string", "description": "Error message for this field", "example": "Invalid email format" }, "code": { "type": "string", "description": "Error code for this field", "example": "INVALID_FORMAT" } }, "required": [ "field", "message" ] }, "description": "Detailed field-level errors for validation failures" } }, "required": [ "type", "title", "status" ]}Operation contract
JSON
{ "operationId": "getExternalFile", "tags": [ "integrations/External storage/External Files" ], "summary": "Get external file", "description": "Return external file.", "parameters": [ { "$ref": "#/components/parameters/ProjectReference" }, { "schema": { "type": "string", "enum": [ "onedrive", "sharepoint", "drive" ], "description": "External file provider: `onedrive`, `sharepoint` or `drive` (Google Drive)." }, "required": true, "name": "provider", "in": "path" }, { "schema": { "type": "string", "minLength": 1, "maxLength": 1024, "description": "Provider item ID from listExternalFiles. Opaque; percent-encode it. Missing or inaccessible items return not_found." }, "required": true, "name": "file_id", "in": "path" } ], "responses": { "200": { "description": "The external file.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExternalFile" } } } }, "400": { "description": "Bad request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ExternalFileProblem" } } } }, "401": { "description": "Unauthorized", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ExternalFileProblem" } } } }, "403": { "description": "Forbidden", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ExternalFileProblem" } } } }, "404": { "description": "Not found", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ExternalFileProblem" } } } }, "413": { "description": "Payload too large", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ExternalFileProblem" } } } }, "428": { "description": "Precondition required", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ExternalFileProblem" } } } }, "429": { "description": "Rate limit exceeded", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ExternalFileProblem" } } } }, "500": { "description": "Server error", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ExternalFileProblem" } } } }, "503": { "description": "Service unavailable", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ExternalFileProblem" } } } } }, "x-documentation-source-tag": "External Files", "x-canonical-documentation": { "domain": "integrations", "resource": "External storage", "subgroup": "External Files", "name": "Get external file", "description": "Return external file.", "operationId": "getExternalFile" }, "x-mint": { "href": "/cloud/rest/api-reference/integrations-external-storage-external-files/get-external-file" }}