# Checks a password or passwordless token for the requested account.

POST https://api.awork.com/api/v1/accounts/{email}/ispasswordvalid



<Check title="Required Permissions" icon="key">The user must be an admin.</Check>

## Request example

```sh
curl -X POST --globoff 'https://api.awork.com/api/v1/accounts/{email}/ispasswordvalid' \
  -H 'Authorization: Bearer <token>' \
  -H 'aw-internal-request: true' \
  -H 'Content-Type: application/json' \
  --data '{
  "password": "AC0mplexP@ssw0rd"
}'
```

- path parameter `email`: string (required). The email value.

- header parameter `aw-internal-request`: string (required). Marks this request as an internal request. Only allowed by the awork app or internally.

## Request body (application/json)

- `password`: string or null

## Response 200

OK

application/json

```json
true
```

## Response 204

No Content

## Response 400

Bad Request

application/json

```json
{
  "code": "not-found",
  "description": "There is no matching path for this URL.",
  "link": "https://developers.awork.com",
  "details": [
    "No project with the id '123' exists."
  ],
  "validationErrors": [
    {
      "property": "FirstName",
      "message": "FirstName is required."
    }
  ],
  "traceId": "a65ce5745df02af216715ff06661fb3a"
}
```

## Response 401

Unauthorized

application/json

```json
{
  "code": "not-found",
  "description": "There is no matching path for this URL.",
  "link": "https://developers.awork.com",
  "details": [
    "No project with the id '123' exists."
  ],
  "validationErrors": [
    {
      "property": "FirstName",
      "message": "FirstName is required."
    }
  ],
  "traceId": "a65ce5745df02af216715ff06661fb3a"
}
```
