Docs

Get account info

https://api.apifonica.com/v2/accounts/{accountSID}

Overview

To retrieve information on account (subaccount), make the GET request to /accounts/{accountSID}.

Request example

The following curl request demonstrates getting account details.

curl –X GET ‘https://api.apifonica.com/v2/accounts/{accountSID}’ \
-u {accountSID}:{authToken}

Response example

{
  "account_sid":"{accountSID}",
  "name": "MyAccount",
  "status": "active",
  "token": "{authToken}",
  "created": "Wed, 27 May 2015 01:11:11 +0000",
  "updated": "Wed, 27 May 2015 01:12:11 +0000",
  "type": "master"
}

Response parameters

Parameter

Description

account_sid

Account identifier.

name

Account name.

Alphanumeric string.

status

Account status.

Either active or blocked.

token

Authentication token (account password).

created

Account (subaccount) creation date.

updated

The last updated date.

type

Account type.

Either master (main account) or slave (subaccount).

Description

Account identifier.

Description

Account name.

Alphanumeric string.

Description

Account status.

Either active or blocked.

Description

Authentication token (account password).

Description

Account (subaccount) creation date.

Description

The last updated date.

Description

Account type.

Either master (main account) or slave (subaccount).