Skip to main content
GET
/
accounts
/
{account_id}
Get an account
curl --request GET \
  --url https://accounts.livechat.com/v2/accounts/{account_id} \
  --header 'Authorization: Basic <encoded-value>'
import requests

url = "https://accounts.livechat.com/v2/accounts/{account_id}"

headers = {"Authorization": "Basic <encoded-value>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};

fetch('https://accounts.livechat.com/v2/accounts/{account_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://accounts.livechat.com/v2/accounts/{account_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://accounts.livechat.com/v2/accounts/{account_id}"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Authorization", "Basic <encoded-value>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://accounts.livechat.com/v2/accounts/{account_id}")
.header("Authorization", "Basic <encoded-value>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://accounts.livechat.com/v2/accounts/{account_id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'

response = http.request(request)
puts response.read_body
{
  "account_id": "496a94f2-cbbf-444e-a3cb-305b9f5f8cbb",
  "name": "John",
  "email": "john@example.com",
  "email_verified": false,
  "default_product": "LiveChat",
  "default_organization_id": "b2185556-634c-4ecf-b4c9-bcf8b65bc853",
  "avatar_url": null,
  "roles": [
    {
      "role_id": "728b99be-848c-11ea-9b91-005056a007e9",
      "product": "LiveChat",
      "role": "administrator",
      "type": "primary",
      "predefined": true
    }
  ],
  "properties": {
    "active": true,
    "mfa": true,
    "avatar_url": "https://api.text.com/file/accounts/avatars/b2185556-634c-4ecf-b4c9-bcf8b65bc853/ae5bd37f-64b2-416b-bbb3-4623f53e6fb8/37a190dd-77a5-4fba-a7d3-2e89eab0e8fd.jpg"
  },
  "updated_at": "2026-06-03T10:53:04.000Z",
  "created_at": "2026-06-03T10:53:04.000Z"
}
{
"error": "unauthorized",
"error_description": "The account is not authorized.",
"request_id": "5903c51b-89f0-41a9-a25d-4f39af100353"
}
{
"error": "access_denied",
"sub_error": "insufficient_scope",
"error_description": "The resource owner or authorization server denied the request.",
"request_id": "5903c51b-89f0-41a9-a25d-4f39af100353"
}
{
"error": "resource_not_found",
"error_description": "The requested resource couldn't be found.",
"resource_name": "account",
"resource_id": "def31e95-5ca4-4817-b176-732e4544daca",
"request_id": "5903c51b-89f0-41a9-a25d-4f39af100353"
}
{
"error": "invalid_request",
"error_description": "The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.",
"invalid_fields": {
"email": "invalid email address"
},
"request_id": "5903c51b-89f0-41a9-a25d-4f39af100353"
}
{
"error": "server_error",
"error_description": "The server encountered an unexpected condition that prevented it from fulfilling the request.",
"request_id": "5903c51b-89f0-41a9-a25d-4f39af100353"
}
Required scopes: accounts--my:ro, accounts.roles--all:ro

Authorizations

Authorization
string
header
required

Use your account ID as the username and your personal access token (PAT) as the password, or pass a Base64-encoded value directly in the Authorization header. For more information, see the personal access tokens guide.

Path Parameters

account_id
string<uuid>
required

The unique account ID, or me to refer to the account making the request.

Response

OK: Returns the account.

An entity of the account, used across all Text products.

email
string<email>
required

The account's email address.

Maximum string length: 128
account_id
string<uuid>
read-only

Unique account identifier.

name
string

The account name (nick; first name, second name, or both).

Maximum string length: 191
email_verified
boolean
read-only

If true: the account's email was verified via an email action or by a third-party identity provider.

default_product
enum<string>

The default product for the account.

Available options:
LiveChat,
Accounts,
ChatBot,
HelpDesk,
OpenWidget
default_organization_id
string<uuid> | null

The ID of the default organization the account belongs to.

avatar_url
string | null
deprecated

The "Account's avatar" field has been deprecated and is no longer recommended for use; instead, the avatar functionality has been relocated to the account organization settings.

Maximum string length: 255
roles
object[]

Roles associated with the account; returned only when the access token contains the accounts.roles--all:ro scope.

updated_at
string<date-time>
read-only

The date of the account's last update.

created_at
string<date-time>
read-only

The date the account was created.

properties
object

A nullable object that holds account properties and statuses, with the properties being specific to the organization and dependent on the organization_id value obtained through authorization.