Check the code a customer typed and start a session the project's server holds
post/customer-accounts/auth/verify
Check the code a customer typed and start a session the project's server holds: an access token (minutes) and a refresh token. Every wrong code gets the same answer.
Before you call
- Credential
Authorization: Bearer $KEY- Scope
contacts:write- Sdk
contacts.customerAuth.verify- Cli
contacts customer auth verify
Request bodyapplication/json, required
- projectstringAt most 80 characters.
- emailstring (email)requiredAt most 254 characters.
- codestringrequiredPattern: ^\d{8}$.
- ipstringAt most 64 characters.
- userAgentstringAt most 200 characters.
Responses
- 200application/jsonSuccess
object - 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring