Skip to main content
POST
/
upload
Create documents from a file tree
curl --request POST \
  --url https://app.myhero.so/upload \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "uploaded": {},
  "workspaceId": "<string>",
  "projectId": "<string>"
}
'
{
  "data": true
}

Documentation Index

Fetch the complete documentation index at: https://developers.myhero.so/llms.txt

Use this file to discover all available pages before exploring further.

Ingests a nested file-tree map of base64-encoded file contents (uploaded) and creates corresponding Scribe documents in the specified workspace or project. Requires create-document permission on the target project, or create-project permission on the workspace when no projectId is supplied.

Authorizations

Authorization
string
header
required

HERO personal access token

Body

application/json
uploaded
object
required
workspaceId
string
required
Minimum string length: 1
projectId
string

Response

200 response

data
boolean
required