---
title: "Get the User's Legacy Address Book"
method: GET
path: "/api/ab"
tags: ["address book legacy"]
---

# Get the User's Legacy Address Book

`GET /api/ab`

This function is an API endpoint that allows an authenticated user to retrieve their legacy address book. <br> The Legacy Address Book is the address book that was used in the previous version of SCTGDesk. <br> Rustdesk client uses the legacy address book if it cannot find the new one <br> It is tagged with "address book legacy" for OpenAPI documentation.

## Parameters

- none

## Returns

If successful, this function returns a `Json<AbGetResponse>` object, which includes the legacy address book information.  <br> If the user is not authorized, this function returns a `status::Unauthorized` error.  <br>

## Errors

This function will return an error if the user is not authorized.

## Response `200`

- AbGetResponse
  - `error` boolean, nullable
  - `updated_at` string, nullable
  - `data` string, required

## Other responses

- `401`

---

[API](https://skmtc.dev/nesaku/apis/sctgdesk-api-server.md) · [All operations](https://skmtc.dev/nesaku/apis/sctgdesk-api-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nesaku/sctgdesk-api-server/revisions/b1c0e7a4434f/schema)
