API reference

Production access is closed · 37 operations

List listing types

GET/api/v1/listing-types

Listing types and form requirements.

Fetch the current listing-type profile before validating a form. It covers required fields, conditions and the minimum photo count.

Required scope listings:read

Jump to the example

Responses

200 Listing types and form requirements.
application/json
Schema object
NameTypeRequiredDescription
formVersionintegerYes—
typesobject[]Yes—
JSON Schema
{
  "type": "object",
  "required": [
    "formVersion",
    "types"
  ],
  "properties": {
    "formVersion": {
      "type": "integer"
    },
    "types": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "label",
          "category",
          "minimumPhotos",
          "required",
          "optional",
          "conditionallyRequired"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "minimumPhotos": {
            "type": "integer"
          },
          "required": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "optional": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "conditionallyRequired": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "required": [
                "field",
                "notEquals"
              ],
              "properties": {
                "field": {
                  "type": "string"
                },
                "notEquals": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  }
}
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 ↗