anyproto / anyproto/anytype-api

File Upload Support in REST API

Open
#20 3 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
JavaScript
Stars
113
Forks
20
Avg merge
16m
Merged PRs (30d)
1

Description

Have you read a contributing guide?
  • I have read CONTRIBUTING.md
  • I have searched the existing requests and didn't find any that were similar
  • I have considered creating a pull request instead and want to proceed
Clear and concise description of the problem

I'm working on an integration for transferring handwritten notes into Anytype. The idea is to convert these notes to searchable PDFs/text and sync them to Anytype. This works well for text content using the current REST API.
However, file uploads don't appear to be supported. I cannot find an endpoint to upload images or PDFs and attach them to objects.

Suggested solution

Add file upload support to the REST API (e.g., POST /v1/spaces/{space_id}/files or multipart upload on object creation).

Alternatively, if there are architectural reasons this isn't feasible for the REST API, guidance on whether the internal gRPC APIwould be a viable approach for self-hosted instances would be helpful.

Alternative

No response

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing REST API endpoints and the project's OpenAPI materials to understand how objects and attachments are currently represented. Done means defining and implementing a supported upload path for images or PDFs, or documenting whether the internal gRPC API is viable for self-hosted instances.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, openapi
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.