Skip to main content
POST
Have a direct downloadable file URL? Use file_url to copy it from any accessible HTTP/HTTPS cloud host into Creator Insights storage; URLs must return actual media without login. Small inline files up to 6 MiB can use file_base64. If you only have a local file or a larger file, use create_media_upload, transfer bytes, then complete_media_upload. Returns ready and file_url only after storage verification. Reuse that URL across platforms. Managed files are cleaned after all referencing publishing finishes; schedules retain their media. External source URLs are never deleted. Verified uploads cost 2 credits once at completion; initialization and repeated completion are not charged again.
Examples use illustrative values. The playground sends a real request. Intelligence can consume plan credits. Publishing examples save drafts.

Endpoint

POST https://api.creatorinsights.in/api/v1/tools/upload_media_file Content type: application/json Authentication: x-api-key: YOUR_SAVED_API_KEY MCP tool: upload_media_file. See MCP Setup for AI clients. For paid MCP calls in an organization with multiple workspaces, pass the intended workspace ID. Calls without it are rejected before execution.

Request parameters

string
Active workspace ID or current name in your organization. Optional header alternative to passing workspace in the body.
string
Public URL of the media file to ingest and optimize
string
Media format type Allowed values: image, video.
string
Workspace ID, current name, or immutable publishing key in the authenticated organization. Required for paid requests when more than one active workspace exists; pass an active workspace to select its accounts and data. Discover IDs with list_workspaces; reuse the selected canonical ID throughout the workflow. Owned workspace ID, current name, or immutable publishing key. Omit to use the credential’s assigned workspace; a legacy unbound key uses the primary workspace. The browser selection is not inferred. Discover IDs with list_workspaces; reuse the selected canonical ID throughout the workflow.
object
string
Base64 data URI or base64 file contents (up to 6 MB). Use file_url for large files. Local paths on your computer are not readable by the remote server.
string
MIME type for base64 content. Checked against actual file signatures.

Request example

Send these arguments directly as the JSON body.

Response example

HTTP 200. Illustrative values; optional fields can be omitted, null, or empty. Additional platform fields may be returned.

Response fields

boolean
required
Whether this operation succeeded. Also check HTTP status and nested platform statuses.
string
required
The invoked tool name.
number
required
Creator Insights plan credits for this call; the example is illustrative.
object
required
Operation-specific payload. See the nested field table and response example below.
The interactive schema includes deeper nested fields. Sample fields are descriptive, not a promise that every record includes them.

n8n and JSON tool endpoint

POST https://api.creatorinsights.in/api/v1/tools/upload_media_file. Use Header Auth with x-api-key and body content type JSON. This alias returns the n8n envelope below; included operations can report zero credits_deducted.

Errors

Handle non-2xx responses before mapping data. Error codes vary with the cause; these are representative examples. A 429 response may be plain text. Never treat a queued post as published or blindly retry a partial publication.

File transfer and retention

See Media uploads for direct file transfer, resumable uploads, n8n binary handling, MCP attachment limits, signed URLs and deletion after all publishing finishes.