Skip to content

A company: its projects, its people, its invitations

GET
/v1/companies/{id}
curl --request GET \
--url https://beta-api.plune.ai/v1/companies/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>'

Every project of the company by name, with the caller’s own standing in each (joined, and the role when joined) — nothing else about a project they are not in; every member with their company role; and, for its owner and managers, the invitations nobody has signed in on yet. A company you are not in, and one in the bin, answer the 404 an id nobody has gets. ?deleted= (#2053): of the user ids asked, those among the company’s people and those who invited them whose account was deleted — in the Bin, or purged and so no longer in the company — come back in deleted, and the people page names such an inviter «deleted account»; any other id is left out.

id
required
string format: uuid
deleted
Array<string>
<= 100 items

User ids, comma-separated, at most 100: the answer then carries deleted.

The company

Media type application/json

The company page. invitations is its owner’s and managers’ business — empty for a member and a reader.

object
id
required
string format: uuid
name
required
string
role
required

What a member of a company may do (ADR 0038, ADR 0050). owner — exactly one: renames and deletes it and hands its ownership over; never demoted or removed, and does not leave. owner and manager run its people by the project’s rules (a manager gives their own level and below, and demotes and removes only members and readers) and add them to its projects; member and reader join its projects themselves. A company role opens no project: joining one gives the project role it maps to — owner and manager → manager (a project has its own one owner), member → member, reader → reader. The former admin is a manager since release B and is never answered.

string
Allowed values: owner manager member reader
createdAt
required
string format: date-time
projects
required
Array<object>

A project of the company as any member sees it: its name, and the caller’s own standing in it — role only when joined. Nothing else about a project the caller is not in.

object
id
required
string
name
required
string
joined
required
boolean
role

What a member may do (B8-team, ADR 0050). owner — exactly one a project: its secrets (bucket, CI, AI keys), statuses, name, the move into a company, and the handover of ownership; never demoted or removed, and does not leave — ownership moves only by a handover the recipient accepts. manager runs the people of their level and below: invites as manager, member or reader, and changes and removes members and readers (a manager is demoted and removed by the owner alone). member works in the project and manages nobody; reader is refused every write at the boundary, before a handler runs, but a comment, a pending proposal and leaving the project (#1440, #2055).

string
Allowed values: owner manager member reader
members
required
Array<object>
object
userId
required
string
email
required
string format: email
name

The display name (T3) — absent until the person has given one.

string
role
required

What a member of a company may do (ADR 0038, ADR 0050). owner — exactly one: renames and deletes it and hands its ownership over; never demoted or removed, and does not leave. owner and manager run its people by the project’s rules (a manager gives their own level and below, and demotes and removes only members and readers) and add them to its projects; member and reader join its projects themselves. A company role opens no project: joining one gives the project role it maps to — owner and manager → manager (a project has its own one owner), member → member, reader → reader. The former admin is a manager since release B and is never answered.

string
Allowed values: owner manager member reader
invitedBy

Who brought them in (a userId) — absent for the person who made the company.

string
createdAt
required
string format: date-time
deleted

Present while the person’s account waits in the Bin (#952), as on Member.

boolean
pendingHandover

ADR 0050 §3: on the row of the person the owner asked to take the company over, while the request waits — absent on every other row.

object
id
required
string format: uuid
expiresAt
required
string format: date-time
invitations
required
Array<object>

An address asked into the company that has not signed in since. projectId is present when it was asked into a company project through POST /v1/members: the sign-in makes it a member of the company AND of that project.

object
id
required
string format: uuid
email
required
string format: email
role
required

What a member of a company may do (ADR 0038, ADR 0050). owner — exactly one: renames and deletes it and hands its ownership over; never demoted or removed, and does not leave. owner and manager run its people by the project’s rules (a manager gives their own level and below, and demotes and removes only members and readers) and add them to its projects; member and reader join its projects themselves. A company role opens no project: joining one gives the project role it maps to — owner and manager → manager (a project has its own one owner), member → member, reader → reader. The former admin is a manager since release B and is never answered.

string
Allowed values: owner manager member reader
projectId
string
createdAt
required
string format: date-time
autoDelete

In the owner’s answer only, with the three fields below (#3175). The company is marked to go to the Bin with its projects 30 days after the last finished run in any of its live projects, or after the company was made or a project last moved into or out of it, when that is later. Nothing is deleted unless autoDeleteLive is true. A company taken out of the Bin comes back without the mark.

boolean
lastRunFinishedAt

The last finished run of its live projects; a run in the Bin does not count. Given marked or not; null without a finished run.

string format: date-time
nullable
autoDeleteAt

The first 03:10 UTC at or after 30 days from the latest of lastRunFinishedAt, createdAt and the last move of a project into or out of the company, or the next 03:10 UTC when that has passed; never in the past. A new finished run or such a move moves it. With autoDelete false it is when the company WOULD go if marked now: an unmarked company is never deleted. Nothing is deleted then unless autoDeleteLive. null as lastRunFinishedAt.

string format: date-time
nullable
autoDeleteLive

Whether this deployment deletes marked companies. False: nothing is deleted, and the mark cannot be set (409 auto_delete_not_enabled), only cleared.

boolean
tier

Free and Personal are an account’s, Team and Enterprise a company’s; Free may also be a company’s, as the row that cancels its Team.

string
Allowed values: free personal team enterprise
tierState

Worked out from the grants at the database’s clock, never stored. active: a paid grant covers now. grace: it ended or was cancelled less than 14 days ago, and the limits are still the tier’s. expired: the 14 days are over — Free. disabled: the operator switched it off — Free at once, and nothing is deleted for 14 days. No grant ever is plain Free, active.

string
Allowed values: active grace expired disabled
options

What a grant carries besides its tier. A free grant carries none.

object
saml
boolean
extra_storage_packs
integer
<= 1000
extra_full_months
integer
<= 120
seats

The seats a payment bought (#1055). Only a payment writes it; the owner’s grant cannot.

integer
>= 1
tierValidUntil

When the company’s paid period ends (or ended, in grace); null without an end and on Free.

string format: date-time
nullable
tierGraceEndsAt

Until when nothing of the company is deleted: the end of the 14 days in grace and disabled; null when active or expired.

string format: date-time
nullable
deleted

Only when ?deleted= asked (#2053): those of the asked user ids among the company’s people and those who invited them whose account was deleted — in the Bin or purged. Screens say «deleted account».

Array<string>
Example
{
"id": "6f1c2b3a-0000-4000-8000-0000000000a5",
"name": "Acme",
"role": "owner",
"createdAt": "2026-09-16T09:12:04.151Z",
"projects": [
{
"id": "9c4e7d10-0000-4000-8000-0000000000a4",
"name": "Mobile app",
"joined": true,
"role": "owner"
},
{
"id": "9c4e7d10-0000-4000-8000-0000000000a5",
"name": "Payments",
"joined": false
}
],
"members": [
{
"userId": "u-shop",
"email": "owner@example.com",
"name": "Olena Kovalenko",
"role": "owner",
"createdAt": "2026-09-16T09:12:04.151Z"
},
{
"userId": "6f1c2b3a-0000-4000-8000-0000000000a2",
"email": "colleague@example.com",
"role": "manager",
"invitedBy": "u-shop",
"createdAt": "2026-09-16T09:12:04.151Z"
}
],
"invitations": [
{
"id": "6f1c2b3a-0000-4000-8000-0000000000a6",
"email": "newcomer@example.com",
"role": "member",
"createdAt": "2026-09-16T09:12:04.151Z"
}
],
"autoDelete": false,
"lastRunFinishedAt": null,
"autoDeleteAt": null,
"autoDeleteLive": false,
"tier": "personal",
"tierState": "active",
"options": {},
"tierValidUntil": "2027-10-15T09:00:00.000Z",
"tierGraceEndsAt": null
}

More than 100 ids in deleted

Media type application/json
object
error
required
string
Example
{
"error": "deleted: at most 100 user ids, comma separated"
}

No / invalid token or session

No such company among yours

Media type application/json
object
error
required
string
Example
{
"error": "company '6f1c2b3a-0000-4000-8000-0000000000a5' not found"
}