authy API lib for node.js

npm install authy
2 downloads in the last day
40 downloads in the last week
119 downloads in the last month

node-authy Dependency Status

Authy API Client for node.js



npm install authy

When in doubt check out the official Authy API docs

Require all the things

var authy = require('authy')('APIKEY');

If you want to use the sandbox for testing require this way.

var authy = require('authy')('SANDBOX_APIKEY', '');

Register New User

register_user(email, cellphone, [country_code], callback);

authy.register_user('', '509-555-1212', function (err, res) {
    // res = {user: {id: 1337}} where 1337 = ID given to use, store this someplace

Verify Token

verify(id, token, [force], callback);

authy.verify('1337', '0000000', function (err, res) {


Request SMS

request_sms(id, [force], callback);

authy.request_sms('1337', function (err, res) {


Request Call (Email to enable this feature)

request_call(id, [force], callback);

authy.request_call('1337', function (err, res) {


Delete Registered User

delete_user(id, callback);

authy.delete_user('1337', function (err, res) {


Additional Contributors

Daniel Barnes

npm loves you