import Inbound from 'inboundemail';
const client = new Inbound({
apiKey: process.env['INBOUND_API_KEY'], // This is the default and can be omitted
});
const endpoint = await client.endpoints.update('id');
console.log(endpoint.id);{
"id": "<string>",
"name": "<string>",
"type": "webhook",
"config": "<unknown>",
"isActive": true,
"description": "<string>",
"userId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"groupEmails": [
"<string>"
]
}Update an existing endpoint’s name, description, active status, config, or webhook format
import Inbound from 'inboundemail';
const client = new Inbound({
apiKey: process.env['INBOUND_API_KEY'], // This is the default and can be omitted
});
const endpoint = await client.endpoints.update('id');
console.log(endpoint.id);{
"id": "<string>",
"name": "<string>",
"type": "webhook",
"config": "<unknown>",
"isActive": true,
"description": "<string>",
"userId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"groupEmails": [
"<string>"
]
}Your Inbound API key. Include it in the Authorization header as: Bearer
Response for status 200
webhook, email, email_group Was this page helpful?