# Bring an existing Next.js project in

`POST /hosting/coder/projects/import` · Rivier · hosting

Bring an existing Next.js project in: its source as a zip or a gzip tar in the request body, up to 10 MB, without installed packages or build output. Nothing in it is run. Text files become the project's first checkpoint; pictures, fonts and the lockfile are kept beside it; secrets (.env files, keys) are never kept and are named in the answer. Refused with the reason when it is not a Next.js project. The project keeps its own conventions: the library, token and layout rules are advice for it.

- Scope: hosting:write
- Sdk: hosting.coderProject.import
- Cli: hosting coder project import

## Parameters

- `name` (query, required), string

## Request body

`application/octet-stream`

```json
{
  "type": "string",
  "format": "binary"
}
```

## Responses

- `201`: 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/import' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/octet-stream'
```
