---
title: "GET /api/v1/auth/subaccounts/"
method: GET
path: "/api/v1/auth/subaccounts/"
tags: ["auth"]
---

# GET /api/v1/auth/subaccounts/

`GET /api/v1/auth/subaccounts/`

## Request

- Base URL: `https://uptime.com` (the document declares no server; this is the origin it was published from)
- URL: `https://uptime.com/api/v1/auth/subaccounts/`
- Auth: none declared
- TypeScript: <https://skmtc.dev/uptime/apis/uptime-com-openapi-schema/docs/api/v1/auth/subaccounts/get.ts> (a function with typed inputs; its response is checked against the schema)

Lists all subaccounts of this account

You may select the active subaccount for any API request
by using a HTTP header or query string parameter
to specify the subaccount ID as follows:

<pre>https://uptime.com/api/v1/dashboard/?subaccount=123</pre>

or

<pre>curl -H "X-Subaccount: 123" -H "Authorization: token xxxx" https://uptime.com/api/v1/dashboard/</pre>

<br />

## Response `200`

- Subaccount[]
  - `pk` integer
  - `name` string, required
  - `url` string

---

[API](https://skmtc.dev/uptime/apis/uptime-com-openapi-schema.md) - [All operations](https://skmtc.dev/uptime/apis/uptime-com-openapi-schema/llms.txt) - [OpenAPI document](https://skmtc.dev/uptime/apis/uptime-com-openapi-schema/revisions/e1e4a57a60d8?raw)
