Skip to content
Get started

Retrieve a worker email address

client.workers.retrieveEmail(stringworkerID, RequestOptionsoptions?): WorkerRetrieveEmailResponse { email }
GET/api/workers/{workerId}/email

Retrieve the inbound email address for a worker.

ParametersExpand Collapse
workerID: string
ReturnsExpand Collapse
WorkerRetrieveEmailResponse { email }
email: string

Retrieve a worker email address

import Handinger from '@ramensoft/handinger';

const client = new Handinger({
  apiKey: process.env['HANDINGER_API_KEY'], // This is the default and can be omitted
});

const response = await client.workers.retrieveEmail('t_org_123_w_01HZY2ZJQ8G7K42W2D7WF6V4GM');

console.log(response.email);
{
  "email": "email"
}
Returns Examples
{
  "email": "email"
}