# Site

Static configuration and metadata endpoints

## Retrieve site configuration

> Returns country, currency, and phone-formatting information for the storefront.\
> \
> \*\*Business Logic:\*\*\
> \- Active currency resolved via session (falls back to default)\
> \- Country derived from \`DEFAULT\_COUNTRY\_CODE\`\
> \- Phone validation data sourced from dynamic settings

```json
{"openapi":"3.1.0","info":{"title":"Users API - Public Endpoints","version":"1.0.0"},"tags":[{"name":"Site","description":"Static configuration and metadata endpoints"}],"servers":[{"description":"Default commerce site","url":"https://{commerce_url}","variables":{"commerce_url":{"default":"sandbox.akinon.com","description":"Commerce storefront hostname"}}}],"paths":{"/config/":{"get":{"tags":["Site"],"operationId":"getSiteConfig","summary":"Retrieve site configuration","parameters":[{"$ref":"#/components/parameters/CookieHeader"}],"description":"Returns country, currency, and phone-formatting information for the storefront.\n\n**Business Logic:**\n- Active currency resolved via session (falls back to default)\n- Country derived from `DEFAULT_COUNTRY_CODE`\n- Phone validation data sourced from dynamic settings","responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigResponse"}}}}}}}},"components":{"parameters":{"CookieHeader":{"name":"X-Cookie","in":"header","description":"Use X-Cookie header instead of Cookie header in \"try out\" section.\nUse Cookie header while testing in postman or other tools.\nSome commerce applications may support 'sesionid' instead of 'osessionid'.","required":false,"schema":{"type":"string"}}},"schemas":{"ConfigResponse":{"type":"object","description":"Storefront configuration payload","required":["active_currency","available_currencies","country","user_phone_regex","user_phone_format"],"properties":{"active_currency":{"type":"string","description":"ISO currency code currently active for the session"},"available_currencies":{"type":"array","description":"Currency codes enabled for the storefront","items":{"type":"string"}},"country":{"$ref":"#/components/schemas/Country"},"user_phone_regex":{"type":"string","description":"Regular expression used for phone validation"},"user_phone_format":{"type":"string","description":"Suggested phone format for UI display"}}},"Country":{"type":"object","description":"Country metadata extracted from dynamic settings","required":["pk","name","code"],"properties":{"pk":{"type":"integer"},"name":{"type":"string"},"code":{"type":"string"}}}}}}
```


---

# Agent Instructions: 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:

```
GET https://apidocs.akinon.com/commerce-openapis/users/module-1/site.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
