---
title: "Validate Pin Code"
method: POST
path: "/v1/client/textmessages/validatepin"
tags: ["ClientTextMessage"]
---

# Validate Pin Code

`POST /v1/client/textmessages/validatepin`

## Request body

- ValidatePinModel
  - `UserName` string
  - `Pin` string
  - `UserGuid` string, uuid

## Response `200`

User logged in/User created and a user token returned in response

- TokenResponse — The token response
  - `UserName` string
  - `AccessToken` string
  - `ExpiresInSeconds` number, double
  - `IssuedUtc` string, date-time
  - `ExpiresUtc` string, date-time
  - `RefreshToken` string

## Other responses

- `400` — Can't assoicate given username to a user
- `401` — Unauthorized
- `403` — Too many password attempts

---

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