Accounts
An account is one provider connection inside a profile. Its accountId is the
identifier every other endpoint takes.
The account object
List accounts returns these records, and Get account returns one bare.
Account fields
accountIduuid- Use this everywhere.
idis the same value, kept for clients that expect it. profileIduuid- The profile this connection belongs to. Use it to group an organization-wide account list by customer or brand.
providerIdstring- Instagram's user id, or TikTok's app-scoped open_id. Informational — do not send it back as an accountId. A TikTok account's open_id changed once, when it reconnected through TikTok API for Business. For YouTube, the channel id (UC…). For X, the user id, which survives a change of username. For Bluesky, the account's DID (did:plc:…), which survives a change of handle. For Facebook and Meta Ads, the selected Page's id.
displayNamestring- For Instagram, "@" plus the username. For TikTok, the profile display name. For YouTube, the channel title. For X, the account name. For Bluesky, the display name, or the handle when there is none.
displayIdentifierstring- The Instagram username, or the TikTok username (its open_id for a connection that has not reconnected since the move to TikTok API for Business), or the YouTube channel handle, such as @adeli (its channel id when it has none), or the X username, or the Bluesky handle.
authMethod"unified_login" | "instagram_login" | "facebook_login"- Instagram only: the login the account was connected with:
instagram_login,facebook_login, orunified_login(Meta's Instagram API with Unified Login). See Instagram login methods. connectionStatusstringconnected;expiredwhen an Instagram connection has lapsed: its token was revoked (Unified Login), expired, or, for Facebook Login, its Page can no longer be reached;reconnect_requiredwhen TikTok, Facebook, YouTube, X, or Bluesky needs fresh consent;pending_page_selectionwhen a Facebook or Meta Ads connection exists but no Page has been chosen.
Endpoints
/api/v1/accountsConnected accounts across every profile in the organization.GETList profile accounts/api/v1/profiles/{profileId}/accountsThe same list, scoped by path instead of query.GETGet account/api/v1/profiles/{profileId}/accounts/{accountId}One connected account, as a bare object.PATCHUpdate X account/api/v1/profiles/{profileId}/accounts/{accountId}Turn an X account's billed background reads on or off.POSTRefresh tokens/api/v1/profiles/{profileId}/accounts/refreshRefresh the OAuth tokens of every connection in a profile.DELETEDisconnect account/api/v1/profiles/{profileId}/accounts/{accountId}Delete Adeli's credentials and cached history for one connection.Permission state
Every connected account reports exact grantedPermissions, advisory recommendedPermissions and missingRecommendedPermissions, per-feature capabilities, capabilityRequirements with required/missing permissions and resources, and a structured reconnect action. Missing recommended permissions do not change connectionStatus: a usable partial grant remains connected. Nullable provider identity fields mean narrow consent prevented hydration; reconnect with expanded consent updates the same accountId.
Recommended permissions are exactly what Adeli's configuration for that login requests, so a missing one is worth a reconnect. Ads capabilities belong to the separate meta_ads account, never to a Facebook account, and use ads_management rather than ads_read.