Storage

Write a small file (≤ 5 MiB) from JSON: {key, content, encoding: utf8|base64, contentType?} (for AI agents)

post/storage/buckets/{bucketId}/objects

Request

  • Base URL: https://hostingsurge.com/api/v1
  • URL: https://hostingsurge.com/api/v1/storage/buckets/{bucketId}/objects
  • Auth: one of:
    • HTTP bearer
    • API key in cookie __Host-hs_session

Path parameters

bucketIdstring uuid required

Request body

keystring required
contentstring required
encoding'utf8' | 'base64'
contentTypestring

Response

Stored

keystring required
sizeinteger required
etagstring nullable required
publicUrlstring nullable required

Changes

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