Skip to content

Which parts the server holds

GET
/attachment-uploads/{id}
curl --request GET \
--url https://api.engram.page/attachment-uploads/example \
--header 'Authorization: Bearer <token>'

For a client resuming an upload: the part numbers already stored, and completed once complete committed the session (complete again returns the attachment).

id
required
string

Upload id

Upload state

Media typeapplication/json
AttachmentUploadStatus
object
completed
required

Complete already committed; complete again returns the attachment.

boolean
done
required
Array<integer>
part_count
required
integer
part_size
required
integer

Example generated

{
"completed": true,
"done": [
1
],
"part_count": 1,
"part_size": 1
}

No such upload

Media typeapplication/json
Error
object
errors
One of:
string

Example generated

{
"errors": {}
}