π»Beaver Integrations - DATA API
The DATA API in Beaver Notes enables third-party applications to interact with the platform. It provides functionalities for creating notes, deleting notes, and adding labels.
Auth
Request Authentication
Endpoint: POST /request-auth
Description: Sends an authentication request to the renderer process in Electron.
Request:
Headers:
Content-Type: application/json
Body:
Example curl
Command:
Verify Authentication
Endpoint: GET /confirm-auth
Description: Verifies the authentication token.
Request:
Headers:
Authorization: Bearer your-token
Content-Type: application/json
Example curl
Command:
Notes Management
Add Note
Endpoint: POST /add-note
Description: Adds a new note and broadcasts it to all connected clients.
Request:
Headers:
Authorization: Bearer your-token
Content-Type: application/json
Body:
Example curl
Command:
Delete Note
Endpoint: POST /delete-note
Description: Deletes a note and broadcasts the deletion to all connected clients.
Request:
Headers:
Authorization: Bearer your-token
Content-Type: application/json
Body:
Example curl
Command:
Add Label to Note
Endpoint: POST /add-label
Description: Adds a label to a note and broadcasts the update to all connected clients.
Request:
Headers:
Authorization: Bearer your-token
Content-Type: application/json
Body:
Example curl
Command:
Last updated