Skip to content

Get a single subaccount

Request

Fetch the details of a single subaccount

Security
basicAuth
Path
subaccount_idstringrequired

The ID of the subaccount

curl -i -X GET \
  -u '<username>:<password>' \
  'https://api.mailgun.net/v5/accounts/subaccounts/{subaccount_id}'

Responses

A 200 response

Bodyapplication/json
subaccountobject(github.com-mailgun-accounts-api-Subaccount)
Response
{ "subaccount": { "id": "123", "name": "My subaccount", "created_at": "Wed, 06 Nov 2024 19:48:29 GMT", "updated_at": "Wed, 28 May 2025 20:03:05 GMT", "status": "open" } }