{"openapi":"3.1.0","jsonSchemaDialect":"https://json-schema.org/draft/2020-12/schema","info":{"title":"VOX–Populi Realize v1 provider contract","version":"1.0.0","description":"Exact provider and callback contract for VOX and Populi implementers. Populi provider routes are available when POPULI_REALIZE_ENABLED is true. VOX's hosted commissioning API is documented separately in docs/openapi.yaml. Public Populi /api/cost estimates are a separate interface."},"servers":[{"url":"https://cruelty.cam"}],"paths":{"/v1/realize/creators/{creator_id}/capabilities":{"get":{"operationId":"getProviderCapabilities","description":"Populi advertises supported creator capabilities. VOX may proxy discovery.","tags":["Populi provider contract"],"security":[{"serviceBearer":[]}],"servers":[{"url":"https://cruelty.cam"}],"parameters":[{"name":"creator_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatorCapabilities"}}}},"default":{"description":"Stable Realize error code; see protocol error table.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RealizeError"}}}}}},"servers":[{"url":"https://cruelty.cam"}]},"/v1/realize/provider-prices":{"post":{"operationId":"quoteProviderPrice","description":"Populi issues an authoritative provider base-price reservation with expiration. This is not the final VOX commission quote.","tags":["Populi provider contract"],"security":[{"serviceBearer":[]}],"servers":[{"url":"https://cruelty.cam"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderPricingRequest"}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderPriceQuote"}}}},"default":{"description":"Stable Realize error code; see protocol error table.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RealizeError"}}}}}},"servers":[{"url":"https://cruelty.cam"}]},"/v1/realize/fulfillments":{"post":{"operationId":"submitProviderFulfillment","description":"Populi accepts externally funded generation. Authenticate VOX and validate funding authorization; bypass Stripe and credit balances. Replays return the original job.","tags":["Populi provider contract"],"security":[{"serviceBearer":[]}],"servers":[{"url":"https://cruelty.cam"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderFulfillmentRequest"}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}}],"responses":{"202":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentResult"}}}},"default":{"description":"Stable Realize error code; see protocol error table.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RealizeError"}}}}}},"servers":[{"url":"https://cruelty.cam"}]},"/v1/realize/fulfillments/{fulfillment_request_id}":{"get":{"operationId":"getProviderFulfillment","description":"Populi returns the current durable generation status and final artifact references.","tags":["Populi provider contract"],"security":[{"serviceBearer":[]}],"servers":[{"url":"https://cruelty.cam"}],"parameters":[{"name":"fulfillment_request_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentResult"}}}},"default":{"description":"Stable Realize error code; see protocol error table.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RealizeError"}}}}}},"servers":[{"url":"https://cruelty.cam"}]},"/v1/realize/webhooks/populi":{"post":{"operationId":"receivePopuliFulfillmentCallback","description":"VOX receives signed, idempotent fulfillment events. Acknowledge after durable storage; polling remains the recovery path.","tags":["VOX callback contract"],"security":[{"webhookSignature":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentResult"}}}},"parameters":[{"name":"X-Realize-Webhook-Id","in":"header","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9:_-]{1,256}$"}},{"name":"X-Realize-Webhook-Timestamp","in":"header","required":true,"schema":{"type":"string","pattern":"^(0|[1-9][0-9]{0,12})$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookAcknowledgment"}}}},"default":{"description":"Existing VOX lowercase compatibility error; see docs/openapi.yaml.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"error":{"type":"string"}},"required":["code","error"]}}}}}},"servers":[{"url":"https://vox.gold"}]},"/v1/realize/artifacts":{"get":{"operationId":"getProviderArtifact","description":"Returns an immutable generated artifact through a stable Populi-origin URL. The URL is public, matching the public immutable media object it serves.","tags":["Populi provider contract"],"security":[],"parameters":[{"name":"fulfillment_request_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":256}},{"name":"output_index","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0}}],"responses":{"200":{"description":"Generated artifact bytes.","content":{"video/mp4":{"schema":{"type":"string","format":"binary"}}},"headers":{"Accept-Ranges":{"schema":{"type":"string"}},"ETag":{"schema":{"type":"string"}}}},"206":{"description":"Requested byte range of the generated artifact.","content":{"video/mp4":{"schema":{"type":"string","format":"binary"}}},"headers":{"Content-Range":{"schema":{"type":"string"}}}},"404":{"description":"The artifact is not available."},"416":{"description":"The requested byte range is invalid."}}},"servers":[{"url":"https://cruelty.cam"}]}},"components":{"securitySchemes":{"serviceBearer":{"type":"http","scheme":"bearer","description":"Scoped server-to-server token; never a commissioner-supplied credential. See docs/realize-populi-handoff.md."},"webhookSignature":{"type":"apiKey","in":"header","name":"X-Realize-Webhook-Signature","description":"v1=HMAC-SHA256(secret, timestamp + '.' + raw_body), lowercase hex."}},"schemas":{"AcceptQuoteRequest":{"$ref":"./schemas/realize-v1.schema.json#/$defs/AcceptQuoteRequest"},"AcceptQuoteResponse":{"$ref":"./schemas/realize-v1.schema.json#/$defs/AcceptQuoteResponse"},"AdditionalBeneficiary":{"$ref":"./schemas/realize-v1.schema.json#/$defs/AdditionalBeneficiary"},"CommissionFulfillmentState":{"$ref":"./schemas/realize-v1.schema.json#/$defs/CommissionFulfillmentState"},"CommissionPaymentState":{"$ref":"./schemas/realize-v1.schema.json#/$defs/CommissionPaymentState"},"CommissionState":{"$ref":"./schemas/realize-v1.schema.json#/$defs/CommissionState"},"Commission":{"$ref":"./schemas/realize-v1.schema.json#/$defs/Commission"},"CreateCommissionRequest":{"$ref":"./schemas/realize-v1.schema.json#/$defs/CreateCommissionRequest"},"CreatePaymentIntentRequest":{"$ref":"./schemas/realize-v1.schema.json#/$defs/CreatePaymentIntentRequest"},"CreatorCapabilities":{"$ref":"./schemas/realize-v1.schema.json#/$defs/CreatorCapabilities"},"CreatorPricingRequest":{"$ref":"./schemas/realize-v1.schema.json#/$defs/CreatorPricingRequest"},"CreatorPricingResponse":{"$ref":"./schemas/realize-v1.schema.json#/$defs/CreatorPricingResponse"},"DistributionReward":{"$ref":"./schemas/realize-v1.schema.json#/$defs/DistributionReward"},"ExternalFundingAuthorization":{"$ref":"./schemas/realize-v1.schema.json#/$defs/ExternalFundingAuthorization"},"FulfillmentRequest":{"$ref":"./schemas/realize-v1.schema.json#/$defs/FulfillmentRequest"},"FulfillmentResult":{"$ref":"./schemas/realize-v1.schema.json#/$defs/FulfillmentResult"},"GenerationParameters":{"$ref":"./schemas/realize-v1.schema.json#/$defs/GenerationParameters"},"PaymentIntent":{"$ref":"./schemas/realize-v1.schema.json#/$defs/PaymentIntent"},"PayoutRecipient":{"$ref":"./schemas/realize-v1.schema.json#/$defs/PayoutRecipient"},"PayoutRole":{"$ref":"./schemas/realize-v1.schema.json#/$defs/PayoutRole"},"ProvenanceRecord":{"$ref":"./schemas/realize-v1.schema.json#/$defs/ProvenanceRecord"},"ProviderFulfillmentRequest":{"$ref":"./schemas/realize-v1.schema.json#/$defs/ProviderFulfillmentRequest"},"ProviderPriceQuote":{"$ref":"./schemas/realize-v1.schema.json#/$defs/ProviderPriceQuote"},"ProviderPricingRequest":{"$ref":"./schemas/realize-v1.schema.json#/$defs/ProviderPricingRequest"},"RealizeErrorCode":{"$ref":"./schemas/realize-v1.schema.json#/$defs/RealizeErrorCode"},"RealizeError":{"$ref":"./schemas/realize-v1.schema.json#/$defs/RealizeError"},"RealizeQuote":{"$ref":"./schemas/realize-v1.schema.json#/$defs/RealizeQuote"},"ReferralAttribution":{"$ref":"./schemas/realize-v1.schema.json#/$defs/ReferralAttribution"},"RevenueRightsAgreement":{"$ref":"./schemas/realize-v1.schema.json#/$defs/RevenueRightsAgreement"},"RightsAgreementAcceptance":{"$ref":"./schemas/realize-v1.schema.json#/$defs/RightsAgreementAcceptance"},"RightsAgreementTermination":{"$ref":"./schemas/realize-v1.schema.json#/$defs/RightsAgreementTermination"},"RightsAllocation":{"$ref":"./schemas/realize-v1.schema.json#/$defs/RightsAllocation"},"RightsArtifactScope":{"$ref":"./schemas/realize-v1.schema.json#/$defs/RightsArtifactScope"},"RightsAuditEvent":{"$ref":"./schemas/realize-v1.schema.json#/$defs/RightsAuditEvent"},"RightsParty":{"$ref":"./schemas/realize-v1.schema.json#/$defs/RightsParty"},"RightsPayoutInstruction":{"$ref":"./schemas/realize-v1.schema.json#/$defs/RightsPayoutInstruction"},"RightsRevenueAllocation":{"$ref":"./schemas/realize-v1.schema.json#/$defs/RightsRevenueAllocation"},"RightsRevenueEvent":{"$ref":"./schemas/realize-v1.schema.json#/$defs/RightsRevenueEvent"},"RightsTerminationAcceptance":{"$ref":"./schemas/realize-v1.schema.json#/$defs/RightsTerminationAcceptance"},"SettlementAcknowledgment":{"$ref":"./schemas/realize-v1.schema.json#/$defs/SettlementAcknowledgment"},"SettlementInstruction":{"$ref":"./schemas/realize-v1.schema.json#/$defs/SettlementInstruction"},"UsdcAtomic":{"$ref":"./schemas/realize-v1.schema.json#/$defs/UsdcAtomic"},"WebhookAcknowledgment":{"$ref":"./schemas/realize-v1.schema.json#/$defs/WebhookAcknowledgment"}}}}