API reference

Production access is closed · 37 operations

List your own listings

GET/api/v1/listings

A page of listings owned by the API key owner.

The results contain listings owned by the key owner. When nextCursor has a value, use it as cursor in the next request.

Required scope listings:read

Jump to the example

Parameters

NameLocationTypeRequiredDescription
limitqueryintegerNominimum 1 · maximum 50 · default 25
cursorquerystringNomax. characters 250

Responses

200 A page of listings owned by the API key owner.
application/json
Schema object
NameTypeRequiredDescription
itemsListing[]Yes—
nextCursorstring | nullYes—
JSON Schema
{
  "type": "object",
  "required": [
    "items",
    "nextCursor"
  ],
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Listing"
      }
    },
    "nextCursor": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}
Other API errors Request processing error.
application/json
Schema object
NameTypeRequiredDescription
codestringYes—
messagestringYes—
requestIdstringYes—
issuesobject[]No—
JSON Schema
{
  "type": "object",
  "required": [
    "code",
    "message",
    "requestId"
  ],
  "properties": {
    "code": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "requestId": {
      "type": "string"
    },
    "issues": {
      "type": "array",
      "items": {
        "type": "object"
      }
    }
  }
}
401 A valid API key is required.
403 The scope is missing or the production request does not use HTTPS.
429 Rate limit exceeded. Check Retry-After.
503 Access is closed or the service is temporarily unavailable. Check code.

Handle errors and rate limits ↗

Related schemas

Listing
{
  "type": "object",
  "required": [
    "id",
    "title",
    "price",
    "category",
    "createdAt",
    "updatedAt",
    "expiresAt",
    "status",
    "publicationState",
    "publicPath"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "price": {
      "type": "integer"
    },
    "category": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    },
    "expiresAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "status": {
      "enum": [
        "draft",
        "payment_required",
        "active",
        "expired",
        "sold"
      ]
    },
    "publicationState": {
      "enum": [
        "public",
        "pending",
        "hidden"
      ]
    },
    "publicPath": {
      "type": [
        "string",
        "null"
      ]
    },
    "paymentPath": {
      "type": "string"
    }
  }
}