Archives an account and releases all associated resources.
Warning: This action will:
- Release all phone numbers associated with the account
- Deactivate all campaigns
- Make the account unusable for sending messages
This operation is irreversible. If you need to send SMS in the future, you will need to re-register new phone numbers and campaigns.
Authorization
authorization AuthorizationBearer <token>
In: header
Path Parameters
id*string
The ID of the account to archive.
Response Body
application/json
application/json
curl -X DELETE "https://api.surge.app/accounts/acct_01jpqjvfg9enpt7pyxd60pcmxj"{
"brand_name": "DT Precision Auto",
"id": "acct_01jpqjvfg9enpt7pyxd60pcmxj",
"name": "Account #2840 - DT Precision Auto",
"organization": {
"address": {
"country": "US",
"line1": "2640 Huron St",
"line2": null,
"locality": "Los Angeles",
"name": "DT Precision Auto",
"postal_code": "90065",
"region": "CA"
},
"contact": {
"email": "dom@dtprecisionauto.com",
"first_name": "Dominic",
"last_name": "Toretto",
"phone_number": "+13235556439",
"title": "other",
"title_other": "Owner"
},
"country": "US",
"email": "dom@dtprecisionauto.com",
"identifier": "123456789",
"identifier_type": "ein",
"industry": "automotive",
"mobile_number": "+13235556439",
"regions_of_operation": [
"usa_and_canada"
],
"registered_name": "DT Precision Auto LLC",
"stock_exchange": null,
"stock_symbol": null,
"type": "llc",
"website": "https://dtprecisionauto.com"
},
"time_zone": "America/Los_Angeles"
}{
"error": {
"message": "The requested resource could not be found.",
"type": "not_found"
}
}