Skip to Content
Docs
API referencePlatform API

Projects

List projects

GET
/projects

Get a list of projects for a workspace

Query Parameters

workspace_id?string

Workspace ID

status?string

Filter by status

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

Filter by region

Value in"us""eu""au"
page?integer

Page number

limit?integer

Page size (default 25, at most 100)

sort?string

Sort order

search?string

Search term (name depending on implementation)

Response Body

OK

application/json
  1. response
data?array<>

List of projects

object?string

The object type

pagination?

Pagination information

Example Request
curl -X GET 'https://api.pontive.com/v1/projects'
Example Response
{  "data": [    {      "charges": {        "included": true      },      "compliance_tags": {        "GDPR": true,        "HIPAA": true      },      "created_at": "2019-08-24T14:15:22Z",      "deleted_at": "2019-08-24T14:15:22Z",      "description": "string",      "id": "string",      "instances": [        {          "environment": "production",          "id": "string",          "name": "string",          "slug": "string",          "status": "active"        }      ],      "metadata": {        "property1": "string",        "property2": "string"      },      "name": "string",      "object": "string",      "paused_at": "2019-08-24T14:15:22Z",      "purge_scheduled_at": "2019-08-24T14:15:22Z",      "region": "us",      "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 project

POST
/projects

Create a new project in a workspace. The project is created with one non_production instance (Development, slug dev), returned in instances.

Request Body

Create Project Request

application/json
  1. body

Create Project Request

description?string

The description of the project (0-500 chars)

metadata?

The new metadata for the project

name*string

The name of the project (1-100 chars)

region?string

The region where the project is deployed

Value in"us""eu""au"
tenancy_mode*string

The tenancy mode of the project: b2b (organizations) or b2c. Required and immutable once the project is created.

Value in"b2b""b2c"
workspace_id*string

The ID of the workspace the project is created in

Response Body

Created

application/json
  1. response
charges?

What the project started billing per month, on the project a create returns and nowhere else: nothing on Free or in one of the plan's included slots; else the additional-project fee and, on a b2b project, the uplift (pontive-spec 10). Absent where the installation bills nothing.

compliance_tags?

Compliance tags of the project

created_at?string

The time when the project was created

Formatdate-time
deleted_at?string

The time when the project was deleted, if applicable

Formatdate-time
description?string

The description of the project

id?string

The unique identifier of the project

instances?array<>

Read-only summary of the project's instances, oldest first

metadata?

The new metadata for the project

name?string

The name of the project

object?string

The object type

paused_at?string

The time when the project was paused, if applicable

Formatdate-time
purge_scheduled_at?string

When a deleted project'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 project is deleted.

Formatdate-time
region?string

The region where the project and all its instances are deployed

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

The slug of the project. Client-supplied, permanent, globally unique and never reused.

status?string

The current status of the project

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

The project's tenancy mode, chosen at creation and immutable. Every instance inherits it.

Value in"b2b""b2c"
updated_at?string

The time when the project was last updated

Formatdate-time
workspace_id?string

The ID of the workspace that owns this project

Example Request
curl -X POST 'https://api.pontive.com/v1/projects' \  -H 'Content-Type: application/json' \  -d '{  "name": "string",  "tenancy_mode": "b2b",  "workspace_id": "string"}'
Example Response
{  "charges": {    "included": true  },  "compliance_tags": {    "GDPR": true,    "HIPAA": true  },  "created_at": "2019-08-24T14:15:22Z",  "deleted_at": "2019-08-24T14:15:22Z",  "description": "string",  "id": "string",  "instances": [    {      "environment": "production",      "id": "string",      "name": "string",      "slug": "string",      "status": "active"    }  ],  "metadata": {    "property1": "string",    "property2": "string"  },  "name": "string",  "object": "string",  "paused_at": "2019-08-24T14:15:22Z",  "purge_scheduled_at": "2019-08-24T14:15:22Z",  "region": "us",  "slug": "string",  "status": "active",  "tenancy_mode": "b2b",  "updated_at": "2019-08-24T14:15:22Z",  "workspace_id": "string"}

Get project

GET
/projects/{project_id}

Get project details by ID or slug

Path Parameters

project_id*string

Project ID

Response Body

OK

application/json
  1. response
charges?

What the project started billing per month, on the project a create returns and nowhere else: nothing on Free or in one of the plan's included slots; else the additional-project fee and, on a b2b project, the uplift (pontive-spec 10). Absent where the installation bills nothing.

compliance_tags?

Compliance tags of the project

created_at?string

The time when the project was created

Formatdate-time
deleted_at?string

The time when the project was deleted, if applicable

Formatdate-time
description?string

The description of the project

id?string

The unique identifier of the project

instances?array<>

Read-only summary of the project's instances, oldest first

metadata?

The new metadata for the project

name?string

The name of the project

object?string

The object type

paused_at?string

The time when the project was paused, if applicable

Formatdate-time
purge_scheduled_at?string

When a deleted project'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 project is deleted.

Formatdate-time
region?string

The region where the project and all its instances are deployed

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

The slug of the project. Client-supplied, permanent, globally unique and never reused.

status?string

The current status of the project

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

The project's tenancy mode, chosen at creation and immutable. Every instance inherits it.

Value in"b2b""b2c"
updated_at?string

The time when the project was last updated

Formatdate-time
workspace_id?string

The ID of the workspace that owns this project

Example Request
curl -X GET 'https://api.pontive.com/v1/projects/string'
Example Response
{  "charges": {    "included": true  },  "compliance_tags": {    "GDPR": true,    "HIPAA": true  },  "created_at": "2019-08-24T14:15:22Z",  "deleted_at": "2019-08-24T14:15:22Z",  "description": "string",  "id": "string",  "instances": [    {      "environment": "production",      "id": "string",      "name": "string",      "slug": "string",      "status": "active"    }  ],  "metadata": {    "property1": "string",    "property2": "string"  },  "name": "string",  "object": "string",  "paused_at": "2019-08-24T14:15:22Z",  "purge_scheduled_at": "2019-08-24T14:15:22Z",  "region": "us",  "slug": "string",  "status": "active",  "tenancy_mode": "b2b",  "updated_at": "2019-08-24T14:15:22Z",  "workspace_id": "string"}

Update project

PATCH
/projects/{project_id}

Update an existing project

Path Parameters

project_id*string

Project ID

Request Body

Update Project Request

application/json
  1. body

Update Project Request

description?string

The new description for the project

metadata?

The new metadata for the project

name?string

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

Response Body

OK

application/json
  1. response
charges?

What the project started billing per month, on the project a create returns and nowhere else: nothing on Free or in one of the plan's included slots; else the additional-project fee and, on a b2b project, the uplift (pontive-spec 10). Absent where the installation bills nothing.

compliance_tags?

Compliance tags of the project

created_at?string

The time when the project was created

Formatdate-time
deleted_at?string

The time when the project was deleted, if applicable

Formatdate-time
description?string

The description of the project

id?string

The unique identifier of the project

instances?array<>

Read-only summary of the project's instances, oldest first

metadata?

The new metadata for the project

name?string

The name of the project

object?string

The object type

paused_at?string

The time when the project was paused, if applicable

Formatdate-time
purge_scheduled_at?string

When a deleted project'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 project is deleted.

Formatdate-time
region?string

The region where the project and all its instances are deployed

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

The slug of the project. Client-supplied, permanent, globally unique and never reused.

status?string

The current status of the project

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

The project's tenancy mode, chosen at creation and immutable. Every instance inherits it.

Value in"b2b""b2c"
updated_at?string

The time when the project was last updated

Formatdate-time
workspace_id?string

The ID of the workspace that owns this project

Example Request
curl -X PATCH 'https://api.pontive.com/v1/projects/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "charges": {    "included": true  },  "compliance_tags": {    "GDPR": true,    "HIPAA": true  },  "created_at": "2019-08-24T14:15:22Z",  "deleted_at": "2019-08-24T14:15:22Z",  "description": "string",  "id": "string",  "instances": [    {      "environment": "production",      "id": "string",      "name": "string",      "slug": "string",      "status": "active"    }  ],  "metadata": {    "property1": "string",    "property2": "string"  },  "name": "string",  "object": "string",  "paused_at": "2019-08-24T14:15:22Z",  "purge_scheduled_at": "2019-08-24T14:15:22Z",  "region": "us",  "slug": "string",  "status": "active",  "tenancy_mode": "b2b",  "updated_at": "2019-08-24T14:15:22Z",  "workspace_id": "string"}

Delete project

DELETE
/projects/{project_id}

Soft-delete a project and every instance in it, recoverable for 30 days: it carries purge_scheduled_at, deleted_at plus 30 days, and is purged with its instances after it. Requires {"confirm_delete": true}; without it the API returns 400 confirmation_required.

Path Parameters

project_id*string

Project 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. Deleting a project soft-deletes every instance in it.

Response Body

Project deleted successfully

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

Pause project

POST
/projects/{project_id}/pause

Pause a project

Path Parameters

project_id*string

Project ID

Response Body

OK

application/json
  1. response
charges?

What the project started billing per month, on the project a create returns and nowhere else: nothing on Free or in one of the plan's included slots; else the additional-project fee and, on a b2b project, the uplift (pontive-spec 10). Absent where the installation bills nothing.

compliance_tags?

Compliance tags of the project

created_at?string

The time when the project was created

Formatdate-time
deleted_at?string

The time when the project was deleted, if applicable

Formatdate-time
description?string

The description of the project

id?string

The unique identifier of the project

instances?array<>

Read-only summary of the project's instances, oldest first

metadata?

The new metadata for the project

name?string

The name of the project

object?string

The object type

paused_at?string

The time when the project was paused, if applicable

Formatdate-time
purge_scheduled_at?string

When a deleted project'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 project is deleted.

Formatdate-time
region?string

The region where the project and all its instances are deployed

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

The slug of the project. Client-supplied, permanent, globally unique and never reused.

status?string

The current status of the project

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

The project's tenancy mode, chosen at creation and immutable. Every instance inherits it.

Value in"b2b""b2c"
updated_at?string

The time when the project was last updated

Formatdate-time
workspace_id?string

The ID of the workspace that owns this project

Example Request
curl -X POST 'https://api.pontive.com/v1/projects/string/pause'
Example Response
{  "charges": {    "included": true  },  "compliance_tags": {    "GDPR": true,    "HIPAA": true  },  "created_at": "2019-08-24T14:15:22Z",  "deleted_at": "2019-08-24T14:15:22Z",  "description": "string",  "id": "string",  "instances": [    {      "environment": "production",      "id": "string",      "name": "string",      "slug": "string",      "status": "active"    }  ],  "metadata": {    "property1": "string",    "property2": "string"  },  "name": "string",  "object": "string",  "paused_at": "2019-08-24T14:15:22Z",  "purge_scheduled_at": "2019-08-24T14:15:22Z",  "region": "us",  "slug": "string",  "status": "active",  "tenancy_mode": "b2b",  "updated_at": "2019-08-24T14:15:22Z",  "workspace_id": "string"}

Purge project

POST
/projects/{project_id}/purge

Permanently delete a deleted project and its instances now, rather than at its purge_scheduled_at, and retire its slug and host labels. Cannot be undone.

Path Parameters

project_id*string

Project ID

Response Body

Project purged successfully

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

Restore project

POST
/projects/{project_id}/restore

Restore a deleted project within 30 days of its deletion, until its purge_scheduled_at (409 restore_window_closed after, when it is purged).

Path Parameters

project_id*string

Project ID

Response Body

OK

application/json
  1. response
charges?

What the project started billing per month, on the project a create returns and nowhere else: nothing on Free or in one of the plan's included slots; else the additional-project fee and, on a b2b project, the uplift (pontive-spec 10). Absent where the installation bills nothing.

compliance_tags?

Compliance tags of the project

created_at?string

The time when the project was created

Formatdate-time
deleted_at?string

The time when the project was deleted, if applicable

Formatdate-time
description?string

The description of the project

id?string

The unique identifier of the project

instances?array<>

Read-only summary of the project's instances, oldest first

metadata?

The new metadata for the project

name?string

The name of the project

object?string

The object type

paused_at?string

The time when the project was paused, if applicable

Formatdate-time
purge_scheduled_at?string

When a deleted project'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 project is deleted.

Formatdate-time
region?string

The region where the project and all its instances are deployed

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

The slug of the project. Client-supplied, permanent, globally unique and never reused.

status?string

The current status of the project

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

The project's tenancy mode, chosen at creation and immutable. Every instance inherits it.

Value in"b2b""b2c"
updated_at?string

The time when the project was last updated

Formatdate-time
workspace_id?string

The ID of the workspace that owns this project

Example Request
curl -X POST 'https://api.pontive.com/v1/projects/string/restore'
Example Response
{  "charges": {    "included": true  },  "compliance_tags": {    "GDPR": true,    "HIPAA": true  },  "created_at": "2019-08-24T14:15:22Z",  "deleted_at": "2019-08-24T14:15:22Z",  "description": "string",  "id": "string",  "instances": [    {      "environment": "production",      "id": "string",      "name": "string",      "slug": "string",      "status": "active"    }  ],  "metadata": {    "property1": "string",    "property2": "string"  },  "name": "string",  "object": "string",  "paused_at": "2019-08-24T14:15:22Z",  "purge_scheduled_at": "2019-08-24T14:15:22Z",  "region": "us",  "slug": "string",  "status": "active",  "tenancy_mode": "b2b",  "updated_at": "2019-08-24T14:15:22Z",  "workspace_id": "string"}

Resume project

POST
/projects/{project_id}/resume

Resume a paused project

Path Parameters

project_id*string

Project ID

Response Body

OK

application/json
  1. response
charges?

What the project started billing per month, on the project a create returns and nowhere else: nothing on Free or in one of the plan's included slots; else the additional-project fee and, on a b2b project, the uplift (pontive-spec 10). Absent where the installation bills nothing.

compliance_tags?

Compliance tags of the project

created_at?string

The time when the project was created

Formatdate-time
deleted_at?string

The time when the project was deleted, if applicable

Formatdate-time
description?string

The description of the project

id?string

The unique identifier of the project

instances?array<>

Read-only summary of the project's instances, oldest first

metadata?

The new metadata for the project

name?string

The name of the project

object?string

The object type

paused_at?string

The time when the project was paused, if applicable

Formatdate-time
purge_scheduled_at?string

When a deleted project'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 project is deleted.

Formatdate-time
region?string

The region where the project and all its instances are deployed

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

The slug of the project. Client-supplied, permanent, globally unique and never reused.

status?string

The current status of the project

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

The project's tenancy mode, chosen at creation and immutable. Every instance inherits it.

Value in"b2b""b2c"
updated_at?string

The time when the project was last updated

Formatdate-time
workspace_id?string

The ID of the workspace that owns this project

Example Request
curl -X POST 'https://api.pontive.com/v1/projects/string/resume'
Example Response
{  "charges": {    "included": true  },  "compliance_tags": {    "GDPR": true,    "HIPAA": true  },  "created_at": "2019-08-24T14:15:22Z",  "deleted_at": "2019-08-24T14:15:22Z",  "description": "string",  "id": "string",  "instances": [    {      "environment": "production",      "id": "string",      "name": "string",      "slug": "string",      "status": "active"    }  ],  "metadata": {    "property1": "string",    "property2": "string"  },  "name": "string",  "object": "string",  "paused_at": "2019-08-24T14:15:22Z",  "purge_scheduled_at": "2019-08-24T14:15:22Z",  "region": "us",  "slug": "string",  "status": "active",  "tenancy_mode": "b2b",  "updated_at": "2019-08-24T14:15:22Z",  "workspace_id": "string"}