Storage

A new read-write token (the old one stops working within 5 seconds); update BLOB_READ_WRITE_TOKEN

post/storage/vercel-blob-stores/{storeId}/rotate

Request

  • Base URL: https://hostingsurge.com/api/v1
  • URL: https://hostingsurge.com/api/v1/storage/vercel-blob-stores/{storeId}/rotate
  • Auth: one of:
    • HTTP bearer
    • API key in cookie __Host-hs_session

Path parameters

storeIdstring required
Example:hsk3x9q2m4n8p1r7

Response

The new token

storeIdstring required
organizationIdstring uuid required
projectIdstring uuid nullable required
bucketIdstring uuid required

the storage bucket that holds the files (it counts toward your storage allowance)

bucketstring required

its S3 name

access'public' | 'private' required

public: files are readable by anyone with their URL; private: only with the store's token

legacyStoreIdsstring[] required
apiUrlstring required

VERCEL_BLOB_API_URL / NEXT_PUBLIC_VERCEL_BLOB_API_URL for the app

publicBaseUrlstring nullable required

where public files are served: <publicBaseUrl><pathname>

createdAtstring required

ISO-8601 timestamp

updatedAtstring required

ISO-8601 timestamp

tokenstring required

BLOB_READ_WRITE_TOKEN for the app: shown only in this response

webhookPublicKeystring nullable required

BLOB_WEBHOOK_PUBLIC_KEY: verifies callbacks of presigned uploads

Changes

No recorded changes to this operation across all 1 revision of this API.