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/shareinfo

  • Method: POST

  • Access: Signature API

  • Description: Creates a new share record using an auth_ticket, which encapsulates access rights.

  • Headers Required: AuthHeader

  • Form Data (multipart/form-data):

    • auth_ticket (string, required)

    • message (string, optional)

    • share_info_type (string, optional, e.g. public or private)

    • 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/shared

  • Method: GET

  • Access: 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/received

  • Method: GET

  • Access: 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/shareinfo

  • Method: DELETE

  • Access: 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/sharereq

  • Method: POST

  • Access: 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/received

  • Method: GET

  • Access: Signature API

  • Description: Lists all incoming share requests for the user.

  • Query Parameters (optional): client_id, lookup_hash, status, all, offset, limit

  • Response:

Get Sent Share Requests

  • Path: /v2/sharereq/requested

  • Method: GET

  • Access: Signature API

  • Description: Lists all share requests sent by the user.

  • Query Parameters (optional): owner_id, lookup_hash, status, all, offset, limit

  • Response:{

Update Share Request

  • Path: /v2/sharereq

  • Method: PUT

  • Access: Signature API

  • Description: Updates a share request (usually to approve it). Also writes to ShareInfo table using the auth_ticket.

  • Body:

  • Response:

Delete Share Request

  • Path: /v2/sharereq

  • Method: DELETE

  • Access: Signature API

  • Query Parameters:

    • id (string, required)

  • Response:

Last updated