Skip to main content

Choose a workspace

Use the same owned workspace ID or current name for initialization, completion and publishing. Get it from dashboard workspace settings. A bound credential uses its assigned workspace when omitted; a legacy unbound key selects the primary workspace; it does not use the browser selection. The Default examples below are valid only when that owned workspace or migration alias exists.

Choose a media source

Existing URL: Pass a direct, accessible image/video URL to the publishing tool. It may be hosted on any cloud provider; it must return the actual file without login. Preview pages and social watch pages are not direct file URLs. To copy an external file into Creator Insights managed storage first, use upload_media_file with file_url. Local file, no URL: Call create_media_upload, have the client send the actual bytes directly to GCP, then call complete_media_upload. The completion response’s file_url can be passed to all selected publishing platforms. You upload the source file once; each platform receives its own delivery. Small inline file: Existing upload_media_file also accepts file_base64 up to 6 MiB. Encode with client software, not language-model-generated text. Direct uploads and URL imports are limited to 1 GiB (1073741824 bytes). A larger upload is rejected before a session is issued. Social platforms also impose their own size, codec, duration and aspect-ratio restrictions.

Upload size and status

The maximum file size is 1 GiB (1073741824 bytes). A file up to 1 GiB is accepted by the updated contract; larger files are rejected before a session or completion charge is created. Inline base64 is limited to 6 MiB. The API and workers must be deployed together before relying on the increased limit. Initialization returns status: uploading, an upload_id and a temporary upload_url. The client transfers the bytes and displays its own transfer progress. MCP does not provide a live percentage-progress stream. The storage transfer returns 200/201 when finished; 308 means a resumable transfer is still incomplete. Call complete_media_upload afterward. It checks the stored size, MIME type and file signature before returning status: ready and a publishing URL. A completion call during transfer returns UPLOAD_INCOMPLETE; wrong bytes/type or an expired session returns an error, never a ready result. A ready upload is not a published post; poll publishing status separately. Workspace and organization ownership are checked at completion and publishing. The upload URL grants access to one upload object and must be kept private. It is an intentional upload capability, not your Google service-account key. New media URLs follow the existing dashboard bucket access model; access to a public media URL does not require MCP authorization. Do not place private documents or credentials in media or workspace text.

Direct file upload through REST

The application server receives only metadata; video bytes go directly from the client to GCP. These JSON endpoints require your normal Creator Insights API key. MCP exposes the same operations under the tool names above; tool results do not use the REST outer envelope.
  1. Start an upload with the exact binary size and MIME type:
Example response (illustrative):
  1. Send your file bytes to data.upload_url. It is a temporary bearer capability scoped to one object, not a public bucket and not a publishing URL. Keep it private. Do not send your Creator Insights API key to GCP:
Do not send JSON, a file path string or a multipart wrapper to that PUT URL. The body must be the actual file bytes. A successful final storage response is 200 or 201. Chunked transfers can return 308 while incomplete. To resume after an interruption, follow GCP’s resumable upload protocol; query the persisted offset before resending chunks. The initialized session fixes the object name and declared content length and disallows overwriting an existing object.
  1. Complete and verify the upload using the same workspace:
A ready payload includes upload_id, file_url, url, url_expires_at, mime_type, media_type, size_bytes and workspace. Only publish after status: ready. A 409 UPLOAD_INCOMPLETE means storage has not completed the file; finish the transfer and repeat completion, not upload initialization. Wrong size or actual file signature produces an error and cannot become ready. Another organization’s or workspace’s upload cannot be completed or claimed.
  1. Reuse data.file_url as a media URL in publish_multi_platform_post, publish_youtube_video, or other supported publishing operations. Save the publishing ID and inspect every platform until posted/failed. For retrying the same publishing request use the same idempotency key and exact arguments. Do not republish platforms that already succeeded.

n8n and API-key tool aliases

The same metadata calls are available at POST https://api.creatorinsights.in/api/v1/tools/create_media_upload and POST https://api.creatorinsights.in/api/v1/tools/complete_media_upload. Send flat JSON arguments. These aliases return status, tool, credits_deducted and nested data; uploads consume 2 credits once after verified completion under an eligible plan; initialization and repeated completion do not add a second charge. Download-plus-upload imports cost 4 on successful completion. In n8n: initialize with an authenticated JSON HTTP Request node; keep the input file’s binary data; use another HTTP Request node with method PUT and body type n8n Binary File to transfer it to the returned upload URL; complete with the upload ID; pass the resulting file URL into publishing. The storage PUT does not use the Creator Insights credential. The file does not travel through the Creator Insights API server. A public tool request is still JSON, not multipart. Five unfinished upload sessions per organization are allowed at once; return to an existing session instead of repeatedly creating new ones.

Background video imports

YouTube video downloading/import is not supported. To publish to YouTube, upload a video file you already have using the media upload tools. Use import_video_to_gcp for a supported public video URL, then poll check_media_import_status with the returned task_id and the same workspace. A queued or processing task is not ready to publish. New MCP imports store the video in the existing dashboard storage bucket under the MCP-managed prefix and charge 4 credits once on successful completion, covering download and upload; they do not add a separate 2-credit upload charge. Existing tasks retain their recorded storage and billing policy. Status reads return the stored dashboard media URL for completed imports. Use the completed video URL for publishing within the managed retention window. IMPORT_PROVIDER_UNAVAILABLE indicates a service-side video-download provider problem; reconnecting your social account will not fix it. MEDIA_STORAGE_UNAVAILABLE means managed storage configuration or access needs attention. These changes require the API and import workers to be deployed together. Text belongs in the publishing tool’s content/caption field. Plain text documents are not supported image/video uploads.

MCP and attached files

AI clients should discover the upload tools, use a direct URL if available, and otherwise initialize a direct upload. The client must transfer the actual file before calling completion. A remote MCP server cannot read a path in Claude’s sandbox, a user’s laptop, or an arbitrary chat attachment. This contract does not claim automatic attachment forwarding in Claude or ChatGPT. Use a client with filesystem and permitted HTTP transfer capabilities, or upload through an available user interface and supply a direct file URL. Never fabricate a URL or generate megabytes of base64 as language-model output.

Dashboard storage and lifetime

New MCP uploads use the same bucket, credentials and media URL access model as dashboard uploads, configured by GCP_BUCKET_NAME. They return a direct media URL with url_expires_at: null; no additional one-hour signing requirement is added. A direct URL remains usable while the managed object exists. Workspace/organization ownership is checked by the API, but the URL follows the dashboard bucket’s access policy. Existing records keep their original bucket and URL behavior. Managed source media is eligible for deletion once every referencing post and platform is posted, cancelled, or deleted. Active publishing leases prevent deletion during transfers. Scheduled, queued and draft posts retain the source; failed posts retain a 24-hour retry window after their last update. Reusing the file in another post extends its lifetime. Unused/incomplete uploads expire after 24 hours. A periodic cleanup worker retries failed deletion and cancels unfinished upload sessions. Cleanup is asynchronous, not an exact wall-clock deletion guarantee. Physical retention can additionally depend on the bucket’s soft-delete/versioning settings. Customer-owned external URL sources are never deleted. This managed retention applies to media ingested through these MCP/API upload operations. Pre-existing dashboard/library assets are not retroactively deleted.

Storage errors

If MEDIA_STORAGE_UNAVAILABLE is returned, the file is not confirmed ready. Contact Creator Insights support with the upload ID and time of the request, without sharing your API key or temporary upload URL. Keep an existing upload ID when retrying completion to avoid duplicate uploads. Use the returned error and status rather than assuming a transfer succeeded.