v2

Attaches media to an existing post, or removes it ("fileDeleted": true). Use "fileUrl" after generate_image/generate_video finishes (AI-generated result). Use "fileBase64" + "mimeType" instead when the user gave you their OWN photo/video to use (e.g. sent in this chat) — pass its raw bytes directly, it will be saved and attached as-is.

post/v2/content/update-image

Request

  • Base URL: https://api.inside.ad/api
  • URL: https://api.inside.ad/api/v2/content/update-image
  • Auth: one of:
    • OAuth 2 (authorization code, authorization URL https://api.inside.ad/api/oauth/authorize, token URL https://api.inside.ad/api/oauth/token, scopes: content:write)
    • API key in header authorization

Query parameters

userIdnumber required

Telegram userId owner of the content

Request body

platform'instagram' | 'threads' | 'telegram' required
idnumber required

The content id to update

fileUrlstring nullable

URL of an already-hosted image/video to attach — typically the result of generate_image/generate_video (AI-generated), or any other URL you already have.

fileBase64string nullable

Base64-encoded raw image/video bytes to upload directly. Use this when the user sent you their OWN photo/video (e.g. in the Telegram support chat, resolved via the same file-download path used for vision attachments) and it should become the post's media — NOT an AI-generated one. Requires "mimeType".

mimeTypestring nullable

MIME type of "fileBase64" (e.g. "image/jpeg", "video/mp4"). Required when fileBase64 is set.

fileDeletedboolean nullable

Set true to remove the existing media instead of attaching a new one. Mutually exclusive with fileUrl/fileBase64.

Response

Default Response

successboolean

Changes

No recorded changes to this operation across all 1 revision of this API.