{"openapi":"3.1.0","info":{"title":"AdsCreator API","version":"1.1.0","description":"AI-powered ad creative generator. Extract brand identity from any URL and generate on-brand ad creatives for Meta, Google, LinkedIn, X, and TikTok.\n\nAI agents: an agent can create its user's account (POST /api/agent-accounts → POST /api/agent-accounts/verify returns an API key and 5 free credits) and get Stripe checkout links for credit packs (POST /api/credits/purchase). Video ads are not described here: use the agent MCP server at https://www.adscreator.com/mcp (tool create_video_ad; chat apps that sign in with OAuth use https://www.adscreator.com/mcp/oauth). Guide: https://www.adscreator.com/agents.md.","contact":{"name":"AdsCreator","url":"https://www.adscreator.com"}},"servers":[{"url":"https://www.adscreator.com","description":"Production"}],"externalDocs":{"description":"AdsCreator for agents","url":"https://www.adscreator.com/agents.md"},"x-mcp-servers":[{"url":"https://www.adscreator.com/mcp","transport":"streamable-http","auth":"optional (Bearer API key or OAuth token); agents can sign up here"},{"url":"https://www.adscreator.com/mcp/oauth","transport":"streamable-http","auth":"required (OAuth sign-in or Bearer API key)"}],"security":[{"bearerAuth":[]}],"paths":{"/api/brands":{"post":{"operationId":"extractBrand","summary":"Extract brand from URL","description":"Extract brand identity (colors, logos, fonts, tone, description) from any website URL. Returns cached data if the brand was previously imported by your organization. Costs 0 credits.","tags":["Brands"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["domain"],"properties":{"domain":{"type":"string","description":"Website domain to extract brand from. Can include or omit protocol and www.","example":"stripe.com"}}}}}},"responses":{"200":{"description":"Brand extracted successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandResponse"}}}},"400":{"description":"Domain is required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/Unauthorized"}}},"get":{"operationId":"listBrands","summary":"List brands","description":"Returns all brands in your organization, ordered by creation date (newest first).","tags":["Brands"],"responses":{"200":{"description":"List of brands","content":{"application/json":{"schema":{"type":"object","properties":{"brands":{"type":"array","items":{"$ref":"#/components/schemas/BrandSummary"}}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"}}}},"/api/brands/{id}":{"get":{"operationId":"getBrand","summary":"Get brand details","description":"Returns full brand details including all extracted data.","tags":["Brands"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Brand ID"}],"responses":{"200":{"description":"Brand details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"}}}},"/api/generate":{"post":{"operationId":"generateAds","summary":"Generate ad creatives","description":"Generate AI ad creatives for a brand. By default returns an NDJSON stream with real-time progress events. Add ?sync=true to get a simple JSON response instead (recommended for agents). Credits: count × number of formats.","tags":["Generation"],"parameters":[{"name":"sync","in":"query","required":false,"schema":{"type":"boolean","default":false},"description":"When true, returns a plain JSON response with all ads instead of an NDJSON stream. Recommended for programmatic/agent use."},{"name":"async","in":"query","required":false,"schema":{"type":"boolean","default":false},"description":"When true, returns 202 with a job ID immediately. Poll GET /api/jobs/{jobId} for status. Supports optional webhookUrl in the request body for completion callbacks."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateRequest"}}}},"responses":{"200":{"description":"Ads generated. Response format depends on sync parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateSyncResponse"}},"application/x-ndjson":{"schema":{"type":"string","description":"Newline-delimited JSON stream. Each line is a JSON object with an 'event' field: start, status, ad_created, ad_complete, ad_failed, done, error."}}}},"400":{"description":"brandId is required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/InsufficientCredits"}}}},"/api/creatives":{"get":{"operationId":"listCreatives","summary":"List created ads","description":"Returns a paginated list of completed ad creatives in your organization.","tags":["Creatives"],"parameters":[{"name":"search","in":"query","required":false,"schema":{"type":"string"},"description":"Search by headline or brand name"},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"},"description":"Pagination cursor — use the nextCursor value from the previous response"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":24,"minimum":1,"maximum":100},"description":"Results per page"}],"responses":{"200":{"description":"List of ad creatives","content":{"application/json":{"schema":{"type":"object","properties":{"creatives":{"type":"array","items":{"$ref":"#/components/schemas/Creative"}},"nextCursor":{"type":"string","nullable":true,"description":"Pass this as the cursor parameter to get the next page. Null if no more results."},"total":{"type":"integer","description":"Total number of matching creatives"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"}}}},"/api/ads/{id}":{"delete":{"operationId":"deleteAd","summary":"Delete ad","description":"Delete an ad creative by ID.","tags":["Creatives"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Ad ID"}],"responses":{"200":{"description":"Ad deleted","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"}}}},"/api/ads/{id}/edit":{"post":{"operationId":"editAd","summary":"Edit ad creative","description":"Edit an existing ad creative using a text prompt. The AI will modify the ad based on your instructions. Costs 1 credit.","tags":["Creatives"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Ad ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["prompt"],"properties":{"prompt":{"type":"string","description":"Natural language instruction for how to edit the ad, e.g. 'Change the headline to emphasize speed' or 'Make the background darker'","example":"Change the headline to emphasize speed"}}}}}},"responses":{"200":{"description":"Ad edited successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Ad"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/InsufficientCredits"},"404":{"$ref":"#/components/responses/NotFound"}}}},"/api/ads/{id}/resize":{"post":{"operationId":"resizeAd","summary":"Resize ad","description":"Resize an existing ad to different formats. Costs 1 credit per new format.","tags":["Creatives"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Ad ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["formats"],"properties":{"formats":{"type":"array","items":{"$ref":"#/components/schemas/AdFormat"},"description":"Target formats to resize to","example":["landscape","story"]}}}}}},"responses":{"200":{"description":"Ad resized successfully"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"$ref":"#/components/responses/InsufficientCredits"},"404":{"$ref":"#/components/responses/NotFound"}}}},"/api/credits":{"get":{"operationId":"getCredits","summary":"Check credit balance","description":"Returns your organization's current credit balance, usage, and trial status.","tags":["Account"],"responses":{"200":{"description":"Credit balance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Credits"}}}},"401":{"$ref":"#/components/responses/Unauthorized"}}}},"/api/usage":{"get":{"operationId":"getUsage","summary":"API usage statistics","description":"Returns API usage statistics for the current calendar month including request counts by endpoint, credits consumed, error rates, and average response times.","tags":["Account"],"responses":{"200":{"description":"Usage statistics","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Usage"}}}},"401":{"$ref":"#/components/responses/Unauthorized"}}}},"/api/agent-accounts":{"post":{"operationId":"agentSignUp","summary":"Agent sign-up: send a verification code","description":"Starts an account for an email (or signs back in to an existing one): the owner gets a 6-digit code by email. Always 202, whether or not the account exists. Durable per-IP, per-domain and per-inbox limits apply.","tags":["Agents"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email","description":"The account owner's email"},"agentName":{"type":"string","maxLength":80,"description":"Shown to the human in the email"}},"required":["email"]}}}},"responses":{"202":{"description":"Code sent","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["verification_sent"]},"next":{"type":"string"}}}}}},"400":{"description":"invalid_body, invalid_email or disposable_email","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentError"}}}},"429":{"description":"rate_limited (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentError"}}}},"503":{"description":"unavailable or send_failed (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentError"}}}}}}},"/api/agent-accounts/verify":{"post":{"operationId":"agentVerify","summary":"Agent sign-up: exchange the code for an API key","description":"Checks and consumes the emailed code, issues an ac_sk_ API key for the user's workspace and, once per account and inbox ever, grants the agent trial (5 credits by default).","tags":["Agents"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email"},"code":{"type":"string","pattern":"^\\d{6}$"},"keyName":{"type":"string","maxLength":80,"description":"Label shown in the dashboard's API key list"}},"required":["email","code"]}}}},"responses":{"200":{"description":"API key issued","content":{"application/json":{"schema":{"type":"object","properties":{"apiKey":{"type":"string","description":"Secret key (ac_sk_…), shown once"},"organizationId":{"type":"string"},"credits":{"type":"integer","description":"Balance after any trial grant"},"trialCreditsGranted":{"type":"integer","description":"0 when the account already had its trial"},"docs":{"type":"string","format":"uri"}},"required":["apiKey","organizationId","credits","trialCreditsGranted"]}}}},"400":{"description":"invalid_body, invalid_email, invalid_code, code_expired or code_locked (request a new code with POST /api/agent-accounts)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentError"}}}},"409":{"description":"api_key_limit: the workspace already has 25 active API keys","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentError"}}}},"429":{"description":"rate_limited (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentError"}}}},"500":{"description":"issue_failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentError"}}}},"503":{"description":"unavailable (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentError"}}}}}}},"/api/agent-accounts/trial":{"post":{"operationId":"agentClaimTrial","summary":"Claim the agent trial","description":"For accounts that signed in another way (OAuth): the same once-ever grant verify applies (verified, non-disposable email; a workspace with no credit history; no subscription ever; one per inbox). Idempotent: later calls return trialCreditsGranted 0.","tags":["Agents"],"responses":{"200":{"description":"Trial checked","content":{"application/json":{"schema":{"type":"object","properties":{"trialCreditsGranted":{"type":"integer"},"credits":{"type":"integer"}},"required":["trialCreditsGranted","credits"]}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"description":"rate_limited (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentError"}}}},"503":{"description":"unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentError"}}}}}}},"/api/credits/purchase":{"get":{"operationId":"listCreditPacks","summary":"List credit packs","description":"The one-time credit packs on sale.","tags":["Account"],"security":[],"responses":{"200":{"description":"Packs","content":{"application/json":{"schema":{"type":"object","properties":{"packs":{"type":"array","items":{"$ref":"#/components/schemas/CreditPack"}}}}}}}}},"post":{"operationId":"buyCredits","summary":"Get a checkout link for a credit pack","description":"Creates a Stripe Checkout session. Nothing is charged by this call: give checkoutUrl to a human to pay; credits are added when payment completes.","tags":["Account"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"packId":{"type":"string","description":"From GET /api/credits/purchase"}},"required":["packId"]}}}},"responses":{"200":{"description":"Checkout link","content":{"application/json":{"schema":{"type":"object","properties":{"checkoutUrl":{"type":"string","format":"uri"},"url":{"type":"string","format":"uri","description":"Same as checkoutUrl"},"packId":{"type":"string"},"credits":{"type":"integer"},"priceUsd":{"type":"number"},"expiresAt":{"type":"string","format":"date-time"}},"required":["checkoutUrl","packId"]}}}},"400":{"description":"Invalid pack (the body lists the valid packs)"},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"description":"rate_limited (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentError"}}}},"502":{"description":"checkout_unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentError"}}}}}}},"/api/jobs/{id}":{"get":{"operationId":"getJob","summary":"Check async job status","description":"Poll for the status of an async generation job. Returns progress, status, and result when complete. Use with POST /api/generate?async=true.","tags":["Jobs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Job ID from the async generate response"}],"responses":{"200":{"description":"Job status","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"API key (starts with 'ac_sk_') from the dashboard (Settings > API Keys) or from POST /api/agent-accounts/verify. OAuth access tokens issued to MCP hosts are also accepted."}},"responses":{"Unauthorized":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"InsufficientCredits":{"description":"Insufficient credits: buy a pack with POST /api/credits/purchase","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsufficientCredits"}}}},"NotFound":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"string","description":"Error message"}},"required":["error"]},"AgentError":{"type":"object","properties":{"error":{"type":"string","description":"What went wrong"},"code":{"type":"string","description":"Stable machine-readable code"},"fix":{"type":"string","description":"What to do next"}},"required":["error"]},"InsufficientCredits":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string","enum":["insufficient_credits"]},"required":{"type":"integer","description":"Credits this request needs"},"balance":{"type":"integer","description":"Credits available"},"remaining":{"type":"integer","description":"Same as balance (older clients)"},"fix":{"type":"string"},"purchaseEndpoint":{"type":"string","enum":["/api/credits/purchase"]}},"required":["error","code","required","balance"]},"CreditPack":{"type":"object","properties":{"id":{"type":"string"},"credits":{"type":"integer"},"priceUsd":{"type":"number"}},"required":["id","credits","priceUsd"]},"AdFormat":{"type":"string","enum":["square","landscape","portrait","portrait_meta","story"],"description":"Ad output format. square = 1:1 (feed), landscape = 16:9 (display), portrait = 9:16 (vertical), portrait_meta = 4:5 (Meta feed), story = 9:16 (story)"},"AdStyle":{"type":"string","enum":["product-hero","text-overlay","offer-promo","testimonial-proof","feature-explainer","lifestyle-scene","stat-callout"],"description":"Creative style. product-hero: clean hero shot. text-overlay: bold graphic typography. offer-promo: conversion-first with offers. testimonial-proof: trust and social proof. feature-explainer: product features. lifestyle-scene: aspirational photography. stat-callout: bold number/metric."},"CampaignObjective":{"type":"string","enum":["awareness","leads","launch","sales","retargeting","event"],"description":"Campaign objective. awareness: maximize recall. leads: form fills and demos. launch: introduce something new. sales: direct conversion. retargeting: re-engage warm audiences. event: drive registrations."},"TargetNetwork":{"type":"string","enum":["meta","google","linkedin","x","tiktok"],"description":"Target ad network. meta: Facebook/Instagram. google: Display Network. linkedin: Sponsored Content. x: Timeline ads. tiktok: For You Feed."},"TemplateProfile":{"type":"string","enum":["meta-direct-response","google-display-offer","canva-promo","competitor-refresh"],"description":"Layout template. meta-direct-response: scroll-stopping social ad. google-display-offer: display card with offer panel. canva-promo: graphic promo with badges. competitor-refresh: benchmarked against top ads."},"GenerateRequest":{"type":"object","required":["brandId"],"properties":{"brandId":{"type":"string","description":"The brand ID returned from POST /api/brands"},"count":{"type":"integer","minimum":1,"maximum":10,"default":3,"description":"Number of ad concepts to generate"},"formats":{"type":"array","items":{"$ref":"#/components/schemas/AdFormat"},"default":["square"],"description":"Output formats. Each concept is rendered in every format. Total outputs = count × formats.length."},"objective":{"$ref":"#/components/schemas/CampaignObjective","default":"awareness"},"targetNetworks":{"type":"array","items":{"$ref":"#/components/schemas/TargetNetwork"},"default":["meta"],"description":"Target ad networks. Influences copy tone and layout choices."},"adStyle":{"$ref":"#/components/schemas/AdStyle","default":"text-overlay"},"adStyles":{"type":"array","items":{"$ref":"#/components/schemas/AdStyle"},"description":"Several ad styles in one run. `count` variants are spread across them round-robin. Takes precedence over `adStyle`."},"moods":{"type":"array","items":{"type":"string"},"description":"Style moods (e.g. 'Bold & colorful'), spread across variants the same way as `adStyles`."},"colorMix":{"type":"boolean","description":"Alternate on-brand and auto-picked colors across variants."},"templateProfile":{"$ref":"#/components/schemas/TemplateProfile","default":"meta-direct-response"},"audience":{"type":"string","description":"Target audience description, e.g. 'SaaS founders aged 25-45'"},"product":{"type":"string","description":"Product or service being advertised"},"offer":{"type":"string","description":"Promotional offer or value proposition, e.g. 'Free trial, no credit card'"},"tone":{"type":"string","description":"Desired tone of voice, e.g. 'confident and direct' or 'warm and friendly'"},"campaignBrief":{"type":"string","description":"Campaign brief or goal description"},"campaignAngle":{"type":"string","description":"Specific campaign angle or hook"},"keyPoints":{"type":"array","items":{"type":"string"},"maxItems":6,"description":"Key points to include in the ad copy"},"extraInstructions":{"type":"string","description":"Additional creative direction for the AI, e.g. 'Focus on speed and ease of use'"},"useBrandColors":{"type":"boolean","default":true,"description":"Whether to use the brand's extracted colors"},"customColors":{"type":"array","items":{"type":"string"},"maxItems":5,"description":"Custom hex colors to use instead of brand colors, e.g. ['#FF5733', '#33FF57']"},"userReferenceImageUrls":{"type":"array","items":{"type":"string","format":"uri"},"maxItems":4,"description":"Reference image URLs for visual style guidance"}}},"GenerateSyncResponse":{"type":"object","properties":{"ads":{"type":"array","items":{"$ref":"#/components/schemas/Ad"}},"completed":{"type":"integer"},"total":{"type":"integer"}}},"Ad":{"type":"object","properties":{"id":{"type":"string"},"headline":{"type":"string"},"subheadline":{"type":"string"},"body_copy":{"type":"string"},"cta":{"type":"string","description":"Call-to-action text"},"tone":{"type":"string"},"format":{"$ref":"#/components/schemas/AdFormat"},"image_url":{"type":"string","format":"uri","nullable":true,"description":"URL of the generated ad image"},"image_prompt":{"type":"string","description":"The prompt used to generate the image"},"status":{"type":"string","enum":["generating","complete","failed"]},"created_at":{"type":"string","format":"date-time"}}},"Creative":{"type":"object","properties":{"id":{"type":"string"},"headline":{"type":"string"},"body_copy":{"type":"string"},"cta":{"type":"string"},"tone":{"type":"string"},"format":{"$ref":"#/components/schemas/AdFormat"},"image_url":{"type":"string","format":"uri"},"status":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"brand_id":{"type":"string"},"brand_name":{"type":"string"},"brand_domain":{"type":"string"}}},"BrandSummary":{"type":"object","properties":{"id":{"type":"string"},"domain":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"slogan":{"type":"string","nullable":true},"colors":{"type":"array","items":{"type":"object","properties":{"hex":{"type":"string","example":"#635bff"},"type":{"type":"string"}}}},"logos":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"mode":{"type":"string","enum":["light","dark"]},"type":{"type":"string"}}}},"created_at":{"type":"string","format":"date-time"}}},"BrandResponse":{"type":"object","properties":{"brand":{"$ref":"#/components/schemas/BrandSummary"},"cached":{"type":"boolean","description":"True if no new scan ran: the brand was already in your organization, or a recent scan of the same domain was copied in"},"existing":{"type":"boolean","description":"True only if your organization already had this brand before this request"}}},"Credits":{"type":"object","properties":{"remaining":{"type":"integer","description":"Credits available to spend"},"used":{"type":"integer","description":"Credits used so far"},"total":{"type":"integer","description":"Total credits allocated"},"isTrialing":{"type":"boolean","description":"Whether the account is on a free trial"},"fullPlanCredits":{"type":"integer","nullable":true,"description":"Credits that will be available after trial ends and plan activates"}}},"Usage":{"type":"object","properties":{"period":{"type":"string","description":"Current month in YYYY-MM format","example":"2026-04"},"requests":{"type":"object","properties":{"total":{"type":"integer","description":"Total API requests this month"},"byEndpoint":{"type":"object","additionalProperties":{"type":"integer"},"description":"Request count per endpoint path"}}},"credits":{"type":"object","properties":{"remaining":{"type":"integer"},"used":{"type":"integer"},"total":{"type":"integer"},"usedThisMonth":{"type":"integer","description":"Credits consumed this month"}}},"errors":{"type":"object","properties":{"clientErrors":{"type":"integer","description":"4xx errors this month"},"serverErrors":{"type":"integer","description":"5xx errors this month"}}},"performance":{"type":"object","properties":{"avgResponseMs":{"type":"integer","nullable":true,"description":"Average response time in ms"}}},"resetsAt":{"type":"string","format":"date-time","description":"When the monthly period resets"}}},"Job":{"type":"object","properties":{"id":{"type":"string","description":"Job ID (starts with job_)"},"type":{"type":"string","description":"Job type, e.g. 'generate'"},"status":{"type":"string","enum":["pending","processing","completed","failed"],"description":"Current job status"},"progress":{"type":"integer","minimum":0,"maximum":100,"description":"Progress percentage (0-100)"},"estimatedSeconds":{"type":"integer","nullable":true,"description":"Estimated time to completion in seconds"},"result":{"description":"Job result (same format as sync generate response). Null until completed.","nullable":true},"errorMessage":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"completedAt":{"type":"string","format":"date-time","nullable":true}}}}}}