Guide

What is a direct file URL?

A direct file URL is an HTTPS URL that returns the file bytes to a server-side fetch without requiring a browser session, permission prompt, or preview page.

direct file URLno redirectscontent typeAPI fetchpublic CDN URL
Definition

A direct file URL resolves to the actual file.

If an API asks for a file URL, it usually means the API will fetch that URL from its own servers. The URL must work without your login session.

01

Returns bytes

The response body is the file itself, not an HTML share page or application shell.

02

Keeps headers

Content type, size, and disposition help the destination decide how to process the file.

03

Has lifecycle

For workflow files, the URL should expire or be deleted after the job finishes.

Common failures

Links that open in your browser can still fail for APIs.

A user-visible link can depend on cookies, redirects, app permissions, or a preview route. Server-side APIs do not share that context.

01

Google Drive preview links

They may show a document viewer or permission page instead of serving bytes directly.

02

App attachment URLs

They can expire quickly or require the app session that created them.

03

Redirecting links

Some destination APIs refuse redirects or fetch the final page with the wrong headers.

How to create one

Upload the file to a URL layer built for machine handoffs.

GetFileURL accepts the workflow file, returns a direct public CDN URL, and includes lifecycle fields so the URL does not become unmanaged storage.

01

Upload the actual file

Send the file bytes from your app, worker, script, or automation HTTP step.

02

Pass response.url onward

Map the returned URL to the destination API field that asks for a file URL.

03

Store file_id

Use the file ID to delete the URL after processing or support cleanup later.

FAQ

Answers before the workflow breaks

Is a direct file URL the same as a share link?

No. A share link often opens an app page. A direct file URL returns the file bytes and headers to a server-side fetch.

Why do APIs reject Google Drive or Airtable links?

Those links can require permissions, redirect through preview pages, or expire before an external server fetches the file.

Should direct file URLs be permanent?

Not for most workflow handoffs. Use expiry or deletion so public access ends after the downstream job finishes.

Next pages

Keep building the file URL path

Back to home