1. Media
swonkie.dev
  • Introduction
  • 🆕 MCP Server
  • Changelog
  • Quick Start
  • Social Networks
    • Instagram v2
    • Google My Business
    • YouTube
    • X (Twitter)
    • Threads
    • Instagram
    • LinkedIn
    • TikTok
    • Facebook
  • ✨ Andie
    • Generate an Image
      POST
  • Search
    • Search Profiles
      GET
  • Profiles
    • My Profiles
      GET
    • Competitors
      GET
  • Competitors
    • Add Competitor
      POST
    • Delete Competitor
      DELETE
  • Insights
    • Getting Started
    • My Profile Insights Metrics
    • My Profile Insights
    • My Profile Insights Posts
    • Competitor Insights Metrics
    • Competitor Insights
    • Competitor Insights Posts
  • Posts
    • Getting Started
    • Limits by Social Network
    • List Posts
    • Get a Post
    • Create a Post
    • Update a Post
    • Validate a Post
    • Delete a Post
    • Change Post Stage
  • Labels
    • Getting Started
    • List Labels
    • Create a Label
  • Media
    • Get a Media
      GET
    • Create a Media
      POST
    • Upload File to Media
      PUT
    • Confirm Uploaded Media
      PATCH
    • Delete a Media
      DELETE
    • Create a Media from URL
      POST
  • Examples
    • Publish
Back to Home
Back to Home
Login
  1. Media

Confirm Uploaded Media

PATCH
/media/{mediaId}
Once you finish uploading the file using the PUT {uploadUrl}, you must use the mediaId generated from the POST /media request to perform this request to confirm the media has been sucessfully uploaded.
If you do not confirm the upload your media will stay in PROCESSING status and eventually be deleted.
Without this confirmation the media is unusable and posts WILL NOT get published
After confirmation, use GET /media/:mediaId to check the status and understand if it is already usable, in SUCCESS status, it shouldn't take more than a few minutes.

Request

Path Params

Header Params

Responses

🟢200Success
application/json
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://api.swonkie.dev/v2/media/TWVkaWFJZDk4NzY1NDMyMQ' \
--header 'X-API-ID: ' \
--header 'X-API-KEY: '
Response Response Example
{
    "id": "string",
    "name": "string",
    "path": "http://example.com",
    "preview": "http://example.com",
    "type": "string",
    "status": "PROCESSING",
    "specs": {
        "width": 0,
        "height": 0,
        "duration": 0,
        "fileSizeBytes": 0
    },
    "createdAt": "2019-08-24T14:15:22.123Z"
}
Modified at 2026-06-19 17:25:24
Previous
Upload File to Media
Next
Delete a Media
Built with