MarketSDK Listings API

The Listings API from MarketSDK — 9 operation(s) for listings.

Operations 12

POST /v1/listings Create a listing, as a draft #
GET /v1/listings List listings, newest first #
POST /v1/listings/bulk Create up to 100 listings at once, all or none #
GET /v1/listings/{id} Retrieve a listing #
PATCH /v1/listings/{id} Update a listing #
POST /v1/listings/{id}/publish Publish a listing #
POST /v1/listings/{id}/unpublish Return a published listing to draft #
POST /v1/listings/{id}/remove Take a listing down, with a reason #
POST /v1/listings/{id}/media Start a media upload #
GET /v1/listings/{id}/media A listing's media, pending uploads included #
POST /v1/media/{id}/complete Complete a media upload #
DELETE /v1/media/{id} Delete media and its file #

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/marketsdk:marketsdk-listings-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

marketsdk-listings-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Marketsdk Listings API
  version: 1.0.0
  contact: {}
  description: 'Operations tagged Listings across 2 of this provider''s published API definitions: marketsdk-openapi.json, marketsdk-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.marketsdk.com
tags:
- name: Listings
paths:
  /v1/listings:
    post:
      operationId: createListing
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateListingDto'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListingObject'
        '400':
          description: The request is not valid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '401':
          description: No API key, or not a valid one.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '404':
          description: No object with that id in this marketplace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '409':
          description: The object is not in a state that allows this.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '429':
          description: Rate limited. See `Retry-After`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      security:
      - bearer: []
      summary: Create a listing, as a draft
      tags:
      - Listings
    get:
      description: With a publishable key, only published listings are listed.
      operationId: listListings
      parameters:
      - name: limit
        required: false
        in: query
        schema:
          minimum: 1
          maximum: 100
          default: 20
          type: number
      - name: starting_after
        required: false
        in: query
        description: The `next_cursor` of the previous page.
        schema:
          type: string
      - name: seller
        required: false
        in: query
        schema:
          type: string
      - name: category
        required: false
        in: query
        schema:
          type: string
      - name: status
        required: false
        in: query
        schema:
          type: string
          enum:
          - draft
          - published
          - sold
          - expired
          - removed
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListingList'
        '400':
          description: The request is not valid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '401':
          description: No API key, or not a valid one.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '429':
          description: Rate limited. See `Retry-After`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      security:
      - bearer: []
      summary: List listings, newest first
      tags:
      - Listings
      x-publishable: true
    servers:
    - url: https://api.marketsdk.com
  /v1/listings/bulk:
    post:
      operationId: createListings
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BulkCreateListingsDto'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BulkListingsObject'
        '400':
          description: The request is not valid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '401':
          description: No API key, or not a valid one.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '404':
          description: No object with that id in this marketplace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '409':
          description: The object is not in a state that allows this.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '429':
          description: Rate limited. See `Retry-After`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      security:
      - bearer: []
      summary: Create up to 100 listings at once, all or none
      tags:
      - Listings
    servers:
    - url: https://api.marketsdk.com
  /v1/listings/{id}:
    get:
      description: With a publishable key, only a published listing can be retrieved.
      operationId: getListing
      parameters:
      - name: id
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListingObject'
        '400':
          description: The request is not valid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '401':
          description: No API key, or not a valid one.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '404':
          description: No object with that id in this marketplace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '429':
          description: Rate limited. See `Retry-After`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      security:
      - bearer: []
      summary: Retrieve a listing
      tags:
      - Listings
      x-publishable: true
    patch:
      operationId: updateListing
      parameters:
      - name: id
        required: true
        in: path
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateListingDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListingObject'
        '400':
          description: The request is not valid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '401':
          description: No API key, or not a valid one.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '404':
          description: No object with that id in this marketplace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '409':
          description: The object is not in a state that allows this.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '429':
          description: Rate limited. See `Retry-After`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      security:
      - bearer: []
      summary: Update a listing
      tags:
      - Listings
    servers:
    - url: https://api.marketsdk.com
  /v1/listings/{id}/publish:
    post:
      description: Needs an active seller, verified when seller verification is on, and a category that is not prohibited.
      operationId: publishListing
      parameters:
      - name: id
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListingObject'
        '400':
          description: The request is not valid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '401':
          description: No API key, or not a valid one.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '403':
          description: Not allowed with this key, or the marketplace is read-only.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '404':
          description: No object with that id in this marketplace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '409':
          description: The object is not in a state that allows this.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '429':
          description: Rate limited. See `Retry-After`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      security:
      - bearer: []
      summary: Publish a listing
      tags:
      - Listings
    servers:
    - url: https://api.marketsdk.com
  /v1/listings/{id}/unpublish:
    post:
      operationId: unpublishListing
      parameters:
      - name: id
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListingObject'
        '400':
          description: The request is not valid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '401':
          description: No API key, or not a valid one.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '404':
          description: No object with that id in this marketplace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '409':
          description: The object is not in a state that allows this.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '429':
          description: Rate limited. See `Retry-After`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      security:
      - bearer: []
      summary: Return a published listing to draft
      tags:
      - Listings
    servers:
    - url: https://api.marketsdk.com
  /v1/listings/{id}/remove:
    post:
      operationId: removeListing
      parameters:
      - name: id
        required: true
        in: path
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RemoveListingDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListingObject'
        '400':
          description: The request is not valid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '401':
          description: No API key, or not a valid one.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '404':
          description: No object with that id in this marketplace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '409':
          description: The object is not in a state that allows this.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '429':
          description: Rate limited. See `Retry-After`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      security:
      - bearer: []
      summary: Take a listing down, with a reason
      tags:
      - Listings
    servers:
    - url: https://api.marketsdk.com
  /v1/listings/{id}/media:
    post:
      description: Returns a signed URL, valid for 10 minutes. PUT the file there, then complete the upload. The file is stored under a path that begins with the marketplace id.
      operationId: createMedia
      parameters:
      - name: id
        required: true
        in: path
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateMediaDto'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MediaUploadObject'
        '400':
          description: The request is not valid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '401':
          description: No API key, or not a valid one.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '404':
          description: No object with that id in this marketplace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '409':
          description: The object is not in a state that allows this.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '429':
          description: Rate limited. See `Retry-After`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      security:
      - bearer: []
      summary: Start a media upload
      tags:
      - Listings
    get:
      operationId: listMedia
      parameters:
      - name: id
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MediaList'
        '400':
          description: The request is not valid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '401':
          description: No API key, or not a valid one.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '404':
          description: No object with that id in this marketplace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '429':
          description: Rate limited. See `Retry-After`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      security:
      - bearer: []
      summary: A listing's media, pending uploads included
      tags:
      - Listings
    servers:
    - url: https://api.marketsdk.com
  /v1/media/{id}/complete:
    post:
      description: Checks the stored file against the declared type and size.
      operationId: completeMedia
      parameters:
      - name: id
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MediaObject'
        '400':
          description: The request is not valid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '401':
          description: No API key, or not a valid one.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '404':
          description: No object with that id in this marketplace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '409':
          description: The object is not in a state that allows this.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '429':
          description: Rate limited. See `Retry-After`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      security:
      - bearer: []
      summary: Complete a media upload
      tags:
      - Listings
    servers:
    - url: https://api.marketsdk.com
  /v1/media/{id}:
    delete:
      operationId: deleteMedia
      parameters:
      - name: id
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MediaObject'
        '400':
          description: The request is not valid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '401':
          description: No API key, or not a valid one.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '404':
          description: No object with that id in this marketplace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '429':
          description: Rate limited. See `Retry-After`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      security:
      - bearer: []
      summary: Delete media and its file
      tags:
      - Listings
    servers:
    - url: https://api.marketsdk.com
components:
  schemas:
    MoneyObject:
      type: object
      properties:
        amount:
          type: number
          description: Integer minor units.
          example: 4900
        currency:
          type: string
          example: USD
      required:
      - amount
      - currency
    BulkListingsObject:
      type: object
      properties:
        object:
          type: string
          enum:
          - list
        data:
          type: array
          items:
            $ref: '#/components/schemas/ListingObject'
      required:
      - object
      - data
    ErrorEnvelope:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/ErrorBody'
      required:
      - error
    ListingObject:
      type: object
      properties:
        object:
          type: string
          enum:
          - listing
        id:
          type: string
          example: lst_034XtPDs7UJ0TXzTsdaHZa
        seller:
          type: string
        category:
          type:
          - string
          - 'null'
        title:
          type: string
        description:
          type:
          - string
          - 'null'
        price:
          $ref: '#/components/schemas/MoneyObject'
        quantity:
          type: number
        quantity_available:
          type: number
          description: Not reserved by an open order.
        status:
          type: string
          enum:
          - draft
          - published
          - sold
          - expired
          - removed
        attributes:
          type: object
          additionalProperties: true
        media:
          type: array
          items:
            $ref: '#/components/schemas/MediaObject'
        metadata:
          type: object
          additionalProperties:
            type: string
        published_at:
          type:
          - string
          - 'null'
          format: date-time
        expires_at:
          type:
          - string
          - 'null'
          format: date-time
        removed_reason:
          type:
          - string
          - 'null'
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      required:
      - object
      - id
      - seller
      - category
      - title
      - description
      - price
      - quantity
      - quantity_available
      - status
      - attributes
      - media
      - metadata
      - published_at
      - expires_at
      - removed_reason
      - created_at
      - updated_at
    MediaList:
      type: object
      properties:
        object:
          type: string
          enum:
          - list
        data:
          type: array
          items:
            $ref: '#/components/schemas/MediaObject'
        has_more:
          type: boolean
          description: Whether another page follows.
        next_cursor:
          type:
          - string
          - 'null'
          description: Pass as `starting_after` (or `cursor` for search) to get the next page.
      required:
      - object
      - data
      - has_more
      - next_cursor
    MoneyDto:
      type: object
      properties:
        amount:
          type: number
          description: Integer minor units, such as cents.
          example: 4900
        currency:
          type: string
          description: ISO 4217 code. Must be the marketplace currency.
          example: USD
      required:
      - amount
      - currency
    MediaUploadObject:
      type: object
      properties:
        media:
          $ref: '#/components/schemas/MediaObject'
        upload_url:
          type: string
          description: PUT the file here, with the same Content-Type, within 10 minutes. Then complete the upload.
        upload_expires_at:
          type: string
          format: date-time
      required:
      - media
      - upload_url
      - upload_expires_at
    RemoveListingDto:
      type: object
      properties:
        reason:
          type: string
          maxLength: 500
          description: Recorded with the removal.
      required:
      - reason
    MediaObject:
      type: object
      properties:
        object:
          type: string
          enum:
          - media
        id:
          type: string
          example: med_034XtPDs7UJ0TXzTsdaHZa
        listing:
          type: string
        status:
          type: string
          enum:
          - pending
          - ready
        content_type:
          type: string
          example: image/jpeg
        size_bytes:
          type: number
        position:
          type: number
        url:
          type:
          - string
          - 'null'
          description: A signed link to the file, valid for an hour. Null until the upload completes.
        url_expires_at:
          type:
          - string
          - 'null'
          format: date-time
        created_at:
          type: string
          format: date-time
      required:
      - object
      - id
      - listing
      - status
      - content_type
      - size_bytes
      - position
      - url
      - url_expires_at
      - created_at
    ListingList:
      type: object
      properties:
        object:
          type: string
          enum:
          - list
        data:
          type: array
          items:
            $ref: '#/components/schemas/ListingObject'
        has_more:
          type: boolean
          description: Whether another page follows.
        next_cursor:
          type:
          - string
          - 'null'
          description: Pass as `starting_after` (or `cursor` for search) to get the next page.
      required:
      - object
      - data
      - has_more
      - next_cursor
    BulkCreateListingsDto:
      type: object
      properties:
        listings:
          minItems: 1
          maxItems: 100
          description: All are created, or none.
          type: array
          items:
            $ref: '#/components/schemas/CreateListingDto'
      required:
      - listings
    ErrorBody:
      type: object
      properties:
        code:
          type: string
          description: Machine-readable. Never changes once published.
          example: resource_missing
        message:
          type: string
          description: For people.
          example: No seller has that id.
        param:
          type: string
          description: The request field at fault.
          example: seller
        request_id:
          type: string
          example: req_7Gq0mR2s9xVbN4kT1pLc
      required:
      - code
      - message
      - request_id
    UpdateListingDto:
      type: object
      properties:
        category:
          type:
          - string
          - 'null'
        title:
          type: string
          maxLength: 200
        description:
          type:
          - string
          - 'null'
        price:
          $ref: '#/components/schemas/MoneyDto'
        quantity:
          type: number
          minimum: 1
          description: The total. Cannot go below what open orders have reserved.
        attributes:
          type: object
          additionalProperties: true
        metadata:
          type: object
          additionalProperties:
            type: string
        expires_at:
          type:
          - string
          - 'null'
          format: date-time
    CreateListingDto:
      type: object
      properties:
        seller:
          type: string
          example: sel_034XtPDs7UJ0TXzTsdaHZa
        category:
          type:
          - string
          - 'null'
          example: cat_034XtPDs7UJ0TXzTsdaHZa
        title:
          type: string
          maxLength: 200
        description:
          type:
          - string
          - 'null'
          maxLength: 20000
        price:
          $ref: '#/components/schemas/MoneyDto'
        quantity:
          type: number
          default: 1
          minimum: 1
          maximum: 100000
        attributes:
          type: object
          description: Validated against the category's attribute schema.
          additionalProperties: true
        metadata:
          type: object
          additionalProperties:
            type: string
        expires_at:
          type:
          - string
          - 'null'
          format: date-time
          description: When a published listing expires.
      required:
      - seller
      - title
      - price
    CreateMediaDto:
      type: object
      properties:
        content_type:
          type: string
          enum:
          - image/jpeg
          - image/png
          - image/webp
          - image/gif
          - image/avif
        size_bytes:
          type: number
          minimum: 1
          maximum: 10485760
          description: The exact size of the file, in bytes. At most 10 MB.
        position:
          type: number
          default: 0
      required:
      - content_type
      - size_bytes
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: API key
      type: http
      description: 'An API key: msk_test_sk_…, msk_live_sk_…, or a publishable msk_…_pk_… key where allowed.'
x-refined-from:
- marketsdk-openapi.json
- marketsdk-openapi.json
x-stripe-permissions:
- permission: accounts
  category: Core
  resource: Accounts
  level: Write
  used_for: Create sellers' connected accounts and read their status
- permission: account_links
  category: Connect
  resource: Account Links
  level: Write
  used_for: Onboarding links for sellers
- permission: transfers
  category: Connect
  resource: Transfers
  level: Write
  used_for: Release funds to a seller, and reverse them on a refund
- permission: payment_intents
  category: Core
  resource: Payment Intents
  level: Write
  used_for: Buyer payments, and cancelling unpaid ones
- permission: charges_and_refunds
  category: Core
  resource: Charges and Refunds
  level: Write
  used_for: Refunds, full and partial
- permission: checkout_sessions
  category: Checkout
  resource: Checkout Sessions
  level: Write
  used_for: Hosted checkout, and expiring unpaid sessions
- permission: identity_verification_sessions
  category: Identity
  resource: Verification Sessions and Reports
  level: Write
  used_for: Seller identity verification
- permission: disputes
  category: Core
  resource: Disputes
  level: Read
  used_for: Reading card disputes, to link them to orders
- permission: webhook_endpoints
  category: Webhook Endpoints
  resource: Webhook Endpoints
  level: Write
  used_for: Registering our endpoint on your account