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.
status?stringFilter by status
"active""pastdue""suspended""cancelled""deleted"plan?stringFilter by plan
"free""pro""enterprise"page?integerPage number
limit?integerPage size (default 25, at most 100)
sort?stringSort order
search?stringSearch term (slug,description,name depending on implementation)
OK
application/json- response
data?array<>List of workspaces
object?stringThe object type
pagination?Pagination information
curl -X GET 'https://api.pontive.com/v1/workspaces'{ "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 a new workspace
Create Workspace Request
application/json- body
Create Workspace Request
description?stringThe description of the workspace
name?stringThe name of the workspace required: true minLength: 1 maxLength: 255
Created
application/json- 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?stringWhen the workspace was cancelled (pontive-spec 01, Cancellation flow). Set while it is cancelled.
date-timecreated_at?stringThe time when the workspace was created
date-timedeleted_at?stringThe time when the workspace was deleted
date-timedeletion_scheduled_at?stringWhen 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.
date-timedescription?stringThe description of the workspace
id?stringThe unique identifier of the workspace
metadata?The new metadata for the workspace
name?stringThe name of the workspace
object?stringThe object type
purge_scheduled_at?stringWhen 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.
date-timeslug?stringThe slug of the workspace
status?stringThe 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.
"holding"updated_at?stringThe time when the workspace was last updated
date-timecurl -X POST 'https://api.pontive.com/v1/workspaces' \ -H 'Content-Type: application/json' \ -d '{}'{ "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"}One workspace. A deleted one answers 404 to its members and is returned, with status deleted and deleted_at, to Pontive's staff.
workspace_id*stringWorkspace ID
OK
application/json- 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?stringWhen the workspace was cancelled (pontive-spec 01, Cancellation flow). Set while it is cancelled.
date-timecreated_at?stringThe time when the workspace was created
date-timedeleted_at?stringThe time when the workspace was deleted
date-timedeletion_scheduled_at?stringWhen 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.
date-timedescription?stringThe description of the workspace
id?stringThe unique identifier of the workspace
metadata?The new metadata for the workspace
name?stringThe name of the workspace
object?stringThe object type
purge_scheduled_at?stringWhen 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.
date-timeslug?stringThe slug of the workspace
status?stringThe 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.
"holding"updated_at?stringThe time when the workspace was last updated
date-timecurl -X GET 'https://api.pontive.com/v1/workspaces/string'{ "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 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.
workspace_id*stringWorkspace ID
Update Workspace Request
application/json- 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?stringThe new description for the workspace
metadata?The new metadata for the workspace
name?stringThe new name for the workspace minLength: 1 maxLength: 255
OK
application/json- 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?stringWhen the workspace was cancelled (pontive-spec 01, Cancellation flow). Set while it is cancelled.
date-timecreated_at?stringThe time when the workspace was created
date-timedeleted_at?stringThe time when the workspace was deleted
date-timedeletion_scheduled_at?stringWhen 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.
date-timedescription?stringThe description of the workspace
id?stringThe unique identifier of the workspace
metadata?The new metadata for the workspace
name?stringThe name of the workspace
object?stringThe object type
purge_scheduled_at?stringWhen 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.
date-timeslug?stringThe slug of the workspace
status?stringThe 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.
"holding"updated_at?stringThe time when the workspace was last updated
date-timecurl -X PATCH 'https://api.pontive.com/v1/workspaces/string' \ -H 'Content-Type: application/json' \ -d '{}'{ "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"}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).
workspace_id*stringWorkspace ID
Workspace deleted successfully
curl -X DELETE 'https://api.pontive.com/v1/workspaces/string'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).
workspace_id*stringWorkspace ID
Confirmation, and why
application/json- body
Confirmation, and why
confirm?booleanMust be true: closing the account is confirmed (400 confirmation_required otherwise).
feedback?stringFree-form feedback, for Pontive's analytics. maxLength: 2000
reason?github_com_revotech-group_platform-management-api_core_workspace_types.CancelReasonWhy the account is closed, for Pontive's analytics.
"no_longer_needed""too_expensive""missing_features""switching_providers""other""no_longer_needed""too_expensive""missing_features""switching_providers""other"OK
application/json- 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?stringWhen the workspace was cancelled (pontive-spec 01, Cancellation flow). Set while it is cancelled.
date-timecreated_at?stringThe time when the workspace was created
date-timedeleted_at?stringThe time when the workspace was deleted
date-timedeletion_scheduled_at?stringWhen 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.
date-timedescription?stringThe description of the workspace
id?stringThe unique identifier of the workspace
metadata?The new metadata for the workspace
name?stringThe name of the workspace
object?stringThe object type
purge_scheduled_at?stringWhen 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.
date-timeslug?stringThe slug of the workspace
status?stringThe 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.
"holding"updated_at?stringThe time when the workspace was last updated
date-timecurl -X POST 'https://api.pontive.com/v1/workspaces/string/cancel' \ -H 'Content-Type: application/json' \ -d '{}'{ "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 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.
workspace_id*stringWorkspace ID
Workspace purged successfully
curl -X POST 'https://api.pontive.com/v1/workspaces/string/purge'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.
workspace_id*stringWorkspace ID
OK
application/json- 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?stringWhen the workspace was cancelled (pontive-spec 01, Cancellation flow). Set while it is cancelled.
date-timecreated_at?stringThe time when the workspace was created
date-timedeleted_at?stringThe time when the workspace was deleted
date-timedeletion_scheduled_at?stringWhen 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.
date-timedescription?stringThe description of the workspace
id?stringThe unique identifier of the workspace
metadata?The new metadata for the workspace
name?stringThe name of the workspace
object?stringThe object type
purge_scheduled_at?stringWhen 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.
date-timeslug?stringThe slug of the workspace
status?stringThe 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.
"holding"updated_at?stringThe time when the workspace was last updated
date-timecurl -X POST 'https://api.pontive.com/v1/workspaces/string/restore'{ "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'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.
workspace_id*stringWorkspace ID
OK
application/json- 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?stringWhen the workspace was cancelled (pontive-spec 01, Cancellation flow). Set while it is cancelled.
date-timecreated_at?stringThe time when the workspace was created
date-timedeleted_at?stringThe time when the workspace was deleted
date-timedeletion_scheduled_at?stringWhen 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.
date-timedescription?stringThe description of the workspace
id?stringThe unique identifier of the workspace
metadata?The new metadata for the workspace
name?stringThe name of the workspace
object?stringThe object type
purge_scheduled_at?stringWhen 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.
date-timeslug?stringThe slug of the workspace
status?stringThe 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.
"holding"updated_at?stringThe time when the workspace was last updated
date-timecurl -X POST 'https://api.pontive.com/v1/workspaces/string/resume'{ "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 a past-due workspace: its console takes no writes but billing's until it is resumed or paid. Needs workspace:delete.
workspace_id*stringWorkspace ID
OK
application/json- 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?stringWhen the workspace was cancelled (pontive-spec 01, Cancellation flow). Set while it is cancelled.
date-timecreated_at?stringThe time when the workspace was created
date-timedeleted_at?stringThe time when the workspace was deleted
date-timedeletion_scheduled_at?stringWhen 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.
date-timedescription?stringThe description of the workspace
id?stringThe unique identifier of the workspace
metadata?The new metadata for the workspace
name?stringThe name of the workspace
object?stringThe object type
purge_scheduled_at?stringWhen 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.
date-timeslug?stringThe slug of the workspace
status?stringThe 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.
"holding"updated_at?stringThe time when the workspace was last updated
date-timecurl -X POST 'https://api.pontive.com/v1/workspaces/string/suspend'{ "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"}