{ "get": { "operationId": "listDomains", "tags": [ "Domains" ], "summary": "List existing domains", "description": "Returns the list of all domains ever used, with a flag that tells if they are the default domain", "security": [ { "ApiKey": [] } ], "parameters": [ { "$ref": "../parameters/version.json" } ], "responses": { "200": { "description": "The list of domains", "content": { "application/json": { "schema": { "type": "object", "required": ["domains"], "properties": { "domains": { "type": "object", "required": ["data"], "properties": { "data": { "type": "array", "items": { "type": "object", "required": ["domain", "isDefault", "redirects"], "properties": { "domain": { "type": "string" }, "isDefault": { "type": "boolean" }, "redirects": { "$ref": "../definitions/NotFoundRedirects.json" } } } }, "defaultRedirects": { "$ref": "../definitions/NotFoundRedirects.json" } } } } } } }, "examples": { "application/json": { "domains": { "data": [ { "domain": "example.com", "isDefault": true, "redirects": { "baseUrlRedirect": "https://example.com/my-landing-page", "regular404Redirect": null, "invalidShortUrlRedirect": "https://example.com/invalid-url" } }, { "domain": "aaa.com", "isDefault": false, "redirects": { "baseUrlRedirect": null, "regular404Redirect": null, "invalidShortUrlRedirect": null } }, { "domain": "bbb.com", "isDefault": false, "redirects": { "baseUrlRedirect": null, "regular404Redirect": null, "invalidShortUrlRedirect": "https://example.com/invalid-url" } } ], "defaultRedirects": { "baseUrlRedirect": "https://somewhere.com", "regular404Redirect": null, "invalidShortUrlRedirect": null } } } } }, "500": { "description": "Unexpected error.", "content": { "application/problem+json": { "schema": { "$ref": "../definitions/Error.json" } } } } } } }