GET, POST
/api/public/v1/shares
BetaList shares, or create a link share (or a share with a member). Needs the Advanced Sharing feature enabled for the organization.
Parameters
| Name | In | Required | Description |
|---|---|---|---|
| status | query | false | active, expired, revoked or exhausted. |
| documentId | query | false | Only shares of this document. |
| limit, before | query | false | Page size (max 100) and a cursor. |
| documentId, expiresAt or expirationPreset, options | body (POST) | true | A link share. With memberEmail and permission it is a share with a member instead. |
Response
GET: { shares[], next }. POST: 201 with the share; the link token is returned once and never listed again.
Example
curl -H "Authorization: Bearer $INAYA_API_KEY" \
"https://app.inaya.network/api/public/v1/shares"