Issue a new intake address and retire every earlier one (ADMIN+)
POST
/organizations/current/inbound-email/regenerate
const url = 'https://api.invogi.com/v1/organizations/current/inbound-email/regenerate';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.invogi.com/v1/organizations/current/inbound-email/regenerate \ --header 'Authorization: Bearer <token>'Audited. The previous address, including one from an earlier token format, stops accepting mail immediately.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The new intake address
Media typeapplication/json
object
address
required
string format: email
statementsAddress
Supplier statements address on the same token, e.g. statements+k7m2q9xbw4t6v8yz@inbound.invogi.com; statements sent here go to /statements
string format: email
Example generated
{ "address": "hello@example.com", "statementsAddress": "hello@example.com"}Missing or invalid API key
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
request_id
required
string
Example
{ "error": { "code": "NOT_FOUND" }}API key lacks required scope/role
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
request_id
required
string
Example
{ "error": { "code": "NOT_FOUND" }}