Team and clients
Agency mode from code. Invite people to manage your account and choose what they can do, list the accounts you manage, accept invitations, and work on a client's account with the Linkpost-Account header.
These endpoints do from code what Settings, Team does in the app. An account lets other people in to manage it (its members), and those people work on the accounts they manage (their clients). See Agency mode and team for how it works in the app.
| Method | Path | What it does |
|---|---|---|
GET |
/api/v1/members |
Lists the people who manage your account and the invitations waiting. |
POST |
/api/v1/members |
Invites someone by email to manage your account. |
PATCH |
/api/v1/members/{id} |
Changes what someone can do. |
POST |
/api/v1/members/{id}/resend |
Sends an invitation again, with a new link. |
DELETE |
/api/v1/members/{id} |
Takes someone's access away, or withdraws an invitation. |
GET |
/api/v1/clients |
Lists the accounts you manage and the invitations waiting for you. |
POST |
/api/v1/clients/{id}/accept |
Accepts an invitation. |
DELETE |
/api/v1/clients/{id} |
Turns an invitation down, or stops managing an account. |
/api/v1/members is for the owner of the account only, with a key of their own account. Someone managing it gets 403 with Only the owner of Acme Drinks can do this. /api/v1/clients always answers for the person behind the key, whatever account the request works on.
The endpoints that invite, change, send again, take access away, accept and leave share a limit of 20 requests a minute and 200 a day.
Work on an account you manage
Every endpoint of the API can work on an account you manage instead of your own. There are two ways:
- The
Linkpost-Accountheader, with theaccount.idof a client from List the accounts you manage. Your usual key then works on that account:
curl https://linkpost.app/api/v1/accounts \
-H "Authorization: Bearer $LINKPOST_KEY" \
-H "Linkpost-Account: 3141"
- A key made for that account. When you create a key in the app, choose the account under Works on. That key works on that account without the header. See Authentication.
Either way, the request does only what the account lets you do. Every member can list its accounts, posts and stats, and create, schedule, reschedule, cancel, retry and remove posts. The rest needs a permission:
| Permission | Endpoints |
|---|---|
connect_accounts |
GET /api/v1/connect-links. Its links open on that account in the browser. |
disconnect_accounts |
DELETE /api/v1/accounts/{id} |
automations |
/api/v1/automations…, /api/v1/accounts/{id}/instagram-media and /api/v1/whatsapp/… |
billing |
GET /api/v1/billing |
Changing the account's settings (PATCH /api/v1/me), its billing details, its limit on X and its members is for the owner only.
| Status | Message |
|---|---|
400 |
Linkpost-Account takes the id of an account you manage, from GET /api/v1/clients. |
403 |
You do not manage that Linkpost account, or its owner removed your access. GET /api/v1/clients lists the accounts you manage. |
403 |
This key works on one account only. Leave out Linkpost-Account, or use a key of your own account. A key made for a client, sent with another account in the header. |
403 |
Acme Drinks has not given you permission to disconnect accounts. The account did not give you that permission. |
A suspended account answers 403 too, until it is active again.
List the people who manage your account
GET /api/v1/members lists the people your account lets in to manage it, and the invitations still waiting, newest first.
curl https://linkpost.app/api/v1/members \
-H "Authorization: Bearer $LINKPOST_KEY"
{
"data": [
{
"id": 12,
"email": "ana@agency.com",
"name": "Ana Ruiz",
"status": "active",
"permissions": { "connect_accounts": true, "disconnect_accounts": false, "automations": true, "billing": false },
"invited_at": "2026-11-28T10:00:00Z",
"accepted_at": "2026-11-28T10:20:00Z"
}
]
}
| Field | What it is |
|---|---|
id |
The id of this person's access, for the other /members endpoints. |
email |
Where the invitation went. |
name |
Their name in Linkpost, once they accepted. null before. |
status |
pending until they accept the invitation, then active. |
permissions |
What they can do beyond posts, accounts and stats. See Work on an account you manage. |
invited_at, accepted_at |
When the invitation went out and when they accepted it. |
Invite someone
POST /api/v1/members emails an invitation. Someone with a Linkpost account accepts it signed in with that address; someone without one gets a link to create it, which works even when sign-up is closed.
| Field | What it is |
|---|---|
email |
Required. Where the invitation goes. |
permissions |
Optional list, empty by default: connect_accounts, disconnect_accounts, automations, billing. |
curl -X POST https://linkpost.app/api/v1/members \
-H "Authorization: Bearer $LINKPOST_KEY" \
-H "Content-Type: application/json" \
-d '{ "email": "ana@agency.com", "permissions": ["connect_accounts", "automations"] }'
The answer is 201 with the new access, as in List the people who manage your account, with status pending.
| Status | Message |
|---|---|
409 |
ana@agency.com already has access to this account or an invitation waiting. |
409 |
An account can have up to 20 people with access. Remove someone first. |
422 |
That is the email of this account. Invite the person who will manage it. |
422 |
permissions is a list with any of: connect_accounts, disconnect_accounts, automations, billing. |
Change what someone can do
PATCH /api/v1/members/{id} replaces the permissions of someone who manages your account, or of an invitation still waiting. Send permissions, the full list from now on: [] for none. It applies at once.
curl -X PATCH https://linkpost.app/api/v1/members/12 \
-H "Authorization: Bearer $LINKPOST_KEY" \
-H "Content-Type: application/json" \
-d '{ "permissions": ["automations"] }'
The answer is the access with its new permissions. Without permissions it answers 422 with Send permissions: the full list from now on, empty for none. An id that is not one of yours answers 404 with Nobody with that id has access to this account. List the people with access to see them.
Send an invitation again
POST /api/v1/members/{id}/resend emails an invitation still waiting again, with a new link. The link of the earlier email stops working. On someone who already accepted, it answers 409 with ana@agency.com already accepted the invitation.
curl -X POST https://linkpost.app/api/v1/members/12/resend \
-H "Authorization: Bearer $LINKPOST_KEY"
Take someone's access away
DELETE /api/v1/members/{id} answers 204. They stop managing your account at once, and the API keys they made for it stop working. On an invitation still waiting, it withdraws it.
curl -X DELETE https://linkpost.app/api/v1/members/12 \
-H "Authorization: Bearer $LINKPOST_KEY"
List the accounts you manage
GET /api/v1/clients lists the accounts that let you manage them, and the invitations waiting for you, with status pending. Active ones come first.
curl https://linkpost.app/api/v1/clients \
-H "Authorization: Bearer $LINKPOST_KEY"
{
"data": [
{
"id": 12,
"account": { "id": 3141, "name": "Acme Drinks", "email": "social@acme.com" },
"status": "active",
"permissions": { "connect_accounts": true, "disconnect_accounts": false, "automations": true, "billing": false },
"invited_at": "2026-11-28T10:00:00Z",
"accepted_at": "2026-11-28T10:20:00Z"
}
]
}
| Field | What it is |
|---|---|
id |
The id of the invitation or access, for accepting it or leaving. |
account |
The account you manage: send its id in Linkpost-Account to work on it. |
status |
pending for an invitation waiting for you, active once you accepted it. |
permissions |
What you can do there beyond posts, accounts and stats. |
Accept an invitation
POST /api/v1/clients/{id}/accept accepts an invitation waiting for you, by its id. It must have gone to the email of your account, confirmed. The answer is the account, now with status active.
curl -X POST https://linkpost.app/api/v1/clients/12/accept \
-H "Authorization: Bearer $LINKPOST_KEY"
An id that is not an invitation of yours answers 404 with No invitation with that id is waiting for you. List the accounts you manage to see them.
Stop managing an account
DELETE /api/v1/clients/{id} answers 204. It turns an invitation down, or stops managing an account; your API keys for it stop working.
curl -X DELETE https://linkpost.app/api/v1/clients/12 \
-H "Authorization: Bearer $LINKPOST_KEY"