Retrieve Sub-account SMTP Passwords
GEThttps://api.mailchannels.net/tx/v1/sub-account/:handle/smtp-password
Retrieves details of all SMTP passwords associated with the specified sub-account. For security, the full SMTP password is not returned; only the password ID and a partially redacted version are provided.
Request
Path Parameters
handle stringrequired
Handle of the sub-account to retrieve the SMTP password for.
Header Parameters
X-Api-Key stringrequired
Responses
- 200
- 404
- 500
Successfully retrieved the SMTP password for the specified sub-account.
- application/json
- Schema
- Example (auto)
Schema
- Array [
- ]
enabledboolean
Whether the SMTP password is enabled
idinteger
The SMTP password ID for the sub-account
smtp_passwordstring
SMTP password for the sub-account
[
{
"enabled": true,
"id": 0,
"smtp_password": "string"
}
]
The specified sub-account does not exist.
An unexpected internal error occurred.
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.mailchannels.net/tx/v1/sub-account/:handle/smtp-password");
request.Headers.Add("Accept", "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear