Skip to main content
POST
/
apps
/
{appID}
/
uploads
cURL
curl --request POST \
  --url https://api.glideapps.com/apps/{appID}/uploads \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "contentType": "image/png",
  "contentLength": 1024,
  "fileName": "logo.png"
}
'
{
  "data": {
    "uploadID": "upload-123",
    "uploadLocation": "https://storage.googleapis.com/glide-uploads/example?X-Goog-Algorithm=GOOG4-RSA-SHA256"
  }
}
Create an upload session and get a pre-signed upload URL. Upload the file bytes to the uploadLocation, then call the complete endpoint to finalize the file and receive a public URL.

Example

curl --request POST \
  --url https://api.glideapps.com/apps/$APP_ID/uploads \
  --header "Authorization: Bearer $GLIDE_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
    "contentType": "image/png",
    "contentLength": 1024,
    "fileName": "logo.png"
  }'
Response:
{
  "data": {
    "uploadID": "upload-123",
    "uploadLocation": "https://storage.googleapis.com/glide-uploads/example?X-Goog-Algorithm=GOOG4-RSA-SHA256"
  }
}
Then upload the file bytes to uploadLocation:
curl --request PUT \
  --url "$UPLOAD_LOCATION" \
  --header "Content-Type: image/png" \
  --upload-file ./logo.png
Finally, complete the upload:
curl --request POST \
  --url https://api.glideapps.com/apps/$APP_ID/uploads/$UPLOAD_ID/complete \
  --header "Authorization: Bearer $GLIDE_API_KEY"
Note that Glide will delete this file within 30 days if the URL is not stored in a table in Glide.

Authorizations

Authorization
string
header
required

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

Path Parameters

appID
string
required

ID of the app, e.g., mT91fPcZCWigkZXgSZGJ

Example:

"mT91fPcZCWigkZXgSZGJ"

Body

application/json
contentType
string
required

MIME type of the file, e.g., image/png

Example:

"image/png"

contentLength
number
required

File size in bytes

Example:

1024

fileName
string
required

Name of the file

Example:

"logo.png"

Response

data
object
required