Skip to Content
Docs
API referencePlatform API

Instances

List instances

GET
/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.

Query Parameters

project_id?string

Filter by project ID

workspace_id?string

Filter by workspace ID

environment?string

Filter by environment

Value in"production""non_production"
status?string

Filter by the instance's own status

Value in"active""paused""deleted"
page?integer

Page number

limit?integer

Page size (default 25, at most 100)

sort?string

Sort order

Response Body

OK

application/json
  1. response
data?array<>

List of instances

object?string

The object type

pagination?

Pagination information

Example Request
curl -X GET 'https://api.pontive.com/v1/instances'
Example Response
{  "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 instance

POST
/instances

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.

Request Body

Create Instance Request

application/json
  1. body

Create Instance Request

description?string

The description of the instance (0-500 chars)

environment*string

The environment of the instance. A project holds at most one production instance.

Value in"production""non_production"
metadata?

The new metadata

name?string

The name of the instance (1-100 chars). Required for non_production; must be omitted for production (instance_name_not_settable).

project_id*string

The ID of the project to create the instance in

slug?string

The slug of the instance (2-20 chars). Required for non_production; must be omitted for production (instance_name_not_settable).

Response Body

Created

application/json
  1. response
auth_server_domains?array<string>

All active auth-server domains, canonical first

capabilities?

The per-instance capability switches

created_at?string

The time when the instance was created

Formatdate-time
deleted_at?string

The time when the instance was deleted, if applicable

Formatdate-time
description?string

The description of the instance

domain?string

The primary (canonical) auth domain

effective_status?string

The effective status: the project's status overrides the instance's own while the project is not active

Value in"active""paused""deleted"
environment?string

The environment of the instance, fixed at creation

Value in"production""non_production"
id?string

The unique identifier of the instance

metadata?

The new metadata

name?string

The name of the instance. Always "Production" for the production instance.

object?string

The object type

paused_at?string

The time when the instance was paused, if applicable

Formatdate-time
project_id?string

The ID of the project the instance belongs to

purge_scheduled_at?string

When 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.

Formatdate-time
region?string

The region, inherited from the project

Value in"us""eu""au"
shard_id?string

The ID of the shard the instance is deployed on

slug?string

The slug of the instance. Always "production" for the production instance. Immutable.

status?string

The instance's own status

Value in"active""paused""deleted"
tenancy_mode?string

The read-only tenancy mode, inherited from the project

Value in"b2b""b2c"
updated_at?string

The time when the instance was last updated

Formatdate-time
workspace_id?string

The ID of the workspace that owns the project

Example Request
curl -X POST 'https://api.pontive.com/v1/instances' \  -H 'Content-Type: application/json' \  -d '{  "environment": "production",  "project_id": "string"}'
Example Response
{  "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

GET
/instances/{instance_id}

Get instance details by ID

Path Parameters

instance_id*string

Instance ID

Response Body

OK

application/json
  1. response
auth_server_domains?array<string>

All active auth-server domains, canonical first

capabilities?

The per-instance capability switches

created_at?string

The time when the instance was created

Formatdate-time
deleted_at?string

The time when the instance was deleted, if applicable

Formatdate-time
description?string

The description of the instance

domain?string

The primary (canonical) auth domain

effective_status?string

The effective status: the project's status overrides the instance's own while the project is not active

Value in"active""paused""deleted"
environment?string

The environment of the instance, fixed at creation

Value in"production""non_production"
id?string

The unique identifier of the instance

metadata?

The new metadata

name?string

The name of the instance. Always "Production" for the production instance.

object?string

The object type

paused_at?string

The time when the instance was paused, if applicable

Formatdate-time
project_id?string

The ID of the project the instance belongs to

purge_scheduled_at?string

When 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.

Formatdate-time
region?string

The region, inherited from the project

Value in"us""eu""au"
shard_id?string

The ID of the shard the instance is deployed on

slug?string

The slug of the instance. Always "production" for the production instance. Immutable.

status?string

The instance's own status

Value in"active""paused""deleted"
tenancy_mode?string

The read-only tenancy mode, inherited from the project

Value in"b2b""b2c"
updated_at?string

The time when the instance was last updated

Formatdate-time
workspace_id?string

The ID of the workspace that owns the project

Example Request
curl -X GET 'https://api.pontive.com/v1/instances/string'
Example Response
{  "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 instance

PATCH
/instances/{instance_id}

Update an instance. name is writable on non_production instances only; renaming the production instance returns instance_name_not_settable.

Path Parameters

instance_id*string

Instance ID

Request Body

Update Instance Request

application/json
  1. body

Update Instance Request

description?string

The new description

metadata?

The new metadata

name?string

The new name. non_production only; renaming the production instance returns instance_name_not_settable.

Response Body

OK

application/json
  1. response
auth_server_domains?array<string>

All active auth-server domains, canonical first

capabilities?

The per-instance capability switches

created_at?string

The time when the instance was created

Formatdate-time
deleted_at?string

The time when the instance was deleted, if applicable

Formatdate-time
description?string

The description of the instance

domain?string

The primary (canonical) auth domain

effective_status?string

The effective status: the project's status overrides the instance's own while the project is not active

Value in"active""paused""deleted"
environment?string

The environment of the instance, fixed at creation

Value in"production""non_production"
id?string

The unique identifier of the instance

metadata?

The new metadata

name?string

The name of the instance. Always "Production" for the production instance.

object?string

The object type

paused_at?string

The time when the instance was paused, if applicable

Formatdate-time
project_id?string

The ID of the project the instance belongs to

purge_scheduled_at?string

When 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.

Formatdate-time
region?string

The region, inherited from the project

Value in"us""eu""au"
shard_id?string

The ID of the shard the instance is deployed on

slug?string

The slug of the instance. Always "production" for the production instance. Immutable.

status?string

The instance's own status

Value in"active""paused""deleted"
tenancy_mode?string

The read-only tenancy mode, inherited from the project

Value in"b2b""b2c"
updated_at?string

The time when the instance was last updated

Formatdate-time
workspace_id?string

The ID of the workspace that owns the project

Example Request
curl -X PATCH 'https://api.pontive.com/v1/instances/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "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"}

Delete instance

DELETE
/instances/{instance_id}

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.

Path Parameters

instance_id*string

Instance ID

Request Body

Delete confirmation

application/json
  1. body

Delete confirmation

confirm_delete?boolean

Must be true; without it the API returns 400 confirmation_required.

Response Body

Instance deleted successfully

Example Request
curl -X DELETE 'https://api.pontive.com/v1/instances/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
Empty

Pause instance

POST
/instances/{instance_id}/pause

Pause an instance. A project keeps at least one active instance: pausing its last one returns 409 last_active_instance.

Path Parameters

instance_id*string

Instance ID

Response Body

OK

application/json
  1. response
auth_server_domains?array<string>

All active auth-server domains, canonical first

capabilities?

The per-instance capability switches

created_at?string

The time when the instance was created

Formatdate-time
deleted_at?string

The time when the instance was deleted, if applicable

Formatdate-time
description?string

The description of the instance

domain?string

The primary (canonical) auth domain

effective_status?string

The effective status: the project's status overrides the instance's own while the project is not active

Value in"active""paused""deleted"
environment?string

The environment of the instance, fixed at creation

Value in"production""non_production"
id?string

The unique identifier of the instance

metadata?

The new metadata

name?string

The name of the instance. Always "Production" for the production instance.

object?string

The object type

paused_at?string

The time when the instance was paused, if applicable

Formatdate-time
project_id?string

The ID of the project the instance belongs to

purge_scheduled_at?string

When 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.

Formatdate-time
region?string

The region, inherited from the project

Value in"us""eu""au"
shard_id?string

The ID of the shard the instance is deployed on

slug?string

The slug of the instance. Always "production" for the production instance. Immutable.

status?string

The instance's own status

Value in"active""paused""deleted"
tenancy_mode?string

The read-only tenancy mode, inherited from the project

Value in"b2b""b2c"
updated_at?string

The time when the instance was last updated

Formatdate-time
workspace_id?string

The ID of the workspace that owns the project

Example Request
curl -X POST 'https://api.pontive.com/v1/instances/string/pause'
Example Response
{  "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"}

Purge instance

POST
/instances/{instance_id}/purge

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.

Path Parameters

instance_id*string

Instance ID

Response Body

Instance purged successfully

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

Restore instance

POST
/instances/{instance_id}/restore

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).

Path Parameters

instance_id*string

Instance ID

Response Body

OK

application/json
  1. response
auth_server_domains?array<string>

All active auth-server domains, canonical first

capabilities?

The per-instance capability switches

created_at?string

The time when the instance was created

Formatdate-time
deleted_at?string

The time when the instance was deleted, if applicable

Formatdate-time
description?string

The description of the instance

domain?string

The primary (canonical) auth domain

effective_status?string

The effective status: the project's status overrides the instance's own while the project is not active

Value in"active""paused""deleted"
environment?string

The environment of the instance, fixed at creation

Value in"production""non_production"
id?string

The unique identifier of the instance

metadata?

The new metadata

name?string

The name of the instance. Always "Production" for the production instance.

object?string

The object type

paused_at?string

The time when the instance was paused, if applicable

Formatdate-time
project_id?string

The ID of the project the instance belongs to

purge_scheduled_at?string

When 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.

Formatdate-time
region?string

The region, inherited from the project

Value in"us""eu""au"
shard_id?string

The ID of the shard the instance is deployed on

slug?string

The slug of the instance. Always "production" for the production instance. Immutable.

status?string

The instance's own status

Value in"active""paused""deleted"
tenancy_mode?string

The read-only tenancy mode, inherited from the project

Value in"b2b""b2c"
updated_at?string

The time when the instance was last updated

Formatdate-time
workspace_id?string

The ID of the workspace that owns the project

Example Request
curl -X POST 'https://api.pontive.com/v1/instances/string/restore'
Example Response
{  "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 instance

POST
/instances/{instance_id}/resume

Resume a paused instance

Path Parameters

instance_id*string

Instance ID

Response Body

OK

application/json
  1. response
auth_server_domains?array<string>

All active auth-server domains, canonical first

capabilities?

The per-instance capability switches

created_at?string

The time when the instance was created

Formatdate-time
deleted_at?string

The time when the instance was deleted, if applicable

Formatdate-time
description?string

The description of the instance

domain?string

The primary (canonical) auth domain

effective_status?string

The effective status: the project's status overrides the instance's own while the project is not active

Value in"active""paused""deleted"
environment?string

The environment of the instance, fixed at creation

Value in"production""non_production"
id?string

The unique identifier of the instance

metadata?

The new metadata

name?string

The name of the instance. Always "Production" for the production instance.

object?string

The object type

paused_at?string

The time when the instance was paused, if applicable

Formatdate-time
project_id?string

The ID of the project the instance belongs to

purge_scheduled_at?string

When 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.

Formatdate-time
region?string

The region, inherited from the project

Value in"us""eu""au"
shard_id?string

The ID of the shard the instance is deployed on

slug?string

The slug of the instance. Always "production" for the production instance. Immutable.

status?string

The instance's own status

Value in"active""paused""deleted"
tenancy_mode?string

The read-only tenancy mode, inherited from the project

Value in"b2b""b2c"
updated_at?string

The time when the instance was last updated

Formatdate-time
workspace_id?string

The ID of the workspace that owns the project

Example Request
curl -X POST 'https://api.pontive.com/v1/instances/string/resume'
Example Response
{  "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"}