---
title: "Get pending OAuth account-selection options"
method: GET
path: "/accounts/selections/{connection_id}"
tags: ["Accounts"]
---

# Get pending OAuth account-selection options

`GET /accounts/selections/{connection_id}`

## Request

- Base URL: `https://app.openpo.st/api/v1`
- URL: `https://app.openpo.st/api/v1/accounts/selections/{connection_id}`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `openpost_session`

## Path parameters

- `connection_id` string, required: Pending OAuth account-selection ID

## Response `200`

OK

- AccountSelectionResponse
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `expires_at` string, date-time, required: When this pending selection expires
  - `id` string, required: Pending OAuth account-selection ID
  - `options` AccountSelectionOption[], nullable, required: Selectable accounts, pages, or channels
    - `avatar_url` string
    - `description` string
    - `display_name` string
    - `extra` object
    - `id` string, required
    - `kind` string
    - `username` string
  - `platform` string, required: Social platform key
  - `workspace_id` string, required: Workspace ID this connection belongs to

## Other responses

- `403`: Forbidden
- `404`: Not Found
- `422`: Unprocessable Entity
- `500`: Internal Server Error

---

[API](https://skmtc.dev/openpo/apis/openpost-api.md) · [All operations](https://skmtc.dev/openpo/apis/openpost-api/llms.txt) · [OpenAPI document](https://skmtc.dev/openpo/apis/openpost-api/revisions/67d3964458a7?raw)
