---
title: "List available channel accounts"
method: POST
path: "/api/sender-profiles/available-accounts"
tags: ["sender_profiles"]
---

# List available channel accounts

`POST /api/sender-profiles/available-accounts`

## Request

- Base URL: `https://beta.getsales.io/unibox/v1`
- URL: `https://beta.getsales.io/unibox/v1/api/sender-profiles/available-accounts`
- Auth: HTTP bearer and API key in header `Team-SID`

The gtm-api accounts the team's linked workspaces hold, with the sender profile each is attached to. channel defaults to linkedin; email lists mailboxes. Every row carries its workspace and sender_profile_sid (null = free). A LinkedIn row also says what the account pays LinkedIn for (has_premium, has_sn, recruiter_status) and the InMail credits left per plan as gtm last read them; null = not read, never zero. Feed a free row to attach_sender_profile_linkedin or attach_sender_profile_mailbox.

Contract:
- MCP tool `list_sender_profile_available_accounts`, registry package `mcp.unibox/sender_profiles`, mount `unibox.sender-profiles`.
- Operation `action`, response envelope `action`.
- Flags: read only.

## Request body

- ListSenderProfileAvailableAccountsRequest: Request body of `list_sender_profile_available_accounts`.
  - `channel` 'linkedin' | 'email': Which roster to read. Default linkedin (LinkedIn accounts); email lists mailboxes.
  - `cursor` string, nullable: Accepted and ignored: the whole roster comes back in one answer, with next_cursor null and has_more false.

## Response `200`

`action` success envelope.

- ListSenderProfileAvailableAccountsResponse
  - `success` true, required
  - `operation` 'action', required
  - `action` string, required: kebab-case verb; matches the route segment.
  - `item` object, nullable, required
  - `result` object, required
    - `accounts` object[], required
      - `channel` string, required: linkedin | email, echoing the requested roster.
      - `connection_sid` string, required: The gtm workspace this row came from (gt_cn_…); pass it back as connection_sid on the attach.
      - `connection_mode` string, nullable, required: How that workspace is linked (the managed tenant, or the team's own).
      - `connection_label` string, nullable, required: Human name of the workspace, for grouping the picker.
      - `gtm_team_sid` string, required: The gtm team behind connection_sid (ts_tm_…): the workspace key. Two grants on one workspace list each account once, under the first grant that sees it; group rows by this, not by connection_sid.
      - `linkedin_account_sid` string, nullable, required: Present on the linkedin roster (ln_ac_…).
      - `email_account_sid` string, nullable, required: Present on the email roster (em_ac_…).
      - `address` string, nullable, required: Mailbox address (email roster only).
      - `full_name` string, nullable, required
      - `nickname` string, nullable, required: LinkedIn public identifier (linkedin roster only).
      - `avatar_url` string, nullable, required
      - `status` string, nullable, required: The account's own status on gtm.
      - `has_premium` boolean: The account pays for LinkedIn Premium (linkedin roster only; a Sales Navigator licence carries Premium with it).
      - `has_sn` boolean: The account holds a Sales Navigator licence (linkedin roster only).
      - `recruiter_status` 'active' | 'signed_out', nullable: The Recruiter licence: active, signed_out (the holder has to sign in to Recruiter again), null = no Recruiter licence (linkedin roster only).
      - `inmail_credits` integer, nullable: InMail credits left on the Sales Navigator licence, as gtm's premium check last read them; null = not read, never zero (linkedin roster only).
      - `premium_inmail_credits` integer, nullable: InMail credits left on the Premium plan itself, read only for an account without a Sales Navigator licence (with one, the Sales Navigator licence's credits are what an InMail spends); null = not read (linkedin roster only).
      - `recruiter_inmail_credits` integer, nullable: InMail credits left on the Recruiter contract, kept while the Recruiter licence is signed out; null = not read (linkedin roster only).
      - `last_premium_check_at` string, nullable: When gtm last read the plans and the three InMail balances (ISO 8601). gtm re-reads them on its premium check, not on a send (linkedin roster only).
      - `sender_profile_sid` string, nullable, required: The sender profile already holding this account (ub_sp_…); null = free to attach.
    - `next_cursor` string, nullable, required
    - `has_more` boolean, required
  - `meta` object, required
    - `trace_id` string, required: UUID v7; same 128-bit value as the X-Trace-Id header.
    - `span_id` string, required: 16 hex chars, root span of this request.
    - `timestamp` string, required: ISO 8601 UTC (Y-m-dTH:i:sZ), response time.
    - `duration_ms` integer, required: Server-side wall clock.
    - `team_sid` string, nullable: The team this call ran in (the token team, or the team_sid override). Null when unauthenticated; absent from pre-2026-08-20 backends.
    - `actor_type` string, nullable: user | agent | api_key | system. Null when unauthenticated; absent from pre-2026-08-20 backends.

## Other responses

- `4XX`: MCP error envelope. `error.code` is one of validation_failed, nothing_to_update, not_found, relation_not_found, invalid_transition, limit_exceeded, payment_required, duplicate_rejected, conflict, delete_blocked, unauthorized, forbidden, rate_limited, not_implemented.
- `5XX`: MCP error envelope with `error.code` internal_error or service_unavailable.

---

[API](https://skmtc.dev/getsales/apis/getsales-public-contract-gs-service-unibox.md) - [All operations](https://skmtc.dev/getsales/apis/getsales-public-contract-gs-service-unibox/llms.txt) - [OpenAPI document](https://skmtc.dev/getsales/apis/getsales-public-contract-gs-service-unibox/revisions/8f1bc317897f?raw)
