Collections

Generate a draft variant reference

Costs 1 credit. Uses the frozen source references and the requested variant description. Reuse operation_id to retry the same job. Poll the job, inspect candidates with GET variant, then approve the selected candidate.

post/v1/collections/{id}/variants/{variantId}/reference

Request

  • Base URL: https://api.masko.ai
  • URL: https://api.masko.ai/v1/collections/{id}/variants/{variantId}/reference
  • Auth: HTTP bearer

Path parameters

idstring uuid required
variantIdstring uuid required

Headers

Idempotency-Keystring

Account-scoped key (1 to 255 characters, ideally a UUID). Retries must preserve the credential workspace, effective API version, URL, content type and exact body bytes, including multipart boundaries; different inputs return 409 idempotency_key_reused. Completed responses, including 500 errors, replay for 24 hours after completion with current resource access checked again. Running or unconfirmed executions return 409 idempotency_request_in_progress and do not expire automatically. A receipt persistence failure returns 503 idempotency_persistence_failed: retry only with the same key and inspect the operation outcome before starting a new request.

Request body

operation_idstring uuid required

Client-generated UUID. Reuse to retry the same candidate job without another charge.

Response

Reference generation queued

Changes

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