Skip to main content
POST
https://postonce.to/api/public
/
v1
/
media
/
uploads
curl --request POST \
  --url https://postonce.to/api/public/v1/media/uploads \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "filename": "launch-image.png",
  "content_type": "image/png"
}
'
{
  "data": {
    "content_type": "image/png",
    "media_id": "cHVibGljLWFwaS91c2VyLTEyMy8xNzQzNDM0NTY3LWxhdW5jaC1pbWFnZS5wbmc",
    "path": "public-api/user-123/1743434567-launch-image.png",
    "upload": {
      "path": "public-api/user-123/1743434567-launch-image.png",
      "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
      "signedUrl": "https://swgrcbzlaeshsmygubik.supabase.co/storage/v1/object/upload/sign/social-media/public-api/user-123/1743434567-launch-image.png?token=..."
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.postonce.to/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
filename
string
required

Original file name including extension.

Example:

"launch-image.png"

content_type
enum<string>
required

MIME type of the file being uploaded.

Available options:
image/jpeg,
image/png,
image/webp,
video/mp4,
video/quicktime,
video/webm
Example:

"image/png"

Response

Signed upload URL created successfully.

data
object