The shares API lets you invite other Spote users to a note by email. Once invited, they receive an email with an invitation link. When they accept the invitation, they gain access to the note with the permission level you specified.Documentation Index
Fetch the complete documentation index at: https://docs.spote.cloud/llms.txt
Use this file to discover all available pages before exploring further.
You can only manage shares for notes you own. Collaborators cannot invite other users to a note.
Share object
UUID identifying the share.
UUID of the note this share is for.
Email address of the invited user.
Access level granted:
"read" or "write".ISO 8601 date string of when the invitation was created.
ISO 8601 date string of when the invitation was accepted.
null if the invitation has not been accepted yet.The invitation token used to generate the invite link is never included in API responses.
GET /api/notes/:id/shares
List all active share invitations for a note.Path parameters
The UUID of the note.
Response
200 OK — array of share objects for the note.POST /api/notes/:id/shares
Invite a collaborator to a note by email. Spote creates a share record and immediately sends an invitation email via Resend. The recipient receives a link they can use to accept the invitation.Path parameters
The UUID of the note to share.
Request body
Email address of the person to invite.
Access level to grant:
"read" or "write". Collaborators with "write" access can edit the note but cannot delete it or invite additional users.Response
201 Created — returns the created share object. 409 Conflict — this email address already has a share for this note. Revoke the existing share first if you want to change the permission. 500 Internal Server Error — the invitation email failed to send. The share record is rolled back automatically.DELETE /api/notes/:id/shares/:shareId
Revoke a share, immediately removing the collaborator’s access to the note.Path parameters
The UUID of the note.
The UUID of the share to revoke.