Lists the accounts managed by the current user. Users need to be explictly approved by Telnyx in order to become manager accounts.
Successful response with a list of managed accounts.
Array of objects (ManagedAccount) | |
object (PaginationMeta) |
Unauthorized response. Happens when the current user is not a manager account.
{- "data": [
- {
- "api_key": "KEY01236170692E74656C6E79782E636F6D_YmlnIGlyb24gaXMgZGVhZA",
- "api_token": "x6oexQNHTs-fZ7-QsDMOeg",
- "api_user": "managed_account@example.com",
- "balance": {
- "available_credit": "400.00",
- "balance": "300.00",
- "credit_limit": "100.00",
- "currency": "USD",
- "record_type": "balance"
}, - "created_at": "2018-02-02T22:25:27.521Z",
- "email": "user@example.com",
- "id": "f65ceda4-6522-4ad6-aede-98de83385123",
- "managed_account_allow_custom_pricing": true,
- "manager_account_id": "f65ceda4-6522-4ad6-aede-98de83385123",
- "organization_name": "Example Company LLC",
- "record_type": "managed_account",
- "rollup_billing": false,
- "updated_at": "2018-02-02T22:25:27.521Z"
}
], - "meta": {
- "page_number": 2,
- "page_size": 25,
- "total_pages": 3,
- "total_results": 55
}
}
Create a new managed account owned by the authenticated user. You need to be explictly approved by Telnyx in order to become a manager account.
Parameters that define the managed account to be created
Successful response with information about a single managed account.
Unauthorized response. Happens when the current user is not a manager account.
{- "business_name": "Larry's Cat Food Inc",
- "email": "larry_cat_food@customer.org",
- "managed_account_allow_custom_pricing": false,
- "password": "3jVjLq!tMuWKyWx4NN*CvhnB",
- "rollup_billing": false
}
{- "data": {
- "api_key": "KEY01236170692E74656C6E79782E636F6D_YmlnIGlyb24gaXMgZGVhZA",
- "api_token": "x6oexQNHTs-fZ7-QsDMOeg",
- "api_user": "managed_account@example.com",
- "balance": {
- "available_credit": "400.00",
- "balance": "300.00",
- "credit_limit": "100.00",
- "currency": "USD",
- "record_type": "balance"
}, - "created_at": "2018-02-02T22:25:27.521Z",
- "email": "user@example.com",
- "id": "f65ceda4-6522-4ad6-aede-98de83385123",
- "managed_account_allow_custom_pricing": true,
- "manager_account_id": "f65ceda4-6522-4ad6-aede-98de83385123",
- "organization_name": "Example Company LLC",
- "record_type": "managed_account",
- "rollup_billing": false,
- "updated_at": "2018-02-02T22:25:27.521Z"
}
}
Retrieves the details of a single managed account.
Successful response with information about a single managed account.
object (ManagedAccount) | |||||||||||||||||||||||||||
|
Unauthorized response. Happens when the current user is not a manager account.
Resource not found
{- "data": {
- "api_key": "KEY01236170692E74656C6E79782E636F6D_YmlnIGlyb24gaXMgZGVhZA",
- "api_token": "x6oexQNHTs-fZ7-QsDMOeg",
- "api_user": "managed_account@example.com",
- "balance": {
- "available_credit": "400.00",
- "balance": "300.00",
- "credit_limit": "100.00",
- "currency": "USD",
- "record_type": "balance"
}, - "created_at": "2018-02-02T22:25:27.521Z",
- "email": "user@example.com",
- "id": "f65ceda4-6522-4ad6-aede-98de83385123",
- "managed_account_allow_custom_pricing": true,
- "manager_account_id": "f65ceda4-6522-4ad6-aede-98de83385123",
- "organization_name": "Example Company LLC",
- "record_type": "managed_account",
- "rollup_billing": false,
- "updated_at": "2018-02-02T22:25:27.521Z"
}
}
Update a single managed account.
Parameters that define the updates to the managed account
managed_account_allow_custom_pricing | boolean Boolean value that indicates if the managed account is able to have custom pricing set for it or not. If false, uses the pricing of the manager account. Defaults to false. This value may be changed, but there may be time lag between when the value is changed and pricing changes take effect. |
Successful response with information about a single managed account.
object (ManagedAccount) | |||||||||||||||||||||||||||
|
Unauthorized response. Happens when the current user is not a manager account.
Resource not found
{- "managed_account_allow_custom_pricing": true
}
{- "data": {
- "api_key": "KEY01236170692E74656C6E79782E636F6D_YmlnIGlyb24gaXMgZGVhZA",
- "api_token": "x6oexQNHTs-fZ7-QsDMOeg",
- "api_user": "managed_account@example.com",
- "balance": {
- "available_credit": "400.00",
- "balance": "300.00",
- "credit_limit": "100.00",
- "currency": "USD",
- "record_type": "balance"
}, - "created_at": "2018-02-02T22:25:27.521Z",
- "email": "user@example.com",
- "id": "f65ceda4-6522-4ad6-aede-98de83385123",
- "managed_account_allow_custom_pricing": true,
- "manager_account_id": "f65ceda4-6522-4ad6-aede-98de83385123",
- "organization_name": "Example Company LLC",
- "record_type": "managed_account",
- "rollup_billing": false,
- "updated_at": "2018-02-02T22:25:27.521Z"
}
}
Disables a managed account, forbidding it to use Telnyx services, including sending or receiving phone calls and SMS messages. Ongoing phone calls will not be affected. The managed account and its sub-users will no longer be able to log in via the mission control portal.
Successful response with information about a single managed account.
object (ManagedAccount) | |||||||||||||||||||||||||||
|
Unauthorized response. Happens when the current user is not a manager account.
Resource not found
{- "data": {
- "api_key": "KEY01236170692E74656C6E79782E636F6D_YmlnIGlyb24gaXMgZGVhZA",
- "api_token": "x6oexQNHTs-fZ7-QsDMOeg",
- "api_user": "managed_account@example.com",
- "balance": {
- "available_credit": "400.00",
- "balance": "300.00",
- "credit_limit": "100.00",
- "currency": "USD",
- "record_type": "balance"
}, - "created_at": "2018-02-02T22:25:27.521Z",
- "email": "user@example.com",
- "id": "f65ceda4-6522-4ad6-aede-98de83385123",
- "managed_account_allow_custom_pricing": true,
- "manager_account_id": "f65ceda4-6522-4ad6-aede-98de83385123",
- "organization_name": "Example Company LLC",
- "record_type": "managed_account",
- "rollup_billing": false,
- "updated_at": "2018-02-02T22:25:27.521Z"
}
}
Enables a managed account and its sub-users to use Telnyx services.
Successful response with information about a single managed account.
object (ManagedAccount) | |||||||||||||||||||||||||||
|
Unauthorized response. Happens when the current user is not a manager account.
Resource not found
{- "data": {
- "api_key": "KEY01236170692E74656C6E79782E636F6D_YmlnIGlyb24gaXMgZGVhZA",
- "api_token": "x6oexQNHTs-fZ7-QsDMOeg",
- "api_user": "managed_account@example.com",
- "balance": {
- "available_credit": "400.00",
- "balance": "300.00",
- "credit_limit": "100.00",
- "currency": "USD",
- "record_type": "balance"
}, - "created_at": "2018-02-02T22:25:27.521Z",
- "email": "user@example.com",
- "id": "f65ceda4-6522-4ad6-aede-98de83385123",
- "managed_account_allow_custom_pricing": true,
- "manager_account_id": "f65ceda4-6522-4ad6-aede-98de83385123",
- "organization_name": "Example Company LLC",
- "record_type": "managed_account",
- "rollup_billing": false,
- "updated_at": "2018-02-02T22:25:27.521Z"
}
}