Skip to main content
GET
/
managed_accounts
/
{id}
JavaScript
import Telnyx from 'telnyx';

const client = new Telnyx({
  apiKey: 'My API Key',
});

const managedAccount = await client.managedAccounts.retrieve('id');

console.log(managedAccount.data);
{
  "data": {
    "record_type": "managed_account",
    "id": "f65ceda4-6522-4ad6-aede-98de83385123",
    "email": "user@example.com",
    "api_key": "KEY01236170692E74656C6E79782E636F6D_YmlnIGlyb24gaXMgZGVhZA",
    "api_user": "managed_account@example.com",
    "api_token": "x6oexQNHTs-fZ7-QsDMOeg",
    "organization_name": "Example Company LLC",
    "manager_account_id": "f65ceda4-6522-4ad6-aede-98de83385123",
    "balance": {
      "record_type": "balance",
      "balance": "300.00",
      "credit_limit": "100.00",
      "available_credit": "400.00",
      "currency": "USD"
    },
    "created_at": "2018-02-02T22:25:27.521Z",
    "updated_at": "2018-02-02T22:25:27.521Z",
    "managed_account_allow_custom_pricing": true,
    "rollup_billing": false
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Managed Account User ID

Response

Successful response with information about a single managed account.

data
object