Xeonr Developer Docs
Server APIAPI SpecificationMeta

Start image upload

POST
/serversapi.v1.MetaService/StartImageUpload

Initiate an image upload by obtaining a presigned URL. Upload the image to the returned URL within the expiration period.

Authorization

BearerAuth
AuthorizationBearer <token>

JWT access token obtained via logging in with an identity provider.

In: header

Header Parameters

Connect-Protocol-Version*number

Define the version of the Connect protocol

Value in1
Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

filename?string

Original filename of the image.

filesize?integer|string

File size in bytes.

Formatint64
Range1 <= value <= 10485760
contentType?string

MIME type of the image (e.g., image/png, image/jpeg).

[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://server-api.sagl.app/serversapi.v1.MetaService/StartImageUpload" \  -H "Connect-Protocol-Version: 1" \  -H "Content-Type: application/json" \  -d '{}'
{
  "uploadId": "string",
  "uploadUrl": "string"
}
{
  "code": "not_found",
  "message": "string",
  "details": [
    {
      "type": "string",
      "value": "string",
      "debug": {}
    }
  ]
}