Access
Preview

Where the organization is in its life

Whether the organization is working, and if not why, for the banner every member sees. `state` is `active`,

GET
/organization/lifecycle
cookiebetter-auth.session_token<token>

Better Auth session cookie. Production uses the __Secure- prefixed name.

Response Body

The organization's state.

application/json
  1. response
state*OrganizationLifecycleState
Value in"active""read_only""archived""dormant""closing"
readOnlyAt?string

When the organization became read-only.

Formatdate-time
archiveAt?string

When a read-only organization is archived.

Formatdate-time
archivedAt?string
Formatdate-time
dormantAt?string

When the organization was paused for want of use.

Formatdate-time
warnedAt?string

When its Owners were told it would be paused soon, while it has not been paused yet.

Formatdate-time
Example Request
curl -X GET 'https://wardn.example.com/api/v1/organization/lifecycle'
Example Response
{  "state": "active",  "readOnlyAt": "2019-08-24T14:15:22Z",  "archiveAt": "2019-08-24T14:15:22Z",  "archivedAt": "2019-08-24T14:15:22Z",  "dormantAt": "2019-08-24T14:15:22Z",  "warnedAt": "2019-08-24T14:15:22Z"}