---
title: "List Source Available Accounts"
method: POST
path: "/sources/connectors/{code}/available-accounts"
tags: ["Sources"]
---

# List Source Available Accounts

`POST /sources/connectors/{code}/available-accounts`

## Request

- Base URL: `https://api.streamkap.com`
- URL: `https://api.streamkap.com/sources/connectors/{code}/available-accounts`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/streamkap/apis/streamkap-rest-api/docs/sources/connectors/:code/available-accounts/post.ts> (a function with typed inputs; its response is checked against the schema)

List the accounts the SUBMITTED credentials reach (GA4 properties, Meta ad accounts, Google Ads customers).

Pre-save, like the connection test: nothing is persisted and the secret travels in the body only. The form offers
the result in the controls whose options name `discovered_accounts`. On the edit form pass `source_id` so a masked
secret resolves to the stored credential. 400 when the vendor refuses the listing (the detail says why; the IDs
can still be typed), when the connector has no discovery (`capabilities.discover_accounts` false) or for a masked
secret without `source_id`; 404 unknown connector; 502 vendor outage.

## Path parameters

- `code` string, required

## Request body

- ValidateConnectionRequest: Body of ``POST /sources/connectors/{code}/validate`` — the submitted (unsaved) config to test. ``source_id`` is set by the edit form so a masked secret resolves to the stored credential; absent on the create form (a masked secret without it is a 400).
  - `config` object, required
  - `source_id` string, nullable: On an edit, the source whose stored secrets masked values in `config` resolve to. Omit on create; a masked secret without it is a 400.

## Response `200`

Successful Response

- DiscoveredAccount[]
  - `id` string, required: The ID as the config field stores it.
  - `name` string, nullable: The account's display name at the vendor.
  - `manager` boolean: A Google Ads manager account: it syncs nothing itself, but can be the login customer.

## Other responses

- `403`: The API connector is not available on this deployment: no sign-in mode is configured for it.
- `422`: Validation Error

## Changes

- **2026-10-01** `50e54c2e65f2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/streamkap/apis/streamkap-rest-api/changes/sources/connectors/:code/available-accounts/post.md)

---

[API](https://skmtc.dev/streamkap/apis/streamkap-rest-api.md) - [All operations](https://skmtc.dev/streamkap/apis/streamkap-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/streamkap/apis/streamkap-rest-api/revisions/56dda39bb53c?raw)
