Create Signature

View Markdown

Create a new signature.


POST
/signatures

Authorization

AuthorizationRequiredBearer <token>

See API Security for more details.

In: header

Request Body

application/jsonRequired

The request body should contain a properly formatted JSON object with a filename property. Other optional properties are listed below.

filenameRequiredstring
folderstring
expiryinteger
Format: "unix-epoch"
methodstring
Default: "get"Value in: "get" | "put"

Header Parameters

Accept-Versionstring

Specifies the API Version

Default: "2025-08-20"Value in: "2025-08-20" | "latest"

Response Body

Success

domainRequiredstring
filenameRequiredstring
folderstring
expiryRequiredinteger
methodRequiredstring
signatureRequiredstring
urlRequiredstring
const body = {
  filename: "video.mp4",
  folder: "example",
  expiry: 1735689600,
  method: "put"
};

const signature = await fetch("https://api.ittybit.com/signatures", {
  method: "POST",
  headers: { "Authorization": "Bearer ITTYBIT_API_KEY" },
  body: JSON.stringify(body)
})
{
  "domain": "you.ittybit.net",
  "filename": "video.mp4",
  "folder": "example",
  "expiry": 1735689600,
  "method": "put",
  "signature": "a1b2c3d4e5f6...",
  "url": "https://you.ittybit.net/example/video.mp4?expiry=1735689600&method=put&signature=a1b2c3d4e5f6..."
}