# List platform profiles eligible for Profile creation

`GET https://api.koil.co/v1/connections/{connectionId}/eligible-platform-profiles`

List platform profiles eligible for Profile creation. A page can hold fewer than `limit` profiles, even none, while `hasMore` is true.

## Authorization

An API key from the Koil admin console, sent as `Authorization: Bearer <key>`. A live key starts `koil_live_` and a sandbox key `koil_sandbox_`; the key alone selects the Organization and mode. See https://docs.koil.co/concepts/authentication.

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `Koil-Version` | header | yes | `"2026-12-01"` | The dated API version the request is written against; it fixes the request and response shapes. Every response echoes the version it is rendered in. |
| `limit` | query | no | integer |  |
| `cursor` | query | no | string | Opaque cursor for fetching the next result page. |
| `connectionId` | path | yes | string |  |

## Example

```bash
curl -X GET "https://api.koil.co/v1/connections/{connectionId}/eligible-platform-profiles" \
  -H "Authorization: Bearer $KOIL_API_KEY" \
  -H "Koil-Version: 2026-12-01"
```

## Response 200

A page of platform profiles eligible for Profile creation.

- `data` (array of object, required)
  - `platformId` (string, required) (min length 1): Koil platform identifier.
  - `platformProfileExternalId` (string, required) (min length 1)
  - `displayName` (string): The profile's current name on the platform, e.g. the Page title. Profiles do not store it.
  - `username` (string): The profile's current public handle, where the platform has one. Profiles do not store it.
  - `avatarUrl` (string): The profile's picture as the platform served it. A short-lived platform URL (Meta and TikTok sign theirs to expire): download the image if you need to keep it. Profiles do not store it.
  - `accountKind` (one of `"page"`, `"business"`, `"personal"`, `"channel"`, `"location"`, `"organization"`, `"showcase"`, `"school"`, `"unknown"`, required): What kind of account it is: `page` (a Facebook Page), `business` (a business account: an Instagram professional account (business or creator), a WhatsApp Business number, or a TikTok Business Account), `personal` (a TikTok account that is not a Business Account), `channel` (a YouTube channel), `location` (one location of a Google Business Profile), `organization` (a LinkedIn Page of a company or organization), `showcase` (a LinkedIn Showcase Page, a company's page for one brand), `school` (a LinkedIn Page of a school), `unknown` (the platform did not say which kind of account it is).
  - `supportedOperations` (array of string, required): The content operations, as `{surface}.{resource}.{verb}`, the Connection's grant can run for this platform profile, narrowed further where the platform reports more (a Facebook Page role's tasks). Once it is a Profile, `GET /v1/profiles/{profileId}/capabilities` lists every operation, with the reason for each it cannot run.
  - `platformDetails` (object): What the platform reports about the account beyond the fields above, as of this call. Each property names the platforms that report it, and any can be absent. Profiles do not store them.
    - `followersCount` (number) (min 0): How many accounts follow it: an Instagram account's followers, a YouTube channel's subscribers.
    - `postsCount` (number) (min 0): How many posts it has published: an Instagram account's media, a YouTube channel's public videos.
    - `roles` (array of string): What the end user who authorized the Connection may do on it, as the platform names it: their tasks on a Facebook Page (`MANAGE`, `CREATE_CONTENT`, `MODERATE`, …), which narrow `supportedOperations`, or their roles on a LinkedIn Page (`ADMINISTRATOR` first, then others such as `CONTENT_ADMINISTRATOR`).
    - `websiteUrl` (string): The website it links to: a Business Profile location's or a LinkedIn Page's.
    - `businessAccountId` (string): The business account it belongs to: a WhatsApp number's WhatsApp Business Account, or a Business Profile location's account.
    - `businessAccountName` (string): That business account's name.
    - `category` (string): Facebook: the Page's category, as Facebook names it (`Restaurant`, `Musician/Band`).
    - `facebookPageId` (string): Instagram: the Facebook Page the account is linked to, which Koil reaches it through.
    - `facebookPageName` (string): Instagram: that Facebook Page's name.
    - `madeForKids` (boolean): YouTube: whether the channel is made for kids. YouTube turns comments off on such a channel's videos.
    - `displayPhoneNumber` (string): WhatsApp: the phone number as WhatsApp displays it.
    - `qualityRating` (string): WhatsApp: the number's quality rating, from how people received its recent messages (`GREEN`, `YELLOW`, `RED`, …).
    - `messagingLimit` (string): WhatsApp: how many people the number may start conversations with in 24 hours (`TIER_250`, `TIER_1K`, …).
    - `codeVerificationStatus` (string): WhatsApp: whether the number's ownership was verified with a code (`VERIFIED`, `NOT_VERIFIED`, `EXPIRED`).
    - `nameStatus` (string): WhatsApp: where the review of the number's display name stands (`APPROVED`, `PENDING_REVIEW`, `DECLINED`, …).
    - `platformType` (string): WhatsApp: the API the number is registered on (`CLOUD_API`, `ON_PREMISE`, `NOT_APPLICABLE`). Koil messages only from a Cloud API number, so any other has no `supportedOperations`.
    - `status` (string): WhatsApp: the number's status (`CONNECTED`, `PENDING`, `FLAGGED`, …). A number that is not `CONNECTED` has no `supportedOperations`.
    - `isOfficialBusinessAccount` (boolean): WhatsApp: whether the number is an Official Business Account, which WhatsApp marks with a badge.
    - `storeCode` (string): Business Profile: the store code the business gave the location, its own id for the shop.
    - `placeId` (string): Business Profile: the location's Google Maps place id.
    - `mapsUrl` (string): Business Profile: the location's Google Maps link.
    - `languageCode` (string): Business Profile: the location's language, as a BCP 47 code.
    - `memberUrn` (string): LinkedIn: the member who authorized the Connection, whose `roles` these are.
    - `pageUrl` (string): LinkedIn: the Page's public URL.
- `nextCursor` (string) (min length 1): Opaque cursor for fetching the next result page.
- `hasMore` (boolean, required)

## Errors

Every error has the same shape: `{ "error": { "code", "message", "meta", "requestId" } }`. [Errors →](https://docs.koil.co/concepts/errors)

| Status | Meaning |
| --- | --- |
| 400 | `validation_error`: The request does not match the operation's input schema, fails an admission check, or the platform refused its content. `meta.violations` names every problem. `not_supported`: The platform, collection or resource does not offer this operation, such as exporting a `key` Connection's credential, which Koil never returns. |
| 401 | `unauthorized`: No API key, or a key Koil does not accept (unknown, revoked, or with a prefix that does not match its mode). |
| 403 | `permission_denied`: The API key is valid but lacks a permission the operation requires; `meta.required` names it. Use a key created with that permission. `scope_insufficient`: The credential lacks a scope the operation needs; `meta` names the missing scopes. `connection_invalid`: The platform credential behind the Profile no longer works; the end user must re-authorize. |
| 404 | `not_found`: The resource does not exist in this Organization and mode. |
| 409 | `conflict`: The request collides with current state: an idempotency key reused with a different payload or still in flight, a run already in progress, a publish that has already started, or a resource that already exists (`meta.resourceType` and `meta.resourceId` name it). Retry only when the response carries `Retry-After` (the key's first request is still in flight), after that many seconds. |
| 429 | `rate_limit_exceeded`: Koil's own rate limit for the key, Organization, Profile, or client address is spent (`meta.budgets` names which); retry after `Retry-After` seconds. `platform_rate_limit`: The platform throttled the call or the platform quota is spent; retry after `Retry-After` seconds. |
| 500 | `internal`: Koil or the platform failed, and the status says which: 500 when Koil failed, including a platform refusing how Koil made the call; 502 when the platform failed or answered something Koil cannot use; 504 when Koil's call to the platform timed out. The message is generic; retry with backoff. |
| 502 | `internal`: Koil or the platform failed, and the status says which: 500 when Koil failed, including a platform refusing how Koil made the call; 502 when the platform failed or answered something Koil cannot use; 504 when Koil's call to the platform timed out. The message is generic; retry with backoff. |
| 503 | `service_unavailable`: A service Koil needs to accept the request (API key validation or rate limiting) is unavailable. Nothing was attempted; retry after `Retry-After` seconds. |
| 504 | `internal`: Koil or the platform failed, and the status says which: 500 when Koil failed, including a platform refusing how Koil made the call; 502 when the platform failed or answered something Koil cannot use; 504 when Koil's call to the platform timed out. The message is generic; retry with backoff. |
| default | Any other failure. `error.code` names it; the HTTP status follows from it. |
