cURL
curl --request POST \ --url https://lex.page/api/v1/docs \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "title": "<string>", "html": "<string>", "path": "~" }'
{ "uuid": "<string>" }
Creates a new document
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Document to create
The body is of type object.
object
Created
The response is of type object.