Skip to main content

Accounts API

The /v1/accounts endpoint returns the social accounts the authenticated user has access to. You'll need account IDs to target posts.

Requires authentication.


List accounts

GET /api/v1/accounts

Returns the connected social accounts the authenticated user can post to (those they own or are a member of via an organization).

Example

curl https://<your-api-origin>/api/v1/accounts \
-H "Authorization: Bearer gx_live_YOUR_API_KEY"

Response — 200 OK

{
"data": [
{
"id": "acc_abc123",
"platform": "instagram",
"username": "postbuzz",
"displayName": "post.buzz"
},
{
"id": "acc_def456",
"platform": "x",
"username": "postbuzz",
"displayName": "post.buzz"
}
]
}

Fields

FieldDescription
idThe account ID. Use this as accountId when creating posts.
platformOne of the supported platforms (e.g. instagram, x).
usernameThe handle/username on the platform.
displayNameThe display name, where available.

Disconnected accounts (those with a disconnectedAt timestamp) are excluded — only active accounts are returned.

  • Posts API — use these account IDs to create posts.
  • Platforms — capability and limit reference.