List listing types
GET
/api/v1/listing-typesListing 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
Responses
200 Listing types and form requirements.application/jsonSchema object
| Name | Type | Required | Description |
|---|---|---|---|
formVersion | integer | Yes | — |
types | object[] | 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/jsonSchema object
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | — |
message | string | Yes | — |
requestId | string | Yes | — |
issues | object[] | 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.