{
  "opencollection": "1.0.0",
  "info": {
    "name": "Telnyx Access Tokens Managed Accounts API",
    "version": "2.0.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Managed Accounts",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Lists accounts managed by the current user.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.telnyx.com/v2/managed_accounts",
            "params": [
              {
                "name": "filter",
                "value": "",
                "type": "query",
                "description": "Consolidated filter parameter (deepObject style). Originally: filter[email][contains], filter[email][eq], filter[organization_name][contains], filter[organization_name][eq]"
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Consolidated page parameter (deepObject style). Originally: page[number], page[size]"
              },
              {
                "name": "sort",
                "value": "",
                "type": "query",
                "description": "Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the <code> -</code> prefix.<br/><br/>\nThat is: <ul>\n  <li>\n    <code>email</code>: sorts the result by the\n    <code>email</code> field in ascending order.\n  </li>\n\n  <li>\n    <code>-email</code>: sorts the result by the\n    <code>email</code> field in descending order.\n  </li>\n</ul> <br/> If not given, results are sorted by <code>created_at</code> in descending order."
              },
              {
                "name": "include_cancelled_accounts",
                "value": "",
                "type": "query",
                "description": "Specifies if cancelled accounts should be included in the results."
              }
            ]
          },
          "docs": "Lists the accounts managed by the current user. Users need to be explictly approved by Telnyx in order to become manager accounts."
        },
        {
          "info": {
            "name": "Create a new managed account.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.telnyx.com/v2/managed_accounts",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "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."
        },
        {
          "info": {
            "name": "Display information about allocatable global outbound channels for the current user.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.telnyx.com/v2/managed_accounts/allocatable_global_outbound_channels"
          },
          "docs": "Display information about allocatable global outbound channels for the current user. Only usable by account managers."
        },
        {
          "info": {
            "name": "Retrieve a managed account",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.telnyx.com/v2/managed_accounts/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Managed Account User ID"
              }
            ]
          },
          "docs": "Retrieves the details of a single managed account."
        },
        {
          "info": {
            "name": "Update a managed account",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.telnyx.com/v2/managed_accounts/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Managed Account User ID"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update a single managed account."
        },
        {
          "info": {
            "name": "Disables a managed account",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.telnyx.com/v2/managed_accounts/:id/actions/disable",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Managed Account User ID"
              }
            ]
          },
          "docs": "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."
        },
        {
          "info": {
            "name": "Enables a managed account",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.telnyx.com/v2/managed_accounts/:id/actions/enable",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Managed Account User ID"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Enables a managed account and its sub-users to use Telnyx services."
        },
        {
          "info": {
            "name": "Update the amount of allocatable global outbound channels allocated to a specific managed account.",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.telnyx.com/v2/managed_accounts/:id/update_global_channel_limit",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Managed Account User ID"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update the amount of allocatable global outbound channels allocated to a specific managed account."
        }
      ]
    }
  ],
  "bundled": true
}