Skip to Content
Docs
API referenceManagement API

Agents

List agents

GET
/agents

List the instance agents and organization agents the caller may read. A caller holding sys:agent:read only on some organizations lists those organizations' own agents.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Query Parameters

owner_type?string

root or org

owner_id?string

The agents one definer defined: an org_ id, or the inst_ id

sponsor?string

The agents this user (usr_) sponsors

no_sponsor?boolean

The agents with no sponsor

status?string

active or deactivated

search?string

Search by name

page?integer

Page number

limit?integer

Items per page

sort?string

created_at, updated_at, name or status; prefix - for descending

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/agents'
Example Response
{  "data": [    {      "auto_install": true,      "client_secrets": [        {          "created_at": "string",          "expires_at": "string",          "id": "string",          "label": "string",          "last_used_at": "string",          "object": "string",          "preview": "string",          "status": "active"        }      ],      "created_at": "string",      "description": "string",      "domain_id": "string",      "id": "string",      "instance_id": "string",      "issuer": "string",      "jwks_uri": "string",      "last_used_at": "string",      "logo_url": "string",      "metadata": {        "property1": "string",        "property2": "string"      },      "name": "string",      "object": "string",      "org_access": "all",      "owner_id": "string",      "owner_type": "root",      "public_keys": [        {          "alg": "RS256",          "created_at": "string",          "crv": "P-256",          "e": "string",          "kid": "string",          "kty": "RSA",          "n": "string",          "object": "string",          "use": "string",          "x": "string",          "y": "string"        }      ],      "requested_roles": [        {          "resource_type": "string",          "role": "string",          "version": 0        }      ],      "requested_roles_version": 0,      "sponsors": [        "string"      ],      "status": "active",      "token_ttl": 0,      "updated_at": "string"    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}

Create agent

POST
/agents

Define an agent (pontive-spec 45 §4): an instance agent (owner_type root; sys:agent:manage on the root) or an organization agent (owner_type org, owner_id its org_ id; sys:agent:manage on the organization). owner_type is the definer's resource-type key (D6, D44). An organization agent is installed in its organization at once, with its requested org roles approved by its creator.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Request Body

Agent definition

application/json
  1. body

Agent definition

auto_install?boolean
description?string
domain_id?string

DomainID is the auth domain its tokens are issued by; omitted is the instance's default.

logo_url?string
metadata?
name*string
org_access?string

OrgAccess is an instance agent's offer: all (the default) or selected, with no organization listed yet (POST /agents/{agent_id}/organizations).

Value in"all""selected"
owner_id?string

OwnerID is the definer: the organization's org_ id for org; the instance's inst_ id, or omitted, for root.

owner_type*string

OwnerType is the definer's resource-type key (D6, D44): root, or org.

Value in"root""org"
requested_roles?array<>
sponsors?array<string>

Sponsors are usr_ ids, each holding sys:agent:read on the definer.

token_ttl?integer

TokenTTL is in seconds, 60–3600; omitted is 900.

Response Body

Created

application/json
  1. response
auto_install?boolean

AutoInstall installs an instance agent, with its requested org roles, in every organization it is offered to.

client_secrets?array<>

ClientSecrets are the secrets that still authenticate, previews only (GET /agents/{agent_id}/client-secrets, D19). A secret's value is shown once, when it is created.

created_at?string
description?string
domain_id?string
id?string
instance_id?string
issuer?string
jwks_uri?string
last_used_at?string
logo_url?string
metadata?
name?string
object?string
org_access?string

OrgAccess is an instance agent's offer: every organization, or the selected ones (GET /agents/{agent_id}/organizations, D22). Empty for an organization agent.

Value in"all""selected"
owner_id?string

OwnerID is the definer's prefixed id: the instance's inst_ id, or the organization's org_ id.

owner_type?string

OwnerType is the definer's resource-type key (D6, D44): root, or org for an organization.

Value in"root""org"
public_keys?array<>

PublicKeys are the inline keys the agent signs private_key_jwt assertions with; JWKSURI is where they are fetched from instead. At most one is set.

requested_roles?array<>

RequestedRoles are the agent's ceiling everywhere: an installation approves these or fewer, never more. Each carries the version that added it.

requested_roles_version?integer

RequestedRolesVersion grows each time a role is added to requested_roles; installations approved below it have a pending approval.

sponsors?array<string>

Sponsors are the users (usr_) accountable for the agent.

status?string
Value in"active""deactivated"
token_ttl?integer

TokenTTL is its access tokens' lifetime in seconds, 60–3600.

updated_at?string
Example Request
curl -X POST 'https://api.us.pontive.com/v1/agents' \  -H 'Content-Type: application/json' \  -d '{  "name": "string",  "owner_type": "root"}'
Example Response
{  "auto_install": true,  "client_secrets": [    {      "created_at": "string",      "expires_at": "string",      "id": "string",      "label": "string",      "last_used_at": "string",      "object": "string",      "preview": "string",      "status": "active"    }  ],  "created_at": "string",  "description": "string",  "domain_id": "string",  "id": "string",  "instance_id": "string",  "issuer": "string",  "jwks_uri": "string",  "last_used_at": "string",  "logo_url": "string",  "metadata": {    "property1": "string",    "property2": "string"  },  "name": "string",  "object": "string",  "org_access": "all",  "owner_id": "string",  "owner_type": "root",  "public_keys": [    {      "alg": "RS256",      "created_at": "string",      "crv": "P-256",      "e": "string",      "kid": "string",      "kty": "RSA",      "n": "string",      "object": "string",      "use": "string",      "x": "string",      "y": "string"    }  ],  "requested_roles": [    {      "resource_type": "string",      "role": "string",      "version": 0    }  ],  "requested_roles_version": 0,  "sponsors": [    "string"  ],  "status": "active",  "token_ttl": 0,  "updated_at": "string"}

Get agent

GET
/agents/{agent_id}

Get an agent: its definition, requested roles, offer, secrets (previews), keys and sponsors.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

agent_id*string

Agent ID

Response Body

OK

application/json
  1. response
auto_install?boolean

AutoInstall installs an instance agent, with its requested org roles, in every organization it is offered to.

client_secrets?array<>

ClientSecrets are the secrets that still authenticate, previews only (GET /agents/{agent_id}/client-secrets, D19). A secret's value is shown once, when it is created.

created_at?string
description?string
domain_id?string
id?string
instance_id?string
issuer?string
jwks_uri?string
last_used_at?string
logo_url?string
metadata?
name?string
object?string
org_access?string

OrgAccess is an instance agent's offer: every organization, or the selected ones (GET /agents/{agent_id}/organizations, D22). Empty for an organization agent.

Value in"all""selected"
owner_id?string

OwnerID is the definer's prefixed id: the instance's inst_ id, or the organization's org_ id.

owner_type?string

OwnerType is the definer's resource-type key (D6, D44): root, or org for an organization.

Value in"root""org"
public_keys?array<>

PublicKeys are the inline keys the agent signs private_key_jwt assertions with; JWKSURI is where they are fetched from instead. At most one is set.

requested_roles?array<>

RequestedRoles are the agent's ceiling everywhere: an installation approves these or fewer, never more. Each carries the version that added it.

requested_roles_version?integer

RequestedRolesVersion grows each time a role is added to requested_roles; installations approved below it have a pending approval.

sponsors?array<string>

Sponsors are the users (usr_) accountable for the agent.

status?string
Value in"active""deactivated"
token_ttl?integer

TokenTTL is its access tokens' lifetime in seconds, 60–3600.

updated_at?string
Example Request
curl -X GET 'https://api.us.pontive.com/v1/agents/string'
Example Response
{  "auto_install": true,  "client_secrets": [    {      "created_at": "string",      "expires_at": "string",      "id": "string",      "label": "string",      "last_used_at": "string",      "object": "string",      "preview": "string",      "status": "active"    }  ],  "created_at": "string",  "description": "string",  "domain_id": "string",  "id": "string",  "instance_id": "string",  "issuer": "string",  "jwks_uri": "string",  "last_used_at": "string",  "logo_url": "string",  "metadata": {    "property1": "string",    "property2": "string"  },  "name": "string",  "object": "string",  "org_access": "all",  "owner_id": "string",  "owner_type": "root",  "public_keys": [    {      "alg": "RS256",      "created_at": "string",      "crv": "P-256",      "e": "string",      "kid": "string",      "kty": "RSA",      "n": "string",      "object": "string",      "use": "string",      "x": "string",      "y": "string"    }  ],  "requested_roles": [    {      "resource_type": "string",      "role": "string",      "version": 0    }  ],  "requested_roles_version": 0,  "sponsors": [    "string"  ],  "status": "active",  "token_ttl": 0,  "updated_at": "string"}

Update agent

PATCH
/agents/{agent_id}

Change an agent's definition; an omitted field is left as it is. sponsors, requested_roles and org_access are fields of the agent (D22), each replaced whole when sent: adding a requested role leaves every installation of its type with a pending approval, removing one takes it off every installation at once. jwks_uri (D20) sets or, with null, clears where its keys are fetched from (sys:agent:secret). Turning auto_install on installs the agent, once, in every organization it is offered to.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

agent_id*string

Agent ID

Request Body

Fields to change

application/json
  1. body

Fields to change

auto_install?boolean
description?string
jwks_uri?string

JWKSURI is where the agent's keys are fetched from (D20); null clears it. Refused while inline public keys exist.

logo_url?string
metadata?

Metadata, when sent, replaces the metadata; {} clears it.

name?string
org_access?string

OrgAccess is an instance agent's offer: all or selected.

Value in"all""selected"
requested_roles?array<>

RequestedRoles, when sent, replace the roles the agent requests: adding one increments requested_roles_version and leaves every installation of its type with a pending approval; removing one takes it off every installation at once.

sponsors?array<string>

Sponsors, when sent, replace the sponsors: at most ten usr_ ids, each holding sys:agent:read on the definer; [] clears them.

token_ttl?integer

Response Body

OK

application/json
  1. response
auto_install?boolean

AutoInstall installs an instance agent, with its requested org roles, in every organization it is offered to.

client_secrets?array<>

ClientSecrets are the secrets that still authenticate, previews only (GET /agents/{agent_id}/client-secrets, D19). A secret's value is shown once, when it is created.

created_at?string
description?string
domain_id?string
id?string
instance_id?string
issuer?string
jwks_uri?string
last_used_at?string
logo_url?string
metadata?
name?string
object?string
org_access?string

OrgAccess is an instance agent's offer: every organization, or the selected ones (GET /agents/{agent_id}/organizations, D22). Empty for an organization agent.

Value in"all""selected"
owner_id?string

OwnerID is the definer's prefixed id: the instance's inst_ id, or the organization's org_ id.

owner_type?string

OwnerType is the definer's resource-type key (D6, D44): root, or org for an organization.

Value in"root""org"
public_keys?array<>

PublicKeys are the inline keys the agent signs private_key_jwt assertions with; JWKSURI is where they are fetched from instead. At most one is set.

requested_roles?array<>

RequestedRoles are the agent's ceiling everywhere: an installation approves these or fewer, never more. Each carries the version that added it.

requested_roles_version?integer

RequestedRolesVersion grows each time a role is added to requested_roles; installations approved below it have a pending approval.

sponsors?array<string>

Sponsors are the users (usr_) accountable for the agent.

status?string
Value in"active""deactivated"
token_ttl?integer

TokenTTL is its access tokens' lifetime in seconds, 60–3600.

updated_at?string
Example Request
curl -X PATCH 'https://api.us.pontive.com/v1/agents/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "auto_install": true,  "client_secrets": [    {      "created_at": "string",      "expires_at": "string",      "id": "string",      "label": "string",      "last_used_at": "string",      "object": "string",      "preview": "string",      "status": "active"    }  ],  "created_at": "string",  "description": "string",  "domain_id": "string",  "id": "string",  "instance_id": "string",  "issuer": "string",  "jwks_uri": "string",  "last_used_at": "string",  "logo_url": "string",  "metadata": {    "property1": "string",    "property2": "string"  },  "name": "string",  "object": "string",  "org_access": "all",  "owner_id": "string",  "owner_type": "root",  "public_keys": [    {      "alg": "RS256",      "created_at": "string",      "crv": "P-256",      "e": "string",      "kid": "string",      "kty": "RSA",      "n": "string",      "object": "string",      "use": "string",      "x": "string",      "y": "string"    }  ],  "requested_roles": [    {      "resource_type": "string",      "role": "string",      "version": 0    }  ],  "requested_roles_version": 0,  "sponsors": [    "string"  ],  "status": "active",  "token_ttl": 0,  "updated_at": "string"}

Delete agent

DELETE
/agents/{agent_id}

Delete the agent with its installations, offer, sponsors and client grants. Tokens already issued live out their lifetime.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

agent_id*string

Agent ID

Response Body

No Content

Example Request
curl -X DELETE 'https://api.us.pontive.com/v1/agents/string'
Example Response
Empty
GET
/agents/{agent_id}/client-secrets

The agent's client secrets that still authenticate (D19), newest first: preview, label, status, created and expiry, never the value.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

agent_id*string

Agent ID

Query Parameters

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/agents/string/client-secrets'
Example Response
{  "data": [    {      "created_at": "string",      "expires_at": "string",      "id": "string",      "label": "string",      "last_used_at": "string",      "object": "string",      "preview": "string",      "status": "active"    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}
POST
/agents/{agent_id}/client-secrets

Mint a client secret (D19); needs sys:agent:secret. Creating the agent mints none (D45). Its value is returned here only. Without expire_others_in the others are kept, and the create is refused (409 client_secret_limit_reached) while two that do not expire are held; with it, every other secret stops working that many seconds from now (0–604800; 0 at once), so a rotation is one call.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

agent_id*string

Agent ID

Request Body

Label and the others' expiry

application/json
  1. body

Label and the others' expiry

expire_others_in?integer
label?string

Response Body

Created

application/json
  1. response
created_at?string
expires_at?string
id?string
label?string
last_used_at?string
object?string
preview?string
secret?string
status?string
Value in"active""rotating"
Example Request
curl -X POST 'https://api.us.pontive.com/v1/agents/string/client-secrets' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "created_at": "string",  "expires_at": "string",  "id": "string",  "label": "string",  "last_used_at": "string",  "object": "string",  "preview": "string",  "secret": "string",  "status": "active"}
DELETE
/agents/{agent_id}/client-secrets/{secret_id}

Remove one of the agent's client secrets (D8, D19); it stops working at once.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

agent_id*string

Agent ID

secret_id*string

Client secret ID

Response Body

No Content

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

Deactivate agent

POST
/agents/{agent_id}/deactivate

Deactivate an agent: every installation is suspended and its token requests are refused (invalid_client). Its credentials are kept.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

agent_id*string

Agent ID

Response Body

OK

application/json
  1. response
auto_install?boolean

AutoInstall installs an instance agent, with its requested org roles, in every organization it is offered to.

client_secrets?array<>

ClientSecrets are the secrets that still authenticate, previews only (GET /agents/{agent_id}/client-secrets, D19). A secret's value is shown once, when it is created.

created_at?string
description?string
domain_id?string
id?string
instance_id?string
issuer?string
jwks_uri?string
last_used_at?string
logo_url?string
metadata?
name?string
object?string
org_access?string

OrgAccess is an instance agent's offer: every organization, or the selected ones (GET /agents/{agent_id}/organizations, D22). Empty for an organization agent.

Value in"all""selected"
owner_id?string

OwnerID is the definer's prefixed id: the instance's inst_ id, or the organization's org_ id.

owner_type?string

OwnerType is the definer's resource-type key (D6, D44): root, or org for an organization.

Value in"root""org"
public_keys?array<>

PublicKeys are the inline keys the agent signs private_key_jwt assertions with; JWKSURI is where they are fetched from instead. At most one is set.

requested_roles?array<>

RequestedRoles are the agent's ceiling everywhere: an installation approves these or fewer, never more. Each carries the version that added it.

requested_roles_version?integer

RequestedRolesVersion grows each time a role is added to requested_roles; installations approved below it have a pending approval.

sponsors?array<string>

Sponsors are the users (usr_) accountable for the agent.

status?string
Value in"active""deactivated"
token_ttl?integer

TokenTTL is its access tokens' lifetime in seconds, 60–3600.

updated_at?string
Example Request
curl -X POST 'https://api.us.pontive.com/v1/agents/string/deactivate'
Example Response
{  "auto_install": true,  "client_secrets": [    {      "created_at": "string",      "expires_at": "string",      "id": "string",      "label": "string",      "last_used_at": "string",      "object": "string",      "preview": "string",      "status": "active"    }  ],  "created_at": "string",  "description": "string",  "domain_id": "string",  "id": "string",  "instance_id": "string",  "issuer": "string",  "jwks_uri": "string",  "last_used_at": "string",  "logo_url": "string",  "metadata": {    "property1": "string",    "property2": "string"  },  "name": "string",  "object": "string",  "org_access": "all",  "owner_id": "string",  "owner_type": "root",  "public_keys": [    {      "alg": "RS256",      "created_at": "string",      "crv": "P-256",      "e": "string",      "kid": "string",      "kty": "RSA",      "n": "string",      "object": "string",      "use": "string",      "x": "string",      "y": "string"    }  ],  "requested_roles": [    {      "resource_type": "string",      "role": "string",      "version": 0    }  ],  "requested_roles_version": 0,  "sponsors": [    "string"  ],  "status": "active",  "token_ttl": 0,  "updated_at": "string"}
GET
/agents/{agent_id}/federated-credentials

Every federated credential of the agent (at most 20). Needs sys:agent:read on its definer (the instance root or its organization).

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

agent_id*string

Agent ID (agt_)

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/agents/string/federated-credentials'
Example Response
{  "data": [    {      "client_id": "string",      "created_at": "string",      "description": "string",      "id": "string",      "instance_id": "string",      "name": "string",      "object": "string",      "required_claims": {        "property1": "string",        "property2": "string"      },      "subject": "string",      "trusted_issuer_id": "string",      "updated_at": "string"    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}
POST
/agents/{agent_id}/federated-credentials

Let the agent authenticate at the token endpoint with a token a trusted issuer signed, with no secret or key of its own (workload identity federation, pontive-spec 20 B7). The workload sends its token as client_assertion, with client_assertion_type urn:ietf:params:oauth:client-assertion-type:jwt-bearer and client_id the agent's id; it is accepted when its iss is the credential's trusted issuer (enabled), its aud one the issuer accepts, exp at most the issuer's max_token_lifetime_seconds (default 3600) ahead and at most that long after iat, its signature the issuer's, its jti unused (unless the issuer has allow_reuse, which accepts the same token until it expires), its sub matches subject and every required claim is present with exactly its value. subject is exact by default; a '' matches one or more characters within one ':' or '/' segment, and '**' or a '' in the first segment is refused, so repo:acme/api:environment:* matches every environment of acme/api and nothing else. At most 20 per agent, the name once. Needs sys:agent:secret on its definer (the instance root or its organization).

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

agent_id*string

Agent ID (agt_)

Request Body

Credential

application/json
  1. body

Credential

description?string
name*string

Name is unique among the client's credentials.

required_claims?

RequiredClaims, at most 10, such as repository, ref or environment for GitHub Actions; iss, sub, aud, exp, nbf, iat and jti cannot be required.

subject*string

Subject is exact by default. A '' matches one or more characters within one ':' or '/' segment; '**' and a '' in the first segment are refused.

trusted_issuer_id*string

Response Body

Created

application/json
  1. response
client_id?string

ClientID is the service account (svc_) or agent (agt_).

created_at?string
description?string
id?string
instance_id?string
name?string
object?string
required_claims?

RequiredClaims must be in the assertion with exactly these values.

subject?string

Subject is the assertion's sub: exact, or a pattern where '*' matches one or more characters within one ':' or '/' segment.

trusted_issuer_id?string
updated_at?string
Example Request
curl -X POST 'https://api.us.pontive.com/v1/agents/string/federated-credentials' \  -H 'Content-Type: application/json' \  -d '{  "name": "string",  "subject": "string",  "trusted_issuer_id": "string"}'
Example Response
{  "client_id": "string",  "created_at": "string",  "description": "string",  "id": "string",  "instance_id": "string",  "name": "string",  "object": "string",  "required_claims": {    "property1": "string",    "property2": "string"  },  "subject": "string",  "trusted_issuer_id": "string",  "updated_at": "string"}
GET
/agents/{agent_id}/federated-credentials/{credential_id}

Needs sys:agent:read on its definer (the instance root or its organization).

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

agent_id*string

Agent ID (agt_)

credential_id*string

Federated credential ID (fic_)

Response Body

OK

application/json
  1. response
client_id?string

ClientID is the service account (svc_) or agent (agt_).

created_at?string
description?string
id?string
instance_id?string
name?string
object?string
required_claims?

RequiredClaims must be in the assertion with exactly these values.

subject?string

Subject is the assertion's sub: exact, or a pattern where '*' matches one or more characters within one ':' or '/' segment.

trusted_issuer_id?string
updated_at?string
Example Request
curl -X GET 'https://api.us.pontive.com/v1/agents/string/federated-credentials/string'
Example Response
{  "client_id": "string",  "created_at": "string",  "description": "string",  "id": "string",  "instance_id": "string",  "name": "string",  "object": "string",  "required_claims": {    "property1": "string",    "property2": "string"  },  "subject": "string",  "trusted_issuer_id": "string",  "updated_at": "string"}
PATCH
/agents/{agent_id}/federated-credentials/{credential_id}

Change the name, description, subject or required claims; an absent field is left as it is, and required_claims, when present, replaces the map. The trusted issuer never changes. Needs sys:agent:secret on its definer (the instance root or its organization).

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

agent_id*string

Agent ID (agt_)

credential_id*string

Federated credential ID (fic_)

Request Body

Changes

application/json
  1. body

Changes

description?string
name?string
required_claims?

RequiredClaims, when present, replaces the map; {} requires none.

subject?string

Response Body

OK

application/json
  1. response
client_id?string

ClientID is the service account (svc_) or agent (agt_).

created_at?string
description?string
id?string
instance_id?string
name?string
object?string
required_claims?

RequiredClaims must be in the assertion with exactly these values.

subject?string

Subject is the assertion's sub: exact, or a pattern where '*' matches one or more characters within one ':' or '/' segment.

trusted_issuer_id?string
updated_at?string
Example Request
curl -X PATCH 'https://api.us.pontive.com/v1/agents/string/federated-credentials/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "client_id": "string",  "created_at": "string",  "description": "string",  "id": "string",  "instance_id": "string",  "name": "string",  "object": "string",  "required_claims": {    "property1": "string",    "property2": "string"  },  "subject": "string",  "trusted_issuer_id": "string",  "updated_at": "string"}
DELETE
/agents/{agent_id}/federated-credentials/{credential_id}

The credential stops authenticating at once; tokens already issued live out their lifetime. Needs sys:agent:secret on its definer (the instance root or its organization).

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

agent_id*string

Agent ID (agt_)

credential_id*string

Federated credential ID (fic_)

Response Body

No Content

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

List agent installations

GET
/agents/{agent_id}/installations

Every installation of the agent — on the root, organizations and resources — with its approved roles, pending approval and status. Each is managed by its id under its home (D21).

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

agent_id*string

Agent ID

Query Parameters

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/agents/string/installations'
Example Response
{  "data": [    {      "agent_id": "string",      "approved_by": {        "id": "string",        "name": "string",        "type": "string"      },      "approved_version": 0,      "created_at": "string",      "delegated_only": true,      "id": "string",      "installed_by": {        "id": "string",        "name": "string",        "type": "string"      },      "instance_id": "string",      "object": "string",      "organization_id": "string",      "pending_roles": [        "string"      ],      "pending_version": 0,      "resource_type": "string",      "roles": [        "string"      ],      "status": "active",      "suspended_at": "string",      "suspended_reasons": [        "string"      ],      "target_id": "string",      "target_type": "root",      "updated_at": "string"    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}

List an agent's offer

GET
/agents/{agent_id}/organizations

The organizations an instance agent's selected offer admits (pontive-spec 45 §5.1): its allow-list edge (D22). org_access (all or selected) is a field of the agent.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

agent_id*string

Agent ID

Query Parameters

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/agents/string/organizations'
Example Response
{  "data": [    {      "agent_id": "string",      "object": "string",      "organization_id": "string"    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}
POST
/agents/{agent_id}/organizations

Add one or more organizations to an instance agent's selected offer (D22); one already offered is not an error. With auto_install on, an organization added is installed.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

agent_id*string

Agent ID

Request Body

Organizations to add

application/json
  1. body

Organizations to add

organization_ids*array<string>

OrganizationIDs are the organizations to add, at most 100. Adding one already offered is not an error.

Items1 <= items <= 100

Response Body

OK

application/json
  1. response
agent_id?string
object?string
org_access?string
Value in"all""selected"
organization_ids?array<string>

OrganizationIDs are the organizations a selected offer lists.

Example Request
curl -X POST 'https://api.us.pontive.com/v1/agents/string/organizations' \  -H 'Content-Type: application/json' \  -d '{  "organization_ids": [    "string"  ]}'
Example Response
{  "agent_id": "string",  "object": "string",  "org_access": "all",  "organization_ids": [    "string"  ]}
DELETE
/agents/{agent_id}/organizations/{organization_id}

Take one organization off an instance agent's selected offer (D22), which suspends its installations there.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

agent_id*string

Agent ID

organization_id*string

Organization ID

Response Body

No Content

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

Add agent public key

POST
/agents/{agent_id}/public-keys

Add a public JWK to the agent's inline keys, for private_key_jwt (pontive-spec 45 §7.2). The body is the JWK itself, with its public members only: RSA 2048 bits or more, or EC P-256, with a kid. At most three; refused while the agent has a jwks_uri (409 key_source_conflict). Rotate by overlap: add the new key, move over to it, then remove the old one.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

agent_id*string

Agent ID

Request Body

The public JWK

application/json
  1. body

The public JWK

alg?string
Value in"RS256""PS256""ES256"
crv?"P-256"
Value in"P-256"
e?string
kid*string
kty*string
Value in"RSA""EC"
n?string
use?string
x?string
y?string

Response Body

Created

application/json
  1. response
auto_install?boolean

AutoInstall installs an instance agent, with its requested org roles, in every organization it is offered to.

client_secrets?array<>

ClientSecrets are the secrets that still authenticate, previews only (GET /agents/{agent_id}/client-secrets, D19). A secret's value is shown once, when it is created.

created_at?string
description?string
domain_id?string
id?string
instance_id?string
issuer?string
jwks_uri?string
last_used_at?string
logo_url?string
metadata?
name?string
object?string
org_access?string

OrgAccess is an instance agent's offer: every organization, or the selected ones (GET /agents/{agent_id}/organizations, D22). Empty for an organization agent.

Value in"all""selected"
owner_id?string

OwnerID is the definer's prefixed id: the instance's inst_ id, or the organization's org_ id.

owner_type?string

OwnerType is the definer's resource-type key (D6, D44): root, or org for an organization.

Value in"root""org"
public_keys?array<>

PublicKeys are the inline keys the agent signs private_key_jwt assertions with; JWKSURI is where they are fetched from instead. At most one is set.

requested_roles?array<>

RequestedRoles are the agent's ceiling everywhere: an installation approves these or fewer, never more. Each carries the version that added it.

requested_roles_version?integer

RequestedRolesVersion grows each time a role is added to requested_roles; installations approved below it have a pending approval.

sponsors?array<string>

Sponsors are the users (usr_) accountable for the agent.

status?string
Value in"active""deactivated"
token_ttl?integer

TokenTTL is its access tokens' lifetime in seconds, 60–3600.

updated_at?string
Example Request
curl -X POST 'https://api.us.pontive.com/v1/agents/string/public-keys' \  -H 'Content-Type: application/json' \  -d '{  "kid": "string",  "kty": "RSA"}'
Example Response
{  "auto_install": true,  "client_secrets": [    {      "created_at": "string",      "expires_at": "string",      "id": "string",      "label": "string",      "last_used_at": "string",      "object": "string",      "preview": "string",      "status": "active"    }  ],  "created_at": "string",  "description": "string",  "domain_id": "string",  "id": "string",  "instance_id": "string",  "issuer": "string",  "jwks_uri": "string",  "last_used_at": "string",  "logo_url": "string",  "metadata": {    "property1": "string",    "property2": "string"  },  "name": "string",  "object": "string",  "org_access": "all",  "owner_id": "string",  "owner_type": "root",  "public_keys": [    {      "alg": "RS256",      "created_at": "string",      "crv": "P-256",      "e": "string",      "kid": "string",      "kty": "RSA",      "n": "string",      "object": "string",      "use": "string",      "x": "string",      "y": "string"    }  ],  "requested_roles": [    {      "resource_type": "string",      "role": "string",      "version": 0    }  ],  "requested_roles_version": 0,  "sponsors": [    "string"  ],  "status": "active",  "token_ttl": 0,  "updated_at": "string"}

Remove agent public key

DELETE
/agents/{agent_id}/public-keys/{key_id}

Remove one of the agent's inline keys by kid. Assertions signed with it are refused from now on.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

agent_id*string

Agent ID

key_id*string

Key ID

Response Body

OK

application/json
  1. response
auto_install?boolean

AutoInstall installs an instance agent, with its requested org roles, in every organization it is offered to.

client_secrets?array<>

ClientSecrets are the secrets that still authenticate, previews only (GET /agents/{agent_id}/client-secrets, D19). A secret's value is shown once, when it is created.

created_at?string
description?string
domain_id?string
id?string
instance_id?string
issuer?string
jwks_uri?string
last_used_at?string
logo_url?string
metadata?
name?string
object?string
org_access?string

OrgAccess is an instance agent's offer: every organization, or the selected ones (GET /agents/{agent_id}/organizations, D22). Empty for an organization agent.

Value in"all""selected"
owner_id?string

OwnerID is the definer's prefixed id: the instance's inst_ id, or the organization's org_ id.

owner_type?string

OwnerType is the definer's resource-type key (D6, D44): root, or org for an organization.

Value in"root""org"
public_keys?array<>

PublicKeys are the inline keys the agent signs private_key_jwt assertions with; JWKSURI is where they are fetched from instead. At most one is set.

requested_roles?array<>

RequestedRoles are the agent's ceiling everywhere: an installation approves these or fewer, never more. Each carries the version that added it.

requested_roles_version?integer

RequestedRolesVersion grows each time a role is added to requested_roles; installations approved below it have a pending approval.

sponsors?array<string>

Sponsors are the users (usr_) accountable for the agent.

status?string
Value in"active""deactivated"
token_ttl?integer

TokenTTL is its access tokens' lifetime in seconds, 60–3600.

updated_at?string
Example Request
curl -X DELETE 'https://api.us.pontive.com/v1/agents/string/public-keys/string'
Example Response
{  "auto_install": true,  "client_secrets": [    {      "created_at": "string",      "expires_at": "string",      "id": "string",      "label": "string",      "last_used_at": "string",      "object": "string",      "preview": "string",      "status": "active"    }  ],  "created_at": "string",  "description": "string",  "domain_id": "string",  "id": "string",  "instance_id": "string",  "issuer": "string",  "jwks_uri": "string",  "last_used_at": "string",  "logo_url": "string",  "metadata": {    "property1": "string",    "property2": "string"  },  "name": "string",  "object": "string",  "org_access": "all",  "owner_id": "string",  "owner_type": "root",  "public_keys": [    {      "alg": "RS256",      "created_at": "string",      "crv": "P-256",      "e": "string",      "kid": "string",      "kty": "RSA",      "n": "string",      "object": "string",      "use": "string",      "x": "string",      "y": "string"    }  ],  "requested_roles": [    {      "resource_type": "string",      "role": "string",      "version": 0    }  ],  "requested_roles_version": 0,  "sponsors": [    "string"  ],  "status": "active",  "token_ttl": 0,  "updated_at": "string"}

Reactivate agent

POST
/agents/{agent_id}/reactivate

Reactivate a deactivated agent: its installations return to active.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

agent_id*string

Agent ID

Response Body

OK

application/json
  1. response
auto_install?boolean

AutoInstall installs an instance agent, with its requested org roles, in every organization it is offered to.

client_secrets?array<>

ClientSecrets are the secrets that still authenticate, previews only (GET /agents/{agent_id}/client-secrets, D19). A secret's value is shown once, when it is created.

created_at?string
description?string
domain_id?string
id?string
instance_id?string
issuer?string
jwks_uri?string
last_used_at?string
logo_url?string
metadata?
name?string
object?string
org_access?string

OrgAccess is an instance agent's offer: every organization, or the selected ones (GET /agents/{agent_id}/organizations, D22). Empty for an organization agent.

Value in"all""selected"
owner_id?string

OwnerID is the definer's prefixed id: the instance's inst_ id, or the organization's org_ id.

owner_type?string

OwnerType is the definer's resource-type key (D6, D44): root, or org for an organization.

Value in"root""org"
public_keys?array<>

PublicKeys are the inline keys the agent signs private_key_jwt assertions with; JWKSURI is where they are fetched from instead. At most one is set.

requested_roles?array<>

RequestedRoles are the agent's ceiling everywhere: an installation approves these or fewer, never more. Each carries the version that added it.

requested_roles_version?integer

RequestedRolesVersion grows each time a role is added to requested_roles; installations approved below it have a pending approval.

sponsors?array<string>

Sponsors are the users (usr_) accountable for the agent.

status?string
Value in"active""deactivated"
token_ttl?integer

TokenTTL is its access tokens' lifetime in seconds, 60–3600.

updated_at?string
Example Request
curl -X POST 'https://api.us.pontive.com/v1/agents/string/reactivate'
Example Response
{  "auto_install": true,  "client_secrets": [    {      "created_at": "string",      "expires_at": "string",      "id": "string",      "label": "string",      "last_used_at": "string",      "object": "string",      "preview": "string",      "status": "active"    }  ],  "created_at": "string",  "description": "string",  "domain_id": "string",  "id": "string",  "instance_id": "string",  "issuer": "string",  "jwks_uri": "string",  "last_used_at": "string",  "logo_url": "string",  "metadata": {    "property1": "string",    "property2": "string"  },  "name": "string",  "object": "string",  "org_access": "all",  "owner_id": "string",  "owner_type": "root",  "public_keys": [    {      "alg": "RS256",      "created_at": "string",      "crv": "P-256",      "e": "string",      "kid": "string",      "kty": "RSA",      "n": "string",      "object": "string",      "use": "string",      "x": "string",      "y": "string"    }  ],  "requested_roles": [    {      "resource_type": "string",      "role": "string",      "version": 0    }  ],  "requested_roles_version": 0,  "sponsors": [    "string"  ],  "status": "active",  "token_ttl": 0,  "updated_at": "string"}
GET
/organizations/{organization}/agent-installations

The agents installed on the organization and on each of its resources (pontive-spec 20 G2, D21), with their approved roles, pending approvals and status; filterable by agent, resource and status. Needs sys:agent:read on the organization; an organization's owners and admins hold it, and an end user's token with pontive:org:agent:read reaches it for their own organization.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

organization*string

The organization's id, or its slug

Query Parameters

agent_id?string

One agent's installations (agt_)

resource_id?string

The installations on one of the organization's resources (res_)

status?string

active or suspended

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/organizations/string/agent-installations'
Example Response
{  "data": [    {      "agent_id": "string",      "approved_by": {        "id": "string",        "name": "string",        "type": "string"      },      "approved_version": 0,      "created_at": "string",      "delegated_only": true,      "id": "string",      "installed_by": {        "id": "string",        "name": "string",        "type": "string"      },      "instance_id": "string",      "object": "string",      "organization_id": "string",      "pending_roles": [        "string"      ],      "pending_version": 0,      "resource_type": "string",      "roles": [        "string"      ],      "status": "active",      "suspended_at": "string",      "suspended_reasons": [        "string"      ],      "target_id": "string",      "target_type": "root",      "updated_at": "string"    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}
POST
/organizations/{organization}/agent-installations

Install an agent in the organization — on the organization itself, or on the resource resource_id names, which must be the organization's (D21) — with roles approved: any of those it requests for the target's type, or none (sys:agent:install on the organization, or on the root). The roles are also held to what the caller could grant there. With delegated_only true, the roles act only as the agent's side of a delegation: a token the agent exchanged to act for a user is allowed what both hold, while the agent's own token holds none of them.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

organization*string

The organization's id, or its slug

Request Body

Agent and approved roles

application/json
  1. body

Agent and approved roles

agent_id*string
delegated_only?boolean

DelegatedOnly lends the roles only to the agent's side of a delegation: the agent's own token holds none of them here. Default false.

resource_id?string

ResourceID installs on this resource instead of the path's container.

roles?array<string>

Response Body

Created

application/json
  1. response
agent_id?string
approved_by?

CreatedBy is who created the grant, or last replaced it.

approved_version?integer

ApprovedVersion is the requested_roles_version last approved or declined. PendingVersion is the agent's version when it is newer, else 0, and PendingRoles what it asks for here: the pending approval.

created_at?string
delegated_only?boolean

DelegatedOnly lends Roles only to the agent's side of a delegation (pontive-spec 20 C3, agent-intersection scenarios OQ-2): a token the agent exchanged to act for a user is allowed what both hold, while the agent's own token, and a check of the agent alone, ignore them.

id?string
installed_by?

CreatedBy is who created the grant, or last replaced it.

instance_id?string
object?string
organization_id?string

OrganizationID is the target's organization: itself, or the resource's; empty for the root and for a resource in none.

pending_roles?array<string>
pending_version?integer
resource_type?string

ResourceType is the target's type: the roles are of it.

roles?array<string>
status?string
Value in"active""suspended"
suspended_at?string
suspended_reasons?array<string>

SuspendedReasons are why it is suspended: agent_deactivated, organization_suspended, not_offered, admin.

target_id?string

TargetID is the instance id, the org_ id or the res_ id.

target_type?string
Value in"root""org""resource"
updated_at?string
Example Request
curl -X POST 'https://api.us.pontive.com/v1/organizations/string/agent-installations' \  -H 'Content-Type: application/json' \  -d '{  "agent_id": "string"}'
Example Response
{  "agent_id": "string",  "approved_by": {    "id": "string",    "name": "string",    "type": "string"  },  "approved_version": 0,  "created_at": "string",  "delegated_only": true,  "id": "string",  "installed_by": {    "id": "string",    "name": "string",    "type": "string"  },  "instance_id": "string",  "object": "string",  "organization_id": "string",  "pending_roles": [    "string"  ],  "pending_version": 0,  "resource_type": "string",  "roles": [    "string"  ],  "status": "active",  "suspended_at": "string",  "suspended_reasons": [    "string"  ],  "target_id": "string",  "target_type": "root",  "updated_at": "string"}
GET
/organizations/{organization}/agent-installations/{installation_id}

One installation in the organization — on the organization or one of its resources — with its pending approval (D21). 404 for an installation in another organization or in none.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

organization*string

The organization's id, or its slug

installation_id*string

Installation ID (ain_)

Response Body

OK

application/json
  1. response
agent_id?string
approved_by?

CreatedBy is who created the grant, or last replaced it.

approved_version?integer

ApprovedVersion is the requested_roles_version last approved or declined. PendingVersion is the agent's version when it is newer, else 0, and PendingRoles what it asks for here: the pending approval.

created_at?string
delegated_only?boolean

DelegatedOnly lends Roles only to the agent's side of a delegation (pontive-spec 20 C3, agent-intersection scenarios OQ-2): a token the agent exchanged to act for a user is allowed what both hold, while the agent's own token, and a check of the agent alone, ignore them.

id?string
installed_by?

CreatedBy is who created the grant, or last replaced it.

instance_id?string
object?string
organization_id?string

OrganizationID is the target's organization: itself, or the resource's; empty for the root and for a resource in none.

pending_roles?array<string>
pending_version?integer
resource_type?string

ResourceType is the target's type: the roles are of it.

roles?array<string>
status?string
Value in"active""suspended"
suspended_at?string
suspended_reasons?array<string>

SuspendedReasons are why it is suspended: agent_deactivated, organization_suspended, not_offered, admin.

target_id?string

TargetID is the instance id, the org_ id or the res_ id.

target_type?string
Value in"root""org""resource"
updated_at?string
Example Request
curl -X GET 'https://api.us.pontive.com/v1/organizations/string/agent-installations/string'
Example Response
{  "agent_id": "string",  "approved_by": {    "id": "string",    "name": "string",    "type": "string"  },  "approved_version": 0,  "created_at": "string",  "delegated_only": true,  "id": "string",  "installed_by": {    "id": "string",    "name": "string",    "type": "string"  },  "instance_id": "string",  "object": "string",  "organization_id": "string",  "pending_roles": [    "string"  ],  "pending_version": 0,  "resource_type": "string",  "roles": [    "string"  ],  "status": "active",  "suspended_at": "string",  "suspended_reasons": [    "string"  ],  "target_id": "string",  "target_type": "root",  "updated_at": "string"}
PATCH
/organizations/{organization}/agent-installations/{installation_id}

Replace the roles approved for the agent on the organization, within what it requests (sys:agent:install on the organization, or on the root). delegated_only, when present, turns delegation-only on or off.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

organization*string

The organization's id, or its slug

installation_id*string

Installation ID (ain_)

Request Body

Approved roles

application/json
  1. body

Approved roles

delegated_only?boolean

DelegatedOnly, when present, lends the roles only to the agent's side of a delegation (true), or to the agent's own token too (false).

roles?array<string>

Response Body

OK

application/json
  1. response
agent_id?string
approved_by?

CreatedBy is who created the grant, or last replaced it.

approved_version?integer

ApprovedVersion is the requested_roles_version last approved or declined. PendingVersion is the agent's version when it is newer, else 0, and PendingRoles what it asks for here: the pending approval.

created_at?string
delegated_only?boolean

DelegatedOnly lends Roles only to the agent's side of a delegation (pontive-spec 20 C3, agent-intersection scenarios OQ-2): a token the agent exchanged to act for a user is allowed what both hold, while the agent's own token, and a check of the agent alone, ignore them.

id?string
installed_by?

CreatedBy is who created the grant, or last replaced it.

instance_id?string
object?string
organization_id?string

OrganizationID is the target's organization: itself, or the resource's; empty for the root and for a resource in none.

pending_roles?array<string>
pending_version?integer
resource_type?string

ResourceType is the target's type: the roles are of it.

roles?array<string>
status?string
Value in"active""suspended"
suspended_at?string
suspended_reasons?array<string>

SuspendedReasons are why it is suspended: agent_deactivated, organization_suspended, not_offered, admin.

target_id?string

TargetID is the instance id, the org_ id or the res_ id.

target_type?string
Value in"root""org""resource"
updated_at?string
Example Request
curl -X PATCH 'https://api.us.pontive.com/v1/organizations/string/agent-installations/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "agent_id": "string",  "approved_by": {    "id": "string",    "name": "string",    "type": "string"  },  "approved_version": 0,  "created_at": "string",  "delegated_only": true,  "id": "string",  "installed_by": {    "id": "string",    "name": "string",    "type": "string"  },  "instance_id": "string",  "object": "string",  "organization_id": "string",  "pending_roles": [    "string"  ],  "pending_version": 0,  "resource_type": "string",  "roles": [    "string"  ],  "status": "active",  "suspended_at": "string",  "suspended_reasons": [    "string"  ],  "target_id": "string",  "target_type": "root",  "updated_at": "string"}
DELETE
/organizations/{organization}/agent-installations/{installation_id}

Delete the installation. The agent's next token request for the organization is refused; a token already issued lives out its lifetime.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

organization*string

The organization's id, or its slug

installation_id*string

Installation ID (ain_)

Response Body

No Content

Example Request
curl -X DELETE 'https://api.us.pontive.com/v1/organizations/string/agent-installations/string'
Example Response
Empty
POST
/organizations/{organization}/agent-installations/{installation_id}/approve

Approve the agent's requested roles up to version, after the installation's approved_version and at most the agent's; roles are the approved roles from now on — typically what it holds plus pending_roles (sys:agent:install on the organization, or on the root).

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

organization*string

The organization's id, or its slug

installation_id*string

Installation ID (ain_)

Request Body

Version and approved roles

application/json
  1. body

Version and approved roles

roles?array<string>
version*integer

Response Body

OK

application/json
  1. response
agent_id?string
approved_by?

CreatedBy is who created the grant, or last replaced it.

approved_version?integer

ApprovedVersion is the requested_roles_version last approved or declined. PendingVersion is the agent's version when it is newer, else 0, and PendingRoles what it asks for here: the pending approval.

created_at?string
delegated_only?boolean

DelegatedOnly lends Roles only to the agent's side of a delegation (pontive-spec 20 C3, agent-intersection scenarios OQ-2): a token the agent exchanged to act for a user is allowed what both hold, while the agent's own token, and a check of the agent alone, ignore them.

id?string
installed_by?

CreatedBy is who created the grant, or last replaced it.

instance_id?string
object?string
organization_id?string

OrganizationID is the target's organization: itself, or the resource's; empty for the root and for a resource in none.

pending_roles?array<string>
pending_version?integer
resource_type?string

ResourceType is the target's type: the roles are of it.

roles?array<string>
status?string
Value in"active""suspended"
suspended_at?string
suspended_reasons?array<string>

SuspendedReasons are why it is suspended: agent_deactivated, organization_suspended, not_offered, admin.

target_id?string

TargetID is the instance id, the org_ id or the res_ id.

target_type?string
Value in"root""org""resource"
updated_at?string
Example Request
curl -X POST 'https://api.us.pontive.com/v1/organizations/string/agent-installations/string/approve' \  -H 'Content-Type: application/json' \  -d '{  "version": 0}'
Example Response
{  "agent_id": "string",  "approved_by": {    "id": "string",    "name": "string",    "type": "string"  },  "approved_version": 0,  "created_at": "string",  "delegated_only": true,  "id": "string",  "installed_by": {    "id": "string",    "name": "string",    "type": "string"  },  "instance_id": "string",  "object": "string",  "organization_id": "string",  "pending_roles": [    "string"  ],  "pending_version": 0,  "resource_type": "string",  "roles": [    "string"  ],  "status": "active",  "suspended_at": "string",  "suspended_reasons": [    "string"  ],  "target_id": "string",  "target_type": "root",  "updated_at": "string"}
POST
/organizations/{organization}/agent-installations/{installation_id}/decline

Mark version seen without adding its roles; the installation keeps working with the roles it has.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

organization*string

The organization's id, or its slug

installation_id*string

Installation ID (ain_)

Request Body

Version

application/json
  1. body

Version

version*integer

Response Body

OK

application/json
  1. response
agent_id?string
approved_by?

CreatedBy is who created the grant, or last replaced it.

approved_version?integer

ApprovedVersion is the requested_roles_version last approved or declined. PendingVersion is the agent's version when it is newer, else 0, and PendingRoles what it asks for here: the pending approval.

created_at?string
delegated_only?boolean

DelegatedOnly lends Roles only to the agent's side of a delegation (pontive-spec 20 C3, agent-intersection scenarios OQ-2): a token the agent exchanged to act for a user is allowed what both hold, while the agent's own token, and a check of the agent alone, ignore them.

id?string
installed_by?

CreatedBy is who created the grant, or last replaced it.

instance_id?string
object?string
organization_id?string

OrganizationID is the target's organization: itself, or the resource's; empty for the root and for a resource in none.

pending_roles?array<string>
pending_version?integer
resource_type?string

ResourceType is the target's type: the roles are of it.

roles?array<string>
status?string
Value in"active""suspended"
suspended_at?string
suspended_reasons?array<string>

SuspendedReasons are why it is suspended: agent_deactivated, organization_suspended, not_offered, admin.

target_id?string

TargetID is the instance id, the org_ id or the res_ id.

target_type?string
Value in"root""org""resource"
updated_at?string
Example Request
curl -X POST 'https://api.us.pontive.com/v1/organizations/string/agent-installations/string/decline' \  -H 'Content-Type: application/json' \  -d '{  "version": 0}'
Example Response
{  "agent_id": "string",  "approved_by": {    "id": "string",    "name": "string",    "type": "string"  },  "approved_version": 0,  "created_at": "string",  "delegated_only": true,  "id": "string",  "installed_by": {    "id": "string",    "name": "string",    "type": "string"  },  "instance_id": "string",  "object": "string",  "organization_id": "string",  "pending_roles": [    "string"  ],  "pending_version": 0,  "resource_type": "string",  "roles": [    "string"  ],  "status": "active",  "suspended_at": "string",  "suspended_reasons": [    "string"  ],  "target_id": "string",  "target_type": "root",  "updated_at": "string"}
POST
/organizations/{organization}/agent-installations/{installation_id}/resume

Lift an admin's suspension. An installation suspended for another cause (the agent deactivated, the organization suspended or not offered) stays suspended until that ends.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

organization*string

The organization's id, or its slug

installation_id*string

Installation ID (ain_)

Response Body

OK

application/json
  1. response
agent_id?string
approved_by?

CreatedBy is who created the grant, or last replaced it.

approved_version?integer

ApprovedVersion is the requested_roles_version last approved or declined. PendingVersion is the agent's version when it is newer, else 0, and PendingRoles what it asks for here: the pending approval.

created_at?string
delegated_only?boolean

DelegatedOnly lends Roles only to the agent's side of a delegation (pontive-spec 20 C3, agent-intersection scenarios OQ-2): a token the agent exchanged to act for a user is allowed what both hold, while the agent's own token, and a check of the agent alone, ignore them.

id?string
installed_by?

CreatedBy is who created the grant, or last replaced it.

instance_id?string
object?string
organization_id?string

OrganizationID is the target's organization: itself, or the resource's; empty for the root and for a resource in none.

pending_roles?array<string>
pending_version?integer
resource_type?string

ResourceType is the target's type: the roles are of it.

roles?array<string>
status?string
Value in"active""suspended"
suspended_at?string
suspended_reasons?array<string>

SuspendedReasons are why it is suspended: agent_deactivated, organization_suspended, not_offered, admin.

target_id?string

TargetID is the instance id, the org_ id or the res_ id.

target_type?string
Value in"root""org""resource"
updated_at?string
Example Request
curl -X POST 'https://api.us.pontive.com/v1/organizations/string/agent-installations/string/resume'
Example Response
{  "agent_id": "string",  "approved_by": {    "id": "string",    "name": "string",    "type": "string"  },  "approved_version": 0,  "created_at": "string",  "delegated_only": true,  "id": "string",  "installed_by": {    "id": "string",    "name": "string",    "type": "string"  },  "instance_id": "string",  "object": "string",  "organization_id": "string",  "pending_roles": [    "string"  ],  "pending_version": 0,  "resource_type": "string",  "roles": [    "string"  ],  "status": "active",  "suspended_at": "string",  "suspended_reasons": [    "string"  ],  "target_id": "string",  "target_type": "root",  "updated_at": "string"}
POST
/organizations/{organization}/agent-installations/{installation_id}/suspend

Suspend the installation: its roles are withdrawn and the agent's tokens for the organization refused until it is resumed.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

organization*string

The organization's id, or its slug

installation_id*string

Installation ID (ain_)

Response Body

OK

application/json
  1. response
agent_id?string
approved_by?

CreatedBy is who created the grant, or last replaced it.

approved_version?integer

ApprovedVersion is the requested_roles_version last approved or declined. PendingVersion is the agent's version when it is newer, else 0, and PendingRoles what it asks for here: the pending approval.

created_at?string
delegated_only?boolean

DelegatedOnly lends Roles only to the agent's side of a delegation (pontive-spec 20 C3, agent-intersection scenarios OQ-2): a token the agent exchanged to act for a user is allowed what both hold, while the agent's own token, and a check of the agent alone, ignore them.

id?string
installed_by?

CreatedBy is who created the grant, or last replaced it.

instance_id?string
object?string
organization_id?string

OrganizationID is the target's organization: itself, or the resource's; empty for the root and for a resource in none.

pending_roles?array<string>
pending_version?integer
resource_type?string

ResourceType is the target's type: the roles are of it.

roles?array<string>
status?string
Value in"active""suspended"
suspended_at?string
suspended_reasons?array<string>

SuspendedReasons are why it is suspended: agent_deactivated, organization_suspended, not_offered, admin.

target_id?string

TargetID is the instance id, the org_ id or the res_ id.

target_type?string
Value in"root""org""resource"
updated_at?string
Example Request
curl -X POST 'https://api.us.pontive.com/v1/organizations/string/agent-installations/string/suspend'
Example Response
{  "agent_id": "string",  "approved_by": {    "id": "string",    "name": "string",    "type": "string"  },  "approved_version": 0,  "created_at": "string",  "delegated_only": true,  "id": "string",  "installed_by": {    "id": "string",    "name": "string",    "type": "string"  },  "instance_id": "string",  "object": "string",  "organization_id": "string",  "pending_roles": [    "string"  ],  "pending_version": 0,  "resource_type": "string",  "roles": [    "string"  ],  "status": "active",  "suspended_at": "string",  "suspended_reasons": [    "string"  ],  "target_id": "string",  "target_type": "root",  "updated_at": "string"}
GET
/organizations/{organization}/agents

The organization's agents page (pontive-spec 45 §13; api-route-review D43): every agent installed in it, offered to it, or its own, each with its installation there or null. relation narrows it, repeated for any of several: installed (an installation here), offered (an instance agent offered to the organization, installed or not), own (defined by the organization). Organization-scoped tokens with pontive:org:agent:read reach it.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

organization*string

The organization's id, or its slug

Query Parameters

relation?array<string>

installed, offered or own

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/organizations/string/agents'
Example Response
{  "data": [    {      "agent": {        "auto_install": true,        "client_secrets": [          {            "created_at": "string",            "expires_at": "string",            "id": "string",            "label": "string",            "last_used_at": "string",            "object": "string",            "preview": "string",            "status": "active"          }        ],        "created_at": "string",        "description": "string",        "domain_id": "string",        "id": "string",        "instance_id": "string",        "issuer": "string",        "jwks_uri": "string",        "last_used_at": "string",        "logo_url": "string",        "metadata": {          "property1": "string",          "property2": "string"        },        "name": "string",        "object": "string",        "org_access": "all",        "owner_id": "string",        "owner_type": "root",        "public_keys": [          {            "alg": "RS256",            "created_at": "string",            "crv": "P-256",            "e": "string",            "kid": "string",            "kty": "RSA",            "n": "string",            "object": "string",            "use": "string",            "x": "string",            "y": "string"          }        ],        "requested_roles": [          {            "resource_type": "string",            "role": "string",            "version": 0          }        ],        "requested_roles_version": 0,        "sponsors": [          "string"        ],        "status": "active",        "token_ttl": 0,        "updated_at": "string"      },      "installation": {        "agent_id": "string",        "approved_by": {          "id": "string",          "name": "string",          "type": "string"        },        "approved_version": 0,        "created_at": "string",        "delegated_only": true,        "id": "string",        "installed_by": {          "id": "string",          "name": "string",          "type": "string"        },        "instance_id": "string",        "object": "string",        "organization_id": "string",        "pending_roles": [          "string"        ],        "pending_version": 0,        "resource_type": "string",        "roles": [          "string"        ],        "status": "active",        "suspended_at": "string",        "suspended_reasons": [          "string"        ],        "target_id": "string",        "target_type": "root",        "updated_at": "string"      },      "object": "string"    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}
GET
/resources/{resource_id}/agent-installations

The agents installed on the resource, with their approved roles, pending approvals and status; filterable by agent and status (D21).

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

resource_id*string

Resource ID

Query Parameters

agent_id?string

One agent's installations (agt_)

status?string

active or suspended

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/resources/string/agent-installations'
Example Response
{  "data": [    {      "agent_id": "string",      "approved_by": {        "id": "string",        "name": "string",        "type": "string"      },      "approved_version": 0,      "created_at": "string",      "delegated_only": true,      "id": "string",      "installed_by": {        "id": "string",        "name": "string",        "type": "string"      },      "instance_id": "string",      "object": "string",      "organization_id": "string",      "pending_roles": [        "string"      ],      "pending_version": 0,      "resource_type": "string",      "roles": [        "string"      ],      "status": "active",      "suspended_at": "string",      "suspended_reasons": [        "string"      ],      "target_id": "string",      "target_type": "root",      "updated_at": "string"    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}
POST
/resources/{resource_id}/agent-installations

Install an agent on the resource with roles approved: any of those it requests for the resource's type, or none (sys:agent:install on the resource's organization, or on the root for a resource in none — never on the resource itself). The roles are also held to what the caller could grant there. With delegated_only true, the roles act only as the agent's side of a delegation: a token the agent exchanged to act for a user is allowed what both hold, while the agent's own token holds none of them.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

resource_id*string

Resource ID

Request Body

Agent and approved roles

application/json
  1. body

Agent and approved roles

agent_id*string
delegated_only?boolean

DelegatedOnly lends the roles only to the agent's side of a delegation: the agent's own token holds none of them here. Default false.

resource_id?string

ResourceID installs on this resource instead of the path's container.

roles?array<string>

Response Body

Created

application/json
  1. response
agent_id?string
approved_by?

CreatedBy is who created the grant, or last replaced it.

approved_version?integer

ApprovedVersion is the requested_roles_version last approved or declined. PendingVersion is the agent's version when it is newer, else 0, and PendingRoles what it asks for here: the pending approval.

created_at?string
delegated_only?boolean

DelegatedOnly lends Roles only to the agent's side of a delegation (pontive-spec 20 C3, agent-intersection scenarios OQ-2): a token the agent exchanged to act for a user is allowed what both hold, while the agent's own token, and a check of the agent alone, ignore them.

id?string
installed_by?

CreatedBy is who created the grant, or last replaced it.

instance_id?string
object?string
organization_id?string

OrganizationID is the target's organization: itself, or the resource's; empty for the root and for a resource in none.

pending_roles?array<string>
pending_version?integer
resource_type?string

ResourceType is the target's type: the roles are of it.

roles?array<string>
status?string
Value in"active""suspended"
suspended_at?string
suspended_reasons?array<string>

SuspendedReasons are why it is suspended: agent_deactivated, organization_suspended, not_offered, admin.

target_id?string

TargetID is the instance id, the org_ id or the res_ id.

target_type?string
Value in"root""org""resource"
updated_at?string
Example Request
curl -X POST 'https://api.us.pontive.com/v1/resources/string/agent-installations' \  -H 'Content-Type: application/json' \  -d '{  "agent_id": "string"}'
Example Response
{  "agent_id": "string",  "approved_by": {    "id": "string",    "name": "string",    "type": "string"  },  "approved_version": 0,  "created_at": "string",  "delegated_only": true,  "id": "string",  "installed_by": {    "id": "string",    "name": "string",    "type": "string"  },  "instance_id": "string",  "object": "string",  "organization_id": "string",  "pending_roles": [    "string"  ],  "pending_version": 0,  "resource_type": "string",  "roles": [    "string"  ],  "status": "active",  "suspended_at": "string",  "suspended_reasons": [    "string"  ],  "target_id": "string",  "target_type": "root",  "updated_at": "string"}
GET
/resources/{resource_id}/agent-installations/{installation_id}

One installation on the resource, a resource in no organization (D21), with its pending approval. An installation in an organization is under /organizations/{organization}/agent-installations.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

resource_id*string

Resource ID

installation_id*string

Installation ID (ain_)

Response Body

OK

application/json
  1. response
agent_id?string
approved_by?

CreatedBy is who created the grant, or last replaced it.

approved_version?integer

ApprovedVersion is the requested_roles_version last approved or declined. PendingVersion is the agent's version when it is newer, else 0, and PendingRoles what it asks for here: the pending approval.

created_at?string
delegated_only?boolean

DelegatedOnly lends Roles only to the agent's side of a delegation (pontive-spec 20 C3, agent-intersection scenarios OQ-2): a token the agent exchanged to act for a user is allowed what both hold, while the agent's own token, and a check of the agent alone, ignore them.

id?string
installed_by?

CreatedBy is who created the grant, or last replaced it.

instance_id?string
object?string
organization_id?string

OrganizationID is the target's organization: itself, or the resource's; empty for the root and for a resource in none.

pending_roles?array<string>
pending_version?integer
resource_type?string

ResourceType is the target's type: the roles are of it.

roles?array<string>
status?string
Value in"active""suspended"
suspended_at?string
suspended_reasons?array<string>

SuspendedReasons are why it is suspended: agent_deactivated, organization_suspended, not_offered, admin.

target_id?string

TargetID is the instance id, the org_ id or the res_ id.

target_type?string
Value in"root""org""resource"
updated_at?string
Example Request
curl -X GET 'https://api.us.pontive.com/v1/resources/string/agent-installations/string'
Example Response
{  "agent_id": "string",  "approved_by": {    "id": "string",    "name": "string",    "type": "string"  },  "approved_version": 0,  "created_at": "string",  "delegated_only": true,  "id": "string",  "installed_by": {    "id": "string",    "name": "string",    "type": "string"  },  "instance_id": "string",  "object": "string",  "organization_id": "string",  "pending_roles": [    "string"  ],  "pending_version": 0,  "resource_type": "string",  "roles": [    "string"  ],  "status": "active",  "suspended_at": "string",  "suspended_reasons": [    "string"  ],  "target_id": "string",  "target_type": "root",  "updated_at": "string"}
PATCH
/resources/{resource_id}/agent-installations/{installation_id}

Replace the roles approved for the agent on the resource, within what it requests (sys:agent:install on the resource's organization, or on the root for a resource in none — never on the resource itself). delegated_only, when present, turns delegation-only on or off.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

resource_id*string

Resource ID

installation_id*string

Installation ID (ain_)

Request Body

Approved roles

application/json
  1. body

Approved roles

delegated_only?boolean

DelegatedOnly, when present, lends the roles only to the agent's side of a delegation (true), or to the agent's own token too (false).

roles?array<string>

Response Body

OK

application/json
  1. response
agent_id?string
approved_by?

CreatedBy is who created the grant, or last replaced it.

approved_version?integer

ApprovedVersion is the requested_roles_version last approved or declined. PendingVersion is the agent's version when it is newer, else 0, and PendingRoles what it asks for here: the pending approval.

created_at?string
delegated_only?boolean

DelegatedOnly lends Roles only to the agent's side of a delegation (pontive-spec 20 C3, agent-intersection scenarios OQ-2): a token the agent exchanged to act for a user is allowed what both hold, while the agent's own token, and a check of the agent alone, ignore them.

id?string
installed_by?

CreatedBy is who created the grant, or last replaced it.

instance_id?string
object?string
organization_id?string

OrganizationID is the target's organization: itself, or the resource's; empty for the root and for a resource in none.

pending_roles?array<string>
pending_version?integer
resource_type?string

ResourceType is the target's type: the roles are of it.

roles?array<string>
status?string
Value in"active""suspended"
suspended_at?string
suspended_reasons?array<string>

SuspendedReasons are why it is suspended: agent_deactivated, organization_suspended, not_offered, admin.

target_id?string

TargetID is the instance id, the org_ id or the res_ id.

target_type?string
Value in"root""org""resource"
updated_at?string
Example Request
curl -X PATCH 'https://api.us.pontive.com/v1/resources/string/agent-installations/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "agent_id": "string",  "approved_by": {    "id": "string",    "name": "string",    "type": "string"  },  "approved_version": 0,  "created_at": "string",  "delegated_only": true,  "id": "string",  "installed_by": {    "id": "string",    "name": "string",    "type": "string"  },  "instance_id": "string",  "object": "string",  "organization_id": "string",  "pending_roles": [    "string"  ],  "pending_version": 0,  "resource_type": "string",  "roles": [    "string"  ],  "status": "active",  "suspended_at": "string",  "suspended_reasons": [    "string"  ],  "target_id": "string",  "target_type": "root",  "updated_at": "string"}
DELETE
/resources/{resource_id}/agent-installations/{installation_id}

Delete the installation. The agent's next token request for the resource is refused; a token already issued lives out its lifetime.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

resource_id*string

Resource ID

installation_id*string

Installation ID (ain_)

Response Body

No Content

Example Request
curl -X DELETE 'https://api.us.pontive.com/v1/resources/string/agent-installations/string'
Example Response
Empty
POST
/resources/{resource_id}/agent-installations/{installation_id}/approve

Approve the agent's requested roles up to version, after the installation's approved_version and at most the agent's; roles are the approved roles from now on — typically what it holds plus pending_roles (sys:agent:install on the resource's organization, or on the root for a resource in none — never on the resource itself).

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

resource_id*string

Resource ID

installation_id*string

Installation ID (ain_)

Request Body

Version and approved roles

application/json
  1. body

Version and approved roles

roles?array<string>
version*integer

Response Body

OK

application/json
  1. response
agent_id?string
approved_by?

CreatedBy is who created the grant, or last replaced it.

approved_version?integer

ApprovedVersion is the requested_roles_version last approved or declined. PendingVersion is the agent's version when it is newer, else 0, and PendingRoles what it asks for here: the pending approval.

created_at?string
delegated_only?boolean

DelegatedOnly lends Roles only to the agent's side of a delegation (pontive-spec 20 C3, agent-intersection scenarios OQ-2): a token the agent exchanged to act for a user is allowed what both hold, while the agent's own token, and a check of the agent alone, ignore them.

id?string
installed_by?

CreatedBy is who created the grant, or last replaced it.

instance_id?string
object?string
organization_id?string

OrganizationID is the target's organization: itself, or the resource's; empty for the root and for a resource in none.

pending_roles?array<string>
pending_version?integer
resource_type?string

ResourceType is the target's type: the roles are of it.

roles?array<string>
status?string
Value in"active""suspended"
suspended_at?string
suspended_reasons?array<string>

SuspendedReasons are why it is suspended: agent_deactivated, organization_suspended, not_offered, admin.

target_id?string

TargetID is the instance id, the org_ id or the res_ id.

target_type?string
Value in"root""org""resource"
updated_at?string
Example Request
curl -X POST 'https://api.us.pontive.com/v1/resources/string/agent-installations/string/approve' \  -H 'Content-Type: application/json' \  -d '{  "version": 0}'
Example Response
{  "agent_id": "string",  "approved_by": {    "id": "string",    "name": "string",    "type": "string"  },  "approved_version": 0,  "created_at": "string",  "delegated_only": true,  "id": "string",  "installed_by": {    "id": "string",    "name": "string",    "type": "string"  },  "instance_id": "string",  "object": "string",  "organization_id": "string",  "pending_roles": [    "string"  ],  "pending_version": 0,  "resource_type": "string",  "roles": [    "string"  ],  "status": "active",  "suspended_at": "string",  "suspended_reasons": [    "string"  ],  "target_id": "string",  "target_type": "root",  "updated_at": "string"}
POST
/resources/{resource_id}/agent-installations/{installation_id}/decline

Mark version seen without adding its roles; the installation keeps working with the roles it has.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

resource_id*string

Resource ID

installation_id*string

Installation ID (ain_)

Request Body

Version

application/json
  1. body

Version

version*integer

Response Body

OK

application/json
  1. response
agent_id?string
approved_by?

CreatedBy is who created the grant, or last replaced it.

approved_version?integer

ApprovedVersion is the requested_roles_version last approved or declined. PendingVersion is the agent's version when it is newer, else 0, and PendingRoles what it asks for here: the pending approval.

created_at?string
delegated_only?boolean

DelegatedOnly lends Roles only to the agent's side of a delegation (pontive-spec 20 C3, agent-intersection scenarios OQ-2): a token the agent exchanged to act for a user is allowed what both hold, while the agent's own token, and a check of the agent alone, ignore them.

id?string
installed_by?

CreatedBy is who created the grant, or last replaced it.

instance_id?string
object?string
organization_id?string

OrganizationID is the target's organization: itself, or the resource's; empty for the root and for a resource in none.

pending_roles?array<string>
pending_version?integer
resource_type?string

ResourceType is the target's type: the roles are of it.

roles?array<string>
status?string
Value in"active""suspended"
suspended_at?string
suspended_reasons?array<string>

SuspendedReasons are why it is suspended: agent_deactivated, organization_suspended, not_offered, admin.

target_id?string

TargetID is the instance id, the org_ id or the res_ id.

target_type?string
Value in"root""org""resource"
updated_at?string
Example Request
curl -X POST 'https://api.us.pontive.com/v1/resources/string/agent-installations/string/decline' \  -H 'Content-Type: application/json' \  -d '{  "version": 0}'
Example Response
{  "agent_id": "string",  "approved_by": {    "id": "string",    "name": "string",    "type": "string"  },  "approved_version": 0,  "created_at": "string",  "delegated_only": true,  "id": "string",  "installed_by": {    "id": "string",    "name": "string",    "type": "string"  },  "instance_id": "string",  "object": "string",  "organization_id": "string",  "pending_roles": [    "string"  ],  "pending_version": 0,  "resource_type": "string",  "roles": [    "string"  ],  "status": "active",  "suspended_at": "string",  "suspended_reasons": [    "string"  ],  "target_id": "string",  "target_type": "root",  "updated_at": "string"}
POST
/resources/{resource_id}/agent-installations/{installation_id}/resume

Lift an admin's suspension. An installation suspended for another cause (the agent deactivated, the organization suspended or not offered) stays suspended until that ends.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

resource_id*string

Resource ID

installation_id*string

Installation ID (ain_)

Response Body

OK

application/json
  1. response
agent_id?string
approved_by?

CreatedBy is who created the grant, or last replaced it.

approved_version?integer

ApprovedVersion is the requested_roles_version last approved or declined. PendingVersion is the agent's version when it is newer, else 0, and PendingRoles what it asks for here: the pending approval.

created_at?string
delegated_only?boolean

DelegatedOnly lends Roles only to the agent's side of a delegation (pontive-spec 20 C3, agent-intersection scenarios OQ-2): a token the agent exchanged to act for a user is allowed what both hold, while the agent's own token, and a check of the agent alone, ignore them.

id?string
installed_by?

CreatedBy is who created the grant, or last replaced it.

instance_id?string
object?string
organization_id?string

OrganizationID is the target's organization: itself, or the resource's; empty for the root and for a resource in none.

pending_roles?array<string>
pending_version?integer
resource_type?string

ResourceType is the target's type: the roles are of it.

roles?array<string>
status?string
Value in"active""suspended"
suspended_at?string
suspended_reasons?array<string>

SuspendedReasons are why it is suspended: agent_deactivated, organization_suspended, not_offered, admin.

target_id?string

TargetID is the instance id, the org_ id or the res_ id.

target_type?string
Value in"root""org""resource"
updated_at?string
Example Request
curl -X POST 'https://api.us.pontive.com/v1/resources/string/agent-installations/string/resume'
Example Response
{  "agent_id": "string",  "approved_by": {    "id": "string",    "name": "string",    "type": "string"  },  "approved_version": 0,  "created_at": "string",  "delegated_only": true,  "id": "string",  "installed_by": {    "id": "string",    "name": "string",    "type": "string"  },  "instance_id": "string",  "object": "string",  "organization_id": "string",  "pending_roles": [    "string"  ],  "pending_version": 0,  "resource_type": "string",  "roles": [    "string"  ],  "status": "active",  "suspended_at": "string",  "suspended_reasons": [    "string"  ],  "target_id": "string",  "target_type": "root",  "updated_at": "string"}
POST
/resources/{resource_id}/agent-installations/{installation_id}/suspend

Suspend the installation: its roles are withdrawn and the agent's tokens for the resource refused until it is resumed.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

resource_id*string

Resource ID

installation_id*string

Installation ID (ain_)

Response Body

OK

application/json
  1. response
agent_id?string
approved_by?

CreatedBy is who created the grant, or last replaced it.

approved_version?integer

ApprovedVersion is the requested_roles_version last approved or declined. PendingVersion is the agent's version when it is newer, else 0, and PendingRoles what it asks for here: the pending approval.

created_at?string
delegated_only?boolean

DelegatedOnly lends Roles only to the agent's side of a delegation (pontive-spec 20 C3, agent-intersection scenarios OQ-2): a token the agent exchanged to act for a user is allowed what both hold, while the agent's own token, and a check of the agent alone, ignore them.

id?string
installed_by?

CreatedBy is who created the grant, or last replaced it.

instance_id?string
object?string
organization_id?string

OrganizationID is the target's organization: itself, or the resource's; empty for the root and for a resource in none.

pending_roles?array<string>
pending_version?integer
resource_type?string

ResourceType is the target's type: the roles are of it.

roles?array<string>
status?string
Value in"active""suspended"
suspended_at?string
suspended_reasons?array<string>

SuspendedReasons are why it is suspended: agent_deactivated, organization_suspended, not_offered, admin.

target_id?string

TargetID is the instance id, the org_ id or the res_ id.

target_type?string
Value in"root""org""resource"
updated_at?string
Example Request
curl -X POST 'https://api.us.pontive.com/v1/resources/string/agent-installations/string/suspend'
Example Response
{  "agent_id": "string",  "approved_by": {    "id": "string",    "name": "string",    "type": "string"  },  "approved_version": 0,  "created_at": "string",  "delegated_only": true,  "id": "string",  "installed_by": {    "id": "string",    "name": "string",    "type": "string"  },  "instance_id": "string",  "object": "string",  "organization_id": "string",  "pending_roles": [    "string"  ],  "pending_version": 0,  "resource_type": "string",  "roles": [    "string"  ],  "status": "active",  "suspended_at": "string",  "suspended_reasons": [    "string"  ],  "target_id": "string",  "target_type": "root",  "updated_at": "string"}
GET
/root/agent-installations

The installations in no organization (D21): on the instance root and on resources in none, with their approved roles, pending approvals and status; filterable by agent, resource and status.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Query Parameters

agent_id?string

One agent's installations (agt_)

resource_id?string

The installations on one resource in no organization (res_)

status?string

active or suspended

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/root/agent-installations'
Example Response
{  "data": [    {      "agent_id": "string",      "approved_by": {        "id": "string",        "name": "string",        "type": "string"      },      "approved_version": 0,      "created_at": "string",      "delegated_only": true,      "id": "string",      "installed_by": {        "id": "string",        "name": "string",        "type": "string"      },      "instance_id": "string",      "object": "string",      "organization_id": "string",      "pending_roles": [        "string"      ],      "pending_version": 0,      "resource_type": "string",      "roles": [        "string"      ],      "status": "active",      "suspended_at": "string",      "suspended_reasons": [        "string"      ],      "target_id": "string",      "target_type": "root",      "updated_at": "string"    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}
POST
/root/agent-installations

Install an agent in no organization — on the instance root, or on the resource resource_id names, a resource in none (D21) — with roles approved: any of those it requests for the target's type, or none (sys:agent:install on the root). The roles are also held to what the caller could grant there. With delegated_only true, the roles act only as the agent's side of a delegation: a token the agent exchanged to act for a user is allowed what both hold, while the agent's own token holds none of them.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Request Body

Agent and approved roles

application/json
  1. body

Agent and approved roles

agent_id*string
delegated_only?boolean

DelegatedOnly lends the roles only to the agent's side of a delegation: the agent's own token holds none of them here. Default false.

resource_id?string

ResourceID installs on this resource instead of the path's container.

roles?array<string>

Response Body

Created

application/json
  1. response
agent_id?string
approved_by?

CreatedBy is who created the grant, or last replaced it.

approved_version?integer

ApprovedVersion is the requested_roles_version last approved or declined. PendingVersion is the agent's version when it is newer, else 0, and PendingRoles what it asks for here: the pending approval.

created_at?string
delegated_only?boolean

DelegatedOnly lends Roles only to the agent's side of a delegation (pontive-spec 20 C3, agent-intersection scenarios OQ-2): a token the agent exchanged to act for a user is allowed what both hold, while the agent's own token, and a check of the agent alone, ignore them.

id?string
installed_by?

CreatedBy is who created the grant, or last replaced it.

instance_id?string
object?string
organization_id?string

OrganizationID is the target's organization: itself, or the resource's; empty for the root and for a resource in none.

pending_roles?array<string>
pending_version?integer
resource_type?string

ResourceType is the target's type: the roles are of it.

roles?array<string>
status?string
Value in"active""suspended"
suspended_at?string
suspended_reasons?array<string>

SuspendedReasons are why it is suspended: agent_deactivated, organization_suspended, not_offered, admin.

target_id?string

TargetID is the instance id, the org_ id or the res_ id.

target_type?string
Value in"root""org""resource"
updated_at?string
Example Request
curl -X POST 'https://api.us.pontive.com/v1/root/agent-installations' \  -H 'Content-Type: application/json' \  -d '{  "agent_id": "string"}'
Example Response
{  "agent_id": "string",  "approved_by": {    "id": "string",    "name": "string",    "type": "string"  },  "approved_version": 0,  "created_at": "string",  "delegated_only": true,  "id": "string",  "installed_by": {    "id": "string",    "name": "string",    "type": "string"  },  "instance_id": "string",  "object": "string",  "organization_id": "string",  "pending_roles": [    "string"  ],  "pending_version": 0,  "resource_type": "string",  "roles": [    "string"  ],  "status": "active",  "suspended_at": "string",  "suspended_reasons": [    "string"  ],  "target_id": "string",  "target_type": "root",  "updated_at": "string"}
GET
/root/agent-installations/{installation_id}

One installation in no organization — on the instance root or on a resource in none (D21) — with its pending approval.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

installation_id*string

Installation ID (ain_)

Response Body

OK

application/json
  1. response
agent_id?string
approved_by?

CreatedBy is who created the grant, or last replaced it.

approved_version?integer

ApprovedVersion is the requested_roles_version last approved or declined. PendingVersion is the agent's version when it is newer, else 0, and PendingRoles what it asks for here: the pending approval.

created_at?string
delegated_only?boolean

DelegatedOnly lends Roles only to the agent's side of a delegation (pontive-spec 20 C3, agent-intersection scenarios OQ-2): a token the agent exchanged to act for a user is allowed what both hold, while the agent's own token, and a check of the agent alone, ignore them.

id?string
installed_by?

CreatedBy is who created the grant, or last replaced it.

instance_id?string
object?string
organization_id?string

OrganizationID is the target's organization: itself, or the resource's; empty for the root and for a resource in none.

pending_roles?array<string>
pending_version?integer
resource_type?string

ResourceType is the target's type: the roles are of it.

roles?array<string>
status?string
Value in"active""suspended"
suspended_at?string
suspended_reasons?array<string>

SuspendedReasons are why it is suspended: agent_deactivated, organization_suspended, not_offered, admin.

target_id?string

TargetID is the instance id, the org_ id or the res_ id.

target_type?string
Value in"root""org""resource"
updated_at?string
Example Request
curl -X GET 'https://api.us.pontive.com/v1/root/agent-installations/string'
Example Response
{  "agent_id": "string",  "approved_by": {    "id": "string",    "name": "string",    "type": "string"  },  "approved_version": 0,  "created_at": "string",  "delegated_only": true,  "id": "string",  "installed_by": {    "id": "string",    "name": "string",    "type": "string"  },  "instance_id": "string",  "object": "string",  "organization_id": "string",  "pending_roles": [    "string"  ],  "pending_version": 0,  "resource_type": "string",  "roles": [    "string"  ],  "status": "active",  "suspended_at": "string",  "suspended_reasons": [    "string"  ],  "target_id": "string",  "target_type": "root",  "updated_at": "string"}
PATCH
/root/agent-installations/{installation_id}

Replace the roles approved for the agent on the instance root, within what it requests (sys:agent:install on the root). delegated_only, when present, turns delegation-only on or off.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

installation_id*string

Installation ID (ain_)

Request Body

Approved roles

application/json
  1. body

Approved roles

delegated_only?boolean

DelegatedOnly, when present, lends the roles only to the agent's side of a delegation (true), or to the agent's own token too (false).

roles?array<string>

Response Body

OK

application/json
  1. response
agent_id?string
approved_by?

CreatedBy is who created the grant, or last replaced it.

approved_version?integer

ApprovedVersion is the requested_roles_version last approved or declined. PendingVersion is the agent's version when it is newer, else 0, and PendingRoles what it asks for here: the pending approval.

created_at?string
delegated_only?boolean

DelegatedOnly lends Roles only to the agent's side of a delegation (pontive-spec 20 C3, agent-intersection scenarios OQ-2): a token the agent exchanged to act for a user is allowed what both hold, while the agent's own token, and a check of the agent alone, ignore them.

id?string
installed_by?

CreatedBy is who created the grant, or last replaced it.

instance_id?string
object?string
organization_id?string

OrganizationID is the target's organization: itself, or the resource's; empty for the root and for a resource in none.

pending_roles?array<string>
pending_version?integer
resource_type?string

ResourceType is the target's type: the roles are of it.

roles?array<string>
status?string
Value in"active""suspended"
suspended_at?string
suspended_reasons?array<string>

SuspendedReasons are why it is suspended: agent_deactivated, organization_suspended, not_offered, admin.

target_id?string

TargetID is the instance id, the org_ id or the res_ id.

target_type?string
Value in"root""org""resource"
updated_at?string
Example Request
curl -X PATCH 'https://api.us.pontive.com/v1/root/agent-installations/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "agent_id": "string",  "approved_by": {    "id": "string",    "name": "string",    "type": "string"  },  "approved_version": 0,  "created_at": "string",  "delegated_only": true,  "id": "string",  "installed_by": {    "id": "string",    "name": "string",    "type": "string"  },  "instance_id": "string",  "object": "string",  "organization_id": "string",  "pending_roles": [    "string"  ],  "pending_version": 0,  "resource_type": "string",  "roles": [    "string"  ],  "status": "active",  "suspended_at": "string",  "suspended_reasons": [    "string"  ],  "target_id": "string",  "target_type": "root",  "updated_at": "string"}
DELETE
/root/agent-installations/{installation_id}

Delete the installation. The agent's next token request for the instance root is refused; a token already issued lives out its lifetime.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

installation_id*string

Installation ID (ain_)

Response Body

No Content

Example Request
curl -X DELETE 'https://api.us.pontive.com/v1/root/agent-installations/string'
Example Response
Empty
POST
/root/agent-installations/{installation_id}/approve

Approve the agent's requested roles up to version, after the installation's approved_version and at most the agent's; roles are the approved roles from now on — typically what it holds plus pending_roles (sys:agent:install on the root).

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

installation_id*string

Installation ID (ain_)

Request Body

Version and approved roles

application/json
  1. body

Version and approved roles

roles?array<string>
version*integer

Response Body

OK

application/json
  1. response
agent_id?string
approved_by?

CreatedBy is who created the grant, or last replaced it.

approved_version?integer

ApprovedVersion is the requested_roles_version last approved or declined. PendingVersion is the agent's version when it is newer, else 0, and PendingRoles what it asks for here: the pending approval.

created_at?string
delegated_only?boolean

DelegatedOnly lends Roles only to the agent's side of a delegation (pontive-spec 20 C3, agent-intersection scenarios OQ-2): a token the agent exchanged to act for a user is allowed what both hold, while the agent's own token, and a check of the agent alone, ignore them.

id?string
installed_by?

CreatedBy is who created the grant, or last replaced it.

instance_id?string
object?string
organization_id?string

OrganizationID is the target's organization: itself, or the resource's; empty for the root and for a resource in none.

pending_roles?array<string>
pending_version?integer
resource_type?string

ResourceType is the target's type: the roles are of it.

roles?array<string>
status?string
Value in"active""suspended"
suspended_at?string
suspended_reasons?array<string>

SuspendedReasons are why it is suspended: agent_deactivated, organization_suspended, not_offered, admin.

target_id?string

TargetID is the instance id, the org_ id or the res_ id.

target_type?string
Value in"root""org""resource"
updated_at?string
Example Request
curl -X POST 'https://api.us.pontive.com/v1/root/agent-installations/string/approve' \  -H 'Content-Type: application/json' \  -d '{  "version": 0}'
Example Response
{  "agent_id": "string",  "approved_by": {    "id": "string",    "name": "string",    "type": "string"  },  "approved_version": 0,  "created_at": "string",  "delegated_only": true,  "id": "string",  "installed_by": {    "id": "string",    "name": "string",    "type": "string"  },  "instance_id": "string",  "object": "string",  "organization_id": "string",  "pending_roles": [    "string"  ],  "pending_version": 0,  "resource_type": "string",  "roles": [    "string"  ],  "status": "active",  "suspended_at": "string",  "suspended_reasons": [    "string"  ],  "target_id": "string",  "target_type": "root",  "updated_at": "string"}
POST
/root/agent-installations/{installation_id}/decline

Mark version seen without adding its roles; the installation keeps working with the roles it has.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

installation_id*string

Installation ID (ain_)

Request Body

Version

application/json
  1. body

Version

version*integer

Response Body

OK

application/json
  1. response
agent_id?string
approved_by?

CreatedBy is who created the grant, or last replaced it.

approved_version?integer

ApprovedVersion is the requested_roles_version last approved or declined. PendingVersion is the agent's version when it is newer, else 0, and PendingRoles what it asks for here: the pending approval.

created_at?string
delegated_only?boolean

DelegatedOnly lends Roles only to the agent's side of a delegation (pontive-spec 20 C3, agent-intersection scenarios OQ-2): a token the agent exchanged to act for a user is allowed what both hold, while the agent's own token, and a check of the agent alone, ignore them.

id?string
installed_by?

CreatedBy is who created the grant, or last replaced it.

instance_id?string
object?string
organization_id?string

OrganizationID is the target's organization: itself, or the resource's; empty for the root and for a resource in none.

pending_roles?array<string>
pending_version?integer
resource_type?string

ResourceType is the target's type: the roles are of it.

roles?array<string>
status?string
Value in"active""suspended"
suspended_at?string
suspended_reasons?array<string>

SuspendedReasons are why it is suspended: agent_deactivated, organization_suspended, not_offered, admin.

target_id?string

TargetID is the instance id, the org_ id or the res_ id.

target_type?string
Value in"root""org""resource"
updated_at?string
Example Request
curl -X POST 'https://api.us.pontive.com/v1/root/agent-installations/string/decline' \  -H 'Content-Type: application/json' \  -d '{  "version": 0}'
Example Response
{  "agent_id": "string",  "approved_by": {    "id": "string",    "name": "string",    "type": "string"  },  "approved_version": 0,  "created_at": "string",  "delegated_only": true,  "id": "string",  "installed_by": {    "id": "string",    "name": "string",    "type": "string"  },  "instance_id": "string",  "object": "string",  "organization_id": "string",  "pending_roles": [    "string"  ],  "pending_version": 0,  "resource_type": "string",  "roles": [    "string"  ],  "status": "active",  "suspended_at": "string",  "suspended_reasons": [    "string"  ],  "target_id": "string",  "target_type": "root",  "updated_at": "string"}
POST
/root/agent-installations/{installation_id}/resume

Lift an admin's suspension. An installation suspended for another cause (the agent deactivated, the organization suspended or not offered) stays suspended until that ends.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

installation_id*string

Installation ID (ain_)

Response Body

OK

application/json
  1. response
agent_id?string
approved_by?

CreatedBy is who created the grant, or last replaced it.

approved_version?integer

ApprovedVersion is the requested_roles_version last approved or declined. PendingVersion is the agent's version when it is newer, else 0, and PendingRoles what it asks for here: the pending approval.

created_at?string
delegated_only?boolean

DelegatedOnly lends Roles only to the agent's side of a delegation (pontive-spec 20 C3, agent-intersection scenarios OQ-2): a token the agent exchanged to act for a user is allowed what both hold, while the agent's own token, and a check of the agent alone, ignore them.

id?string
installed_by?

CreatedBy is who created the grant, or last replaced it.

instance_id?string
object?string
organization_id?string

OrganizationID is the target's organization: itself, or the resource's; empty for the root and for a resource in none.

pending_roles?array<string>
pending_version?integer
resource_type?string

ResourceType is the target's type: the roles are of it.

roles?array<string>
status?string
Value in"active""suspended"
suspended_at?string
suspended_reasons?array<string>

SuspendedReasons are why it is suspended: agent_deactivated, organization_suspended, not_offered, admin.

target_id?string

TargetID is the instance id, the org_ id or the res_ id.

target_type?string
Value in"root""org""resource"
updated_at?string
Example Request
curl -X POST 'https://api.us.pontive.com/v1/root/agent-installations/string/resume'
Example Response
{  "agent_id": "string",  "approved_by": {    "id": "string",    "name": "string",    "type": "string"  },  "approved_version": 0,  "created_at": "string",  "delegated_only": true,  "id": "string",  "installed_by": {    "id": "string",    "name": "string",    "type": "string"  },  "instance_id": "string",  "object": "string",  "organization_id": "string",  "pending_roles": [    "string"  ],  "pending_version": 0,  "resource_type": "string",  "roles": [    "string"  ],  "status": "active",  "suspended_at": "string",  "suspended_reasons": [    "string"  ],  "target_id": "string",  "target_type": "root",  "updated_at": "string"}
POST
/root/agent-installations/{installation_id}/suspend

Suspend the installation: its roles are withdrawn and the agent's tokens for the instance root refused until it is resumed.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

installation_id*string

Installation ID (ain_)

Response Body

OK

application/json
  1. response
agent_id?string
approved_by?

CreatedBy is who created the grant, or last replaced it.

approved_version?integer

ApprovedVersion is the requested_roles_version last approved or declined. PendingVersion is the agent's version when it is newer, else 0, and PendingRoles what it asks for here: the pending approval.

created_at?string
delegated_only?boolean

DelegatedOnly lends Roles only to the agent's side of a delegation (pontive-spec 20 C3, agent-intersection scenarios OQ-2): a token the agent exchanged to act for a user is allowed what both hold, while the agent's own token, and a check of the agent alone, ignore them.

id?string
installed_by?

CreatedBy is who created the grant, or last replaced it.

instance_id?string
object?string
organization_id?string

OrganizationID is the target's organization: itself, or the resource's; empty for the root and for a resource in none.

pending_roles?array<string>
pending_version?integer
resource_type?string

ResourceType is the target's type: the roles are of it.

roles?array<string>
status?string
Value in"active""suspended"
suspended_at?string
suspended_reasons?array<string>

SuspendedReasons are why it is suspended: agent_deactivated, organization_suspended, not_offered, admin.

target_id?string

TargetID is the instance id, the org_ id or the res_ id.

target_type?string
Value in"root""org""resource"
updated_at?string
Example Request
curl -X POST 'https://api.us.pontive.com/v1/root/agent-installations/string/suspend'
Example Response
{  "agent_id": "string",  "approved_by": {    "id": "string",    "name": "string",    "type": "string"  },  "approved_version": 0,  "created_at": "string",  "delegated_only": true,  "id": "string",  "installed_by": {    "id": "string",    "name": "string",    "type": "string"  },  "instance_id": "string",  "object": "string",  "organization_id": "string",  "pending_roles": [    "string"  ],  "pending_version": 0,  "resource_type": "string",  "roles": [    "string"  ],  "status": "active",  "suspended_at": "string",  "suspended_reasons": [    "string"  ],  "target_id": "string",  "target_type": "root",  "updated_at": "string"}