---
title: "Verify if an API key is valid for a specific environment"
method: POST
path: "/environments/{environmentId}/waas/verifyApiKey"
tags: ["Waas"]
---

# Verify if an API key is valid for a specific environment

`POST /environments/{environmentId}/waas/verifyApiKey`

Simple endpoint to verify if the provided API key (DYN_API_TOKEN) is valid and has access to the specified environment. Returns true if the token is verified, false otherwise.

## Path parameters

- `environmentId` string, required

## Response `200`

API key verification result

- WaasVerifyApiKeyResponse
  - `environmentId` string, uuid, required — The environment ID for which the API key was verified
  - `verified` boolean, required — Indicates whether the API key is valid and has access to the environment

## Other responses

- `400` — Bad request - token is required
- `401` — Unauthorized - invalid or expired token
- `403` — Forbidden
- `500` — Internal Server Error

---

[API](https://skmtc.net/dynamic/apis/dashboard-api.md) · [All operations](https://skmtc.net/dynamic/apis/dashboard-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dynamic/dashboard-api/revisions/aac826315d90/schema)
