API referenceLibrary
Read a file's share link
GET
Needs a key withlibrary:share
A file's share link: its token, public page and who it lets in. null when it was never shared.
Requires scope library:share.
apiKeyheader
x-api-key<token>An API key of your workspace (rmg_…), created in the web app. It acts for that workspace, not for a person, and keeps working when its creator leaves.
mediaKey*stringThe file's storage key (an upload's, a generation's or a workflow output's). A node's result and the asset filed from it share one thread.
Length
1 <= length <= 1024The share, or null.
application/json- response
path*stringrole*stringrestricted (the link is off), view (anyone with it sees the file) or comment (and, signed in, comments on it).
Value in
"restricted""view""comment"showPrompt*booleantoken*stringcurl -X GET 'https://api.remagica.com/api/v1/asset-shares?mediaKey=generations%2Forg_1%2F2c9a7f10%2Fimage-0.png'Example Response
{ "path": "string", "role": "restricted", "showPrompt": true, "token": "string"}