Partner API

How to fix no_targets, invalid_type and missing_media in the MultiPost API

8 min read

Quick answer

Fix MultiPost 400 validation errors before retrying: type must be text, image, video or slideshow; targets must contain at least one supported platform; image uses imageUrl, video uses videoUrl and slideshow uses imageUrls. Build target choices from GET /api/v1/accounts so misspelled or stale platform values do not collapse into no_targets.

01.

How do you fix no_targets, invalid_type and missing_media in a MultiPost API request?

Fix these 400 responses by validating the payload before sending it: use text, image, videoor slideshow as the type, include at least one supported target, and supply the media field required by that type.

Treat the error code as a request-construction problem, not a transient network failure. Correct the payload deliberately instead of retrying the same JSON with exponential backoff.

02.

What is the fast way to build a valid request for MultiPost?

Fetch GET /api/v1/accounts after the customer uses MultiPost accounts, persist an exact platform-and-handle target and construct the media field from the chosen post type on your server.

Confirm Pro or Agency through GET /api/v1/me and send the customer to plans and billing when API publishing is not enabled.

03.

Which media field belongs to each supported post type?

Text needs no media field, image uses imageUrl, video usesvideoUrl and slideshow uses imageUrls. The public API type is slideshow; the route maps it to the internal carousel format.

For URL-access failures after the shape is valid, switch to the guide on diagnosing media_unavailable rather than changing the request type.

04.

Why can a non-empty target array still become no_targets?

MultiPost keeps only entries whose platform is a supported platform identifier. An array of misspelled or unsupported platform values is therefore empty after validation and returnsno_targets.

Build selections from the live accounts response and follow the guide to create a stable connected-account picker instead of accepting arbitrary platform text.

05.

How does MultiPost make payload validation actionable?

MultiPost returns a distinct code and message for unsupported types, missing targets and missing media, allowing your SaaS to point the user to the exact field that needs correction. Once validation passes, inspect per-target publish results as a separate execution stage.

Frequently asked questions

Which values are accepted for type?

Use text, image, video or slideshow in the public Partner API request.

Which media field does each visual type require?

Image uses imageUrl, video uses videoUrl and slideshow uses imageUrls.

Why can a filled target array return no_targets?

Unsupported or misspelled platform values are filtered out, leaving no valid target.

Should a client retry the same 400 payload automatically?

No. Correct the indicated field first because an unchanged validation error is not transient.

Start free

Catch payload mistakes before they enter the publishing worker.

MultiPost returns field-specific validation codes while your SaaS builds the corrected request.

Back to the blog