API Developers Guide

Account > Get Account Details

Fetch basic account details and credits balance

GET: /account
Request Params
There are no Request parameters.
Response Params
ParametersDescription

account_id

Your unique account id in OHT.

account_username

Your OHT username.

credits

Currently available credits balance.

role

Customer role.

uuid

Customer UUID.

Request Example

curl --request GET 'https://www.onehourtranslation.com/api/2/account?secret_key=<SECRET_KEY>&public_key=<PUBLIC_KEY>

Result Example

{
  "status":
   {
    "code":0,
    "msg":"ok"
   },
  "results":
   {
    "credits":"10000",
    "account_id":"123123",
    "account_username":"userTest"
    "role":"customert"
    "uuid":"6b4d3a32-911c-43fc-b4d3-3ff8122fec7c"
   },
  "errors":[]
}