Skip to main content
POST
No downloadable URL? Initialize a direct-to-GCP upload for a local image or video. Returns upload_url (a private upload capability, NOT a publishing URL). The client must PUT the actual file bytes there, then call complete_media_upload. Reuse one completed upload for multiple platforms. Never type large base64 into a tool call. Claude/ChatGPT chat attachments require a client that can transfer their bytes; this tool does not itself read a local path or chat attachment. 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/v1/media/upload-session Content type: application/json Authentication: x-api-key: YOUR_SAVED_API_KEY MCP tool: create_media_upload. See MCP Setup for AI clients.

Request parameters

string
Active workspace ID or current name in your organization. Optional header alternative to passing workspace in the body.
string
required
Original filename, for example campaign.mp4. Not a local path to read.
string
required
Actual media MIME type. MP4 videos use video/mp4. Allowed values: image/jpeg, image/png, image/webp, image/gif, video/mp4, video/quicktime, video/webm.
number
required
Exact binary file size in bytes; currently at most 1 GiB.
string
Browser origin only when using a permitted browser frontend. Omit for n8n and scripts. Allowed values: https://dashboard.creatorinsights.in.
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.

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.
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/create_media_upload. 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.