# Check the code a person typed, by destination or verification id

`POST /verify/services/{id}/check` · Rivier · voice

Check the code a person typed, by destination or verification id. Answers valid and the status (pending, approved, expired or out of tries); a wrong code leaves the verification pending until the tries run out.

- Scope: voice:write
- Mcp: rivier_verify_check
- Graphql: Mutation.voiceVerifyCheckCreate
- Sdk: verify.check
- Cli: verify check

## Parameters

- `id` (path, required), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "to": {
      "type": "string",
      "minLength": 3,
      "maxLength": 320
    },
    "verificationId": {
      "type": "string",
      "format": "uuid"
    },
    "code": {
      "type": "string",
      "minLength": 3,
      "maxLength": 12,
      "pattern": "^[A-Za-z0-9]+$"
    },
    "ip": {
      "type": "string",
      "maxLength": 64
    }
  },
  "required": [
    "code"
  ],
  "additionalProperties": false
}
```

## Responses

- `200`: 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/verify/services/{id}/check' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "code": "string"
}'
```
