Enable and get the public share link

gethttps://api.expiryedge.com/v1/generateShareUrl
editor or admin60/min
Anfrage
curl 'https://api.expiryedge.com/v1/generateShareUrl?id=exp_4Tq9sLm2' \
  -H "Authorization: Bearer $EXPIRYEDGE_API_KEY"
Antwort
{
  "share_url": "https://app.expiryedge.com/share/5c0e7a52-3f7e-4b3e-9a2e-1d2f0b6c9e11",
  "share_token": "5c0e7a52-3f7e-4b3e-9a2e-1d2f0b6c9e11"
}

Sets is_public: true and returns the share URL. The token is stable: re-sharing returns the same URL.

Query-Parameter

  • idstringerforderlich
    Expiry id.

Rückgabe

200
Sharing enabled.
  • share_urlstringerforderlich
    format: uri
  • share_tokenstringerforderlichschreibgeschützt

Fehler

400
The request is missing required fields or contains invalid values.
401
Missing, expired or invalid bearer token.
403
Authenticated, but your role or organization does not allow this action.
404
The record does not exist or is not in your organization.
429
Too many requests for this endpoint from your IP. Wait Retry-After seconds.