curl --request GET \
--url https://api.sendpost.io/api/v1/account/subaccount/ \
--header 'X-Account-ApiKey: <api-key>'
[
{
"id": 11,
"name": "Hooli",
"created": 1567512491586102000,
"apiKey": "AHZ3125333JHEP",
"labels": [
"label1",
"label2"
],
"isPlus": true,
"type": 1,
"createdBy": {
"id": 117,
"isVerified": true,
"isForbidden": false,
"email": "raj@piedpiper.com",
"name": "Raj",
"logoURL": "https://www.sendpost.io/logo.png",
"companyName": "SendPost",
"onboardQAnswered": true,
"phoneNumber": "+919876543210",
"created": 1567512491588004000,
"updated": 1567512491588004000
},
"updatedBy": {
"id": 117,
"isVerified": true,
"isForbidden": false,
"email": "raj@piedpiper.com",
"name": "Raj",
"logoURL": "https://www.sendpost.io/logo.png",
"companyName": "SendPost",
"onboardQAnswered": true,
"phoneNumber": "+919876543210",
"created": 1567512491588004000,
"updated": 1567512491588004000
},
"smtpAuths": [
{
"id": 117,
"username": "default@117.sendpost.io",
"password": "default@117.sendpost.io",
"created": 1567512491588004000,
"updated": 1567512491588004000
}
]
}
]
Retrieves a list of all sub-accounts associated with a specific account.
curl --request GET \
--url https://api.sendpost.io/api/v1/account/subaccount/ \
--header 'X-Account-ApiKey: <api-key>'
[
{
"id": 11,
"name": "Hooli",
"created": 1567512491586102000,
"apiKey": "AHZ3125333JHEP",
"labels": [
"label1",
"label2"
],
"isPlus": true,
"type": 1,
"createdBy": {
"id": 117,
"isVerified": true,
"isForbidden": false,
"email": "raj@piedpiper.com",
"name": "Raj",
"logoURL": "https://www.sendpost.io/logo.png",
"companyName": "SendPost",
"onboardQAnswered": true,
"phoneNumber": "+919876543210",
"created": 1567512491588004000,
"updated": 1567512491588004000
},
"updatedBy": {
"id": 117,
"isVerified": true,
"isForbidden": false,
"email": "raj@piedpiper.com",
"name": "Raj",
"logoURL": "https://www.sendpost.io/logo.png",
"companyName": "SendPost",
"onboardQAnswered": true,
"phoneNumber": "+919876543210",
"created": 1567512491588004000,
"updated": 1567512491588004000
},
"smtpAuths": [
{
"id": 117,
"username": "default@117.sendpost.io",
"password": "default@117.sendpost.io",
"created": 1567512491588004000,
"updated": 1567512491588004000
}
]
}
]
This api key can be used for all account level operations
Number of records to return per request.
10
Number of initial records to skip.
0
Case-insensitive search against the sub-account name.
"Hooli"
Successfully retrieved sub-accounts.
The response is of type object[]
.