# Hosting coder look create

`POST /hosting/coder/projects/{id}/looks` · Rivier · hosting

Ask Praecise Cloud to look at the conversation's preview in a browser on its build machine: up to five paths at 390, 820 and 1280 pixels, the first screen and the whole page, in light (and dark, and right to left, when asked), with an accessibility scan. Answers at once with the look's id; a look ends within 90 seconds. Asked in the signed-in person's name; when Praecise Cloud has no looks yet the answer says so and nothing changes.

- Scope: hosting:write
- Sdk: hosting.coderLook.create
- Cli: hosting coder look create

## Parameters

- `id` (path, required), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "paths": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^\\/[^\\s]{0,199}$"
      },
      "maxItems": 5,
      "description": "Up to five paths of the preview to look at; the home page when left out"
    },
    "dark": {
      "type": "boolean",
      "description": "Also look in the dark colour scheme"
    },
    "rtl": {
      "type": "boolean",
      "description": "Also look with the page set right to left"
    }
  },
  "additionalProperties": false
}
```

## Responses

- `202`: 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/hosting/coder/projects/{id}/looks' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "paths": [
    "string"
  ],
  "dark": false,
  "rtl": false
}'
```
