Skip to main content
The organization metadata export writes one CSV with a row per creation of your Enterprise organization: who made it, when, with which tool, model and prompt, what it cost in credits, which project it is in and a link to its lineage. It runs in the background, so it works for organizations with millions of creations: you start it, follow it, and download the file when it is ready.
The organization metadata export is available on request. Ask your account manager to enable it for your organization. Until it is, POST /v2/creations/metadata-exports answers 404 not_found.

Enable it

  1. Request it. Ask your account manager to enable the organization metadata export for your organization.
  2. Turn it on. Once it is enabled, an owner or admin turns on Organization metadata export API access in Settings → Organization → Permissions on magnific.com. While it is off, starting or downloading an export answers 403 metadata_export_disabled. Turning it off takes effect at once, and turning it back on restores access to the exports already made.

Who can use it

  • An API key of an Enterprise organization. A personal access token gets 403 api_key_required, and an organization that is not on an Enterprise plan gets 403 enterprise_required.
  • Created by an owner or admin. The export covers the whole organization, so the key must belong to an owner or admin who is still in the organization. A key created by a member gets 404 not_found.
  • Only the key that started an export can read and download it. Any other key gets 404 not_found for that export.
  • With the export turned on. Without it, starting or downloading an export gets 403 metadata_export_disabled. The status of an export can still be read.

How it works

1

Start the export

POST /v2/creations/metadata-exports answers 202 at once with the export queued. Every filter is optional:
2

Follow it

GET /v2/creations/metadata-exports/{export_id} returns the status (queued, processing, ready, failed or expired) and the rows written so far. Poll it every few seconds, or pass webhook_url and wait for the metadata_export.ready or metadata_export.failed event. The webhook carries the export, never the file link.A small organization is ready in seconds. A very large one is written in batches and can take several hours: millions of creations take hours, not minutes.
3

Download the CSV

Once it is ready, GET /v2/creations/metadata-exports/{export_id}/download returns a url to the file, valid for 60 minutes (url_expires_at). Request it again for a new link. Every link issued is recorded in your organization’s audit log.

What the CSV contains

One row per creation of the organization, in UTF-8 with a header row. It covers what members made inside the organization: the organization’s projects and each member’s personal project in it. What a member made before joining the organization is not included. An empty cell means the creation has no value for that column. A value that starts with =, +, -, @, a tab or a carriage return is prefixed with ' so spreadsheets do not run it as a formula.

Limits and retention

  • Two exports at a time. A third while two are queued or processing gets 429 too_many_exports. Wait for one to end.
  • The file is kept one day. After expires_at, one day after the export was ready, the export is expired and the download answers 410 export_expired. Start a new export.
  • Download links last 60 minutes. Request the download endpoint again for a new one.
  • A failed export has no file. The download answers 422 export_failed, and error says why. Start a new export.

POST /v2/creations/metadata-exports

Start an organization metadata export

GET /v2/creations/metadata-exports/{export_id}

Follow its status and rows

GET /v2/creations/metadata-exports/{export_id}/download

Get a link to the CSV

Frequently Asked Questions

The organization metadata export is not turned on for your organization. An owner or admin can turn on Organization metadata export API access in Settings → Organization → Permissions once your account manager has enabled it.
Either the export is not open to your organization yet, or the API key was created by a member rather than an owner or admin. Use a key created by an owner or admin, and ask your account manager to enable the export for your organization.
Yes. Filter by date with created_from and created_to, and by member with user_email. Without filters the export covers every creation of the organization.
It depends on the number of creations. Small organizations are ready in seconds; an organization with millions of creations can take several hours. Use webhook_url instead of polling for long exports.
One day after it is ready. Each download link lasts 60 minutes, and you can request a new one as often as you need within that day.