v1
App Files

Mint an upload URL

Changed on
post/v1/files/tickets

Request

  • Base URL
    https://memory.papr.ai
  • URL
    https://memory.papr.ai/v1/files/tickets
  • Auth
    • API key in header X-API-Key
    • or HTTP bearer

Request body

app_idstring required

Mini-app UUID the file belongs to

sha256string required

SHA-256 of the file content, hex

size_bytesinteger required

Exact byte length of the file

file_namestring nullable

Display name

mimestring nullable

Content type

scope'app' | 'user'

'app' shares the file with everyone who can see the app. 'user' keeps it private to the uploader even if the app is public.

namespace_idstring nullable

Override namespace (must match the caller's access)

Response

Successful Response

object_keystring required
upload_urlstring nullable
already_existsboolean
scopestring
max_bytesinteger

Changes