Glossary

Presigned URL

A time-limited URL carrying a signature that grants permission to upload or download one specific object, without sharing the credentials that signed it.

A presigned URL is a URL that grants temporary permission to carry out one operation, usually an upload or a download, on one object in storage. The server that holds the credentials signs the URL with a secret key and an expiry time, so anyone holding the link can make that single request until it expires without ever seeing the key. Amazon S3 calls them presigned URLs, Google Cloud Storage calls them signed URLs, and Azure Storage uses shared access signatures for the same idea.

How a presigned URL works

Your backend asks the storage service, or a signing library, to create a URL for a specific bucket, key, HTTP method and expiry. The result is an ordinary URL with extra query parameters: who signed it, when, how long it is valid for, and a signature over all of that. When the request arrives, the storage service recomputes the signature. If the key, the method or the expiry has changed, the signature no longer matches and the request is refused.

Because the permission lives in the URL, the client needs no API key and no SDK. A browser can PUT a file straight to object storage with a plain HTTP request, and a link preview can show an image from a private bucket without making the bucket public. The file never passes through your application server, which saves bandwidth and avoids request size limits on your own API.

The direct upload pattern

The most common use is a three-step upload. The client asks your API for a signed upload URL, sending the file name and size. Your API checks that the user may upload, signs a URL and returns it. The client then PUTs the bytes to that URL and tells your API the upload is finished, so it can record the file and its MIME type. Large files are often split into parts with a multipart upload, with one signed URL per part. Downloads work the same way in reverse, with a short-lived signed GET URL.

Expiry, scope and security

A presigned URL is a bearer token: whoever has it can use it until it expires. Keep the expiry short and sign for the narrowest scope you can: one key, one method and, where the provider supports it, a fixed content type. Amazon S3 caps URLs signed with Signature Version 4 at seven days, and a URL signed with temporary credentials stops working when those credentials expire.

Signing does not replace encryption in transit, so serve signed URLs only over HTTPS and keep them out of logs where they could be replayed. Treat the signing credentials like any API key: keep them server-side and never ship them to the client. For files that come from users, malware scanning before anything else reads them is the usual safeguard.

Presigned URLs for AI agents

AI agents handle a lot of files: documents users drop in, reports they write, recordings they transcribe. Presigned URLs let an agent, or the app around it, move those bytes without routing them through a model call or exposing storage credentials to tool code. They also make a clean boundary for tool use: the tool asks for a URL, uploads, and hands back a path, and the agent never handles a secret.

Uploading is the easy part. Once the file lands, the agent still needs it parsed, indexed and findable by what it contains, which is where file indexing and an agent file system come in. The document extraction use case shows that pipeline end to end, and our roundup of the best file storage for AI agents compares the options.

Presigned URLs in Exabase

File uploads to Exabase Resources use the signed URL flow. You request a signed upload URL from the uploads endpoint with the file name and size, PUT the file to the returned URL with the headers it specifies, then create the resource with the files endpoint, passing the upload path, a parent folder and the MIME type. In the TypeScript SDK those steps are api.uploads.getSignedUrl and api.files.create, and the guide to creating resources walks through them. Files can be up to 5 GB, subject to your plan’s storage limit.

Once created, the file is extracted and semantically indexed, so it is searchable through Deep Search straight away. Extract has its own signed upload URL for jobs where you want control over the upload, such as progress tracking: call the extract upload endpoint, PUT the file, then submit the job with the storage path. The Link Preview API returns its preview image and favicon as pre-signed URLs with their width and height, described in the PresignedImage model.

Each request can be scoped to a tenant’s own Base. Teams moving from a bucket can compare the two in Exabase vs AWS S3.

FAQs

What is the difference between a presigned URL and a public URL?

A public URL works for anyone, indefinitely, because the object itself is public. A presigned URL points at a private object and works only for the method, object and time window it was signed for.

How long does a presigned URL last?

It lasts as long as the expiry set when it was signed, within the provider’s maximum. Amazon S3 and Google Cloud Storage allow up to seven days for URLs signed with their current signing versions, and most applications use minutes or hours.

Can a presigned URL be revoked?

Not individually in most object stores. The usual options are to rotate or revoke the credentials that signed it, which invalidates every URL they signed, or to keep the expiry short so a leaked link stops working quickly.

Why use presigned URLs instead of uploading through my API?

Direct uploads skip your servers, so large files do not hit request size limits or tie up application workers. Your API still decides who may upload and records the file afterwards.

Does Exabase use presigned URLs for uploads?

Yes. Uploads to Resources use a signed URL from GET /v2/upload, followed by a PUT and a call to create the file resource. Extract offers the same flow through GET /v2/extract/upload.

Related pages: Object storage, Multipart upload, Blob storage, File metadata, Agent file system, Resources, File extraction, Exabase vs AWS S3, Exabase vs Supabase Storage, Best file storage for AI agents, Virtual file system.

Cut your token spend and give your agent precise context.

Get started in minutes.

Cut your token spend and give your agent precise context.

Get started in minutes.