File Sharing and Share Requests
File Sharing
These endpoints supports secure data sharing using auth tickets, share links, and metadata across user wallets.
Insert Share Info
Path:
/v2/shareinfoMethod:
POSTAccess: Signature API
Description: Creates a new share record using an auth_ticket, which encapsulates access rights.
Headers Required:
AuthHeaderForm Data (multipart/form-data):
auth_ticket(string, required)message(string, optional)share_info_type(string, optional, e.g.publicorprivate)link(string, optional)
Response:
{
"message": "shareinfo added successfully",
"data": {
"auth_ticket": "base64ticket...",
"message": "Here is your file",
"share_info_type": "private",
"client_id": "sender_client_id",
"receiver": "receiver_client_id",
"lookup_hash": "lookuphash123",
"sender_name": "Alice",
"link": "https://share.link",
"receiver_name": "Bob"
}
}Get Shared Files (Sent)
Path:
/v2/shareinfo/sharedMethod:
GETAccess: Signature API
Description: Retrieves files the user has shared with others.
Query Parameters:
limit(optional)offset(optional)lookup_hash(optional)shareInfoType(required: e.g.public,private)exclude_ai(optional):"true"to exclude AI-related shares
Response:
Get Shared Files (Received)
Path:
/v2/shareinfo/receivedMethod:
GETAccess: Signature API
Description: Retrieves files that others have shared with the user.
Query Parameters:
limit,offset,lookup_hash(optional)shareInfoType(required)
Response:
Delete Share Info
Path:
/v2/shareinfoMethod:
DELETEAccess: Signature API
Query Parameters (at least one required):
auth_ticket(string)lookup_hash(string)
Response (Success):
If nothing was deleted:
Share Requests
These endpoints handles inbound and outbound requests for accessing shared files or permissions.
Create Share Request
Path:
/v2/sharereqMethod:
POSTAccess: Signature API
Description: Used to request access to someone else's file. Allows one-time re-request if previously declined.
Body:
Response:
Get Received Share Requests
Path:
/v2/sharereq/receivedMethod:
GETAccess: Signature API
Description: Lists all incoming share requests for the user.
Query Parameters (optional):
client_id,lookup_hash,status,all,offset,limitResponse:
Get Sent Share Requests
Path:
/v2/sharereq/requestedMethod:
GETAccess: Signature API
Description: Lists all share requests sent by the user.
Query Parameters (optional):
owner_id,lookup_hash,status,all,offset,limitResponse:{
Update Share Request
Path:
/v2/sharereqMethod:
PUTAccess: Signature API
Description: Updates a share request (usually to approve it). Also writes to
ShareInfotable using theauth_ticket.Body:
Response:
Delete Share Request
Path:
/v2/sharereqMethod:
DELETEAccess: Signature API
Query Parameters:
id(string, required)
Response:
Last updated