---
agentTools:
  projectIndex: https://smslive247api.readme.io/llms.txt
---

# /api/v4/accounts/{accountId}

Use **"self"** if you want to get details about the **current account** when the **current account** is your **Main Account.** The **current account** is the account that has it's API key being used in the **Authorization Header.** Use the Sub-Account"**AccountId**" to get details about a Sub-Account. Please note that your Sub-Account "**AccountId**" is different from your Sub-Account "**API key.**"

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "SMSLive247 API v4",
    "description": "SMS, OTP and Voice API for Nigeria",
    "termsOfService": "http://portal.smslive247.com/Public/Legal/Agreement.txt",
    "contact": {
      "name": "iDevWorks",
      "url": "http://portal.smslive247.com",
      "email": "info@smslive247.com"
    },
    "license": {
      "name": "Privacy Policy",
      "url": "http://portal.smslive247.com/Public/Legal/Privacy.txt"
    },
    "version": "v4"
  },
  "servers": [
    {
      "url": "https://api.smslive247.com"
    }
  ],
  "paths": {
    "/api/v4/accounts/{accountId}": {
      "get": {
        "tags": [
          "Accounts"
        ],
        "operationId": "AccountGet",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "default": "self"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AccountResponse": {
        "type": "object",
        "properties": {
          "accountID": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "accountName": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "creditBalance": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "Bearer": {
        "type": "apiKey",
        "description": "ApiKey Authorization header using the Bearer scheme. \\r\\n\\r\\n \r\n                                    Enter 'Bearer' [space] and then your API Key in the text input below.\r\n                                    \\r\\n\\r\\nExample: 'Bearer 12345abcdef'",
        "name": "Authorization",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "Bearer": []
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 101,
      "1": 100,
      "2": 141,
      "3": 36,
      "4": 69,
      "5": 135,
      "6": 143,
      "7": 0,
      "8": 42,
      "9": 150,
      "10": 9,
      "11": 231
    }
  }
}
```