# Open a password-protected project

`POST /public/site/gate` · Rivier · hosting

Open a password-protected project: the password in the body; right answers return the project's markup. Rate limited; the same answer for a wrong password and an unknown project.

- Scope: hosting:read
- Sdk: hosting.siteGate.open
- Cli: hosting site gate open
- Publishable: yes

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "site": {
      "type": "string",
      "format": "uuid"
    },
    "path": {
      "type": "string",
      "maxLength": 120
    },
    "password": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128
    }
  },
  "required": [
    "site",
    "path",
    "password"
  ],
  "additionalProperties": false
}
```

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/public/site/gate' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "site": "string",
  "path": "string",
  "password": "string"
}'
```
