---
title: "Mark a host as a dev environment"
method: POST
path: "/v1/project/dev-hosts"
---

# Mark a host as a dev environment

`POST /v1/project/dev-hosts`

## Request

- Base URL: `https://api.proxymail.qa`
- URL: `https://api.proxymail.qa/v1/project/dev-hosts`
- Auth: HTTP bearer

Adds a host to the project's dev environments, as in Project settings: links to it in emails (an app running on localhost:3000, say) then pass the local-links check of /checks instead of failing it. Links to an unmarked localhost still fail.

## Request body

- object
  - `host` string, required: Host and port, or a page URL, such as localhost:3000.

## Response `200`

The project's dev hosts

- object
  - `dev_hosts` string[]

## Other responses

- `400`: An error
- `401`: An error
- `403`: An error

---

[API](https://skmtc.dev/proxymail/apis/proxy-mail-qa-api.md) · [All operations](https://skmtc.dev/proxymail/apis/proxy-mail-qa-api/llms.txt) · [OpenAPI document](https://skmtc.dev/proxymail/apis/proxy-mail-qa-api/revisions/8f8a5e84cf5c?raw)
