Signatures
Generate signed URLs
Generate a signed URL for accessing a file
Creates a cryptographically signed URL that provides temporary and restricted access to a file. The URL can expire after a specified time and be limited to specific HTTP methods.
Authorization
Authorization
RequiredBearer <token>Requires a Bearer token in the Authorization header. Format: Authorization: Bearer ITTYBIT_API_KEY
In: header
Request Body
application/json
RequiredParameters for the signature generation, including the file details, expiration time, and permitted HTTP method.
filename
RequiredstringThe name of the file to generate a signature for. Special characters will be sanitised.
folder
stringOptional folder path where the file resides. Special characters will be sanitised.
expiry
integerOptional expiry time for the signature in seconds since epoch. Defaults to 60 minutes from now. Must be a positive integer and in the future.
"int64"
method
stringOptional HTTP method allowed for the signed URL. Defaults to 'get'.
"get"
Value in: "get" | "put" | "post" | "delete"
Response Body
Signed URL generated successfully
TypeScript Definitions
Use the response body type in TypeScript.
meta
objectdata
objectlinks
object