Accounts
List Accounts
This endpoint will return a list that contains Project you are connecting as and any subprojects.
Permissions
The API token used to authenticate must have the following scope(s) enabled to make a successful request: Management.
Learn more about API scopes.
get/Accounts
Query parameters
FriendlyNamestring
A named unique identifier for the resource. Allowed characters: A-Za-z0-9_-. Maximum of 100 characters.
Pageinteger
The page number to retrieve. Page numbers are zero-indexed, so the first page is 0.
PageSizeinteger
The number of results to return per page. The default is 50, and the maximum is 1000.
PageTokenstring
A token used to retrieve a specific page of results. The token is returned in the response of a previous request.
Response
The request has succeeded.
Example response
{
"uri": "/api/laml/2010-04-01/Accounts?Page=0&PageSize=50",
"first_page_uri": "/api/laml/2010-04-01/Accounts?Page=0&PageSize=50",
"next_page_uri": "/api/laml/2010-04-01/Accounts?Page=1&PageSize=50",
"page_size": 50,
"accounts": [
{
"friendly_name": "My Project",
"auth_token": "redacted",
"date_created": "Sat, 15 Sep 2018 10:00:00 +0000",
"date_updated": "Sat, 16 Sep 2018 10:00:00 +0000",
"region_preference": "us-east",
"uri": "/api/laml/2010-04-01/Accounts/b3877c40-da60-4998-90ad-b792e98472af",
"subresource_uris": {
"available_phone_numbers": "/api/laml/2010-04-01/Accounts/b3877c40-da60-4998-90ad-b792e98472af/AvailablePhoneNumbers",
"applications": "/api/laml/2010-04-01/Accounts/b3877c40-da60-4998-90ad-b792e98472af/Applications",
"calls": "/api/laml/2010-04-01/Accounts/b3877c40-da60-4998-90ad-b792e98472af/Calls",
"conferences": "/api/laml/2010-04-01/Accounts/b3877c40-da60-4998-90ad-b792e98472af/Conferences",
"incoming_phone_numbers": "/api/laml/2010-04-01/Accounts/b3877c40-da60-4998-90ad-b792e98472af/IncomingPhoneNumbers",
"queues": "/api/laml/2010-04-01/Accounts/b3877c40-da60-4998-90ad-b792e98472af/Queues",
"recordings": "/api/laml/2010-04-01/Accounts/b3877c40-da60-4998-90ad-b792e98472af/Recordings",
"messages": "/api/laml/2010-04-01/Accounts/b3877c40-da60-4998-90ad-b792e98472af/Messages",
"transcriptions": "/api/laml/2010-04-01/Accounts/b3877c40-da60-4998-90ad-b792e98472af/Transcriptions"
}
}
]
}