Skip to main content
POST
/
api
/
library
/
files
Create file
curl --request POST \
  --url https://api.mymarky.ai/api/library/files \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "business_id": "<string>",
  "path": "<string>",
  "content": "<string>"
}
'
{
  "id": "<string>",
  "path": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.mymarky.ai/llms.txt

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

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
business_id
string
required

Business this file belongs to

path
string
required

File path (e.g. '/documents/my-notes')

content
string
required

File content (markdown)

Response

Successful Response

id
string
required

Created file ID

path
string
required

Full file path