Api referenceControl
Verify an email OTP and issue a bearer session token
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v2/control/auth/verify" \ -H "Content-Type: application/json" \ -d '{ "email": "user@example.com", "otp_id": "string", "otp": "string" }'{ "account_id": "string", "email": "user@example.com", "role": "User", "session": { "type": "bearer", "token": "string", "expires_at": "2019-08-24T14:15:22Z" }, "account": { "account_id": "string", "balance": "string", "held_total": "string", "available_balance": "string", "tier": {} }, "first_call": { "account_id": "string", "ready": true, "checks": { "has_api_key": true, "has_writable_key": true, "has_positive_balance": true }, "suggested_next_actions": [ "create_api_key" ], "routes": { "property1": "string", "property2": "string" } }}