Skip to Content
Docs
API referenceManagement API

Registered APIs

List APIs

GET
/apis

List the instance's registered APIs, the system API (the management API, read-only) included unless exclude_system.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Query Parameters

status?string

Only APIs in this status

Value in"active""disabled"
exclude_system?boolean

Leave the system API out

page?integer

Page number

limit?integer

Items per page

Response Body

OK

application/json
  1. response
data?array<>
object?string
pagination?

Pagination is the page answered (api-route-review D9).

Example Request
curl -X GET 'https://api.us.pontive.com/v1/apis'
Example Response
{  "data": [    {      "access_token_ttl": 0,      "client_access": "all",      "created_at": "string",      "description": "string",      "id": "string",      "identifier": "string",      "instance_id": "string",      "name": "string",      "object": "string",      "resource_metadata": {        "logo_uri": "string",        "resource_documentation": "string",        "resource_name": "string"      },      "scopes": [        {          "description": "string",          "display_name": "string",          "key": "string",          "origin": "manual",          "tools": [            {              "destructive": true,              "name": "string",              "read_only": true,              "title": "string"            }          ]        }      ],      "status": "active",      "system": true,      "third_party": true,      "updated_at": "string"    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}

Create API

POST
/apis

Register a resource server: its identifier, the resource clients send (RFC 8707) and the aud of every token issued for it, and the scopes clients may request for it. The identifier is any absolute URI or opaque string, an https URL being the form MCP clients can discover; it cannot be changed later.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Request Body

Create API payload

application/json
  1. body

Create API payload

access_token_ttl?integer

AccessTokenTTL absent or 0 is the default, 900.

client_access?string

ClientAccess absent is the default, all.

Value in"all""selected"
description?string
identifier?string
name?string
resource_metadata?

ResourceMetadata, when present, replaces the metadata wholesale; null clears it.

scopes?array<>
third_party?boolean

Response Body

Created

application/json
  1. response
access_token_ttl?integer

AccessTokenTTL is the lifetime of tokens issued for the API, in seconds: 60 to 86400.

client_access?string

ClientAccess governs apps only: all lets every app of the instance request the API, selected only those with a client grant. Service accounts and agents always need a grant (44 §7).

Value in"all""selected"
created_at?string
description?string
id?string
identifier?string

Identifier is immutable: any absolute URI or opaque string, https URLs normalised (44 §4).

instance_id?string
name?string
object?string
resource_metadata?

ResourceMetadata, when present, replaces the metadata wholesale; null clears it.

scopes?array<>
status?string
Value in"active""disabled"
system?boolean

System is true only for the management API, which nobody can change but for its client grants (PUT /apis/{api_id}/clients).

third_party?boolean

ThirdParty is whether third-party (CIMD, DCR) clients may request it.

updated_at?string
Example Request
curl -X POST 'https://api.us.pontive.com/v1/apis' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "access_token_ttl": 0,  "client_access": "all",  "created_at": "string",  "description": "string",  "id": "string",  "identifier": "string",  "instance_id": "string",  "name": "string",  "object": "string",  "resource_metadata": {    "logo_uri": "string",    "resource_documentation": "string",    "resource_name": "string"  },  "scopes": [    {      "description": "string",      "display_name": "string",      "key": "string",      "origin": "manual",      "tools": [        {          "destructive": true,          "name": "string",          "read_only": true,          "title": "string"        }      ]    }  ],  "status": "active",  "system": true,  "third_party": true,  "updated_at": "string"}

Get API

GET
/apis/{api_id}

Get a registered API by id.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

api_id*string

API id (api_…)

Response Body

OK

application/json
  1. response
access_token_ttl?integer

AccessTokenTTL is the lifetime of tokens issued for the API, in seconds: 60 to 86400.

client_access?string

ClientAccess governs apps only: all lets every app of the instance request the API, selected only those with a client grant. Service accounts and agents always need a grant (44 §7).

Value in"all""selected"
created_at?string
description?string
id?string
identifier?string

Identifier is immutable: any absolute URI or opaque string, https URLs normalised (44 §4).

instance_id?string
name?string
object?string
resource_metadata?

ResourceMetadata, when present, replaces the metadata wholesale; null clears it.

scopes?array<>
status?string
Value in"active""disabled"
system?boolean

System is true only for the management API, which nobody can change but for its client grants (PUT /apis/{api_id}/clients).

third_party?boolean

ThirdParty is whether third-party (CIMD, DCR) clients may request it.

updated_at?string
Example Request
curl -X GET 'https://api.us.pontive.com/v1/apis/string'
Example Response
{  "access_token_ttl": 0,  "client_access": "all",  "created_at": "string",  "description": "string",  "id": "string",  "identifier": "string",  "instance_id": "string",  "name": "string",  "object": "string",  "resource_metadata": {    "logo_uri": "string",    "resource_documentation": "string",    "resource_name": "string"  },  "scopes": [    {      "description": "string",      "display_name": "string",      "key": "string",      "origin": "manual",      "tools": [        {          "destructive": true,          "name": "string",          "read_only": true,          "title": "string"        }      ]    }  ],  "status": "active",  "system": true,  "third_party": true,  "updated_at": "string"}

Update API

PATCH
/apis/{api_id}

Change an API's name, description, scopes, token lifetime, client access, third-party switch or resource metadata; an absent field is left as it is. Scopes and resource metadata, when present, are replaced wholesale, and null clears them, as it does the description. The identifier cannot be changed. A system API refuses it; only its client grants can be changed.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

api_id*string

API id (api_…)

Request Body

Update payload

application/json
  1. body

Update payload

access_token_ttl?integer
client_access?string
Value in"all""selected"
description?string

Description: absent leaves it, null or "" clears it.

name?string
resource_metadata?

ResourceMetadata, when present, replaces the metadata wholesale; null clears it.

scopes?array<>

Scopes, when present, replace the API's scopes wholesale; null or [] clears them.

third_party?boolean

Response Body

OK

application/json
  1. response
access_token_ttl?integer

AccessTokenTTL is the lifetime of tokens issued for the API, in seconds: 60 to 86400.

client_access?string

ClientAccess governs apps only: all lets every app of the instance request the API, selected only those with a client grant. Service accounts and agents always need a grant (44 §7).

Value in"all""selected"
created_at?string
description?string
id?string
identifier?string

Identifier is immutable: any absolute URI or opaque string, https URLs normalised (44 §4).

instance_id?string
name?string
object?string
resource_metadata?

ResourceMetadata, when present, replaces the metadata wholesale; null clears it.

scopes?array<>
status?string
Value in"active""disabled"
system?boolean

System is true only for the management API, which nobody can change but for its client grants (PUT /apis/{api_id}/clients).

third_party?boolean

ThirdParty is whether third-party (CIMD, DCR) clients may request it.

updated_at?string
Example Request
curl -X PATCH 'https://api.us.pontive.com/v1/apis/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "access_token_ttl": 0,  "client_access": "all",  "created_at": "string",  "description": "string",  "id": "string",  "identifier": "string",  "instance_id": "string",  "name": "string",  "object": "string",  "resource_metadata": {    "logo_uri": "string",    "resource_documentation": "string",    "resource_name": "string"  },  "scopes": [    {      "description": "string",      "display_name": "string",      "key": "string",      "origin": "manual",      "tools": [        {          "destructive": true,          "name": "string",          "read_only": true,          "title": "string"        }      ]    }  ],  "status": "active",  "system": true,  "third_party": true,  "updated_at": "string"}

Delete API

DELETE
/apis/{api_id}

Delete an API with its client grants and consent grants. Refresh tokens issued for it fail at their next use with invalid_target. A system API refuses it.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

api_id*string

API id (api_…)

Response Body

No Content

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

List API client grants

GET
/apis/{api_id}/clients

The API's client grants: every service account and agent of the instance that may request it, and the apps that may when client_access is selected. Each holds every scope of the API (all_scopes) or the ones named.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

api_id*string

API id (api_…)

Query Parameters

page?integer

Page number

limit?integer

Items per page, 1 to 100

Response Body

OK

application/json
  1. response
data?array<>
object?string
pagination?

Pagination is the page answered (api-route-review D9).

Example Request
curl -X GET 'https://api.us.pontive.com/v1/apis/string/clients'
Example Response
{  "data": [    {      "all_scopes": true,      "client_id": "string",      "scopes": [        "string"      ]    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}
PUT
/apis/{api_id}/clients

Replace every client grant of the API with items; [] removes them all. Each names an app, service account or agent of the instance (never a third-party app) and every scope of the API (all_scopes) or a subset of its keys. The system API (the management API) takes client grants too, the only way a service account or agent reaches the management API: each names a service account or agent (an app is api_client_invalid) with scopes exactly ["pontive:management"] (all_scopes, no scopes or any other scope is api_scope_invalid).

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

api_id*string

API id (api_…)

Request Body

The API's client grants

application/json
  1. body

The API's client grants

items?array<>

Response Body

OK

application/json
  1. response
data?array<>
object?string
pagination?

Pagination is the page answered (api-route-review D9).

Example Request
curl -X PUT 'https://api.us.pontive.com/v1/apis/string/clients' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "data": [    {      "all_scopes": true,      "client_id": "string",      "scopes": [        "string"      ]    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}

Disable API

POST
/apis/{api_id}/disable

Refuse new token requests for the API (invalid_target). Tokens already issued for it live out their lifetime. A system API refuses it.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

api_id*string

API id (api_…)

Response Body

OK

application/json
  1. response
access_token_ttl?integer

AccessTokenTTL is the lifetime of tokens issued for the API, in seconds: 60 to 86400.

client_access?string

ClientAccess governs apps only: all lets every app of the instance request the API, selected only those with a client grant. Service accounts and agents always need a grant (44 §7).

Value in"all""selected"
created_at?string
description?string
id?string
identifier?string

Identifier is immutable: any absolute URI or opaque string, https URLs normalised (44 §4).

instance_id?string
name?string
object?string
resource_metadata?

ResourceMetadata, when present, replaces the metadata wholesale; null clears it.

scopes?array<>
status?string
Value in"active""disabled"
system?boolean

System is true only for the management API, which nobody can change but for its client grants (PUT /apis/{api_id}/clients).

third_party?boolean

ThirdParty is whether third-party (CIMD, DCR) clients may request it.

updated_at?string
Example Request
curl -X POST 'https://api.us.pontive.com/v1/apis/string/disable'
Example Response
{  "access_token_ttl": 0,  "client_access": "all",  "created_at": "string",  "description": "string",  "id": "string",  "identifier": "string",  "instance_id": "string",  "name": "string",  "object": "string",  "resource_metadata": {    "logo_uri": "string",    "resource_documentation": "string",    "resource_name": "string"  },  "scopes": [    {      "description": "string",      "display_name": "string",      "key": "string",      "origin": "manual",      "tools": [        {          "destructive": true,          "name": "string",          "read_only": true,          "title": "string"        }      ]    }  ],  "status": "active",  "system": true,  "third_party": true,  "updated_at": "string"}

Enable API

POST
/apis/{api_id}/enable

Let clients request tokens for a disabled API again.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

api_id*string

API id (api_…)

Response Body

OK

application/json
  1. response
access_token_ttl?integer

AccessTokenTTL is the lifetime of tokens issued for the API, in seconds: 60 to 86400.

client_access?string

ClientAccess governs apps only: all lets every app of the instance request the API, selected only those with a client grant. Service accounts and agents always need a grant (44 §7).

Value in"all""selected"
created_at?string
description?string
id?string
identifier?string

Identifier is immutable: any absolute URI or opaque string, https URLs normalised (44 §4).

instance_id?string
name?string
object?string
resource_metadata?

ResourceMetadata, when present, replaces the metadata wholesale; null clears it.

scopes?array<>
status?string
Value in"active""disabled"
system?boolean

System is true only for the management API, which nobody can change but for its client grants (PUT /apis/{api_id}/clients).

third_party?boolean

ThirdParty is whether third-party (CIMD, DCR) clients may request it.

updated_at?string
Example Request
curl -X POST 'https://api.us.pontive.com/v1/apis/string/enable'
Example Response
{  "access_token_ttl": 0,  "client_access": "all",  "created_at": "string",  "description": "string",  "id": "string",  "identifier": "string",  "instance_id": "string",  "name": "string",  "object": "string",  "resource_metadata": {    "logo_uri": "string",    "resource_documentation": "string",    "resource_name": "string"  },  "scopes": [    {      "description": "string",      "display_name": "string",      "key": "string",      "origin": "manual",      "tools": [        {          "destructive": true,          "name": "string",          "read_only": true,          "title": "string"        }      ]    }  ],  "status": "active",  "system": true,  "third_party": true,  "updated_at": "string"}
GET
/apis/{api_id}/resource-metadata

The RFC 9728 protected resource metadata document for the API, which its resource server serves at /.well-known/oauth-protected-resource (with the identifier's path appended). Only an API whose identifier is an https URL has one.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

api_id*string

API id (api_…)

Response Body

OK

application/json
  1. response
authorization_servers?array<string>
bearer_methods_supported?array<string>
logo_uri?string
resource?string
resource_documentation?string
resource_name?string
scopes_supported?array<string>
Example Request
curl -X GET 'https://api.us.pontive.com/v1/apis/string/resource-metadata'
Example Response
{  "authorization_servers": [    "string"  ],  "bearer_methods_supported": [    "string"  ],  "logo_uri": "string",  "resource": "string",  "resource_documentation": "string",  "resource_name": "string",  "scopes_supported": [    "string"  ]}
POST
/apis/{api_id}/scopes/import

Propose the API's tool scopes from an MCP server's tools/list result, sent as the server returns it ({tools, nextCursor?}) with the import's options beside it; Pontive never fetches from the server. One scope per group, then one tool: scope per tool in no group, with the tool's description, its title as display_name and its read-only and destructive hints. The response is the diff against the API's scopes: added, changed (with the fields that differ), removed (tool_import scopes no longer proposed, with what still names each) and unchanged. dry_run absent or true writes nothing; dry_run false writes the diff in one transaction. A removed scope is kept unless remove_missing; with it, one a client grant, consent grant or third-party profile still names refuses the import (api_scope_in_use) unless force. Manual scopes are never removed. At most 500 tools and 100 groups; the result is held to 100 scopes per API. A system API refuses it.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

api_id*string

API id (api_…)

Request Body

The tools/list result and the import's options

application/json
  1. body

The tools/list result and the import's options

dry_run?boolean

DryRun absent or true: return the diff and write nothing.

force?boolean

Force, with remove_missing, removes them even while a client grant, consent grant or third-party profile names them.

groups?array<>

Groups are at most 100.

nextCursor?string

NextCursor set means the result is one page of several, which is refused (api_tool_invalid): send every page's tools at once.

remove_missing?boolean

RemoveMissing removes the tool_import scopes the result no longer proposes; without it they are kept and listed with action keep.

tools?array<>

Tools are the tools/list result's: 1 to 500, each name once.

Response Body

OK

application/json
  1. response
added?array<>

Added are new keys, in proposal order.

api?
changed?array<>

Changed, removed and unchanged are in the API's scope order.

dry_run?boolean

DryRun is whether nothing was written.

object?string
removed?array<>
unchanged?array<>
Example Request
curl -X POST 'https://api.us.pontive.com/v1/apis/string/scopes/import' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "added": [    {      "description": "string",      "display_name": "string",      "key": "string",      "origin": "manual",      "tools": [        {          "destructive": true,          "name": "string",          "read_only": true,          "title": "string"        }      ]    }  ],  "api": {    "access_token_ttl": 0,    "client_access": "all",    "created_at": "string",    "description": "string",    "id": "string",    "identifier": "string",    "instance_id": "string",    "name": "string",    "object": "string",    "resource_metadata": {      "logo_uri": "string",      "resource_documentation": "string",      "resource_name": "string"    },    "scopes": [      {        "description": "string",        "display_name": "string",        "key": "string",        "origin": "manual",        "tools": [          {            "destructive": true,            "name": "string",            "read_only": true,            "title": "string"          }        ]      }    ],    "status": "active",    "system": true,    "third_party": true,    "updated_at": "string"  },  "changed": [    {      "after": {        "description": "string",        "display_name": "string",        "key": "string",        "origin": "manual",        "tools": [          {            "destructive": true,            "name": "string",            "read_only": true,            "title": "string"          }        ]      },      "before": {        "description": "string",        "display_name": "string",        "key": "string",        "origin": "manual",        "tools": [          {            "destructive": true,            "name": "string",            "read_only": true,            "title": "string"          }        ]      },      "fields": [        "description"      ]    }  ],  "dry_run": true,  "object": "string",  "removed": [    {      "action": "keep",      "references": {        "client_grants": 0,        "consent_grants": 0,        "profile_entries": 0      },      "scope": {        "description": "string",        "display_name": "string",        "key": "string",        "origin": "manual",        "tools": [          {            "destructive": true,            "name": "string",            "read_only": true,            "title": "string"          }        ]      }    }  ],  "unchanged": [    {      "description": "string",      "display_name": "string",      "key": "string",      "origin": "manual",      "tools": [        {          "destructive": true,          "name": "string",          "read_only": true,          "title": "string"        }      ]    }  ]}