# Get a platform available through Koil and its operations

`GET https://api.koil.co/v1/platforms/{platformId}`

## Authorization

None: this route takes no key.

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `platformId` | path | yes | string |  |

## Example

```bash
curl -X GET "https://api.koil.co/v1/platforms/{platformId}"
```

## Response 200

The platform and its operations through Koil.

- `platformId` (string, required) (min length 1)
- `displayName` (string, required) (min length 1): How customers name the platform.
- `summary` (string): What Koil reaches on the platform, and through what.
- `notes` (array of string): Facts an integration with this platform depends on.
- `caution` (object): A limitation to know before building on the platform.
  - `title` (string, required)
  - `body` (string, required)
- `issuerIds` (array of string, required)
- `issuerAppId` (object): The platform's own id for your app that an App of `issuerId` must carry as `issuerAppId`, because the platform needs it and it is not the OAuth client id.
  - `issuerId` (string, required) (min length 1)
  - `description` (string, required) (min length 1)
  - `pattern` (string) (min length 1)
- `operations` (array of object, required): Every operation, offered or not, as `{surface}.{resource}.{verb}` for content and `{resource}.{verb}` for the rest: what Koil does to connect a profile, and a profile setting's `get` and `update` at `/v1/profiles/{profileId}/settings/{platform}.{setting}`, with the credentials and scopes each needs. `GET /v1/collections?platformId={platformId}` has the content operations in full, with events and backfill, and `GET /v1/profiles/{profileId}/capabilities` narrows them to one profile's credential.
  - `operation` (string, required) (min length 1)
  - `supported` (boolean, required)
  - `reason` (string) (min length 1)
  - `detail` (string) (min length 1)
  - `credentials` (array of object, required)
    - `type` (string, required) (min length 1)
    - `issuerId` (string, required) (min length 1)
    - `source` (one of `"connection"`, `"profile"`, `"app"`, `"key"`, required): Whose credential: `connection` (the Connection's token, however its method obtained it), `profile` (minted for the Profile when it was connected, such as a Facebook Page token), `app` (your App's own client), or `key` (a brand's key, which only an issuer's own calls take).
    - `scopes` (array of string, required)
    - `resourceRefs` (array of string, required)
- `requiredScopes` (object, required)
- `surfaces` (array of object, required)
  - `surfaceId` (string, required) (min length 1)
  - `collections` (array of string, required): The surface's collections; `GET /v1/collections/{collection}` describes each.

## 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. |
| 404 | `not_found`: The resource does not exist in this Organization and 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. |
