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

# Retrieve CSS Record

> Retrieve the content of a particular CSS record stored in PCI Booking.

<Card title="Stylesheets Guide" icon="book" href="/account-setup/stylesheets">
  Customize the appearance of hosted forms
</Card>

The response is a single CSS resource item including its full CSS content.

## Error Responses

| HTTP Status | Error Code | Description                                                                 |
| ----------- | ---------- | --------------------------------------------------------------------------- |
| 401         | -1003      | Not authenticated. The API key is missing or invalid.                       |
| 404         |            | Resource not found. No CSS record exists with the specified `ResourceName`. |

## Parameter Constraints

| Parameter      | Constraint                                                            |
| -------------- | --------------------------------------------------------------------- |
| `ResourceName` | Required. Must contain only alphanumeric characters (`[a-zA-Z0-9]+`). |

## Parameters

### Headers

<ParamField header="Authorization" type="string" required>
  Your API key prefixed with `APIKEY`. Example: `APIKEY your-api-key`. See the [Authentication guide](/getting-started/authentication).
</ParamField>

### Path Parameters

<ParamField path="ResourceName" type="string" required>
  The resource name assigned to this CSS record. You can view the list of CSS records in the user's site or [retrieve the full list](/api-reference/general/list-css-records) via the API.
</ParamField>

<RequestExample>
  ```javascript Node.js theme={null}
  const response = await fetch('https://service.pcibooking.net/api/resources/stylesheet/DefaultCSS', {
    headers: {
      'Authorization': 'APIKEY your-api-key'
    }
  });

  const cssRecord = await response.json();
  console.log(cssRecord);
  ```

  ```python Python theme={null}
  import requests

  response = requests.get(
      'https://service.pcibooking.net/api/resources/stylesheet/DefaultCSS',
      headers={
          'Authorization': 'APIKEY your-api-key'
      }
  )

  css_record = response.json()
  print(css_record)
  ```
</RequestExample>

## Response

<ResponseExample>
  ```json 200 theme={null}
  {
      "ResourceName": "DefaultCSS",
      "Description": "The default CSS",
      "ContentLTR": "body { background-color: powderblue; } h1 { color: blue; }",
      "ContentRTL": "",
      "IsDefault": true,
      "ContentType": "text/css"
  }
  ```

  ```json 404 theme={null}
  // Empty body. The specified ResourceName does not exist in your account.
  ```

  ```json 401 theme={null}
  {
      "code": -1003,
      "message": "Not authorized to access this resource",
      "moreInfo": "Bad or missing authorization data, expected APIKEY",
      "errorList": null
  }
  ```
</ResponseExample>
