API referenceLibrary
File generations as assets
POST
Needs a key withlibrary:write
Files the workspace's completed generations that aren't assets yet (newest first, up to 100). Finished generations are filed as they complete; this catches older ones.
Requires scope library:write.
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.
How many assets were added.
application/json- response
filed*integerAssets added.
curl -X POST 'https://api.remagica.com/api/v1/library/generations/sync'Example Response
{ "filed": 1}