Releases Index
List org accounts
View .md

List org social/platform accounts

GET
/orgs/{slug}/accounts

Returns the org's registered accounts (GitHub, Twitter, LinkedIn, etc.) as a paginated list. Pass ?platform=<name> to fetch a single account by platform — returns the account object or null when not set. When the org holds multiple accounts for the platform, single-mode returns the oldest-linked one deterministically; use the full list (omit ?platform) to retrieve them all. The 200 schema is a union of the paginated list (default) or a single OrgAccountItem/null (single-mode) — the OSS CLI depends on the single-row return shape.

Authorization

bearerAuth
headerAuthorizationBearer <relk_… | relu_… | OAuth JWT>

Machine/operator tokens use the relk_ prefix; self-serve read-only user keys use relu_; Sign in with Releases supplies an OAuth access token. Required scope depends on the endpoint.

Path Parameters

slug*string

Query Parameters

platform?string

When provided, returns a single OrgAccountItem for the given platform (or null). When absent, returns the full paginated list.

Response Body

Paginated org accounts (default), or a single OrgAccountItem/null when ?platform= is supplied

application/json
  1. response
items*array<>
pagination*
Example Request
curl -X GET 'https://api.releases.sh/v1/orgs/string/accounts'
Example Response
{  "items": [    {      "platform": "string",      "handle": "string"    }  ],  "pagination": {    "page": 1,    "pageSize": 1,    "returned": 0,    "totalItems": 0,    "totalPages": 0,    "hasMore": true  }}