Skip to Content
Docs
API referencePlatform API

Workspaces

List workspaces

GET
/workspaces

The caller's workspaces. A deleted workspace is gone to its members: it is listed, with status deleted, to Pontive's staff alone, who restore it; status=deleted lists only those.

Query Parameters

status?string

Filter by status

Value in"active""pastdue""suspended""cancelled""deleted"
plan?string

Filter by plan

Value in"free""pro""enterprise"
page?integer

Page number

limit?integer

Page size (default 25, at most 100)

sort?string

Sort order

search?string

Search term (slug,description,name depending on implementation)

Response Body

OK

application/json
  1. response
data?array<>

List of workspaces

object?string

The object type

pagination?

Pagination information

Example Request
curl -X GET 'https://api.pontive.com/v1/workspaces'
Example Response
{  "data": [    {      "billing_contact": {        "address": "string",        "city": "string",        "company_name": "string",        "country": "string",        "email": "string",        "name": "string",        "phone": "string",        "state": "string",        "tax_id": "string",        "tax_rate": "string",        "zip": "string"      },      "cancelled_at": "2019-08-24T14:15:22Z",      "created_at": "2019-08-24T14:15:22Z",      "deleted_at": "2019-08-24T14:15:22Z",      "deletion_scheduled_at": "2019-08-24T14:15:22Z",      "description": "string",      "id": "string",      "metadata": {        "property1": "string",        "property2": "string"      },      "name": "string",      "object": "string",      "purge_scheduled_at": "2019-08-24T14:15:22Z",      "slug": "string",      "status": "string",      "system": "holding",      "updated_at": "2019-08-24T14:15:22Z"    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}

Create workspace

POST
/workspaces

Create a new workspace

Request Body

Create Workspace Request

application/json
  1. body

Create Workspace Request

description?string

The description of the workspace

name?string

The name of the workspace required: true minLength: 1 maxLength: 255

Response Body

Created

application/json
  1. response
billing_contact?

Replaces the billing contact, where invoices and receipts are emailed. Its email is required. Needs workspace:billing.manage; sent on its own it needs nothing else, so a billing member sets it.

cancelled_at?string

When the workspace was cancelled (pontive-spec 01, Cancellation flow). Set while it is cancelled.

Formatdate-time
created_at?string

The time when the workspace was created

Formatdate-time
deleted_at?string

The time when the workspace was deleted

Formatdate-time
deletion_scheduled_at?string

When a cancelled workspace is deleted unless it is restored first, cancelled_at plus 30 days: its owner restores it until then. Set only on a cancelled workspace.

Formatdate-time
description?string

The description of the workspace

id?string

The unique identifier of the workspace

metadata?

The new metadata for the workspace

name?string

The name of the workspace

object?string

The object type

purge_scheduled_at?string

When a deleted workspace's restore window ends, deleted_at plus 60 days: it can be restored until then (route review D30). Set only on a deleted workspace.

Formatdate-time
slug?string

The slug of the workspace

status?string

The current status of the workspace enum: active,pastdue,suspended,cancelled,deleted

system?"holding"

System marks a workspace Pontive keeps for itself, shown to Pontive's staff only: holding, the installation's one holding workspace, which owns the unclaimed development instances until they are claimed (pontive-spec 47 §4.2). Absent for every customer workspace.

Value in"holding"
updated_at?string

The time when the workspace was last updated

Formatdate-time
Example Request
curl -X POST 'https://api.pontive.com/v1/workspaces' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "billing_contact": {    "address": "string",    "city": "string",    "company_name": "string",    "country": "string",    "email": "string",    "name": "string",    "phone": "string",    "state": "string",    "tax_id": "string",    "tax_rate": "string",    "zip": "string"  },  "cancelled_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "deleted_at": "2019-08-24T14:15:22Z",  "deletion_scheduled_at": "2019-08-24T14:15:22Z",  "description": "string",  "id": "string",  "metadata": {    "property1": "string",    "property2": "string"  },  "name": "string",  "object": "string",  "purge_scheduled_at": "2019-08-24T14:15:22Z",  "slug": "string",  "status": "string",  "system": "holding",  "updated_at": "2019-08-24T14:15:22Z"}

Get workspace

GET
/workspaces/{workspace_id}

One workspace. A deleted one answers 404 to its members and is returned, with status deleted and deleted_at, to Pontive's staff.

Path Parameters

workspace_id*string

Workspace ID

Response Body

OK

application/json
  1. response
billing_contact?

Replaces the billing contact, where invoices and receipts are emailed. Its email is required. Needs workspace:billing.manage; sent on its own it needs nothing else, so a billing member sets it.

cancelled_at?string

When the workspace was cancelled (pontive-spec 01, Cancellation flow). Set while it is cancelled.

Formatdate-time
created_at?string

The time when the workspace was created

Formatdate-time
deleted_at?string

The time when the workspace was deleted

Formatdate-time
deletion_scheduled_at?string

When a cancelled workspace is deleted unless it is restored first, cancelled_at plus 30 days: its owner restores it until then. Set only on a cancelled workspace.

Formatdate-time
description?string

The description of the workspace

id?string

The unique identifier of the workspace

metadata?

The new metadata for the workspace

name?string

The name of the workspace

object?string

The object type

purge_scheduled_at?string

When a deleted workspace's restore window ends, deleted_at plus 60 days: it can be restored until then (route review D30). Set only on a deleted workspace.

Formatdate-time
slug?string

The slug of the workspace

status?string

The current status of the workspace enum: active,pastdue,suspended,cancelled,deleted

system?"holding"

System marks a workspace Pontive keeps for itself, shown to Pontive's staff only: holding, the installation's one holding workspace, which owns the unclaimed development instances until they are claimed (pontive-spec 47 §4.2). Absent for every customer workspace.

Value in"holding"
updated_at?string

The time when the workspace was last updated

Formatdate-time
Example Request
curl -X GET 'https://api.pontive.com/v1/workspaces/string'
Example Response
{  "billing_contact": {    "address": "string",    "city": "string",    "company_name": "string",    "country": "string",    "email": "string",    "name": "string",    "phone": "string",    "state": "string",    "tax_id": "string",    "tax_rate": "string",    "zip": "string"  },  "cancelled_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "deleted_at": "2019-08-24T14:15:22Z",  "deletion_scheduled_at": "2019-08-24T14:15:22Z",  "description": "string",  "id": "string",  "metadata": {    "property1": "string",    "property2": "string"  },  "name": "string",  "object": "string",  "purge_scheduled_at": "2019-08-24T14:15:22Z",  "slug": "string",  "status": "string",  "system": "holding",  "updated_at": "2019-08-24T14:15:22Z"}

Update workspace

PATCH
/workspaces/{workspace_id}

Update an existing workspace. The name, description and metadata need workspace:manage; the billing contact needs workspace:billing.manage, and a request carrying only the billing contact needs nothing else, so a billing member sets where the invoices go. A token acting for a Pontive user (the Pontive MCP server) is refused the billing contact with 403 actor_refused: it is set in the dashboard.

Path Parameters

workspace_id*string

Workspace ID

Request Body

Update Workspace Request

application/json
  1. body

Update Workspace Request

billing_contact?

Replaces the billing contact, where invoices and receipts are emailed. Its email is required. Needs workspace:billing.manage; sent on its own it needs nothing else, so a billing member sets it.

description?string

The new description for the workspace

metadata?

The new metadata for the workspace

name?string

The new name for the workspace minLength: 1 maxLength: 255

Response Body

OK

application/json
  1. response
billing_contact?

Replaces the billing contact, where invoices and receipts are emailed. Its email is required. Needs workspace:billing.manage; sent on its own it needs nothing else, so a billing member sets it.

cancelled_at?string

When the workspace was cancelled (pontive-spec 01, Cancellation flow). Set while it is cancelled.

Formatdate-time
created_at?string

The time when the workspace was created

Formatdate-time
deleted_at?string

The time when the workspace was deleted

Formatdate-time
deletion_scheduled_at?string

When a cancelled workspace is deleted unless it is restored first, cancelled_at plus 30 days: its owner restores it until then. Set only on a cancelled workspace.

Formatdate-time
description?string

The description of the workspace

id?string

The unique identifier of the workspace

metadata?

The new metadata for the workspace

name?string

The name of the workspace

object?string

The object type

purge_scheduled_at?string

When a deleted workspace's restore window ends, deleted_at plus 60 days: it can be restored until then (route review D30). Set only on a deleted workspace.

Formatdate-time
slug?string

The slug of the workspace

status?string

The current status of the workspace enum: active,pastdue,suspended,cancelled,deleted

system?"holding"

System marks a workspace Pontive keeps for itself, shown to Pontive's staff only: holding, the installation's one holding workspace, which owns the unclaimed development instances until they are claimed (pontive-spec 47 §4.2). Absent for every customer workspace.

Value in"holding"
updated_at?string

The time when the workspace was last updated

Formatdate-time
Example Request
curl -X PATCH 'https://api.pontive.com/v1/workspaces/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "billing_contact": {    "address": "string",    "city": "string",    "company_name": "string",    "country": "string",    "email": "string",    "name": "string",    "phone": "string",    "state": "string",    "tax_id": "string",    "tax_rate": "string",    "zip": "string"  },  "cancelled_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "deleted_at": "2019-08-24T14:15:22Z",  "deletion_scheduled_at": "2019-08-24T14:15:22Z",  "description": "string",  "id": "string",  "metadata": {    "property1": "string",    "property2": "string"  },  "name": "string",  "object": "string",  "purge_scheduled_at": "2019-08-24T14:15:22Z",  "slug": "string",  "status": "string",  "system": "holding",  "updated_at": "2019-08-24T14:15:22Z"}

Delete workspace

DELETE
/workspaces/{workspace_id}

The recoverable delete: the workspace's status becomes deleted, it disappears for its members, and Pontive's admins can restore it for 60 days (POST …/restore), until its purge_scheduled_at, when it is purged with everything it holds; POST …/purge deletes it for good now. Its contract on Pontive's billing ends with the current period, and that period's usage bills on its final invoice. A workspace is deleted last: with no live projects (409 workspace_has_projects) and nothing owed (402 outstanding_balance).

Path Parameters

workspace_id*string

Workspace ID

Response Body

Workspace deleted successfully

Example Request
curl -X DELETE 'https://api.pontive.com/v1/workspaces/string'
Example Response
Empty

Cancel workspace

POST
/workspaces/{workspace_id}/cancel

Close the account: the workspace is cancelled now and read-only, and deleted 30 days later, at its deletion_scheduled_at, unless its owner restores it before. Its contract on Pontive's billing ends with the current period, and that period's usage bills on its final invoice. Needs confirm: true (400 confirmation_required); reason and feedback are for Pontive's analytics. Its owner only (403 for anyone else, its admins included).

Path Parameters

workspace_id*string

Workspace ID

Request Body

Confirmation, and why

application/json
  1. body

Confirmation, and why

confirm?boolean

Must be true: closing the account is confirmed (400 confirmation_required otherwise).

feedback?string

Free-form feedback, for Pontive's analytics. maxLength: 2000

reason?github_com_revotech-group_platform-management-api_core_workspace_types.CancelReason

Why the account is closed, for Pontive's analytics.

Value in"no_longer_needed""too_expensive""missing_features""switching_providers""other""no_longer_needed""too_expensive""missing_features""switching_providers""other"

Response Body

OK

application/json
  1. response
billing_contact?

Replaces the billing contact, where invoices and receipts are emailed. Its email is required. Needs workspace:billing.manage; sent on its own it needs nothing else, so a billing member sets it.

cancelled_at?string

When the workspace was cancelled (pontive-spec 01, Cancellation flow). Set while it is cancelled.

Formatdate-time
created_at?string

The time when the workspace was created

Formatdate-time
deleted_at?string

The time when the workspace was deleted

Formatdate-time
deletion_scheduled_at?string

When a cancelled workspace is deleted unless it is restored first, cancelled_at plus 30 days: its owner restores it until then. Set only on a cancelled workspace.

Formatdate-time
description?string

The description of the workspace

id?string

The unique identifier of the workspace

metadata?

The new metadata for the workspace

name?string

The name of the workspace

object?string

The object type

purge_scheduled_at?string

When a deleted workspace's restore window ends, deleted_at plus 60 days: it can be restored until then (route review D30). Set only on a deleted workspace.

Formatdate-time
slug?string

The slug of the workspace

status?string

The current status of the workspace enum: active,pastdue,suspended,cancelled,deleted

system?"holding"

System marks a workspace Pontive keeps for itself, shown to Pontive's staff only: holding, the installation's one holding workspace, which owns the unclaimed development instances until they are claimed (pontive-spec 47 §4.2). Absent for every customer workspace.

Value in"holding"
updated_at?string

The time when the workspace was last updated

Formatdate-time
Example Request
curl -X POST 'https://api.pontive.com/v1/workspaces/string/cancel' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "billing_contact": {    "address": "string",    "city": "string",    "company_name": "string",    "country": "string",    "email": "string",    "name": "string",    "phone": "string",    "state": "string",    "tax_id": "string",    "tax_rate": "string",    "zip": "string"  },  "cancelled_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "deleted_at": "2019-08-24T14:15:22Z",  "deletion_scheduled_at": "2019-08-24T14:15:22Z",  "description": "string",  "id": "string",  "metadata": {    "property1": "string",    "property2": "string"  },  "name": "string",  "object": "string",  "purge_scheduled_at": "2019-08-24T14:15:22Z",  "slug": "string",  "status": "string",  "system": "holding",  "updated_at": "2019-08-24T14:15:22Z"}

Purge workspace

POST
/workspaces/{workspace_id}/purge

Delete a deleted workspace for good, now, rather than at the end of its restore window: its organization and everything under it go, and nothing restores it (GDPR erasure). The workspace must be deleted first (DELETE). Only the workspace's owner and Pontive's admins purge; anyone else, a workspace admin included, is refused with 403, as is a token acting for a user.

Path Parameters

workspace_id*string

Workspace ID

Response Body

Workspace purged successfully

Example Request
curl -X POST 'https://api.pontive.com/v1/workspaces/string/purge'
Example Response
Empty

Restore workspace

POST
/workspaces/{workspace_id}/restore

Undo a cancellation within 30 days, or a delete within 60 days (409 restore_window_closed after, at deletion_scheduled_at and purge_scheduled_at): the workspace is active again. A cancelled workspace is restored by its owner or Pontive's admins; a deleted one by Pontive's admins only (403 for anyone else). While its contract is still ending, at most until the period's end, the restore revokes the contract's cancellation: a workspace on a paid plan then bills again, so it needs a payment method on its Customer that can be charged, read from Pontive's billing at the time of the restore (402 payment_method_required with none or an expired card; 503 when billing cannot be reached); one on Free needs none. Once the contract has ended, the workspace restarts on a new contract on Free, with no card needed, and its owner upgrades from there. A suspended workspace is resumed instead.

Path Parameters

workspace_id*string

Workspace ID

Response Body

OK

application/json
  1. response
billing_contact?

Replaces the billing contact, where invoices and receipts are emailed. Its email is required. Needs workspace:billing.manage; sent on its own it needs nothing else, so a billing member sets it.

cancelled_at?string

When the workspace was cancelled (pontive-spec 01, Cancellation flow). Set while it is cancelled.

Formatdate-time
created_at?string

The time when the workspace was created

Formatdate-time
deleted_at?string

The time when the workspace was deleted

Formatdate-time
deletion_scheduled_at?string

When a cancelled workspace is deleted unless it is restored first, cancelled_at plus 30 days: its owner restores it until then. Set only on a cancelled workspace.

Formatdate-time
description?string

The description of the workspace

id?string

The unique identifier of the workspace

metadata?

The new metadata for the workspace

name?string

The name of the workspace

object?string

The object type

purge_scheduled_at?string

When a deleted workspace's restore window ends, deleted_at plus 60 days: it can be restored until then (route review D30). Set only on a deleted workspace.

Formatdate-time
slug?string

The slug of the workspace

status?string

The current status of the workspace enum: active,pastdue,suspended,cancelled,deleted

system?"holding"

System marks a workspace Pontive keeps for itself, shown to Pontive's staff only: holding, the installation's one holding workspace, which owns the unclaimed development instances until they are claimed (pontive-spec 47 §4.2). Absent for every customer workspace.

Value in"holding"
updated_at?string

The time when the workspace was last updated

Formatdate-time
Example Request
curl -X POST 'https://api.pontive.com/v1/workspaces/string/restore'
Example Response
{  "billing_contact": {    "address": "string",    "city": "string",    "company_name": "string",    "country": "string",    "email": "string",    "name": "string",    "phone": "string",    "state": "string",    "tax_id": "string",    "tax_rate": "string",    "zip": "string"  },  "cancelled_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "deleted_at": "2019-08-24T14:15:22Z",  "deletion_scheduled_at": "2019-08-24T14:15:22Z",  "description": "string",  "id": "string",  "metadata": {    "property1": "string",    "property2": "string"  },  "name": "string",  "object": "string",  "purge_scheduled_at": "2019-08-24T14:15:22Z",  "slug": "string",  "status": "string",  "system": "holding",  "updated_at": "2019-08-24T14:15:22Z"}

Resume workspace

POST
/workspaces/{workspace_id}/resume

Suspend's pair: a suspended workspace goes back to the status its payment is in — past_due while it still is, active once paid. One suspended for an unpaid invoice stays suspended (402 outstanding_balance): paying lifts it. Needs workspace:delete.

Path Parameters

workspace_id*string

Workspace ID

Response Body

OK

application/json
  1. response
billing_contact?

Replaces the billing contact, where invoices and receipts are emailed. Its email is required. Needs workspace:billing.manage; sent on its own it needs nothing else, so a billing member sets it.

cancelled_at?string

When the workspace was cancelled (pontive-spec 01, Cancellation flow). Set while it is cancelled.

Formatdate-time
created_at?string

The time when the workspace was created

Formatdate-time
deleted_at?string

The time when the workspace was deleted

Formatdate-time
deletion_scheduled_at?string

When a cancelled workspace is deleted unless it is restored first, cancelled_at plus 30 days: its owner restores it until then. Set only on a cancelled workspace.

Formatdate-time
description?string

The description of the workspace

id?string

The unique identifier of the workspace

metadata?

The new metadata for the workspace

name?string

The name of the workspace

object?string

The object type

purge_scheduled_at?string

When a deleted workspace's restore window ends, deleted_at plus 60 days: it can be restored until then (route review D30). Set only on a deleted workspace.

Formatdate-time
slug?string

The slug of the workspace

status?string

The current status of the workspace enum: active,pastdue,suspended,cancelled,deleted

system?"holding"

System marks a workspace Pontive keeps for itself, shown to Pontive's staff only: holding, the installation's one holding workspace, which owns the unclaimed development instances until they are claimed (pontive-spec 47 §4.2). Absent for every customer workspace.

Value in"holding"
updated_at?string

The time when the workspace was last updated

Formatdate-time
Example Request
curl -X POST 'https://api.pontive.com/v1/workspaces/string/resume'
Example Response
{  "billing_contact": {    "address": "string",    "city": "string",    "company_name": "string",    "country": "string",    "email": "string",    "name": "string",    "phone": "string",    "state": "string",    "tax_id": "string",    "tax_rate": "string",    "zip": "string"  },  "cancelled_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "deleted_at": "2019-08-24T14:15:22Z",  "deletion_scheduled_at": "2019-08-24T14:15:22Z",  "description": "string",  "id": "string",  "metadata": {    "property1": "string",    "property2": "string"  },  "name": "string",  "object": "string",  "purge_scheduled_at": "2019-08-24T14:15:22Z",  "slug": "string",  "status": "string",  "system": "holding",  "updated_at": "2019-08-24T14:15:22Z"}

Suspend workspace

POST
/workspaces/{workspace_id}/suspend

Suspend a past-due workspace: its console takes no writes but billing's until it is resumed or paid. Needs workspace:delete.

Path Parameters

workspace_id*string

Workspace ID

Response Body

OK

application/json
  1. response
billing_contact?

Replaces the billing contact, where invoices and receipts are emailed. Its email is required. Needs workspace:billing.manage; sent on its own it needs nothing else, so a billing member sets it.

cancelled_at?string

When the workspace was cancelled (pontive-spec 01, Cancellation flow). Set while it is cancelled.

Formatdate-time
created_at?string

The time when the workspace was created

Formatdate-time
deleted_at?string

The time when the workspace was deleted

Formatdate-time
deletion_scheduled_at?string

When a cancelled workspace is deleted unless it is restored first, cancelled_at plus 30 days: its owner restores it until then. Set only on a cancelled workspace.

Formatdate-time
description?string

The description of the workspace

id?string

The unique identifier of the workspace

metadata?

The new metadata for the workspace

name?string

The name of the workspace

object?string

The object type

purge_scheduled_at?string

When a deleted workspace's restore window ends, deleted_at plus 60 days: it can be restored until then (route review D30). Set only on a deleted workspace.

Formatdate-time
slug?string

The slug of the workspace

status?string

The current status of the workspace enum: active,pastdue,suspended,cancelled,deleted

system?"holding"

System marks a workspace Pontive keeps for itself, shown to Pontive's staff only: holding, the installation's one holding workspace, which owns the unclaimed development instances until they are claimed (pontive-spec 47 §4.2). Absent for every customer workspace.

Value in"holding"
updated_at?string

The time when the workspace was last updated

Formatdate-time
Example Request
curl -X POST 'https://api.pontive.com/v1/workspaces/string/suspend'
Example Response
{  "billing_contact": {    "address": "string",    "city": "string",    "company_name": "string",    "country": "string",    "email": "string",    "name": "string",    "phone": "string",    "state": "string",    "tax_id": "string",    "tax_rate": "string",    "zip": "string"  },  "cancelled_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "deleted_at": "2019-08-24T14:15:22Z",  "deletion_scheduled_at": "2019-08-24T14:15:22Z",  "description": "string",  "id": "string",  "metadata": {    "property1": "string",    "property2": "string"  },  "name": "string",  "object": "string",  "purge_scheduled_at": "2019-08-24T14:15:22Z",  "slug": "string",  "status": "string",  "system": "holding",  "updated_at": "2019-08-24T14:15:22Z"}