posts

Create posts

Create several posts in one call, each exactly as create_post would.

Use this instead of many create_post calls: "a post a day for a month" is one call. Each item succeeds or fails on its own, so read results: an item that failed says why in error, and nothing was saved for it.

Errors: 400 invalid_value: The business_id is not a valid UUID. 401 authentication_required: API key or token is missing, invalid, or revoked. 403 permission_denied: Your plan does not include API access, or this business is not in your org. 404 resource_not_found: No business with that ID exists. 422 validation_error: No posts, more than 50, or an item is not a valid create_post body. 429 rate_limit_exceeded: You sent too many requests this minute.

post/api/businesses/{business_id}/posts/batch

Request

  • Base URL: https://api.mymarky.ai
  • URL: https://api.mymarky.ai/api/businesses/{business_id}/posts/batch
  • Auth: HTTP bearer

Path parameters

business_idstring required

A UUID identifier.

Headers

Idempotency-Keystring nullable

Optional. Send a unique value (e.g. a UUID) to make this create request safe to retry. A repeat with the same key returns the original response instead of creating a duplicate. Cached for 24h, scoped to your org. Reusing a key with a different body returns 422.

Marky-Version'2026-04-08' | '2026-07-17' | '2026-08-02' | '2026-08-04' | '2026-08-06'
Example:2026-08-06

Opt into a dated API version. Omit to stay on the floor (2026-04-08) forever — unpinned clients never break. Pin to a newer date (e.g. 2026-08-06) to receive the newest response shapes. Unknown values fall back to the floor. See https://docs.mymarky.ai for the versioning model.

Request body

idempotency_keystring nullable

Makes a retry safe: send the same key with the same posts and you get the original results back instead of duplicates. Item i is stored under '<key>:<i>'. Same as the Idempotency-Key header; the header wins if both are sent.

Response

Successful Response

createdinteger required

How many items were saved.

Changes

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