# List Koil Profiles for the current Organization, newest first

`GET https://api.koil.co/v1/profiles`

List Koil Profiles for the current Organization, newest first. `connectionId`, `platformId` and `clientUserId` narrow the list.

## 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` | query | no | string | Only the profiles connected through this Connection. |
| `platformId` | query | no | string | Only this platform's profiles. |
| `clientUserId` | query | no | string | Only the profiles whose Connection was made for this end user. |

## Example

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

## Response 200

A page of the Organization's Koil Profiles.

- `data` (array of object, required)
  - `kind` (`"profile"`, required): The kind of resource this is.
  - `mode` (one of `"live"`, `"sandbox"`, required): Which mode the resource belongs to. Live and sandbox resources are separate: a key reads and writes only its own mode's.
  - `id` (string, required) (min length 1): Koil Profile identifier.
  - `platformId` (string, required) (min length 1): Koil platform identifier.
  - `connectionId` (string, required) (min length 1): Koil Connection identifier.
  - `platformProfileExternalId` (string, required) (min length 1)
  - `status` (one of `"active"`, `"invalid"`, required): `active` while Koil can act for the profile. `invalid` once the platform no longer lets the Connection act for it, though the Connection itself still authorizes: the end user lost their role on the Page, or the Page is gone. Once the end user has access again, create a Connect Session with the profile's `connectionId`; the profile returns to `active` when Koil can act for it again. `profile.updated` announces every change. While `invalid`, or while its Connection is, Koil polls nothing for it, refuses operations through it, and does not bill it; one still `invalid` six days after it became so is deleted. A profile whose Connection is not `active` keeps its own status; check the Connection's too.
  - `statusReason` (one of `"revoked"`, `"mint_failed"`): Why the profile is not `active`; absent while it is. `revoked`: the platform refused the credential Koil acts for the profile with, and would not issue a new one. `mint_failed`: the platform refused that credential, and minting a new one has kept failing for a day.
  - `metadata` (object, required): Your own key-value pairs, up to 50 keys of at most 40 characters with string values of at most 500. An update merges into what is stored, and a key set to `""` is removed.
  - `createdAt` (string, date-time, required)
  - `updatedAt` (string, date-time, required)
- `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). |
| 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. |
| 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. |
| default | Any other failure. `error.code` names it; the HTTP status follows from it. |
