Skip to content

API reference

Groups

List, create, update and delete groups: named shortcuts for selecting several accounts at once.

Groups are shortcuts for selecting several accounts. Posts don’t take a group: expand it into accountIds yourself and remove duplicates (see Publish to several accounts). The posts and comments lists accept groupId as a filter.

List groups

GET/v1/account-groups

Your groups, newest first, each with its members (shaped like accounts). Not paginated.

Auth
API key x-api-key
Rate limit
120/minute

membersHash and userId are internal and can be ignored.

Example request

curl "https://api.flenvio.com/v1/account-groups" \
  -H "x-api-key: $FLENVIO_API_KEY"

Response 200

200 response
[
  {
    "id": "96a0b000-0000-4000-8000-000000000001",
    "userId": "05e10000-0000-4000-8000-000000000001",
    "name": "Lumen Coffee",
    "membersHash": "9f2c…",
    "createdAt": "2026-09-03T10:00:00.000Z",
    "updatedAt": "2026-09-03T10:00:00.000Z",
    "members": [
      {
        "id": "acc1a000-0000-4000-8000-000000000001",
        "platform": "INSTAGRAM",
        "accountName": "lumen.coffee",
        "avatarUrl": null,
        "connectionStatus": "ACTIVE"
      },
      {
        "id": "acc1a000-0000-4000-8000-000000000002",
        "platform": "FACEBOOK",
        "accountName": "Lumen Coffee Roasters",
        "avatarUrl": null,
        "connectionStatus": "ACTIVE"
      }
    ]
  }
]

Errors

List groups errors
StatusWhen
401Missing, invalid, revoked or expired API key.
429Too many requests to this endpoint; wait Retry-After seconds.

Create a group

POST/v1/account-groups

Creates a group. You can have up to 50.

Auth
API key x-api-key
Rate limit
120/minute

Parameters

  • namerequiredbody · string, 1–80 characters

    Unique among your groups.

  • accountIdsrequiredbody · string[]

    At least one of your account ids. Duplicates are ignored. No other group may have exactly the same set.

Example request

curl -X POST "https://api.flenvio.com/v1/account-groups" \
  -H "x-api-key: $FLENVIO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "Lumen Coffee",
  "accountIds": [
    "acc1a000-0000-4000-8000-000000000001",
    "acc1a000-0000-4000-8000-000000000002"
  ]
}'

Response 201

201 response
{
  "id": "96a0b000-0000-4000-8000-000000000001",
  "userId": "05e10000-0000-4000-8000-000000000001",
  "name": "Lumen Coffee",
  "membersHash": "9f2c…",
  "createdAt": "2026-09-03T10:00:00.000Z",
  "updatedAt": "2026-09-03T10:00:00.000Z",
  "members": [
    {
      "id": "acc1a000-0000-4000-8000-000000000001",
      "platform": "INSTAGRAM",
      "accountName": "lumen.coffee",
      "avatarUrl": null,
      "connectionStatus": "ACTIVE"
    },
    {
      "id": "acc1a000-0000-4000-8000-000000000002",
      "platform": "FACEBOOK",
      "accountName": "Lumen Coffee Roasters",
      "avatarUrl": null,
      "connectionStatus": "ACTIVE"
    }
  ]
}

Errors

Create a group errors
StatusWhen
400Validation failed, an account id isn’t yours (Unknown or unauthorized account(s): …), or you already have the maximum number of groups.
409A group with this name already exists. or A group with this exact set of accounts already exists.
401Missing, invalid, revoked or expired API key.
429Too many requests to this endpoint; wait Retry-After seconds.
403code: "api_key_read_only": the API key is read-only, and this request changes something.

Update a group

PATCH/v1/account-groups/{id}

Renames the group, replaces its members, or both. Omitted fields stay as they are. accountIds replaces the whole member list.

Auth
API key x-api-key
Rate limit
120/minute

Parameters

  • idrequiredpath · string

    Group id.

  • namebody · string, 1–80 characters

    Unique among your groups.

  • accountIdsbody · string[]

    At least one of your account ids. Duplicates are ignored. No other group may have exactly the same set.

Example request

curl -X PATCH "https://api.flenvio.com/v1/account-groups/96a0b000-0000-4000-8000-000000000001" \
  -H "x-api-key: $FLENVIO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "Lumen Coffee (all)",
  "accountIds": [
    "acc1a000-0000-4000-8000-000000000001",
    "acc1a000-0000-4000-8000-000000000002",
    "acc1a000-0000-4000-8000-000000000003"
  ]
}'

Response 200

The updated group, same shape as above.

Errors

Update a group errors
StatusWhen
400Validation failed or an account id isn’t yours.
404Group not found.
409A group with this name already exists. or A group with this exact set of accounts already exists.
401Missing, invalid, revoked or expired API key.
429Too many requests to this endpoint; wait Retry-After seconds.
403code: "api_key_read_only": the API key is read-only, and this request changes something.

Delete a group

DELETE/v1/account-groups/{id}

Deletes the group. The accounts and posts aren’t affected.

Auth
API key x-api-key
Rate limit
120/minute

Parameters

  • idrequiredpath · string

    Group id.

Example request

curl -X DELETE "https://api.flenvio.com/v1/account-groups/96a0b000-0000-4000-8000-000000000001" \
  -H "x-api-key: $FLENVIO_API_KEY"

Response 200

200 response
{
  "id": "96a0b000-0000-4000-8000-000000000001",
  "status": "deleted"
}

Errors

Delete a group errors
StatusWhen
404Group not found.
401Missing, invalid, revoked or expired API key.
429Too many requests to this endpoint; wait Retry-After seconds.
403code: "api_key_read_only": the API key is read-only, and this request changes something.
Groups API reference · Flenvio