opcreative-us Products API

The products API from opcreative-us — 1 operation(s) for products.

GitHub OpenAPI

Operations 1

POST /products/{id}/images Add pictures to a product #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/opcreative-us:opcreative-us-products-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

opcreative-us-products-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OpCreative Products API
  version: v1
  description: 'The seller API for OpCreative — place orders, read their progress, and hear about changes over webhooks.


    Authentication is an `x-api-key` header. Money is always a string with two decimals (JSON numbers are float64, and cents do not survive that). Timestamps are ISO-8601 UTC.


    - The version is in the path. `/api/v1` keeps its promises for as long as it exists; a change that would break them ships as `/api/v2` instead.

    - Additive changes are NOT breaking and can arrive any day: a new endpoint, a new optional parameter, a new field in a response, a new webhook event. Parse defensively — ignore fields you do not recognise, and do not validate that a response has exactly the keys you expect.

    - Breaking means: removing or renaming a response field, removing an endpoint, making an optional parameter required, narrowing an accepted value, or changing what an existing field means.

    - Error codes are append-only. A new `code` may appear in the envelope; an existing one is never reworded or reused for a different condition. Branch on `error.code`, never on `error.message`.

    - Enum-like values (`status`, tracking states) may gain members. Treat an unknown one as unknown rather than as an error.

    - If v1 is ever retired, you get at least 180 days'' notice by email to the account that owns the key, and the endpoints keep working throughout that window.'
servers:
- url: https://0.0.0.0:3000/api/v1
security:
- ApiKeyAuth: []
tags:
- name: Products
paths:
  /products/{id}/images:
    post:
      operationId: add-product-images
      summary: Add pictures to a product
      description: 'Adds pictures to a product''s gallery without resending the rest — what a catalogue sync, or a workshop''s own tooling, calls to keep product photos current. Admin keys only: the key''s owner must be allowed to manage products, and a seller key gets 403.


        The body is `multipart/form-data`. Send each picture as a `file` part (PNG, JPG or WEBP, 50 MB at most) or as a `url` field, which we download and store. A link to someone else''s server is never saved as it is, because the catalogue goes blank the day that server stops answering. Up to 10 pictures per request: repeat the part to send several, in the order they should appear.


        New pictures join the end of the gallery, which holds 20. `as_cover=true` makes the first one the product''s cover, and the old cover moves into the gallery rather than being lost; a product with no cover gets the first picture as its cover anyway.


        If any picture is refused — a link that is not a reachable image, a file that is not one — the answer is 422, naming it in `message` with the cause in `reason`, and nothing is added. A gallery with no room left answers 409.'
      tags:
      - Products
      parameters:
      - name: id
        in: path
        required: true
        description: The product's id, as in `GET /catalog`.
        schema:
          type: integer
      - name: Idempotency-Key
        in: header
        required: false
        description: Optional. Reuse the same value on every retry of the same upload, so a retry after a timeout does not add the pictures twice; see Idempotency.
        schema:
          type: string
        example: images-12-attempt-1
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required: []
              properties:
                file:
                  type: string
                  format: binary
                  description: A picture. PNG, JPG or WEBP, 50 MB at most. Repeat for several.
                url:
                  type: string
                  description: A public https link to a PNG, JPG or WEBP picture, which we download and store. Repeat for several.
                as_cover:
                  type: boolean
                  description: '`true` to make the first picture the product''s cover.'
                label:
                  type: string
                  description: A caption for the new gallery pictures, e.g. `Back`. 120 characters at most.
      responses:
        '200':
          description: The product's cover and full gallery after the upload. `meta.added` lists the stored URLs of the new pictures.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            X-RateLimit-Limit:
              $ref: '#/components/headers/XRateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/XRateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/XRateLimitReset'
          content:
            application/json:
              example:
                data:
                  id: 12
                  thumbnail: https://files.opcreative.us/products/3f9c2a1b-1790000000000-0.jpg
                  images:
                  - url: https://files.opcreative.us/products/12-back.png
                    label: Back
                  - url: https://files.opcreative.us/products/12-cover.png
                meta:
                  added:
                  - https://files.opcreative.us/products/3f9c2a1b-1790000000000-0.jpg
        '401':
          description: No key, or a key that is unknown, revoked or expired. One message for all four — telling you which would confirm to a guesser that a key exists.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            X-RateLimit-Limit:
              $ref: '#/components/headers/XRateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/XRateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/XRateLimitReset'
          content:
            application/json:
              schema:
                type: object
                required:
                - error
                properties:
                  error:
                    type: object
                    required:
                    - code
                    - message
                    properties:
                      code:
                        type: string
                        enum:
                        - unauthorized
                        - forbidden
                        - not_found
                        - conflict
                        - payload_too_large
                        - invalid_request
                        - rate_limited
                        - internal
                      message:
                        type: string
                      fields:
                        type: array
                        description: 'Present on invalid_request: which field, and why.'
                        items:
                          type: object
                          properties:
                            field:
                              type: string
                            message:
                              type: string
                      request_id:
                        type: string
                        description: Present on internal; matches the X-Request-Id header.
        '403':
          description: The key is valid but its owner may not do this.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            X-RateLimit-Limit:
              $ref: '#/components/headers/XRateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/XRateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/XRateLimitReset'
          content:
            application/json:
              schema:
                type: object
                required:
                - error
                properties:
                  error:
                    type: object
                    required:
                    - code
                    - message
                    properties:
                      code:
                        type: string
                        enum:
                        - unauthorized
                        - forbidden
                        - not_found
                        - conflict
                        - payload_too_large
                        - invalid_request
                        - rate_limited
                        - internal
                      message:
                        type: string
                      fields:
                        type: array
                        description: 'Present on invalid_request: which field, and why.'
                        items:
                          type: object
                          properties:
                            field:
                              type: string
                            message:
                              type: string
                      request_id:
                        type: string
                        description: Present on internal; matches the X-Request-Id header.
        '404':
          description: No such record — including records that exist but belong to someone else. The API never confirms another seller's ids.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            X-RateLimit-Limit:
              $ref: '#/components/headers/XRateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/XRateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/XRateLimitReset'
          content:
            application/json:
              schema:
                type: object
                required:
                - error
                properties:
                  error:
                    type: object
                    required:
                    - code
                    - message
                    properties:
                      code:
                        type: string
                        enum:
                        - unauthorized
                        - forbidden
                        - not_found
                        - conflict
                        - payload_too_large
                        - invalid_request
                        - rate_limited
                        - internal
                      message:
                        type: string
                      fields:
                        type: array
                        description: 'Present on invalid_request: which field, and why.'
                        items:
                          type: object
                          properties:
                            field:
                              type: string
                            message:
                              type: string
                      request_id:
                        type: string
                        description: Present on internal; matches the X-Request-Id header.
        '409':
          description: The request contradicts the current state of the record.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            X-RateLimit-Limit:
              $ref: '#/components/headers/XRateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/XRateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/XRateLimitReset'
          content:
            application/json:
              schema:
                type: object
                required:
                - error
                properties:
                  error:
                    type: object
                    required:
                    - code
                    - message
                    properties:
                      code:
                        type: string
                        enum:
                        - unauthorized
                        - forbidden
                        - not_found
                        - conflict
                        - payload_too_large
                        - invalid_request
                        - rate_limited
                        - internal
                      message:
                        type: string
                      fields:
                        type: array
                        description: 'Present on invalid_request: which field, and why.'
                        items:
                          type: object
                          properties:
                            field:
                              type: string
                            message:
                              type: string
                      request_id:
                        type: string
                        description: Present on internal; matches the X-Request-Id header.
        '413':
          description: 'The request body is over the limit: 2 MB for a JSON body, 50 MB for a proof photo.'
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            X-RateLimit-Limit:
              $ref: '#/components/headers/XRateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/XRateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/XRateLimitReset'
          content:
            application/json:
              schema:
                type: object
                required:
                - error
                properties:
                  error:
                    type: object
                    required:
                    - code
                    - message
                    properties:
                      code:
                        type: string
                        enum:
                        - unauthorized
                        - forbidden
                        - not_found
                        - conflict
                        - payload_too_large
                        - invalid_request
                        - rate_limited
                        - internal
                      message:
                        type: string
                      fields:
                        type: array
                        description: 'Present on invalid_request: which field, and why.'
                        items:
                          type: object
                          properties:
                            field:
                              type: string
                            message:
                              type: string
                      request_id:
                        type: string
                        description: Present on internal; matches the X-Request-Id header.
        '422':
          description: The body or query is malformed. Field-level detail arrives in `error.fields`.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            X-RateLimit-Limit:
              $ref: '#/components/headers/XRateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/XRateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/XRateLimitReset'
          content:
            application/json:
              schema:
                type: object
                required:
                - error
                properties:
                  error:
                    type: object
                    required:
                    - code
                    - message
                    properties:
                      code:
                        type: string
                        enum:
                        - unauthorized
                        - forbidden
                        - not_found
                        - conflict
                        - payload_too_large
                        - invalid_request
                        - rate_limited
                        - internal
                      message:
                        type: string
                      fields:
                        type: array
                        description: 'Present on invalid_request: which field, and why.'
                        items:
                          type: object
                          properties:
                            field:
                              type: string
                            message:
                              type: string
                      request_id:
                        type: string
                        description: Present on internal; matches the X-Request-Id header.
        '429':
          description: Over the per-key limit. `Retry-After` says how many seconds to wait.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            X-RateLimit-Limit:
              $ref: '#/components/headers/XRateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/XRateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/XRateLimitReset'
          content:
            application/json:
              schema:
                type: object
                required:
                - error
                properties:
                  error:
                    type: object
                    required:
                    - code
                    - message
                    properties:
                      code:
                        type: string
                        enum:
                        - unauthorized
                        - forbidden
                        - not_found
                        - conflict
                        - payload_too_large
                        - invalid_request
                        - rate_limited
                        - internal
                      message:
                        type: string
                      fields:
                        type: array
                        description: 'Present on invalid_request: which field, and why.'
                        items:
                          type: object
                          properties:
                            field:
                              type: string
                            message:
                              type: string
                      request_id:
                        type: string
                        description: Present on internal; matches the X-Request-Id header.
        '500':
          description: Our fault. `error.request_id` matches the X-Request-Id header — quote it to support.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            X-RateLimit-Limit:
              $ref: '#/components/headers/XRateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/XRateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/XRateLimitReset'
          content:
            application/json:
              schema:
                type: object
                required:
                - error
                properties:
                  error:
                    type: object
                    required:
                    - code
                    - message
                    properties:
                      code:
                        type: string
                        enum:
                        - unauthorized
                        - forbidden
                        - not_found
                        - conflict
                        - payload_too_large
                        - invalid_request
                        - rate_limited
                        - internal
                      message:
                        type: string
                      fields:
                        type: array
                        description: 'Present on invalid_request: which field, and why.'
                        items:
                          type: object
                          properties:
                            field:
                              type: string
                            message:
                              type: string
                      request_id:
                        type: string
                        description: Present on internal; matches the X-Request-Id header.
components:
  headers:
    XRateLimitReset:
      description: Seconds until the window resets. A duration, not a timestamp.
      schema:
        type: integer
    XRateLimitRemaining:
      description: Requests left in the current window.
      schema:
        type: integer
    XRateLimitLimit:
      description: Requests allowed per minute (600).
      schema:
        type: integer
    XRequestId:
      description: This request's id. Echoed from your own X-Request-Id when you send one; quote it to support.
      schema:
        type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Create one in your dashboard under Profile → API.