import Inbound from 'inboundemail';
const client = new Inbound({
apiKey: process.env['INBOUND_API_KEY'], // This is the default and can be omitted
});
const domain = await client.domains.update('id', { isCatchAllEnabled: true });
console.log(domain.id);{
"id": "<string>",
"domain": "<string>",
"status": "<string>",
"isCatchAllEnabled": true,
"catchAllEndpointId": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"catchAllEndpoint": {
"id": "<string>",
"name": "<string>",
"type": "<string>",
"isActive": true
}
}Update catch-all email settings for a domain. Catch-all receives emails sent to any address on your domain. Domain must be verified first.
import Inbound from 'inboundemail';
const client = new Inbound({
apiKey: process.env['INBOUND_API_KEY'], // This is the default and can be omitted
});
const domain = await client.domains.update('id', { isCatchAllEnabled: true });
console.log(domain.id);{
"id": "<string>",
"domain": "<string>",
"status": "<string>",
"isCatchAllEnabled": true,
"catchAllEndpointId": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"catchAllEndpoint": {
"id": "<string>",
"name": "<string>",
"type": "<string>",
"isActive": true
}
}Your Inbound API key. Include it in the Authorization header as: Bearer
Was this page helpful?