Sitemap
Fetch sitemap entries for published articles. This endpoint is useful if you want to generate your own sitemap.xml.
GET /api/v1/public/sitemap
Requires scope read:sitemap. Results are scoped to your organization’s products.
Example
curl -H "Authorization: Bearer trident_pk_..." \
"https://app.tridentseo.ai/api/v1/public/sitemap"Response
{
"entries": [
{
"slug": "my-article",
"productSlug": "my-product",
"languageCode": "en",
"territoryCode": "US",
"publishedAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-02T00:00:00.000Z"
}
]
}Schema
TypeScript shape (see full definitions in Schemas):
type PublicSitemapResponse = {
entries: Array<{
slug: string;
productSlug: string;
languageCode: string;
territoryCode: string;
publishedAt: string | null; // ISO datetime
updatedAt: string; // ISO datetime
}>;
};| Field | Type | Notes |
|---|---|---|
| slug | string | Article slug |
| productSlug | string | Product slug |
| languageCode | string | Language code (e.g. en) |
| territoryCode | string | Territory code (e.g. US) |
| publishedAt | string | null | ISO datetime |
| updatedAt | string | ISO datetime |
Caching
The response may include Cache-Control headers allowing caching (e.g. 1 hour).