openapi: 3.1.0
info:
  title: Vidifye Partner API
  version: "1.1"
  summary: Create seller accounts, post video ads and attach 360° spins on Vidifye.
  description: |
    Server-to-server API for Vidifye partners (dealer platforms, listing tools).
    Keys are issued by Vidifye; contact info@vidifye.com.

    **Authentication**: `Authorization: Bearer vfk_…` on every request. Keys carry
    scopes, may expire, and can be rotated or revoked by Vidifye at any time.

    **Reach**: a key only sees and acts on the accounts it created (and their ads).
    Anything else answers `404 not_found`.

    **Errors** always use one envelope:
    `{"error": {"code": "<stable_code>", "message": "<human text>", "field": "<input field, optional>"}}`.
    Branch on `code`, never on `message`.

    **Rate limits**: per key per minute (default 60). `429 rate_limited` carries
    `Retry-After` (seconds). Responses carry `X-RateLimit-Limit`.

    **Retries**: `POST /accounts` with an email this key already created returns the
    existing account (`200`, `"replayed": true`); `POST /ads` with an
    `external_ref` this key already used returns the existing ad. Both are safe to repeat.
  contact:
    name: Vidifye partners
    email: info@vidifye.com
servers:
  - url: https://vidifye.com/api/v1
    description: "Production. The earlier https://vidifye.com/.admin/api/v1 base keeps working."
security:
  - apiKey: []
tags:
  - name: Key
  - name: Accounts
  - name: Ads
  - name: Spins
paths:
  /Partner/me:
    get:
      tags: [Key]
      summary: Describe the calling key (scopes, expiry, partner settings)
      description: Scope `read`.
      responses:
        "200":
          description: The key
          content:
            application/json:
              schema:
                type: object
                properties:
                  data: { $ref: "#/components/schemas/Key" }
        default: { $ref: "#/components/responses/Error" }

  /Partner/accounts:
    post:
      tags: [Accounts]
      summary: Create a seller account (and optionally its business)
      description: |
        Scope `accounts:write`. How the user gets in depends on the key's onboarding mode:

        - **Invite** (default): Vidifye emails a link to set a password (valid 72 h). `status` is `invited` until they do.
        - **PreVerified**: no email; the response carries `set_password.url` (72 h) for you to hand to the user.
        - **PartnerPassword**: send `password`; the account is usable at once.

        `comp_days` grants the key's complimentary plan (up to the key's limit; omitted = the key's default).
        `trial` starts a no-card 30-day Business trial (only on keys that allow it; omitted = the key's setting).
        When both apply, the one that lasts longer wins.

        Limits: accounts per key per 24 h (`429 account_cap_reached`); requests for addresses that already
        have a Vidifye account are budgeted per key (`409 email_taken`, then `429 conflict_limit`).
      requestBody:
        required: true
        content:
          application/json:
            schema: { $ref: "#/components/schemas/AccountCreate" }
            example:
              email: jane@janemotors.example
              name: Jane Doe
              language: fr
              terms_accepted: true
              comp_days: 30
              business:
                name: Jane Motors
                description: Family-run dealer since 1998.
                location: { address: "1234 Boul. Taschereau, Longueuil, QC" }
                phone: "+1 514 555 0100"
                website: "https://janemotors.example"
                social_facebook: "https://www.facebook.com/janemotors"
                primary_color: "#0b3d91"
                logo: { url: "https://cdn.janemotors.example/logo.png" }
                banner: { url: "https://cdn.janemotors.example/showroom.jpg" }
      responses:
        "201":
          description: Created
          content:
            application/json:
              schema: { $ref: "#/components/schemas/AccountCreated" }
        "200":
          description: Replay — this key already created an account for this email
          content:
            application/json:
              schema: { $ref: "#/components/schemas/AccountCreated" }
        default: { $ref: "#/components/responses/Error" }
    get:
      tags: [Accounts]
      summary: List the accounts this key created
      description: Scope `read`.
      parameters:
        - { name: email, in: query, schema: { type: string } }
        - { $ref: "#/components/parameters/Page" }
        - { $ref: "#/components/parameters/PerPage" }
      responses:
        "200":
          description: A page of accounts
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/Page"
                  - type: object
                    properties:
                      data: { type: array, items: { $ref: "#/components/schemas/Account" } }
        default: { $ref: "#/components/responses/Error" }

  /Partner/accounts/{id}:
    get:
      tags: [Accounts]
      summary: One account this key created
      description: Scope `read`.
      parameters: [{ $ref: "#/components/parameters/Id" }]
      responses:
        "200":
          description: The account
          content:
            application/json:
              schema: { type: object, properties: { data: { $ref: "#/components/schemas/Account" } } }
        default: { $ref: "#/components/responses/Error" }

  /Partner/accounts/{id}/comp:
    patch:
      tags: [Accounts]
      summary: Set the complimentary plan to run N days from now
      description: |
        Scope `accounts:write`. `days` ≤ the key's limit; `0` ends a partner comp now.
        A plan granted by Vidifye cannot be changed (`409 comp_managed_by_vidifye`).
        A running trial that lasts longer is left alone (warning `trial_outlasts_comp`).
      parameters: [{ $ref: "#/components/parameters/Id" }]
      requestBody:
        required: true
        content:
          application/json:
            schema: { type: object, required: [days], properties: { days: { type: integer, minimum: 0 } } }
      responses:
        "200":
          description: The account
          content:
            application/json:
              schema: { type: object, properties: { data: { $ref: "#/components/schemas/Account" } } }
        default: { $ref: "#/components/responses/Error" }

  /Partner/accounts/{id}/business:
    patch:
      tags: [Accounts]
      summary: Create or change the account's business profile
      description: |
        Scope `accounts:write`. Same fields as `business` on account creation. Only the fields you
        send change; `null` clears a field or removes an image. When the account has no business yet,
        this creates it (`201`, `name` required). A business this key did not create (the user joined
        another team in the app) cannot be changed (`409 business_managed_elsewhere`).
      parameters: [{ $ref: "#/components/parameters/Id" }]
      requestBody:
        required: true
        content:
          application/json:
            schema: { $ref: "#/components/schemas/BusinessInput" }
            example:
              phone: "+1 450 555 0123"
              banner: { url: "https://cdn.janemotors.example/summer-sale.jpg" }
              finance_qr: null
      responses:
        "200":
          description: Updated
          content:
            application/json:
              schema: { $ref: "#/components/schemas/AccountCreated" }
        "201":
          description: Business created on an account that had none
          content:
            application/json:
              schema: { $ref: "#/components/schemas/AccountCreated" }
        default: { $ref: "#/components/responses/Error" }

  /Partner/categories:
    get:
      tags: [Ads]
      summary: Active categories (for `category_id` or `category`)
      description: |
        Scope `read`. When posting an ad, send either `category_id` or `category` (the English or French
        name; case, accents and spaces around `/` do not matter).
      responses:
        "200":
          description: Categories
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items: { type: object, properties: { id: { type: integer }, name: { type: string }, name_fr: { type: [string, "null"] } } }
        default: { $ref: "#/components/responses/Error" }

  /Partner/ads:
    post:
      tags: [Ads]
      summary: Create an ad (draft) for one of your accounts
      description: |
        Scope `ads:write`. The ad is a **draft** until you submit it. Add the video with
        `video.url` here, or later through `/ads/{id}/video` or `/ads/{id}/video/upload-url`.
        Ads follow the same rules as ads posted in the Vidifye app (required fields, the
        seller's plan video length, moderation).
      requestBody:
        required: true
        content:
          application/json:
            schema: { $ref: "#/components/schemas/AdCreate" }
            example:
              seller_id: 2040
              external_ref: STK-1001
              title: 2025 Kawasaki Ridge XR
              description: One owner, HVAC cab, dealer serviced.
              category: Motorcycle/ATV
              price: 28995
              condition: used
              location: { address: "Montréal, QC" }
              video: { url: "https://cdn.example.com/stk-1001.mp4" }
      responses:
        "201":
          description: Created
          content:
            application/json:
              schema: { type: object, properties: { data: { $ref: "#/components/schemas/Ad" }, warnings: { type: array, items: { type: string } } } }
        "200":
          description: Replay — this key already used this external_ref
          content:
            application/json:
              schema: { type: object, properties: { data: { $ref: "#/components/schemas/Ad" }, replayed: { type: boolean } } }
        default: { $ref: "#/components/responses/Error" }
    get:
      tags: [Ads]
      summary: List ads of your accounts
      description: Scope `read`.
      parameters:
        - { name: seller_id, in: query, schema: { type: integer } }
        - { name: external_ref, in: query, schema: { type: string } }
        - { $ref: "#/components/parameters/Page" }
        - { $ref: "#/components/parameters/PerPage" }
      responses:
        "200":
          description: A page of ads
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/Page"
                  - type: object
                    properties:
                      data: { type: array, items: { $ref: "#/components/schemas/Ad" } }
        default: { $ref: "#/components/responses/Error" }

  /Partner/ads/{id}:
    get:
      tags: [Ads]
      summary: One ad
      description: Scope `read`.
      parameters: [{ $ref: "#/components/parameters/Id" }]
      responses:
        "200":
          description: The ad
          content:
            application/json:
              schema: { type: object, properties: { data: { $ref: "#/components/schemas/Ad" } } }
        default: { $ref: "#/components/responses/Error" }
    patch:
      tags: [Ads]
      summary: Edit an ad (any subset of the create fields except seller_id / external_ref)
      description: Scope `ads:write`.
      parameters: [{ $ref: "#/components/parameters/Id" }]
      requestBody:
        required: true
        content:
          application/json:
            schema: { $ref: "#/components/schemas/AdFields" }
      responses:
        "200":
          description: The ad
          content:
            application/json:
              schema: { type: object, properties: { data: { $ref: "#/components/schemas/Ad" } } }
        default: { $ref: "#/components/responses/Error" }

  /Partner/ads/{id}/submit:
    post:
      tags: [Ads]
      summary: Submit the ad for moderation
      description: |
        Scope `ads:write`. `terms_accepted: true` confirms the seller owns the rights to the
        content and accepts the Vidifye Terms. A complete ad becomes `pending`; Vidifye's team
        publishes it (`published`). An incomplete one answers `422 ad_incomplete` with `problems`.
      parameters: [{ $ref: "#/components/parameters/Id" }]
      requestBody:
        required: true
        content:
          application/json:
            schema: { type: object, required: [terms_accepted], properties: { terms_accepted: { const: true } } }
      responses:
        "200":
          description: Submitted
          content:
            application/json:
              schema: { type: object, properties: { data: { $ref: "#/components/schemas/Ad" } } }
        default: { $ref: "#/components/responses/Error" }

  /Partner/ads/{id}/video:
    post:
      tags: [Ads]
      summary: Attach a video by URL (Vidifye fetches it)
      description: |
        Scope `ads:write`. A public `https://` link to the video file (mp4, mov, m4v, webm; up to
        1 hour). Encoding is asynchronous: `video.status` goes `processing` → `ready` (or `failed`).
        A new video replaces the previous one.
      parameters: [{ $ref: "#/components/parameters/Id" }]
      requestBody:
        required: true
        content:
          application/json:
            schema: { type: object, required: [url], properties: { url: { type: string, format: uri } } }
      responses:
        "202":
          description: Accepted, encoding
          content:
            application/json:
              schema: { type: object, properties: { data: { $ref: "#/components/schemas/Ad" } } }
        default: { $ref: "#/components/responses/Error" }

  /Partner/ads/{id}/video/upload-url:
    post:
      tags: [Ads]
      summary: Get a one-time URL to upload the video file yourself
      description: |
        Scope `ads:write`. Upload the file with `POST <upload_url>` as `multipart/form-data`,
        field `file`, within 30 minutes (max 200 MB through this path; use `/video` with a URL for
        larger files). Then poll `GET /ads/{id}` for `video.status`.
      parameters: [{ $ref: "#/components/parameters/Id" }]
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                filename: { type: string, example: stk-1001.mp4 }
                bytes: { type: integer }
      responses:
        "201":
          description: Upload URL
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      upload_url: { type: string, format: uri }
                      method: { const: POST }
                      field: { const: file }
                      expires_in: { type: integer, description: seconds }
        default: { $ref: "#/components/responses/Error" }

  /Partner/ads/{id}/spin:
    post:
      tags: [Spins]
      summary: Attach (or replace) the ad's 360° spin
      description: |
        Scope `spins:write`. Give the URL of your **spin manifest** (see `SpinManifest`).
        Vidifye fetches it now (refused if it cannot be read) and again whenever the frame URLs
        are due to expire, then shows the spin natively on the listing page and in the apps —
        no iframe. Only your manifest URL is stored.
      parameters: [{ $ref: "#/components/parameters/Id" }]
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required: [manifest_url]
              properties:
                manifest_url: { type: string, format: uri, description: "Public https:// URL returning a SpinManifest" }
                vendor: { type: string, maxLength: 64 }
      responses:
        "200":
          description: The spin
          content:
            application/json:
              schema: { type: object, properties: { data: { $ref: "#/components/schemas/Spin" } } }
        default: { $ref: "#/components/responses/Error" }
    get:
      tags: [Spins]
      summary: The ad's spin and its last check
      description: Scope `read`.
      parameters: [{ $ref: "#/components/parameters/Id" }]
      responses:
        "200":
          description: The spin
          content:
            application/json:
              schema: { type: object, properties: { data: { $ref: "#/components/schemas/Spin" } } }
        default: { $ref: "#/components/responses/Error" }
    delete:
      tags: [Spins]
      summary: Remove the ad's spin
      description: Scope `spins:write`.
      parameters: [{ $ref: "#/components/parameters/Id" }]
      responses:
        "200":
          description: Removed
        default: { $ref: "#/components/responses/Error" }

components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: "vfk_<key id>_<secret>"
  parameters:
    Id: { name: id, in: path, required: true, schema: { type: integer } }
    Page: { name: page, in: query, schema: { type: integer, minimum: 1, default: 1 } }
    PerPage: { name: per_page, in: query, schema: { type: integer, minimum: 1, maximum: 100, default: 25 } }
  responses:
    Error:
      description: |
        Error. Codes: `invalid_key`, `key_revoked`, `key_inactive`, `key_expired` (401);
        `insufficient_scope` (403); `not_found` (404); `email_taken`, `comp_managed_by_vidifye`, `business_managed_elsewhere` (409);
        `validation_failed`, `comp_not_allowed`, `comp_exceeds_limit`, `trial_not_allowed`,
        `ad_incomplete`, `ad_rejected`, `invalid_manifest`, `manifest_not_ready`, `manifest_unreachable`,
        `invalid_image`, `image_unreachable` (422);
        `invalid_json` (400); `rate_limited`, `account_cap_reached`, `conflict_limit`, `busy` (429);
        `video_fetch_failed` (502); `video_unavailable`, `unavailable` (503); `server_error` (500).
      content:
        application/json:
          schema: { $ref: "#/components/schemas/Error" }
  schemas:
    Error:
      type: object
      required: [error]
      properties:
        error:
          type: object
          required: [code, message]
          properties:
            code: { type: string }
            message: { type: string }
            field: { type: string }
    Page:
      type: object
      properties:
        page: { type: integer }
        per_page: { type: integer }
        total: { type: integer }
    Key:
      type: object
      properties:
        name: { type: string }
        key_id: { type: string }
        scopes: { type: array, items: { enum: ["accounts:write", "ads:write", "spins:write", "read"] } }
        expires_at: { type: [string, "null"], format: date-time }
        rate_per_min: { type: integer }
        settings:
          type: object
          properties:
            onboarding_mode: { enum: [Invite, PreVerified, PartnerPassword] }
            comp_tier: { type: [string, "null"], enum: [Premium, Business, null] }
            comp_max_days: { type: integer }
            comp_default_days: { type: integer }
            allow_trial: { type: boolean }
            daily_account_cap: { type: integer, description: "0 = no cap" }
    AccountCreate:
      type: object
      required: [email, name, terms_accepted]
      properties:
        email: { type: string, format: email, maxLength: 100 }
        name: { type: string, maxLength: 100 }
        language: { enum: [en, fr], default: en }
        terms_accepted: { const: true, description: "The user accepted the Vidifye Terms of Use and Privacy Policy" }
        password: { type: string, minLength: 10, description: "PartnerPassword keys only; refused otherwise" }
        comp_days: { type: integer, minimum: 0 }
        trial: { type: boolean }
        business:
          description: Optional business profile (storefront). `name` is required here.
          allOf:
            - $ref: "#/components/schemas/BusinessInput"
            - { type: object, required: [name] }
    Account:
      type: object
      properties:
        id: { type: integer }
        email: { type: string }
        name: { type: string }
        language: { enum: [en, fr] }
        status: { enum: [invited, active, disabled] }
        created_at: { type: string, format: date-time }
        plan:
          type: object
          properties:
            tier: { enum: [free, premium, business] }
            comp:
              type: [object, "null"]
              properties:
                tier: { enum: [premium, business] }
                until: { type: string, format: date-time }
                source: { enum: [partner, trial, vidifye] }
        business:
          oneOf:
            - $ref: "#/components/schemas/Business"
            - type: "null"
    AccountCreated:
      type: object
      properties:
        data: { $ref: "#/components/schemas/Account" }
        set_password:
          type: object
          description: PreVerified keys only
          properties:
            url: { type: string, format: uri }
            expires_at: { type: string, format: date-time }
        replayed: { type: boolean }
        warnings:
          type: array
          items: { enum: [invite_email_not_sent, business_inactive_without_business_plan] }
    Image:
      description: |
        One image: `{"url": "https://…"}` (Vidifye downloads it once: public https host, no redirects,
        answers within 15 s) or `{"base64": "…"}` (bare base64 or a `data:image/…;base64,` URI).
        PNG, JPEG or WebP, at most 10 MB. `null` removes the image (PATCH).
      oneOf:
        - type: object
          required: [url]
          additionalProperties: false
          properties: { url: { type: string, format: uri } }
        - type: object
          required: [base64]
          additionalProperties: false
          properties: { base64: { type: string } }
    BusinessInput:
      type: object
      additionalProperties: false
      description: |
        Business profile fields. Unknown fields are refused. Vidifye's own decisions (verified badge,
        active flag) are not settable. Text fields accept `null` (or "") to clear them.
      properties:
        name: { type: string, maxLength: 100 }
        description: { type: [string, "null"], description: "Storefront text; basic HTML (p, br, strong, em, ul, ol, li, a) is kept, the rest is stripped" }
        location:
          type: [object, "null"]
          description: Geocoded like an ad's location; your coordinates win when you send them.
          required: [address]
          properties:
            address: { type: string, maxLength: 500 }
            latitude: { type: number }
            longitude: { type: number }
        phone: { type: [string, "null"], maxLength: 50 }
        website: { type: [string, "null"], format: uri, maxLength: 100 }
        social_facebook: { type: [string, "null"], format: uri, maxLength: 200 }
        social_instagram: { type: [string, "null"], format: uri, maxLength: 200 }
        social_twitter: { type: [string, "null"], format: uri, maxLength: 200 }
        social_linkedin: { type: [string, "null"], format: uri, maxLength: 200 }
        social_youtube: { type: [string, "null"], format: uri, maxLength: 200 }
        primary_color: { type: [string, "null"], pattern: "^#[0-9a-fA-F]{6}$" }
        secondary_color: { type: [string, "null"], pattern: "^#[0-9a-fA-F]{6}$" }
        finance_link: { type: [string, "null"], format: uri, maxLength: 300, description: "Financing application link shown on the business's ads" }
        logo: { oneOf: [{ $ref: "#/components/schemas/Image" }, { type: "null" }] }
        banner: { oneOf: [{ $ref: "#/components/schemas/Image" }, { type: "null" }], description: "Storefront cover image (wide, e.g. 1920×480)" }
        finance_qr: { oneOf: [{ $ref: "#/components/schemas/Image" }, { type: "null" }], description: "Financing QR code shown on the business's ads" }
    Business:
      type: object
      properties:
        id: { type: integer }
        name: { type: string }
        live: { type: boolean, description: "Shown as a business storefront (needs a Business plan)" }
        managed_elsewhere: { type: boolean, description: "Present (true) when the user joined a business your key did not create; only id, name and live are shown" }
        verified: { type: boolean, description: Set by Vidifye }
        description: { type: [string, "null"] }
        location:
          type: [object, "null"]
          properties:
            address: { type: string }
            public: { type: [string, "null"], description: "City-level label shown publicly" }
            latitude: { type: [number, "null"] }
            longitude: { type: [number, "null"] }
        phone: { type: [string, "null"] }
        website: { type: [string, "null"] }
        social_facebook: { type: [string, "null"] }
        social_instagram: { type: [string, "null"] }
        social_twitter: { type: [string, "null"] }
        social_linkedin: { type: [string, "null"] }
        social_youtube: { type: [string, "null"] }
        primary_color: { type: [string, "null"] }
        secondary_color: { type: [string, "null"] }
        finance_link: { type: [string, "null"] }
        logo: { type: [string, "null"], format: uri }
        banner: { type: [string, "null"], format: uri }
        finance_qr: { type: [string, "null"], format: uri }
    AdFields:
      type: object
      properties:
        title: { type: string, maxLength: 200 }
        description: { type: string, maxLength: 10000, description: Plain text }
        category_id: { type: integer, description: "From GET /Partner/categories. Send this or `category`, not both." }
        category: { type: string, description: "Category name, English or French (e.g. \"Cars/Vehicles\")" }
        price: { type: number, minimum: 0 }
        min_price: { type: [number, "null"], minimum: 0, description: "Lowest price the AI sales assistant may accept" }
        price_on_request: { type: boolean }
        condition: { enum: [new, used] }
        location:
          type: object
          required: [address]
          properties:
            address: { type: string, maxLength: 500 }
            latitude: { type: number }
            longitude: { type: number }
    AdCreate:
      allOf:
        - $ref: "#/components/schemas/AdFields"
        - type: object
          required: [seller_id, title]
          properties:
            seller_id: { type: integer, description: An account this key created }
            external_ref: { type: string, maxLength: 64, description: "Your own id (stock number, VIN…); makes the call safe to retry" }
            video: { type: object, properties: { url: { type: string, format: uri } } }
    Ad:
      type: object
      properties:
        id: { type: integer }
        external_ref: { type: [string, "null"] }
        seller_id: { type: integer }
        status: { enum: [draft, incomplete, pending, published, sold, cancelled] }
        title: { type: string }
        description: { type: string }
        category_id: { type: [integer, "null"] }
        price: { type: [number, "null"] }
        min_price: { type: [number, "null"] }
        price_on_request: { type: boolean }
        condition: { enum: [new, used] }
        location: { type: object, properties: { address: { type: string }, public: { type: string } } }
        video:
          type: object
          properties:
            status: { enum: [none, processing, ready, failed] }
            duration: { type: [integer, "null"], description: seconds }
        has_spin: { type: boolean }
        url: { type: [string, "null"], format: uri, description: Public page once published }
        problems: { type: array, items: { type: string }, description: What blocks submission }
        created_at: { type: string, format: date-time }
    Spin:
      type: object
      properties:
        ad_id: { type: integer }
        manifest_url: { type: string }
        vendor: { type: [string, "null"] }
        status: { enum: [pending, ready, failed] }
        frame_count: { type: integer }
        last_checked_at: { type: [string, "null"], format: date-time }
        last_error: { type: [string, "null"] }
    SpinManifest:
      description: |
        What your `manifest_url` must return (JSON, ≤ 1 MB, within 5 s, over https from a public host,
        no redirects). The object itself or wrapped in `{"data": …}`. Frames are photos taken at even
        angles around the item, played in `order`. Frame URLs may be short-lived (e.g. presigned):
        set `refreshAfterMs` and Vidifye re-reads the manifest before they expire.
      type: object
      required: [frames]
      properties:
        status: { const: ready, description: "Anything else is refused as not ready" }
        frames:
          type: array
          minItems: 8
          maxItems: 360
          items:
            oneOf:
              - type: string
                format: uri
              - type: object
                required: [url]
                properties:
                  order: { type: number }
                  url: { type: string, format: uri, description: "https image (WebP or JPEG recommended, ~1500 px wide)" }
        refreshAfterMs: { type: integer, description: "Re-read the manifest after this many milliseconds" }
      example:
        status: ready
        refreshAfterMs: 6900000
        frames:
          - { order: 0, url: "https://cdn.example.com/spin/140343/0.webp" }
          - { order: 1, url: "https://cdn.example.com/spin/140343/1.webp" }
