Uploads

Create an image upload link

Changed on

Create a single-use link that accepts one image upload into this project, for tools that can run curl but hold no Gleap credentials (e.g. an AI agent connected through the Gleap MCP server). The link expires after 15 minutes and works once:

curl -sS -F "file=@cover.png" "<uploadUrl>"

Accepts PNG, JPEG, GIF and WebP up to 20 MB (judged by the file's bytes, not its name). The response carries the image's permanent public fileUrl.

post/uploads/links

Request

  • Base URL: https://api.gleap.io/v3
  • URL: https://api.gleap.io/v3/uploads/links
  • Auth: HTTP bearer

Headers

projectstring required

Response

Ok

uploadUrlstring required

POST one image here as multipart/form-data, field file. No auth header needed.

expiresAtstring required

ISO timestamp after which the link no longer works.

maxBytesnumber double required
allowedTypesstring[] required

Changes