> 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
