Instances
List the instances of a project or a workspace. One of project_id or workspace_id is required, but for Pontive's staff, who list every instance. A token acting for a Pontive user through an actor (the Pontive MCP server) lists the instances the user's own roles reach, never a staff role's: those of the project or workspace named, else of every workspace the user belongs to.
project_id?stringFilter by project ID
workspace_id?stringFilter by workspace ID
environment?stringFilter by environment
"production""non_production"status?stringFilter by the instance's own status
"active""paused""deleted"page?integerPage number
limit?integerPage size (default 25, at most 100)
sort?stringSort order
OK
application/json- response
data?array<>List of instances
object?stringThe object type
pagination?Pagination information
curl -X GET 'https://api.pontive.com/v1/instances'{ "data": [ { "auth_server_domains": [ "string" ], "capabilities": { "billing": { "enabled": true }, "fga": { "enabled": true } }, "created_at": "2019-08-24T14:15:22Z", "deleted_at": "2019-08-24T14:15:22Z", "description": "string", "domain": "string", "effective_status": "active", "environment": "production", "id": "string", "metadata": { "property1": "string", "property2": "string" }, "name": "string", "object": "string", "paused_at": "2019-08-24T14:15:22Z", "project_id": "string", "purge_scheduled_at": "2019-08-24T14:15:22Z", "region": "us", "shard_id": "string", "slug": "string", "status": "active", "tenancy_mode": "b2b", "updated_at": "2019-08-24T14:15:22Z", "workspace_id": "string" } ], "object": "string", "pagination": { "limit": 0, "page": 0, "total": 0, "total_pages": 0 }}Create an instance in a project. name and slug are required for non_production and must be omitted for production, which is always Production/production and limited to one per project.
Create Instance Request
application/json- body
Create Instance Request
description?stringThe description of the instance (0-500 chars)
environment*stringThe environment of the instance. A project holds at most one production instance.
"production""non_production"metadata?The new metadata
name?stringThe name of the instance (1-100 chars). Required for non_production; must be omitted for production (instance_name_not_settable).
project_id*stringThe ID of the project to create the instance in
slug?stringThe slug of the instance (2-20 chars). Required for non_production; must be omitted for production (instance_name_not_settable).
Created
application/json- response
auth_server_domains?array<string>All active auth-server domains, canonical first
capabilities?The per-instance capability switches
created_at?stringThe time when the instance was created
date-timedeleted_at?stringThe time when the instance was deleted, if applicable
date-timedescription?stringThe description of the instance
domain?stringThe primary (canonical) auth domain
effective_status?stringThe effective status: the project's status overrides the instance's own while the project is not active
"active""paused""deleted"environment?stringThe environment of the instance, fixed at creation
"production""non_production"id?stringThe unique identifier of the instance
metadata?The new metadata
name?stringThe name of the instance. Always "Production" for the production instance.
object?stringThe object type
paused_at?stringThe time when the instance was paused, if applicable
date-timeproject_id?stringThe ID of the project the instance belongs to
purge_scheduled_at?stringWhen a deleted instance's restore window ends, deleted_at plus 30 days: it can be restored until then, and is purged after (route review D30). Null unless the instance's own status is is deleted. An instance of a deleted project goes with it, at the project's purge_scheduled_at.
date-timeregion?stringThe region, inherited from the project
"us""eu""au"shard_id?stringThe ID of the shard the instance is deployed on
slug?stringThe slug of the instance. Always "production" for the production instance. Immutable.
status?stringThe instance's own status
"active""paused""deleted"tenancy_mode?stringThe read-only tenancy mode, inherited from the project
"b2b""b2c"updated_at?stringThe time when the instance was last updated
date-timeworkspace_id?stringThe ID of the workspace that owns the project
curl -X POST 'https://api.pontive.com/v1/instances' \ -H 'Content-Type: application/json' \ -d '{ "environment": "production", "project_id": "string"}'{ "auth_server_domains": [ "string" ], "capabilities": { "billing": { "enabled": true }, "fga": { "enabled": true } }, "created_at": "2019-08-24T14:15:22Z", "deleted_at": "2019-08-24T14:15:22Z", "description": "string", "domain": "string", "effective_status": "active", "environment": "production", "id": "string", "metadata": { "property1": "string", "property2": "string" }, "name": "string", "object": "string", "paused_at": "2019-08-24T14:15:22Z", "project_id": "string", "purge_scheduled_at": "2019-08-24T14:15:22Z", "region": "us", "shard_id": "string", "slug": "string", "status": "active", "tenancy_mode": "b2b", "updated_at": "2019-08-24T14:15:22Z", "workspace_id": "string"}Get instance details by ID
instance_id*stringInstance ID
OK
application/json- response
auth_server_domains?array<string>All active auth-server domains, canonical first
capabilities?The per-instance capability switches
created_at?stringThe time when the instance was created
date-timedeleted_at?stringThe time when the instance was deleted, if applicable
date-timedescription?stringThe description of the instance
domain?stringThe primary (canonical) auth domain
effective_status?stringThe effective status: the project's status overrides the instance's own while the project is not active
"active""paused""deleted"environment?stringThe environment of the instance, fixed at creation
"production""non_production"id?stringThe unique identifier of the instance
metadata?The new metadata
name?stringThe name of the instance. Always "Production" for the production instance.
object?stringThe object type
paused_at?stringThe time when the instance was paused, if applicable
date-timeproject_id?stringThe ID of the project the instance belongs to
purge_scheduled_at?stringWhen a deleted instance's restore window ends, deleted_at plus 30 days: it can be restored until then, and is purged after (route review D30). Null unless the instance's own status is is deleted. An instance of a deleted project goes with it, at the project's purge_scheduled_at.
date-timeregion?stringThe region, inherited from the project
"us""eu""au"shard_id?stringThe ID of the shard the instance is deployed on
slug?stringThe slug of the instance. Always "production" for the production instance. Immutable.
status?stringThe instance's own status
"active""paused""deleted"tenancy_mode?stringThe read-only tenancy mode, inherited from the project
"b2b""b2c"updated_at?stringThe time when the instance was last updated
date-timeworkspace_id?stringThe ID of the workspace that owns the project
curl -X GET 'https://api.pontive.com/v1/instances/string'{ "auth_server_domains": [ "string" ], "capabilities": { "billing": { "enabled": true }, "fga": { "enabled": true } }, "created_at": "2019-08-24T14:15:22Z", "deleted_at": "2019-08-24T14:15:22Z", "description": "string", "domain": "string", "effective_status": "active", "environment": "production", "id": "string", "metadata": { "property1": "string", "property2": "string" }, "name": "string", "object": "string", "paused_at": "2019-08-24T14:15:22Z", "project_id": "string", "purge_scheduled_at": "2019-08-24T14:15:22Z", "region": "us", "shard_id": "string", "slug": "string", "status": "active", "tenancy_mode": "b2b", "updated_at": "2019-08-24T14:15:22Z", "workspace_id": "string"}Update an instance. name is writable on non_production instances only; renaming the production instance returns instance_name_not_settable.
instance_id*stringInstance ID
Update Instance Request
application/json- body
Update Instance Request
description?stringThe new description
metadata?The new metadata
name?stringThe new name. non_production only; renaming the production instance returns instance_name_not_settable.
OK
application/json- response
auth_server_domains?array<string>All active auth-server domains, canonical first
capabilities?The per-instance capability switches
created_at?stringThe time when the instance was created
date-timedeleted_at?stringThe time when the instance was deleted, if applicable
date-timedescription?stringThe description of the instance
domain?stringThe primary (canonical) auth domain
effective_status?stringThe effective status: the project's status overrides the instance's own while the project is not active
"active""paused""deleted"environment?stringThe environment of the instance, fixed at creation
"production""non_production"id?stringThe unique identifier of the instance
metadata?The new metadata
name?stringThe name of the instance. Always "Production" for the production instance.
object?stringThe object type
paused_at?stringThe time when the instance was paused, if applicable
date-timeproject_id?stringThe ID of the project the instance belongs to
purge_scheduled_at?stringWhen a deleted instance's restore window ends, deleted_at plus 30 days: it can be restored until then, and is purged after (route review D30). Null unless the instance's own status is is deleted. An instance of a deleted project goes with it, at the project's purge_scheduled_at.
date-timeregion?stringThe region, inherited from the project
"us""eu""au"shard_id?stringThe ID of the shard the instance is deployed on
slug?stringThe slug of the instance. Always "production" for the production instance. Immutable.
status?stringThe instance's own status
"active""paused""deleted"tenancy_mode?stringThe read-only tenancy mode, inherited from the project
"b2b""b2c"updated_at?stringThe time when the instance was last updated
date-timeworkspace_id?stringThe ID of the workspace that owns the project
curl -X PATCH 'https://api.pontive.com/v1/instances/string' \ -H 'Content-Type: application/json' \ -d '{}'{ "auth_server_domains": [ "string" ], "capabilities": { "billing": { "enabled": true }, "fga": { "enabled": true } }, "created_at": "2019-08-24T14:15:22Z", "deleted_at": "2019-08-24T14:15:22Z", "description": "string", "domain": "string", "effective_status": "active", "environment": "production", "id": "string", "metadata": { "property1": "string", "property2": "string" }, "name": "string", "object": "string", "paused_at": "2019-08-24T14:15:22Z", "project_id": "string", "purge_scheduled_at": "2019-08-24T14:15:22Z", "region": "us", "shard_id": "string", "slug": "string", "status": "active", "tenancy_mode": "b2b", "updated_at": "2019-08-24T14:15:22Z", "workspace_id": "string"}Soft-delete an instance, recoverable for 30 days: it carries purge_scheduled_at, deleted_at plus 30 days, and is purged after it. Requires {"confirm_delete": true}; without it the API returns 400 confirmation_required. A project keeps at least one active instance: deleting its last one returns 409 last_active_instance. A token acting for a Pontive user (the Pontive MCP server) deletes a non_production instance only; the production one is refused with 403 actor_refused, to be deleted in the dashboard.
instance_id*stringInstance ID
Delete confirmation
application/json- body
Delete confirmation
confirm_delete?booleanMust be true; without it the API returns 400 confirmation_required.
Instance deleted successfully
curl -X DELETE 'https://api.pontive.com/v1/instances/string' \ -H 'Content-Type: application/json' \ -d '{}'Pause an instance. A project keeps at least one active instance: pausing its last one returns 409 last_active_instance.
instance_id*stringInstance ID
OK
application/json- response
auth_server_domains?array<string>All active auth-server domains, canonical first
capabilities?The per-instance capability switches
created_at?stringThe time when the instance was created
date-timedeleted_at?stringThe time when the instance was deleted, if applicable
date-timedescription?stringThe description of the instance
domain?stringThe primary (canonical) auth domain
effective_status?stringThe effective status: the project's status overrides the instance's own while the project is not active
"active""paused""deleted"environment?stringThe environment of the instance, fixed at creation
"production""non_production"id?stringThe unique identifier of the instance
metadata?The new metadata
name?stringThe name of the instance. Always "Production" for the production instance.
object?stringThe object type
paused_at?stringThe time when the instance was paused, if applicable
date-timeproject_id?stringThe ID of the project the instance belongs to
purge_scheduled_at?stringWhen a deleted instance's restore window ends, deleted_at plus 30 days: it can be restored until then, and is purged after (route review D30). Null unless the instance's own status is is deleted. An instance of a deleted project goes with it, at the project's purge_scheduled_at.
date-timeregion?stringThe region, inherited from the project
"us""eu""au"shard_id?stringThe ID of the shard the instance is deployed on
slug?stringThe slug of the instance. Always "production" for the production instance. Immutable.
status?stringThe instance's own status
"active""paused""deleted"tenancy_mode?stringThe read-only tenancy mode, inherited from the project
"b2b""b2c"updated_at?stringThe time when the instance was last updated
date-timeworkspace_id?stringThe ID of the workspace that owns the project
curl -X POST 'https://api.pontive.com/v1/instances/string/pause'{ "auth_server_domains": [ "string" ], "capabilities": { "billing": { "enabled": true }, "fga": { "enabled": true } }, "created_at": "2019-08-24T14:15:22Z", "deleted_at": "2019-08-24T14:15:22Z", "description": "string", "domain": "string", "effective_status": "active", "environment": "production", "id": "string", "metadata": { "property1": "string", "property2": "string" }, "name": "string", "object": "string", "paused_at": "2019-08-24T14:15:22Z", "project_id": "string", "purge_scheduled_at": "2019-08-24T14:15:22Z", "region": "us", "shard_id": "string", "slug": "string", "status": "active", "tenancy_mode": "b2b", "updated_at": "2019-08-24T14:15:22Z", "workspace_id": "string"}Permanently delete a deleted instance and all its data now, rather than at its purge_scheduled_at, and retire its host label. Cannot be undone.
instance_id*stringInstance ID
Instance purged successfully
curl -X POST 'https://api.pontive.com/v1/instances/string/purge'Restore a soft-deleted instance within 30 days of its deletion, until its purge_scheduled_at (409 restore_window_closed after, when it is purged).
instance_id*stringInstance ID
OK
application/json- response
auth_server_domains?array<string>All active auth-server domains, canonical first
capabilities?The per-instance capability switches
created_at?stringThe time when the instance was created
date-timedeleted_at?stringThe time when the instance was deleted, if applicable
date-timedescription?stringThe description of the instance
domain?stringThe primary (canonical) auth domain
effective_status?stringThe effective status: the project's status overrides the instance's own while the project is not active
"active""paused""deleted"environment?stringThe environment of the instance, fixed at creation
"production""non_production"id?stringThe unique identifier of the instance
metadata?The new metadata
name?stringThe name of the instance. Always "Production" for the production instance.
object?stringThe object type
paused_at?stringThe time when the instance was paused, if applicable
date-timeproject_id?stringThe ID of the project the instance belongs to
purge_scheduled_at?stringWhen a deleted instance's restore window ends, deleted_at plus 30 days: it can be restored until then, and is purged after (route review D30). Null unless the instance's own status is is deleted. An instance of a deleted project goes with it, at the project's purge_scheduled_at.
date-timeregion?stringThe region, inherited from the project
"us""eu""au"shard_id?stringThe ID of the shard the instance is deployed on
slug?stringThe slug of the instance. Always "production" for the production instance. Immutable.
status?stringThe instance's own status
"active""paused""deleted"tenancy_mode?stringThe read-only tenancy mode, inherited from the project
"b2b""b2c"updated_at?stringThe time when the instance was last updated
date-timeworkspace_id?stringThe ID of the workspace that owns the project
curl -X POST 'https://api.pontive.com/v1/instances/string/restore'{ "auth_server_domains": [ "string" ], "capabilities": { "billing": { "enabled": true }, "fga": { "enabled": true } }, "created_at": "2019-08-24T14:15:22Z", "deleted_at": "2019-08-24T14:15:22Z", "description": "string", "domain": "string", "effective_status": "active", "environment": "production", "id": "string", "metadata": { "property1": "string", "property2": "string" }, "name": "string", "object": "string", "paused_at": "2019-08-24T14:15:22Z", "project_id": "string", "purge_scheduled_at": "2019-08-24T14:15:22Z", "region": "us", "shard_id": "string", "slug": "string", "status": "active", "tenancy_mode": "b2b", "updated_at": "2019-08-24T14:15:22Z", "workspace_id": "string"}Resume a paused instance
instance_id*stringInstance ID
OK
application/json- response
auth_server_domains?array<string>All active auth-server domains, canonical first
capabilities?The per-instance capability switches
created_at?stringThe time when the instance was created
date-timedeleted_at?stringThe time when the instance was deleted, if applicable
date-timedescription?stringThe description of the instance
domain?stringThe primary (canonical) auth domain
effective_status?stringThe effective status: the project's status overrides the instance's own while the project is not active
"active""paused""deleted"environment?stringThe environment of the instance, fixed at creation
"production""non_production"id?stringThe unique identifier of the instance
metadata?The new metadata
name?stringThe name of the instance. Always "Production" for the production instance.
object?stringThe object type
paused_at?stringThe time when the instance was paused, if applicable
date-timeproject_id?stringThe ID of the project the instance belongs to
purge_scheduled_at?stringWhen a deleted instance's restore window ends, deleted_at plus 30 days: it can be restored until then, and is purged after (route review D30). Null unless the instance's own status is is deleted. An instance of a deleted project goes with it, at the project's purge_scheduled_at.
date-timeregion?stringThe region, inherited from the project
"us""eu""au"shard_id?stringThe ID of the shard the instance is deployed on
slug?stringThe slug of the instance. Always "production" for the production instance. Immutable.
status?stringThe instance's own status
"active""paused""deleted"tenancy_mode?stringThe read-only tenancy mode, inherited from the project
"b2b""b2c"updated_at?stringThe time when the instance was last updated
date-timeworkspace_id?stringThe ID of the workspace that owns the project
curl -X POST 'https://api.pontive.com/v1/instances/string/resume'{ "auth_server_domains": [ "string" ], "capabilities": { "billing": { "enabled": true }, "fga": { "enabled": true } }, "created_at": "2019-08-24T14:15:22Z", "deleted_at": "2019-08-24T14:15:22Z", "description": "string", "domain": "string", "effective_status": "active", "environment": "production", "id": "string", "metadata": { "property1": "string", "property2": "string" }, "name": "string", "object": "string", "paused_at": "2019-08-24T14:15:22Z", "project_id": "string", "purge_scheduled_at": "2019-08-24T14:15:22Z", "region": "us", "shard_id": "string", "slug": "string", "status": "active", "tenancy_mode": "b2b", "updated_at": "2019-08-24T14:15:22Z", "workspace_id": "string"}