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
/v1/account-groupsYour 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
[
{
"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
| Status | When |
|---|---|
401 | Missing, invalid, revoked or expired API key. |
429 | Too many requests to this endpoint; wait Retry-After seconds. |
Create a group
/v1/account-groupsCreates a group. You can have up to 50.
- Auth
- API key
x-api-key - Rate limit
- 120/minute
Parameters
namerequiredbody · string, 1–80 charactersUnique 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
{
"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
| Status | When |
|---|---|
400 | Validation failed, an account id isn’t yours (Unknown or unauthorized account(s): …), or you already have the maximum number of groups. |
409 | A group with this name already exists. or A group with this exact set of accounts already exists. |
401 | Missing, invalid, revoked or expired API key. |
429 | Too many requests to this endpoint; wait Retry-After seconds. |
403 | code: "api_key_read_only": the API key is read-only, and this request changes something. |
Update a group
/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 · stringGroup id.
namebody · string, 1–80 charactersUnique 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
| Status | When |
|---|---|
400 | Validation failed or an account id isn’t yours. |
404 | Group not found. |
409 | A group with this name already exists. or A group with this exact set of accounts already exists. |
401 | Missing, invalid, revoked or expired API key. |
429 | Too many requests to this endpoint; wait Retry-After seconds. |
403 | code: "api_key_read_only": the API key is read-only, and this request changes something. |
Delete a group
/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 · stringGroup 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
{
"id": "96a0b000-0000-4000-8000-000000000001",
"status": "deleted"
}Errors
| Status | When |
|---|---|
404 | Group not found. |
401 | Missing, invalid, revoked or expired API key. |
429 | Too many requests to this endpoint; wait Retry-After seconds. |
403 | code: "api_key_read_only": the API key is read-only, and this request changes something. |