> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://api-docs.papertracc.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://api-docs.papertracc.com/_mcp/server.

# List Accounts

GET https://api.papertracc.com/v1/accounts

Lists project chart-of-account records.

Reference: https://api-docs.papertracc.com/papertracc/chart-of-accounts/list-accounts

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /accounts:
    get:
      operationId: List Accounts
      summary: List Accounts
      description: Lists project chart-of-account records.
      tags:
        - chartOfAccounts
      parameters:
        - name: Authorization
          in: header
          description: Bearer authentication
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Chart of Accounts_List
                  Accounts_Response_200
servers:
  - url: https://api.papertracc.com/v1
    description: Production
  - url: https://api.papertracc.com/rc-1
    description: Release Candidate 1
components:
  schemas:
    AccountsGetResponsesContentApplicationJsonSchemaDataItemsBalancesItems:
      type: object
      properties:
        balance:
          type: string
        currency_code:
          type: string
      required:
        - balance
        - currency_code
      title: AccountsGetResponsesContentApplicationJsonSchemaDataItemsBalancesItems
    AccountsGetResponsesContentApplicationJsonSchemaDataItems:
      type: object
      properties:
        id:
          type: string
          format: uuid
        code:
          type: string
        name:
          type: string
        type:
          type: string
        parent:
          description: Any type
        balance:
          type: string
        balances:
          type: array
          items:
            $ref: >-
              #/components/schemas/AccountsGetResponsesContentApplicationJsonSchemaDataItemsBalancesItems
        is_contra:
          type: boolean
        is_locked:
          type: boolean
        chart_type:
          type: string
        created_at:
          type: string
          format: date-time
        is_watched:
          type: boolean
        project_id:
          type: string
        description:
          type: string
        currency_code:
          type: string
      required:
        - id
        - code
        - name
        - type
        - balance
        - balances
        - is_contra
        - is_locked
        - chart_type
        - created_at
        - is_watched
        - project_id
        - description
        - currency_code
      title: AccountsGetResponsesContentApplicationJsonSchemaDataItems
    Chart of Accounts_List Accounts_Response_200:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: >-
              #/components/schemas/AccountsGetResponsesContentApplicationJsonSchemaDataItems
        status:
          type: boolean
        message:
          type: string
      required:
        - data
        - status
        - message
      title: Chart of Accounts_List Accounts_Response_200
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
    identityAuth:
      type: apiKey
      in: header
      name: identity
      description: The identity for the active project.

```

## Examples



**Response**

```json
{
  "data": [
    {
      "id": "d037d299-3029-4dc7-8e72-172f80f23c4f",
      "code": "1000",
      "name": "Cash Account",
      "type": "ASSET",
      "balance": "250000.00",
      "balances": [
        {
          "balance": "250000.00",
          "currency_code": "NGN"
        }
      ],
      "is_contra": false,
      "is_locked": false,
      "chart_type": "CHART_TYPE_KEY_CASH",
      "created_at": "2026-06-18T10:00:00Z",
      "is_watched": false,
      "project_id": "spruce-demo",
      "description": "Tracks available operating cash.",
      "currency_code": "NGN"
    }
  ],
  "status": true,
  "message": "Successfully fetched accounts"
}
```

**SDK Code**

```python Chart of Accounts_List Accounts_example
import requests

url = "https://api.papertracc.com/v1/accounts"

headers = {"Authorization": "Bearer <apiKey>"}

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

print(response.json())
```

```javascript Chart of Accounts_List Accounts_example
const url = 'https://api.papertracc.com/v1/accounts';
const options = {method: 'GET', headers: {Authorization: 'Bearer <apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Chart of Accounts_List Accounts_example
package main

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

func main() {

	url := "https://api.papertracc.com/v1/accounts"

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

	req.Header.Add("Authorization", "Bearer <apiKey>")

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

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

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Chart of Accounts_List Accounts_example
require 'uri'
require 'net/http'

url = URI("https://api.papertracc.com/v1/accounts")

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

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <apiKey>'

response = http.request(request)
puts response.read_body
```

```java Chart of Accounts_List Accounts_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.papertracc.com/v1/accounts")
  .header("Authorization", "Bearer <apiKey>")
  .asString();
```

```php Chart of Accounts_List Accounts_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.papertracc.com/v1/accounts', [
  'headers' => [
    'Authorization' => 'Bearer <apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Chart of Accounts_List Accounts_example
using RestSharp;

var client = new RestClient("https://api.papertracc.com/v1/accounts");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Chart of Accounts_List Accounts_example
import Foundation

let headers = ["Authorization": "Bearer <apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.papertracc.com/v1/accounts")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```