
# The {auth} placeholder

> {auth} Either: The user's API Key can be provided within the request's Authorization header as a Bearer token.Example: Authorization: Bearer&#160;27c03f58-7c79-45d1-aa8f-76d697bbb10d The user's username and password can be provided within the request's Authorization header using a Basic&#160;authent

URL: https://www.hannonhill.com/cascadecms/latest/articles/developing-in-cascade/rest-api/placeholders/auth.html
category: Developing in Cascade
article-type: reference
content-kind: article
release-availability: all
tags: api
updated: 2026-10-06

## Overview

### {auth}

Either:

- The [user's API Key](https://www.hannonhill.com/cascadecms/latest/articles/cascade-basics/account-settings.html#api-key) can be provided within the request's `Authorization` header as a `Bearer` token. Example: `Authorization: Bearer 27c03f58-7c79-45d1-aa8f-76d697bbb10d`
- The user's username and password can be provided within the request's `Authorization` header using a `Basic` authentication string, which is a base64-encoded string containing `username:password`. Example: `Authorization: Basic am9obi5zbWl0aDpqb2huMTIz`
- Request parameters `u` and `p` for username and password, or `apiKey` for the user's API Key.  Examples: `u=john.smith&p=john123` OR `apiKey=27c03f58-7c79-45d1-aa8f-76d697bbb10d`
- Authentication can also be provided in body in JSON format for POST requests only.  Examples:
    ```markup
    "authentication": {
      "username": "john.smith",
      "password": "john123"
    }
    ```

    ```markup
    "authentication": {
      "apiKey": "27c03f58-7c79-45d1-aa8f-76d697bbb10d"
    }
    ```
