{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/usenotra-com/json-schema/usenotra-com-geo-shelf-list-response-schema.json",
  "title": "GeoShelfListResponse",
  "description": "A page of the project's shelf sources, which are the pages AI answers cite, with their brand placements and listing tickets.",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/usenotra-com-openapi.json#/components/schemas/GeoShelfListResponse",
  "type": "object",
  "properties": {
    "sources": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "description": "Shelf source id."
          },
          "url": {
            "type": "string",
            "maxLength": 2048,
            "format": "uri",
            "description": "Page URL."
          },
          "domain": {
            "type": "string",
            "minLength": 1,
            "description": "Hostname of the page."
          },
          "title": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 200,
            "description": "Page title, from a teammate or from the citations in AI answers. `null` when unknown."
          },
          "kind": {
            "type": "string",
            "enum": [
              "listicle",
              "review_site",
              "community",
              "news",
              "docs",
              "video",
              "other"
            ],
            "description": "Type of page. For pages added by scans it is guessed from the domain, defaulting to other; teammates choose it for pages they add and can change it."
          },
          "ownership": {
            "type": "string",
            "enum": [
              "third_party",
              "own",
              "competitor"
            ],
            "description": "own: on your brand's website. competitor: on a tracked competitor's domain. third_party: anywhere else. Set when a scan adds the page; pages teammates add are third_party."
          },
          "origin": {
            "type": "string",
            "enum": [
              "scan",
              "manual"
            ],
            "description": "scan: added automatically because AI answers cited it. manual: added by a teammate."
          },
          "fetchStatus": {
            "type": "string",
            "enum": [
              "pending",
              "ok",
              "blocked",
              "failed"
            ],
            "description": "Whether Notra could read the page itself: pending, ok, blocked or failed. New sources start as pending."
          },
          "lastFetchedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When Notra last read the page. `null` if it never has."
          },
          "citations": {
            "type": "object",
            "properties": {
              "windowCount": {
                "type": "integer",
                "minimum": 0,
                "description": "AI answers from the 30 days before the last citation sync that cited this page."
              },
              "totalCount": {
                "type": "integer",
                "minimum": 0,
                "description": "AI answers that ever cited this page."
              },
              "promptCount": {
                "type": "integer",
                "minimum": 0,
                "description": "Distinct prompts whose answers cited this page."
              },
              "engines": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1
                },
                "description": "Engines that cited this page, sorted alphabetically."
              },
              "firstCitedAt": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "First answer that cited this page. `null` when no answer has cited it."
              },
              "lastCitedAt": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "Latest answer that cited this page. `null` when no answer has cited it."
              }
            },
            "required": [
              "windowCount",
              "totalCount",
              "promptCount",
              "engines",
              "firstCitedAt",
              "lastCitedAt"
            ],
            "description": "How often AI answers for the project cited this page, as of the last citation sync."
          },
          "placements": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "competitorId": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "minLength": 1,
                  "description": "Tracked competitor this placement is for, or `null` for your own brand."
                },
                "brandName": {
                  "type": "string",
                  "minLength": 1,
                  "description": "Brand name at the time the placement was written."
                },
                "brandDomain": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Brand website domain at the time the placement was written. `null` when unknown."
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "present",
                    "absent",
                    "unknown"
                  ],
                  "description": "present: the brand is listed on the page. absent: it is not. unknown: nobody has checked yet."
                },
                "position": {
                  "type": [
                    "integer",
                    "null"
                  ],
                  "exclusiveMinimum": 0,
                  "description": "1-based position of the brand on the page. `null` when unknown, and always `null` unless status is present."
                },
                "hasLink": {
                  "type": "boolean",
                  "description": "Whether the page links to the brand. Always false unless status is present."
                },
                "evidence": {
                  "type": "string",
                  "enum": [
                    "fetch",
                    "manual"
                  ],
                  "description": "manual: a teammate set the status. fetch: Notra read the page after a scan and found the brand there or not."
                },
                "excerpt": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Text from the page around the brand. `null` when none was captured."
                },
                "checkedAt": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When this placement's status was last set."
                }
              },
              "required": [
                "competitorId",
                "brandName",
                "brandDomain",
                "status",
                "position",
                "hasLink",
                "evidence",
                "excerpt",
                "checkedAt"
              ]
            },
            "description": "Which brands are listed on the page. Your own brand is always included; a competitor appears only once marked present or absent."
          },
          "opportunity": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "open",
                  "in_progress",
                  "won",
                  "lost",
                  "dismissed"
                ],
                "description": "open or in_progress while the ticket is worked on. won, lost or dismissed close it."
              },
              "priority": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "low",
                  "medium",
                  "high",
                  null
                ],
                "description": "low, medium or high. `null` when no priority is set."
              },
              "assigneeMemberId": {
                "type": [
                  "string",
                  "null"
                ],
                "minLength": 1,
                "description": "Organization member id (not user id) of the assignee. `null` when unassigned."
              },
              "pocMemberId": {
                "type": [
                  "string",
                  "null"
                ],
                "minLength": 1,
                "description": "Organization member id of the point of contact. `null` when the assignee is also the point of contact."
              },
              "notes": {
                "type": [
                  "string",
                  "null"
                ],
                "maxLength": 2000,
                "description": "Free-text notes on the ticket."
              },
              "dueAt": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "Due date. `null` when none is set."
              },
              "id": {
                "type": "string",
                "minLength": 1,
                "description": "Ticket id."
              },
              "createdByUserId": {
                "type": [
                  "string",
                  "null"
                ],
                "minLength": 1,
                "description": "User who opened the ticket."
              },
              "resolvedAt": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When the ticket was closed (won, lost or dismissed). Kept when it moves between closed statuses; `null` while open."
              },
              "createdAt": {
                "type": "string",
                "format": "date-time",
                "description": "When the ticket was opened."
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time",
                "description": "When the ticket last changed."
              }
            },
            "required": [
              "status",
              "priority",
              "assigneeMemberId",
              "pocMemberId",
              "notes",
              "dueAt",
              "id",
              "createdByUserId",
              "resolvedAt",
              "createdAt",
              "updatedAt"
            ],
            "description": "Ticket for getting your brand listed on this page. `null` when none was opened."
          },
          "createdByUserId": {
            "type": [
              "string",
              "null"
            ],
            "minLength": 1,
            "description": "User who added the page. `null` for pages added by scans."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "For pages added by scans, when an answer first cited them; otherwise when a teammate added them."
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Last edit or citation change. Pages added by scans start with the time of their latest citation."
          }
        },
        "required": [
          "id",
          "url",
          "domain",
          "title",
          "kind",
          "ownership",
          "origin",
          "fetchStatus",
          "lastFetchedAt",
          "citations",
          "placements",
          "opportunity",
          "createdByUserId",
          "createdAt",
          "updatedAt"
        ]
      },
      "description": "The project's shelf sources, most recently updated first. Homepage URLs found by scans are left out."
    },
    "nextOffset": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "description": "Pass as `offset` to fetch the next page, or `null` when this is the last page."
    },
    "organization": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Workspace ID. Account API keys can send it, or the slug, as X-Notra-Organization-Id."
        },
        "slug": {
          "type": "string",
          "description": "URL-safe workspace handle, unique across Notra."
        },
        "name": {
          "type": "string",
          "description": "Workspace display name."
        },
        "logo": {
          "type": [
            "string",
            "null"
          ],
          "description": "Workspace logo image URL. Null when none is set."
        }
      },
      "required": [
        "id",
        "slug",
        "name",
        "logo"
      ],
      "description": "Workspace the request ran in."
    }
  },
  "required": [
    "sources",
    "nextOffset",
    "organization"
  ]
}