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.
x-pontive-instance-id<token>Instance ID for the request
owner_type?stringroot or org
owner_id?stringThe agents one definer defined: an org_ id, or the inst_ id
sponsor?stringThe agents this user (usr_) sponsors
no_sponsor?booleanThe agents with no sponsor
status?stringactive or deactivated
search?stringSearch by name
page?integerPage number
limit?integerItems per page
sort?stringcreated_at, updated_at, name or status; prefix - for descending
OK
application/json- response
data?array<>object?stringpagination?Pagination is the page answered (api-route-review D9).
curl -X GET 'https://api.us.pontive.com/v1/agents'{ "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 }}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.
x-pontive-instance-id<token>Instance ID for the request
Agent definition
application/json- body
Agent definition
auto_install?booleandescription?stringdomain_id?stringDomainID is the auth domain its tokens are issued by; omitted is the instance's default.
logo_url?stringmetadata?name*stringorg_access?stringOrgAccess is an instance agent's offer: all (the default) or selected, with no organization listed yet (POST /agents/{agent_id}/organizations).
"all""selected"owner_id?stringOwnerID is the definer: the organization's org_ id for org; the instance's inst_ id, or omitted, for root.
owner_type*stringOwnerType is the definer's resource-type key (D6, D44): root, or org.
"root""org"requested_roles?array<>sponsors?array<string>Sponsors are usr_ ids, each holding sys:agent:read on the definer.
token_ttl?integerTokenTTL is in seconds, 60–3600; omitted is 900.
Created
application/json- response
auto_install?booleanAutoInstall 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?stringdescription?stringdomain_id?stringid?stringinstance_id?stringissuer?stringjwks_uri?stringlast_used_at?stringlogo_url?stringmetadata?name?stringobject?stringorg_access?stringOrgAccess is an instance agent's offer: every organization, or the selected ones (GET /agents/{agent_id}/organizations, D22). Empty for an organization agent.
"all""selected"owner_id?stringOwnerID is the definer's prefixed id: the instance's inst_ id, or the organization's org_ id.
owner_type?stringOwnerType is the definer's resource-type key (D6, D44): root, or org for an organization.
"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?integerRequestedRolesVersion 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"active""deactivated"token_ttl?integerTokenTTL is its access tokens' lifetime in seconds, 60–3600.
updated_at?stringcurl -X POST 'https://api.us.pontive.com/v1/agents' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "owner_type": "root"}'{ "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 an agent: its definition, requested roles, offer, secrets (previews), keys and sponsors.
x-pontive-instance-id<token>Instance ID for the request
agent_id*stringAgent ID
OK
application/json- response
auto_install?booleanAutoInstall 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?stringdescription?stringdomain_id?stringid?stringinstance_id?stringissuer?stringjwks_uri?stringlast_used_at?stringlogo_url?stringmetadata?name?stringobject?stringorg_access?stringOrgAccess is an instance agent's offer: every organization, or the selected ones (GET /agents/{agent_id}/organizations, D22). Empty for an organization agent.
"all""selected"owner_id?stringOwnerID is the definer's prefixed id: the instance's inst_ id, or the organization's org_ id.
owner_type?stringOwnerType is the definer's resource-type key (D6, D44): root, or org for an organization.
"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?integerRequestedRolesVersion 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"active""deactivated"token_ttl?integerTokenTTL is its access tokens' lifetime in seconds, 60–3600.
updated_at?stringcurl -X GET 'https://api.us.pontive.com/v1/agents/string'{ "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"}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.
x-pontive-instance-id<token>Instance ID for the request
agent_id*stringAgent ID
Fields to change
application/json- body
Fields to change
auto_install?booleandescription?stringjwks_uri?stringJWKSURI is where the agent's keys are fetched from (D20); null clears it. Refused while inline public keys exist.
logo_url?stringmetadata?Metadata, when sent, replaces the metadata; {} clears it.
name?stringorg_access?stringOrgAccess is an instance agent's offer: all or selected.
"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?integerOK
application/json- response
auto_install?booleanAutoInstall 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?stringdescription?stringdomain_id?stringid?stringinstance_id?stringissuer?stringjwks_uri?stringlast_used_at?stringlogo_url?stringmetadata?name?stringobject?stringorg_access?stringOrgAccess is an instance agent's offer: every organization, or the selected ones (GET /agents/{agent_id}/organizations, D22). Empty for an organization agent.
"all""selected"owner_id?stringOwnerID is the definer's prefixed id: the instance's inst_ id, or the organization's org_ id.
owner_type?stringOwnerType is the definer's resource-type key (D6, D44): root, or org for an organization.
"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?integerRequestedRolesVersion 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"active""deactivated"token_ttl?integerTokenTTL is its access tokens' lifetime in seconds, 60–3600.
updated_at?stringcurl -X PATCH 'https://api.us.pontive.com/v1/agents/string' \ -H 'Content-Type: application/json' \ -d '{}'{ "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 the agent with its installations, offer, sponsors and client grants. Tokens already issued live out their lifetime.
x-pontive-instance-id<token>Instance ID for the request
agent_id*stringAgent ID
No Content
curl -X DELETE 'https://api.us.pontive.com/v1/agents/string'The agent's client secrets that still authenticate (D19), newest first: preview, label, status, created and expiry, never the value.
x-pontive-instance-id<token>Instance ID for the request
agent_id*stringAgent ID
page?integerPage number
limit?integerItems per page
OK
application/json- response
data?array<>object?stringpagination?Pagination is the page answered (api-route-review D9).
curl -X GET 'https://api.us.pontive.com/v1/agents/string/client-secrets'{ "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 }}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.
x-pontive-instance-id<token>Instance ID for the request
agent_id*stringAgent ID
Label and the others' expiry
application/json- body
Label and the others' expiry
expire_others_in?integerlabel?stringCreated
application/json- response
created_at?stringexpires_at?stringid?stringlabel?stringlast_used_at?stringobject?stringpreview?stringsecret?stringstatus?string"active""rotating"curl -X POST 'https://api.us.pontive.com/v1/agents/string/client-secrets' \ -H 'Content-Type: application/json' \ -d '{}'{ "created_at": "string", "expires_at": "string", "id": "string", "label": "string", "last_used_at": "string", "object": "string", "preview": "string", "secret": "string", "status": "active"}Remove one of the agent's client secrets (D8, D19); it stops working at once.
x-pontive-instance-id<token>Instance ID for the request
agent_id*stringAgent ID
secret_id*stringClient secret ID
No Content
curl -X DELETE 'https://api.us.pontive.com/v1/agents/string/client-secrets/string'Deactivate an agent: every installation is suspended and its token requests are refused (invalid_client). Its credentials are kept.
x-pontive-instance-id<token>Instance ID for the request
agent_id*stringAgent ID
OK
application/json- response
auto_install?booleanAutoInstall 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?stringdescription?stringdomain_id?stringid?stringinstance_id?stringissuer?stringjwks_uri?stringlast_used_at?stringlogo_url?stringmetadata?name?stringobject?stringorg_access?stringOrgAccess is an instance agent's offer: every organization, or the selected ones (GET /agents/{agent_id}/organizations, D22). Empty for an organization agent.
"all""selected"owner_id?stringOwnerID is the definer's prefixed id: the instance's inst_ id, or the organization's org_ id.
owner_type?stringOwnerType is the definer's resource-type key (D6, D44): root, or org for an organization.
"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?integerRequestedRolesVersion 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"active""deactivated"token_ttl?integerTokenTTL is its access tokens' lifetime in seconds, 60–3600.
updated_at?stringcurl -X POST 'https://api.us.pontive.com/v1/agents/string/deactivate'{ "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"}Every federated credential of the agent (at most 20). Needs sys:agent:read on its definer (the instance root or its organization).
x-pontive-instance-id<token>Instance ID for the request
agent_id*stringAgent ID (agt_)
page?integerPage number
limit?integerItems per page, 1 to 100
OK
application/json- response
data?array<>object?stringpagination?Pagination is the page answered (api-route-review D9).
curl -X GET 'https://api.us.pontive.com/v1/agents/string/federated-credentials'{ "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 }}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).
x-pontive-instance-id<token>Instance ID for the request
agent_id*stringAgent ID (agt_)
Credential
application/json- body
Credential
description?stringname*stringName 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*stringSubject 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*stringCreated
application/json- response
client_id?stringClientID is the service account (svc_) or agent (agt_).
created_at?stringdescription?stringid?stringinstance_id?stringname?stringobject?stringrequired_claims?RequiredClaims must be in the assertion with exactly these values.
subject?stringSubject is the assertion's sub: exact, or a pattern where '*' matches one or more characters within one ':' or '/' segment.
trusted_issuer_id?stringupdated_at?stringcurl -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"}'{ "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"}Needs sys:agent:read on its definer (the instance root or its organization).
x-pontive-instance-id<token>Instance ID for the request
agent_id*stringAgent ID (agt_)
credential_id*stringFederated credential ID (fic_)
OK
application/json- response
client_id?stringClientID is the service account (svc_) or agent (agt_).
created_at?stringdescription?stringid?stringinstance_id?stringname?stringobject?stringrequired_claims?RequiredClaims must be in the assertion with exactly these values.
subject?stringSubject is the assertion's sub: exact, or a pattern where '*' matches one or more characters within one ':' or '/' segment.
trusted_issuer_id?stringupdated_at?stringcurl -X GET 'https://api.us.pontive.com/v1/agents/string/federated-credentials/string'{ "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"}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).
x-pontive-instance-id<token>Instance ID for the request
agent_id*stringAgent ID (agt_)
credential_id*stringFederated credential ID (fic_)
Changes
application/json- body
Changes
description?stringname?stringrequired_claims?RequiredClaims, when present, replaces the map; {} requires none.
subject?stringOK
application/json- response
client_id?stringClientID is the service account (svc_) or agent (agt_).
created_at?stringdescription?stringid?stringinstance_id?stringname?stringobject?stringrequired_claims?RequiredClaims must be in the assertion with exactly these values.
subject?stringSubject is the assertion's sub: exact, or a pattern where '*' matches one or more characters within one ':' or '/' segment.
trusted_issuer_id?stringupdated_at?stringcurl -X PATCH 'https://api.us.pontive.com/v1/agents/string/federated-credentials/string' \ -H 'Content-Type: application/json' \ -d '{}'{ "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"}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).
x-pontive-instance-id<token>Instance ID for the request
agent_id*stringAgent ID (agt_)
credential_id*stringFederated credential ID (fic_)
No Content
curl -X DELETE 'https://api.us.pontive.com/v1/agents/string/federated-credentials/string'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).
x-pontive-instance-id<token>Instance ID for the request
agent_id*stringAgent ID
page?integerPage number
limit?integerItems per page
OK
application/json- response
data?array<>object?stringpagination?Pagination is the page answered (api-route-review D9).
curl -X GET 'https://api.us.pontive.com/v1/agents/string/installations'{ "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 }}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.
x-pontive-instance-id<token>Instance ID for the request
agent_id*stringAgent ID
page?integerPage number
limit?integerItems per page
OK
application/json- response
data?array<>object?stringpagination?Pagination is the page answered (api-route-review D9).
curl -X GET 'https://api.us.pontive.com/v1/agents/string/organizations'{ "data": [ { "agent_id": "string", "object": "string", "organization_id": "string" } ], "object": "string", "pagination": { "limit": 0, "page": 0, "total": 0, "total_pages": 0 }}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.
x-pontive-instance-id<token>Instance ID for the request
agent_id*stringAgent ID
Organizations to add
application/json- 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.
1 <= items <= 100OK
application/json- response
agent_id?stringobject?stringorg_access?string"all""selected"organization_ids?array<string>OrganizationIDs are the organizations a selected offer lists.
curl -X POST 'https://api.us.pontive.com/v1/agents/string/organizations' \ -H 'Content-Type: application/json' \ -d '{ "organization_ids": [ "string" ]}'{ "agent_id": "string", "object": "string", "org_access": "all", "organization_ids": [ "string" ]}Take one organization off an instance agent's selected offer (D22), which suspends its installations there.
x-pontive-instance-id<token>Instance ID for the request
agent_id*stringAgent ID
organization_id*stringOrganization ID
No Content
curl -X DELETE 'https://api.us.pontive.com/v1/agents/string/organizations/string'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.
x-pontive-instance-id<token>Instance ID for the request
agent_id*stringAgent ID
The public JWK
application/json- body
The public JWK
alg?string"RS256""PS256""ES256"crv?"P-256""P-256"e?stringkid*stringkty*string"RSA""EC"n?stringuse?stringx?stringy?stringCreated
application/json- response
auto_install?booleanAutoInstall 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?stringdescription?stringdomain_id?stringid?stringinstance_id?stringissuer?stringjwks_uri?stringlast_used_at?stringlogo_url?stringmetadata?name?stringobject?stringorg_access?stringOrgAccess is an instance agent's offer: every organization, or the selected ones (GET /agents/{agent_id}/organizations, D22). Empty for an organization agent.
"all""selected"owner_id?stringOwnerID is the definer's prefixed id: the instance's inst_ id, or the organization's org_ id.
owner_type?stringOwnerType is the definer's resource-type key (D6, D44): root, or org for an organization.
"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?integerRequestedRolesVersion 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"active""deactivated"token_ttl?integerTokenTTL is its access tokens' lifetime in seconds, 60–3600.
updated_at?stringcurl -X POST 'https://api.us.pontive.com/v1/agents/string/public-keys' \ -H 'Content-Type: application/json' \ -d '{ "kid": "string", "kty": "RSA"}'{ "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 one of the agent's inline keys by kid. Assertions signed with it are refused from now on.
x-pontive-instance-id<token>Instance ID for the request
agent_id*stringAgent ID
key_id*stringKey ID
OK
application/json- response
auto_install?booleanAutoInstall 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?stringdescription?stringdomain_id?stringid?stringinstance_id?stringissuer?stringjwks_uri?stringlast_used_at?stringlogo_url?stringmetadata?name?stringobject?stringorg_access?stringOrgAccess is an instance agent's offer: every organization, or the selected ones (GET /agents/{agent_id}/organizations, D22). Empty for an organization agent.
"all""selected"owner_id?stringOwnerID is the definer's prefixed id: the instance's inst_ id, or the organization's org_ id.
owner_type?stringOwnerType is the definer's resource-type key (D6, D44): root, or org for an organization.
"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?integerRequestedRolesVersion 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"active""deactivated"token_ttl?integerTokenTTL is its access tokens' lifetime in seconds, 60–3600.
updated_at?stringcurl -X DELETE 'https://api.us.pontive.com/v1/agents/string/public-keys/string'{ "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 a deactivated agent: its installations return to active.
x-pontive-instance-id<token>Instance ID for the request
agent_id*stringAgent ID
OK
application/json- response
auto_install?booleanAutoInstall 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?stringdescription?stringdomain_id?stringid?stringinstance_id?stringissuer?stringjwks_uri?stringlast_used_at?stringlogo_url?stringmetadata?name?stringobject?stringorg_access?stringOrgAccess is an instance agent's offer: every organization, or the selected ones (GET /agents/{agent_id}/organizations, D22). Empty for an organization agent.
"all""selected"owner_id?stringOwnerID is the definer's prefixed id: the instance's inst_ id, or the organization's org_ id.
owner_type?stringOwnerType is the definer's resource-type key (D6, D44): root, or org for an organization.
"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?integerRequestedRolesVersion 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"active""deactivated"token_ttl?integerTokenTTL is its access tokens' lifetime in seconds, 60–3600.
updated_at?stringcurl -X POST 'https://api.us.pontive.com/v1/agents/string/reactivate'{ "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"}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.
x-pontive-instance-id<token>Instance ID for the request
organization*stringThe organization's id, or its slug
agent_id?stringOne agent's installations (agt_)
resource_id?stringThe installations on one of the organization's resources (res_)
status?stringactive or suspended
page?integerPage number
limit?integerItems per page
OK
application/json- response
data?array<>object?stringpagination?Pagination is the page answered (api-route-review D9).
curl -X GET 'https://api.us.pontive.com/v1/organizations/string/agent-installations'{ "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 }}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.
x-pontive-instance-id<token>Instance ID for the request
organization*stringThe organization's id, or its slug
Agent and approved roles
application/json- body
Agent and approved roles
agent_id*stringdelegated_only?booleanDelegatedOnly 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?stringResourceID installs on this resource instead of the path's container.
roles?array<string>Created
application/json- response
agent_id?stringapproved_by?CreatedBy is who created the grant, or last replaced it.
approved_version?integerApprovedVersion 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?stringdelegated_only?booleanDelegatedOnly 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?stringinstalled_by?CreatedBy is who created the grant, or last replaced it.
instance_id?stringobject?stringorganization_id?stringOrganizationID 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?integerresource_type?stringResourceType is the target's type: the roles are of it.
roles?array<string>status?string"active""suspended"suspended_at?stringsuspended_reasons?array<string>SuspendedReasons are why it is suspended: agent_deactivated, organization_suspended, not_offered, admin.
target_id?stringTargetID is the instance id, the org_ id or the res_ id.
target_type?string"root""org""resource"updated_at?stringcurl -X POST 'https://api.us.pontive.com/v1/organizations/string/agent-installations' \ -H 'Content-Type: application/json' \ -d '{ "agent_id": "string"}'{ "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"}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.
x-pontive-instance-id<token>Instance ID for the request
organization*stringThe organization's id, or its slug
installation_id*stringInstallation ID (ain_)
OK
application/json- response
agent_id?stringapproved_by?CreatedBy is who created the grant, or last replaced it.
approved_version?integerApprovedVersion 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?stringdelegated_only?booleanDelegatedOnly 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?stringinstalled_by?CreatedBy is who created the grant, or last replaced it.
instance_id?stringobject?stringorganization_id?stringOrganizationID 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?integerresource_type?stringResourceType is the target's type: the roles are of it.
roles?array<string>status?string"active""suspended"suspended_at?stringsuspended_reasons?array<string>SuspendedReasons are why it is suspended: agent_deactivated, organization_suspended, not_offered, admin.
target_id?stringTargetID is the instance id, the org_ id or the res_ id.
target_type?string"root""org""resource"updated_at?stringcurl -X GET 'https://api.us.pontive.com/v1/organizations/string/agent-installations/string'{ "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"}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.
x-pontive-instance-id<token>Instance ID for the request
organization*stringThe organization's id, or its slug
installation_id*stringInstallation ID (ain_)
Approved roles
application/json- body
Approved roles
delegated_only?booleanDelegatedOnly, 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>OK
application/json- response
agent_id?stringapproved_by?CreatedBy is who created the grant, or last replaced it.
approved_version?integerApprovedVersion 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?stringdelegated_only?booleanDelegatedOnly 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?stringinstalled_by?CreatedBy is who created the grant, or last replaced it.
instance_id?stringobject?stringorganization_id?stringOrganizationID 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?integerresource_type?stringResourceType is the target's type: the roles are of it.
roles?array<string>status?string"active""suspended"suspended_at?stringsuspended_reasons?array<string>SuspendedReasons are why it is suspended: agent_deactivated, organization_suspended, not_offered, admin.
target_id?stringTargetID is the instance id, the org_ id or the res_ id.
target_type?string"root""org""resource"updated_at?stringcurl -X PATCH 'https://api.us.pontive.com/v1/organizations/string/agent-installations/string' \ -H 'Content-Type: application/json' \ -d '{}'{ "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 the installation. The agent's next token request for the organization is refused; a token already issued lives out its lifetime.
x-pontive-instance-id<token>Instance ID for the request
organization*stringThe organization's id, or its slug
installation_id*stringInstallation ID (ain_)
No Content
curl -X DELETE 'https://api.us.pontive.com/v1/organizations/string/agent-installations/string'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).
x-pontive-instance-id<token>Instance ID for the request
organization*stringThe organization's id, or its slug
installation_id*stringInstallation ID (ain_)
Version and approved roles
application/json- body
Version and approved roles
roles?array<string>version*integerOK
application/json- response
agent_id?stringapproved_by?CreatedBy is who created the grant, or last replaced it.
approved_version?integerApprovedVersion 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?stringdelegated_only?booleanDelegatedOnly 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?stringinstalled_by?CreatedBy is who created the grant, or last replaced it.
instance_id?stringobject?stringorganization_id?stringOrganizationID 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?integerresource_type?stringResourceType is the target's type: the roles are of it.
roles?array<string>status?string"active""suspended"suspended_at?stringsuspended_reasons?array<string>SuspendedReasons are why it is suspended: agent_deactivated, organization_suspended, not_offered, admin.
target_id?stringTargetID is the instance id, the org_ id or the res_ id.
target_type?string"root""org""resource"updated_at?stringcurl -X POST 'https://api.us.pontive.com/v1/organizations/string/agent-installations/string/approve' \ -H 'Content-Type: application/json' \ -d '{ "version": 0}'{ "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"}Mark version seen without adding its roles; the installation keeps working with the roles it has.
x-pontive-instance-id<token>Instance ID for the request
organization*stringThe organization's id, or its slug
installation_id*stringInstallation ID (ain_)
Version
application/json- body
Version
version*integerOK
application/json- response
agent_id?stringapproved_by?CreatedBy is who created the grant, or last replaced it.
approved_version?integerApprovedVersion 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?stringdelegated_only?booleanDelegatedOnly 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?stringinstalled_by?CreatedBy is who created the grant, or last replaced it.
instance_id?stringobject?stringorganization_id?stringOrganizationID 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?integerresource_type?stringResourceType is the target's type: the roles are of it.
roles?array<string>status?string"active""suspended"suspended_at?stringsuspended_reasons?array<string>SuspendedReasons are why it is suspended: agent_deactivated, organization_suspended, not_offered, admin.
target_id?stringTargetID is the instance id, the org_ id or the res_ id.
target_type?string"root""org""resource"updated_at?stringcurl -X POST 'https://api.us.pontive.com/v1/organizations/string/agent-installations/string/decline' \ -H 'Content-Type: application/json' \ -d '{ "version": 0}'{ "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"}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.
x-pontive-instance-id<token>Instance ID for the request
organization*stringThe organization's id, or its slug
installation_id*stringInstallation ID (ain_)
OK
application/json- response
agent_id?stringapproved_by?CreatedBy is who created the grant, or last replaced it.
approved_version?integerApprovedVersion 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?stringdelegated_only?booleanDelegatedOnly 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?stringinstalled_by?CreatedBy is who created the grant, or last replaced it.
instance_id?stringobject?stringorganization_id?stringOrganizationID 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?integerresource_type?stringResourceType is the target's type: the roles are of it.
roles?array<string>status?string"active""suspended"suspended_at?stringsuspended_reasons?array<string>SuspendedReasons are why it is suspended: agent_deactivated, organization_suspended, not_offered, admin.
target_id?stringTargetID is the instance id, the org_ id or the res_ id.
target_type?string"root""org""resource"updated_at?stringcurl -X POST 'https://api.us.pontive.com/v1/organizations/string/agent-installations/string/resume'{ "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"}Suspend the installation: its roles are withdrawn and the agent's tokens for the organization refused until it is resumed.
x-pontive-instance-id<token>Instance ID for the request
organization*stringThe organization's id, or its slug
installation_id*stringInstallation ID (ain_)
OK
application/json- response
agent_id?stringapproved_by?CreatedBy is who created the grant, or last replaced it.
approved_version?integerApprovedVersion 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?stringdelegated_only?booleanDelegatedOnly 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?stringinstalled_by?CreatedBy is who created the grant, or last replaced it.
instance_id?stringobject?stringorganization_id?stringOrganizationID 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?integerresource_type?stringResourceType is the target's type: the roles are of it.
roles?array<string>status?string"active""suspended"suspended_at?stringsuspended_reasons?array<string>SuspendedReasons are why it is suspended: agent_deactivated, organization_suspended, not_offered, admin.
target_id?stringTargetID is the instance id, the org_ id or the res_ id.
target_type?string"root""org""resource"updated_at?stringcurl -X POST 'https://api.us.pontive.com/v1/organizations/string/agent-installations/string/suspend'{ "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"}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.
x-pontive-instance-id<token>Instance ID for the request
organization*stringThe organization's id, or its slug
relation?array<string>installed, offered or own
page?integerPage number
limit?integerItems per page
OK
application/json- response
data?array<>object?stringpagination?Pagination is the page answered (api-route-review D9).
curl -X GET 'https://api.us.pontive.com/v1/organizations/string/agents'{ "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 }}The agents installed on the resource, with their approved roles, pending approvals and status; filterable by agent and status (D21).
x-pontive-instance-id<token>Instance ID for the request
resource_id*stringResource ID
agent_id?stringOne agent's installations (agt_)
status?stringactive or suspended
page?integerPage number
limit?integerItems per page
OK
application/json- response
data?array<>object?stringpagination?Pagination is the page answered (api-route-review D9).
curl -X GET 'https://api.us.pontive.com/v1/resources/string/agent-installations'{ "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 }}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.
x-pontive-instance-id<token>Instance ID for the request
resource_id*stringResource ID
Agent and approved roles
application/json- body
Agent and approved roles
agent_id*stringdelegated_only?booleanDelegatedOnly 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?stringResourceID installs on this resource instead of the path's container.
roles?array<string>Created
application/json- response
agent_id?stringapproved_by?CreatedBy is who created the grant, or last replaced it.
approved_version?integerApprovedVersion 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?stringdelegated_only?booleanDelegatedOnly 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?stringinstalled_by?CreatedBy is who created the grant, or last replaced it.
instance_id?stringobject?stringorganization_id?stringOrganizationID 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?integerresource_type?stringResourceType is the target's type: the roles are of it.
roles?array<string>status?string"active""suspended"suspended_at?stringsuspended_reasons?array<string>SuspendedReasons are why it is suspended: agent_deactivated, organization_suspended, not_offered, admin.
target_id?stringTargetID is the instance id, the org_ id or the res_ id.
target_type?string"root""org""resource"updated_at?stringcurl -X POST 'https://api.us.pontive.com/v1/resources/string/agent-installations' \ -H 'Content-Type: application/json' \ -d '{ "agent_id": "string"}'{ "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"}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.
x-pontive-instance-id<token>Instance ID for the request
resource_id*stringResource ID
installation_id*stringInstallation ID (ain_)
OK
application/json- response
agent_id?stringapproved_by?CreatedBy is who created the grant, or last replaced it.
approved_version?integerApprovedVersion 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?stringdelegated_only?booleanDelegatedOnly 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?stringinstalled_by?CreatedBy is who created the grant, or last replaced it.
instance_id?stringobject?stringorganization_id?stringOrganizationID 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?integerresource_type?stringResourceType is the target's type: the roles are of it.
roles?array<string>status?string"active""suspended"suspended_at?stringsuspended_reasons?array<string>SuspendedReasons are why it is suspended: agent_deactivated, organization_suspended, not_offered, admin.
target_id?stringTargetID is the instance id, the org_ id or the res_ id.
target_type?string"root""org""resource"updated_at?stringcurl -X GET 'https://api.us.pontive.com/v1/resources/string/agent-installations/string'{ "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"}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.
x-pontive-instance-id<token>Instance ID for the request
resource_id*stringResource ID
installation_id*stringInstallation ID (ain_)
Approved roles
application/json- body
Approved roles
delegated_only?booleanDelegatedOnly, 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>OK
application/json- response
agent_id?stringapproved_by?CreatedBy is who created the grant, or last replaced it.
approved_version?integerApprovedVersion 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?stringdelegated_only?booleanDelegatedOnly 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?stringinstalled_by?CreatedBy is who created the grant, or last replaced it.
instance_id?stringobject?stringorganization_id?stringOrganizationID 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?integerresource_type?stringResourceType is the target's type: the roles are of it.
roles?array<string>status?string"active""suspended"suspended_at?stringsuspended_reasons?array<string>SuspendedReasons are why it is suspended: agent_deactivated, organization_suspended, not_offered, admin.
target_id?stringTargetID is the instance id, the org_ id or the res_ id.
target_type?string"root""org""resource"updated_at?stringcurl -X PATCH 'https://api.us.pontive.com/v1/resources/string/agent-installations/string' \ -H 'Content-Type: application/json' \ -d '{}'{ "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 the installation. The agent's next token request for the resource is refused; a token already issued lives out its lifetime.
x-pontive-instance-id<token>Instance ID for the request
resource_id*stringResource ID
installation_id*stringInstallation ID (ain_)
No Content
curl -X DELETE 'https://api.us.pontive.com/v1/resources/string/agent-installations/string'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).
x-pontive-instance-id<token>Instance ID for the request
resource_id*stringResource ID
installation_id*stringInstallation ID (ain_)
Version and approved roles
application/json- body
Version and approved roles
roles?array<string>version*integerOK
application/json- response
agent_id?stringapproved_by?CreatedBy is who created the grant, or last replaced it.
approved_version?integerApprovedVersion 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?stringdelegated_only?booleanDelegatedOnly 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?stringinstalled_by?CreatedBy is who created the grant, or last replaced it.
instance_id?stringobject?stringorganization_id?stringOrganizationID 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?integerresource_type?stringResourceType is the target's type: the roles are of it.
roles?array<string>status?string"active""suspended"suspended_at?stringsuspended_reasons?array<string>SuspendedReasons are why it is suspended: agent_deactivated, organization_suspended, not_offered, admin.
target_id?stringTargetID is the instance id, the org_ id or the res_ id.
target_type?string"root""org""resource"updated_at?stringcurl -X POST 'https://api.us.pontive.com/v1/resources/string/agent-installations/string/approve' \ -H 'Content-Type: application/json' \ -d '{ "version": 0}'{ "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"}Mark version seen without adding its roles; the installation keeps working with the roles it has.
x-pontive-instance-id<token>Instance ID for the request
resource_id*stringResource ID
installation_id*stringInstallation ID (ain_)
Version
application/json- body
Version
version*integerOK
application/json- response
agent_id?stringapproved_by?CreatedBy is who created the grant, or last replaced it.
approved_version?integerApprovedVersion 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?stringdelegated_only?booleanDelegatedOnly 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?stringinstalled_by?CreatedBy is who created the grant, or last replaced it.
instance_id?stringobject?stringorganization_id?stringOrganizationID 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?integerresource_type?stringResourceType is the target's type: the roles are of it.
roles?array<string>status?string"active""suspended"suspended_at?stringsuspended_reasons?array<string>SuspendedReasons are why it is suspended: agent_deactivated, organization_suspended, not_offered, admin.
target_id?stringTargetID is the instance id, the org_ id or the res_ id.
target_type?string"root""org""resource"updated_at?stringcurl -X POST 'https://api.us.pontive.com/v1/resources/string/agent-installations/string/decline' \ -H 'Content-Type: application/json' \ -d '{ "version": 0}'{ "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"}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.
x-pontive-instance-id<token>Instance ID for the request
resource_id*stringResource ID
installation_id*stringInstallation ID (ain_)
OK
application/json- response
agent_id?stringapproved_by?CreatedBy is who created the grant, or last replaced it.
approved_version?integerApprovedVersion 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?stringdelegated_only?booleanDelegatedOnly 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?stringinstalled_by?CreatedBy is who created the grant, or last replaced it.
instance_id?stringobject?stringorganization_id?stringOrganizationID 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?integerresource_type?stringResourceType is the target's type: the roles are of it.
roles?array<string>status?string"active""suspended"suspended_at?stringsuspended_reasons?array<string>SuspendedReasons are why it is suspended: agent_deactivated, organization_suspended, not_offered, admin.
target_id?stringTargetID is the instance id, the org_ id or the res_ id.
target_type?string"root""org""resource"updated_at?stringcurl -X POST 'https://api.us.pontive.com/v1/resources/string/agent-installations/string/resume'{ "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"}Suspend the installation: its roles are withdrawn and the agent's tokens for the resource refused until it is resumed.
x-pontive-instance-id<token>Instance ID for the request
resource_id*stringResource ID
installation_id*stringInstallation ID (ain_)
OK
application/json- response
agent_id?stringapproved_by?CreatedBy is who created the grant, or last replaced it.
approved_version?integerApprovedVersion 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?stringdelegated_only?booleanDelegatedOnly 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?stringinstalled_by?CreatedBy is who created the grant, or last replaced it.
instance_id?stringobject?stringorganization_id?stringOrganizationID 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?integerresource_type?stringResourceType is the target's type: the roles are of it.
roles?array<string>status?string"active""suspended"suspended_at?stringsuspended_reasons?array<string>SuspendedReasons are why it is suspended: agent_deactivated, organization_suspended, not_offered, admin.
target_id?stringTargetID is the instance id, the org_ id or the res_ id.
target_type?string"root""org""resource"updated_at?stringcurl -X POST 'https://api.us.pontive.com/v1/resources/string/agent-installations/string/suspend'{ "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"}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.
x-pontive-instance-id<token>Instance ID for the request
agent_id?stringOne agent's installations (agt_)
resource_id?stringThe installations on one resource in no organization (res_)
status?stringactive or suspended
page?integerPage number
limit?integerItems per page
OK
application/json- response
data?array<>object?stringpagination?Pagination is the page answered (api-route-review D9).
curl -X GET 'https://api.us.pontive.com/v1/root/agent-installations'{ "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 }}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.
x-pontive-instance-id<token>Instance ID for the request
Agent and approved roles
application/json- body
Agent and approved roles
agent_id*stringdelegated_only?booleanDelegatedOnly 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?stringResourceID installs on this resource instead of the path's container.
roles?array<string>Created
application/json- response
agent_id?stringapproved_by?CreatedBy is who created the grant, or last replaced it.
approved_version?integerApprovedVersion 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?stringdelegated_only?booleanDelegatedOnly 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?stringinstalled_by?CreatedBy is who created the grant, or last replaced it.
instance_id?stringobject?stringorganization_id?stringOrganizationID 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?integerresource_type?stringResourceType is the target's type: the roles are of it.
roles?array<string>status?string"active""suspended"suspended_at?stringsuspended_reasons?array<string>SuspendedReasons are why it is suspended: agent_deactivated, organization_suspended, not_offered, admin.
target_id?stringTargetID is the instance id, the org_ id or the res_ id.
target_type?string"root""org""resource"updated_at?stringcurl -X POST 'https://api.us.pontive.com/v1/root/agent-installations' \ -H 'Content-Type: application/json' \ -d '{ "agent_id": "string"}'{ "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"}One installation in no organization — on the instance root or on a resource in none (D21) — with its pending approval.
x-pontive-instance-id<token>Instance ID for the request
installation_id*stringInstallation ID (ain_)
OK
application/json- response
agent_id?stringapproved_by?CreatedBy is who created the grant, or last replaced it.
approved_version?integerApprovedVersion 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?stringdelegated_only?booleanDelegatedOnly 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?stringinstalled_by?CreatedBy is who created the grant, or last replaced it.
instance_id?stringobject?stringorganization_id?stringOrganizationID 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?integerresource_type?stringResourceType is the target's type: the roles are of it.
roles?array<string>status?string"active""suspended"suspended_at?stringsuspended_reasons?array<string>SuspendedReasons are why it is suspended: agent_deactivated, organization_suspended, not_offered, admin.
target_id?stringTargetID is the instance id, the org_ id or the res_ id.
target_type?string"root""org""resource"updated_at?stringcurl -X GET 'https://api.us.pontive.com/v1/root/agent-installations/string'{ "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"}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.
x-pontive-instance-id<token>Instance ID for the request
installation_id*stringInstallation ID (ain_)
Approved roles
application/json- body
Approved roles
delegated_only?booleanDelegatedOnly, 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>OK
application/json- response
agent_id?stringapproved_by?CreatedBy is who created the grant, or last replaced it.
approved_version?integerApprovedVersion 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?stringdelegated_only?booleanDelegatedOnly 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?stringinstalled_by?CreatedBy is who created the grant, or last replaced it.
instance_id?stringobject?stringorganization_id?stringOrganizationID 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?integerresource_type?stringResourceType is the target's type: the roles are of it.
roles?array<string>status?string"active""suspended"suspended_at?stringsuspended_reasons?array<string>SuspendedReasons are why it is suspended: agent_deactivated, organization_suspended, not_offered, admin.
target_id?stringTargetID is the instance id, the org_ id or the res_ id.
target_type?string"root""org""resource"updated_at?stringcurl -X PATCH 'https://api.us.pontive.com/v1/root/agent-installations/string' \ -H 'Content-Type: application/json' \ -d '{}'{ "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 the installation. The agent's next token request for the instance root is refused; a token already issued lives out its lifetime.
x-pontive-instance-id<token>Instance ID for the request
installation_id*stringInstallation ID (ain_)
No Content
curl -X DELETE 'https://api.us.pontive.com/v1/root/agent-installations/string'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).
x-pontive-instance-id<token>Instance ID for the request
installation_id*stringInstallation ID (ain_)
Version and approved roles
application/json- body
Version and approved roles
roles?array<string>version*integerOK
application/json- response
agent_id?stringapproved_by?CreatedBy is who created the grant, or last replaced it.
approved_version?integerApprovedVersion 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?stringdelegated_only?booleanDelegatedOnly 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?stringinstalled_by?CreatedBy is who created the grant, or last replaced it.
instance_id?stringobject?stringorganization_id?stringOrganizationID 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?integerresource_type?stringResourceType is the target's type: the roles are of it.
roles?array<string>status?string"active""suspended"suspended_at?stringsuspended_reasons?array<string>SuspendedReasons are why it is suspended: agent_deactivated, organization_suspended, not_offered, admin.
target_id?stringTargetID is the instance id, the org_ id or the res_ id.
target_type?string"root""org""resource"updated_at?stringcurl -X POST 'https://api.us.pontive.com/v1/root/agent-installations/string/approve' \ -H 'Content-Type: application/json' \ -d '{ "version": 0}'{ "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"}Mark version seen without adding its roles; the installation keeps working with the roles it has.
x-pontive-instance-id<token>Instance ID for the request
installation_id*stringInstallation ID (ain_)
Version
application/json- body
Version
version*integerOK
application/json- response
agent_id?stringapproved_by?CreatedBy is who created the grant, or last replaced it.
approved_version?integerApprovedVersion 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?stringdelegated_only?booleanDelegatedOnly 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?stringinstalled_by?CreatedBy is who created the grant, or last replaced it.
instance_id?stringobject?stringorganization_id?stringOrganizationID 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?integerresource_type?stringResourceType is the target's type: the roles are of it.
roles?array<string>status?string"active""suspended"suspended_at?stringsuspended_reasons?array<string>SuspendedReasons are why it is suspended: agent_deactivated, organization_suspended, not_offered, admin.
target_id?stringTargetID is the instance id, the org_ id or the res_ id.
target_type?string"root""org""resource"updated_at?stringcurl -X POST 'https://api.us.pontive.com/v1/root/agent-installations/string/decline' \ -H 'Content-Type: application/json' \ -d '{ "version": 0}'{ "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"}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.
x-pontive-instance-id<token>Instance ID for the request
installation_id*stringInstallation ID (ain_)
OK
application/json- response
agent_id?stringapproved_by?CreatedBy is who created the grant, or last replaced it.
approved_version?integerApprovedVersion 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?stringdelegated_only?booleanDelegatedOnly 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?stringinstalled_by?CreatedBy is who created the grant, or last replaced it.
instance_id?stringobject?stringorganization_id?stringOrganizationID 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?integerresource_type?stringResourceType is the target's type: the roles are of it.
roles?array<string>status?string"active""suspended"suspended_at?stringsuspended_reasons?array<string>SuspendedReasons are why it is suspended: agent_deactivated, organization_suspended, not_offered, admin.
target_id?stringTargetID is the instance id, the org_ id or the res_ id.
target_type?string"root""org""resource"updated_at?stringcurl -X POST 'https://api.us.pontive.com/v1/root/agent-installations/string/resume'{ "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"}Suspend the installation: its roles are withdrawn and the agent's tokens for the instance root refused until it is resumed.
x-pontive-instance-id<token>Instance ID for the request
installation_id*stringInstallation ID (ain_)
OK
application/json- response
agent_id?stringapproved_by?CreatedBy is who created the grant, or last replaced it.
approved_version?integerApprovedVersion 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?stringdelegated_only?booleanDelegatedOnly 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?stringinstalled_by?CreatedBy is who created the grant, or last replaced it.
instance_id?stringobject?stringorganization_id?stringOrganizationID 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?integerresource_type?stringResourceType is the target's type: the roles are of it.
roles?array<string>status?string"active""suspended"suspended_at?stringsuspended_reasons?array<string>SuspendedReasons are why it is suspended: agent_deactivated, organization_suspended, not_offered, admin.
target_id?stringTargetID is the instance id, the org_ id or the res_ id.
target_type?string"root""org""resource"updated_at?stringcurl -X POST 'https://api.us.pontive.com/v1/root/agent-installations/string/suspend'{ "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"}