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) |
Unauthenticated response. Happens when the current user cannot be authenticated.
{- "data": [
- {
- "record_type": "managed_account",
- "id": "f65ceda4-6522-4ad6-aede-98de83385123",
- "organization_name": "Example Company LLC",
- "manager_account_id": "f65ceda4-6522-4ad6-aede-98de83385123",
- "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
}
], - "meta": {
- "total_pages": 3,
- "total_results": 55,
- "page_number": 2,
- "page_size": 25
}
}
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.
Unauthenticated response. Happens when the current user cannot be authenticated.
{- "password": "3jVjLq!tMuWKyWx4NN*CvhnB",
- "business_name": "Larry's Cat Food Inc",
- "managed_account_allow_custom_pricing": false,
- "rollup_billing": false
}
{- "data": {
- "record_type": "managed_account",
- "id": "f65ceda4-6522-4ad6-aede-98de83385123",
- "api_key": "KEY01236170692E74656C6E79782E636F6D_YmlnIGlyb24gaXMgZGVhZA",
- "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
}
}
Display information about allocatable global outbound channels for the current user. Only usable by account managers.
Successful response with information about allocatable global outbound channels.
object (Managed Accounts Global Outbound Channels) | |||||||||
|
Unauthenticated response. Happens when the current user cannot be authenticated.
Unauthorized response. Happens when the current user is not authorized to access the endpoint.
{- "data": {
- "allocatable_global_outbound_channels": 500,
- "record_type": "allocatable_global_outbound_channels",
- "total_global_channels_allocated": 135
}
}
Retrieves the details of a single managed account.
Successful response with information about a single managed account.
object (ManagedAccount) | |||||||||||||||||||||||||||
|
Unauthenticated response. Happens when the current user cannot be authenticated.
Resource not found
{- "data": {
- "record_type": "managed_account",
- "id": "f65ceda4-6522-4ad6-aede-98de83385123",
- "api_key": "KEY01236170692E74656C6E79782E636F6D_YmlnIGlyb24gaXMgZGVhZA",
- "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
}
}
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) | |||||||||||||||||||||||||||
|
Unauthenticated response. Happens when the current user cannot be authenticated.
Resource not found
{- "managed_account_allow_custom_pricing": true
}
{- "data": {
- "record_type": "managed_account",
- "id": "f65ceda4-6522-4ad6-aede-98de83385123",
- "api_key": "KEY01236170692E74656C6E79782E636F6D_YmlnIGlyb24gaXMgZGVhZA",
- "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
}
}
Update the amount of allocatable global outbound channels allocated to a specific managed account.
Parameters that define the changes to the global outbounds channels for the managed account
Successful response with information about the allocatable global outbound channels for the given account.
object (Global Outbound Channels Details for a Managed Account) | |||||||||||
|
Unauthenticated response. Happens when the current user cannot be authenticated.
Resource not found
{- "channel_limit": 30
}
{- "data": {
- "channel_limit": 30,
- "id": "096abcde-1122-3344-ab77-ff0123456789",
- "manager_account_id": "beeabcde-1122-3344-ab77-ff0123456789",
- "record_type": "managed_account_global_outbound_settings"
}
}
Enables a managed account and its sub-users to use Telnyx services.
Successful response with information about a single managed account.
object (ManagedAccount) | |||||||||||||||||||||||||||
|
Unauthenticated response. Happens when the current user cannot be authenticated.
Resource not found
{- "data": {
- "record_type": "managed_account",
- "id": "f65ceda4-6522-4ad6-aede-98de83385123",
- "api_key": "KEY01236170692E74656C6E79782E636F6D_YmlnIGlyb24gaXMgZGVhZA",
- "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
}
}
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) | |||||||||||||||||||||||||||
|
Unauthenticated response. Happens when the current user cannot be authenticated.
Resource not found
{- "data": {
- "record_type": "managed_account",
- "id": "f65ceda4-6522-4ad6-aede-98de83385123",
- "api_key": "KEY01236170692E74656C6E79782E636F6D_YmlnIGlyb24gaXMgZGVhZA",
- "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
}
}