---
updatedAt: 2026-04-21T06:33:42.000Z
agentTools:
  projectIndex: https://developer.peachpayments.com/llms.txt
---

# Get CSP config as plain text

Returns the Content Security Policy configuration file in plain text format.

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "version": "1.0.0",
    "title": "Checkout",
    "description": "Checkout by Peach Payments is a ready to use payment experience securely hosted and managed by Peach Payments. With Checkout, merchants have the ability to accept a full range of payment methods with only a single developer integration. Support for card, EFT, BNPL (buy now, pay later), QR code, digital wallet, voucher, and mobile money are available straight out the box and can be customised by the merchant through the Peach Payments Console. Checkout is secure and provides both the merchant and customer confidence in the security of web payments.\n\nThis specification helps developers to easily integrate Checkout into payment pages for web using the Checkout API.",
    "contact": {
      "name": "Peach Payments Support",
      "url": "https://support.peachpayments.com/support/home",
      "email": "support@peachpayments.com"
    },
    "license": {
      "name": "Proprietary",
      "url": "https://peachpayments.com/legal"
    }
  },
  "servers": [
    {
      "url": "https://testsecure.peachpayments.com",
      "description": "Sandbox testing environment."
    },
    {
      "url": "https://secure.peachpayments.com",
      "description": "Live production environment."
    }
  ],
  "security": [],
  "tags": [
    {
      "name": "CSP Config",
      "description": "Content Security Policy configuration endpoints."
    }
  ],
  "paths": {
    "/.well-known/csp-config.txt": {
      "get": {
        "summary": "Get CSP config as plain text",
        "description": "Returns the Content Security Policy configuration file in plain text format.",
        "tags": [
          "CSP Config"
        ],
        "responses": {
          "200": {
            "description": "CSP configuration returned in plain text format.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Failed to load CSP config.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "Failed to load CSP config."
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true,
    "samples-enabled": true
  }
}
```