---
title: "List the tables that already have a search"
method: GET
path: "/find-leads/attached-tables/"
tags: ["find-leads"]
---

# List the tables that already have a search

`GET /find-leads/attached-tables/`

## Request

- Base URL: `https://api.getoneprofile.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.getoneprofile.ai/find-leads/attached-tables/`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

The tables in this workspace that already have a lead search on them. A table has at most one, so a picker offering a destination should show these as unavailable while the person is choosing instead of refusing the choice after they confirm it. Free to call, and cheap enough to refetch whenever a picker opens.

## Response `200`

Successful Response

- LeadAttachedTableListResponseSchema: Which of an organisation's tables already carry a lead search. Exists so a table picker can rule those out while the user is choosing. A table holds at most one search, and the alternative to answering this question up front is refusing the choice after the confirm, once the person has already made it. It lives here rather than on the table listing because a lead search is this package's fact about a table, not the table's own.
  - `table_ids` string[], required: The tables that already have a search. Show these as unavailable in a picker, with the reason on the row, rather than letting one be chosen and then refused. The whole set for the organisation, not a page of it, so a picker can check membership as the person scrolls.

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `422`: Invalid request made to the API.
- `500`: Internal server error.
- `502`: Bad gateway error.
- `503`: Service unavailable.

---

[API](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile.md) · [All operations](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile/llms.txt) · [OpenAPI document](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile/revisions/4a6bd71e3f02?raw)
