> For the complete documentation index, see [llms.txt](https://apidocs.akinon.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apidocs.akinon.com/commerce-openapis/cms/seo-and-utilities.md).

# SEO & Utilities

SEO metadata and utility endpoints

## Retrieve SEO metadata

> Returns SEO metadata (title, description, keywords) for a given URL.

```json
{"openapi":"3.1.0","info":{"title":"CMS API - Content Management & Pages","version":"1.0.0"},"tags":[{"name":"SEO & Utilities","description":"SEO metadata and utility endpoints"}],"servers":[{"description":"Default commerce site","url":"https://{commerce_url}","variables":{"commerce_url":{"default":"sandbox.akinon.com","description":"Commerce storefront hostname"}}}],"paths":{"/cms/seo/":{"get":{"tags":["SEO & Utilities"],"operationId":"retrieveSeo","summary":"Retrieve SEO metadata","description":"Returns SEO metadata (title, description, keywords) for a given URL.","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string"},"description":"URL path to get SEO data for"}],"responses":{"200":{"description":"SEO data retrieved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Seo"}}}},"404":{"description":"SEO data not found for the given URL"}}}}},"components":{"schemas":{"Seo":{"type":"object","description":"SEO metadata for a specific URL path. Contains title, description, keywords, and additional attributes\nfor search engine optimization. Used to retrieve SEO information for any URL in the system.","required":["pk","url"],"properties":{"pk":{"type":"integer"},"url":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"keywords":{"type":"string"},"attributes":{"type":"object","description":"Additional SEO attributes","additionalProperties":true},"attributes_kwargs":{"type":"object","description":"SEO attribute configuration","additionalProperties":true},"created_date":{"type":"string","format":"date-time"},"modified_date":{"type":"string","format":"date-time"}}}}}}
```

## Get CSRF token

> Returns a CSRF token for use in form submissions.

```json
{"openapi":"3.1.0","info":{"title":"CMS API - Content Management & Pages","version":"1.0.0"},"tags":[{"name":"SEO & Utilities","description":"SEO metadata and utility endpoints"}],"servers":[{"description":"Default commerce site","url":"https://{commerce_url}","variables":{"commerce_url":{"default":"sandbox.akinon.com","description":"Commerce storefront hostname"}}}],"paths":{"/csrf_token/":{"get":{"tags":["SEO & Utilities"],"operationId":"getCsrfToken","summary":"Get CSRF token","description":"Returns a CSRF token for use in form submissions.","responses":{"200":{"description":"CSRF token retrieved","content":{"application/json":{"schema":{"type":"object","required":["csrf_token"],"properties":{"csrf_token":{"type":"string","description":"CSRF token value"}}}}}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://apidocs.akinon.com/commerce-openapis/cms/seo-and-utilities.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
