> ## Documentation Index
> Fetch the complete documentation index at: https://dokumentation.websale.de/llms.txt
> Use this file to discover all available pages before exploring further.

# API reference CMS

> Retrieve the URL to the connected Strapi content management system via the Admin Interface API CMS endpoint so authorized users can manage content.

The `/cms/` interface provides an access point for retrieving the URL to the Strapi content management system (CMS) of the shop system.

The endpoint provides the direct link to the Strapi admin area so that authorized users can log in and manage content there. Currently, only the CMS type `strapi` is supported.

Direct access to CMS content via the API is currently not provided.

***

## Supported methods

List of all supported methods.

| **Command/info** | **Endpoints** | **GET**               | **POST**            | **PUT**             | **DELETE**          |
| ---------------- | ------------- | --------------------- | ------------------- | ------------------- | ------------------- |
| **CMS**          | cms/          | <Icon icon="check" /> | <Icon icon="ban" /> | <Icon icon="ban" /> | <Icon icon="ban" /> |

## Methods for the CMS

### GET cms/

This endpoint returns the URL to the admin area of the connected content management system (CMS).

A query parameter can be used to specify the type of the CMS; currently, only `strapi` is supported.

#### Example

```text theme={"theme":{"light":"github-light","dark":"github-dark"},"languages":{"custom":["/languages/websale.json"]}}
http://www.<your-shop>.de/admin/api/v1/cms?type=strapi
```

#### Response

```text theme={"theme":{"light":"github-light","dark":"github-dark"},"languages":{"custom":["/languages/websale.json"]}}
https://<shopId>-cms.websale.net/admin
```

#### Error codes

| **Error**        | **Type**       | **Reason**                                                                                                       |
| ---------------- | -------------- | ---------------------------------------------------------------------------------------------------------------- |
| 401 Unauthorized |                | Not authorized: you are not logged in.                                                                           |
| 403 Forbidden    |                | You do not have the required permissions to read CMS data.                                                       |
| 400 Bad Request  | "invalidValue" | The `type` parameter is missing or has an invalid value. <br /> Currently, only the value `strapi` is supported. |

## Support

Bei technischen Fragen und Hilfestellungen ist unser Support-Team für Sie erreichbar: [Zum Kundenportal](https://websale.atlassian.net/servicedesk/customer/portal/6)

Bitte senden Sie uns eine möglichst detaillierte Beschreibung sowie Screenshots, Requests/Antworten, damit wir Ihre Anfrage zeitnah und zielführend beantworten können.
