> For the complete documentation index, see [llms.txt](https://docs.stealthtest.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stealthtest.com/stealthtest-api/api-reference/create-environment.md).

# Create Environment

{% openapi src="/files/bUOs1p5l5nEp4CFHfD7D" path="/environments" method="post" expanded="true" %}
[openapi.yaml](https://2391062109-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ftln9hCx1JKXPoGd1FusM%2Fuploads%2FsgEbcXj6JnvBeb5sjgWF%2Fopenapi.yaml?alt=media\&token=de346313-5525-4d2b-afed-cd63535b7c18)
{% endopenapi %}

{% tabs %}
{% tab title="Request" %}

```bash
curl --location --request POST 'https://api.nameless.io/v1/environments' \
--header 'x-api-key: <YOUR API KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "Nameless",
    "networks": ["ethereum"],
    "chainId": 1234
}'
```

{% endtab %}

{% tab title="Response" %}

```json
{
    "data": {
        "id": "asBkqVqynvkJddXNc0Oog",
        "accountId": "sodM22-OIixbRuajh8hE0",
        "createdAt": 1683114747172,
        "chainId": 1234,
        "accountType": "organization",
        "name": "Nameless",
        "namespace": "[namespace]",
        "accounts": {},
        "status": "PENDING",
        "networks": {
            "ethereum": {
                "url": "https://8543fc0f-121c-452f-9628-925dccc108d9.ethereum.nameless.io",
                "status": "PENDING"
            }
        }
    },
    "message": "Environment \"Nameless\" (asBkqVqynvkJddXNc0Oog) is being created...",
    "success": true
}
```

{% endtab %}
{% endtabs %}
