Skip to Content
Docs
API referenceManagement API

Service accounts

List service accounts

GET
/service-accounts

List the instance's service accounts, filtered by owner (D6, D15, D44): owner_type root, org or a resource type key lists one kind of owner's accounts, owner_id one owner's.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Query Parameters

owner_type?string

root, org, or the owning resource's type key

owner_id?string

One owner's prefixed id: inst_, org_ or res_

status?string

Filter by status

name?string

Search by name

search?string

Search by query

page?integer

Page number

limit?integer

Items per page

Response Body

OK

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

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

Example Request
curl -X GET 'https://api.us.pontive.com/v1/service-accounts'
Example Response
{  "data": [    {      "allowed_scopes": [        "string"      ],      "created_at": "string",      "description": "string",      "domain_id": "string",      "id": "string",      "instance_id": "string",      "issuer": "string",      "jwks_uri": "string",      "last_used_at": "string",      "metadata": {        "property1": "string",        "property2": "string"      },      "name": "string",      "object": "string",      "owner_id": "string",      "owner_type": "string",      "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"        }      ],      "roles": [        "string"      ],      "status": "active",      "updated_at": "string"    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}

Create service account

POST
/service-accounts

Create a service account, owned by the instance root, an organization or a resource (D5, D6, D44): owner_type root (the default), org or the owning resource's type key, owner_id its prefixed id. The account is created with no client secret (D45): mint one with POST /service-accounts/{service_account_id}/client-secrets, which needs sys:sa:secret. A pontive: scope in allowed_scopes is refused (400); to let the account reach the management API, grant it on the management (system) API with PUT /apis/{api_id}/clients.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Request Body

Create service account payload

application/json
  1. body

Create service account payload

allowed_scopes?array<string>

AllowedScopes are the scopes the account may request for itself; a pontive: scope is refused (400). To reach the management API, grant the account on the management (system) API instead: PUT /apis/{api_id}/clients (pontive-spec 44 §7, §10).

description?string
domain_id?string
metadata?
name*string
owner_id?string

OwnerID is the owner's prefixed id: org_ or res_; for root the inst_ id or omitted. Immutable.

owner_type?string

OwnerType is root (the default), org, or the owning resource's type key (D6, D44), which must be that resource's type.

Response Body

Created

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

AllowedScopes are the scopes the account may request for itself; a pontive: scope is refused (400). To reach the management API, grant the account on the management (system) API instead: PUT /apis/{api_id}/clients (pontive-spec 44 §7, §10).

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

OwnerID is the owner's prefixed id: inst_, org_ or res_.

owner_type?string

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

public_keys?array<>

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

roles?array<string>

Roles are the roles the account holds on its owner; what lies below the owner is reached by inheritance.

status?string
Value in"active""deactivated"
updated_at?string
Example Request
curl -X POST 'https://api.us.pontive.com/v1/service-accounts' \  -H 'Content-Type: application/json' \  -d '{  "name": "string"}'
Example Response
{  "allowed_scopes": [    "string"  ],  "created_at": "string",  "description": "string",  "domain_id": "string",  "id": "string",  "instance_id": "string",  "issuer": "string",  "jwks_uri": "string",  "last_used_at": "string",  "metadata": {    "property1": "string",    "property2": "string"  },  "name": "string",  "object": "string",  "owner_id": "string",  "owner_type": "string",  "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"    }  ],  "roles": [    "string"  ],  "status": "active",  "updated_at": "string"}

Get service account

GET
/service-accounts/{service_account_id}

Get a service account by ID

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

service_account_id*string

Service Account ID

Response Body

OK

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

AllowedScopes are the scopes the account may request for itself; a pontive: scope is refused (400). To reach the management API, grant the account on the management (system) API instead: PUT /apis/{api_id}/clients (pontive-spec 44 §7, §10).

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

OwnerID is the owner's prefixed id: inst_, org_ or res_.

owner_type?string

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

public_keys?array<>

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

roles?array<string>

Roles are the roles the account holds on its owner; what lies below the owner is reached by inheritance.

status?string
Value in"active""deactivated"
updated_at?string
Example Request
curl -X GET 'https://api.us.pontive.com/v1/service-accounts/string'
Example Response
{  "allowed_scopes": [    "string"  ],  "created_at": "string",  "description": "string",  "domain_id": "string",  "id": "string",  "instance_id": "string",  "issuer": "string",  "jwks_uri": "string",  "last_used_at": "string",  "metadata": {    "property1": "string",    "property2": "string"  },  "name": "string",  "object": "string",  "owner_id": "string",  "owner_type": "string",  "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"    }  ],  "roles": [    "string"  ],  "status": "active",  "updated_at": "string"}

Update service account

PATCH
/service-accounts/{service_account_id}

Update a service account

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

service_account_id*string

Service Account ID

Request Body

Update service account payload

application/json
  1. body

Update service account payload

description?string
metadata?
name?string

Response Body

OK

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

AllowedScopes are the scopes the account may request for itself; a pontive: scope is refused (400). To reach the management API, grant the account on the management (system) API instead: PUT /apis/{api_id}/clients (pontive-spec 44 §7, §10).

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

OwnerID is the owner's prefixed id: inst_, org_ or res_.

owner_type?string

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

public_keys?array<>

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

roles?array<string>

Roles are the roles the account holds on its owner; what lies below the owner is reached by inheritance.

status?string
Value in"active""deactivated"
updated_at?string
Example Request
curl -X PATCH 'https://api.us.pontive.com/v1/service-accounts/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "allowed_scopes": [    "string"  ],  "created_at": "string",  "description": "string",  "domain_id": "string",  "id": "string",  "instance_id": "string",  "issuer": "string",  "jwks_uri": "string",  "last_used_at": "string",  "metadata": {    "property1": "string",    "property2": "string"  },  "name": "string",  "object": "string",  "owner_id": "string",  "owner_type": "string",  "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"    }  ],  "roles": [    "string"  ],  "status": "active",  "updated_at": "string"}

Delete service account

DELETE
/service-accounts/{service_account_id}

Delete a service account

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

service_account_id*string

Service Account ID

Response Body

No Content

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

List app scopes

GET
/service-accounts/{service_account_id}/client-scopes

List OAuth-style app scope configuration for a service account

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

service_account_id*string

Service Account ID

Query Parameters

page?integer

Page number

limit?integer

Items per page, 1 to 100

Response Body

OK

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

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

Example Request
curl -X GET 'https://api.us.pontive.com/v1/service-accounts/string/client-scopes'
Example Response
{  "data": [    {      "allowed_scopes": [        "string"      ],      "object": "string"    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}

Update app scopes

PUT
/service-accounts/{service_account_id}/client-scopes

Replace app scope configuration for a service account

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

service_account_id*string

Service Account ID

Request Body

App scopes payload

application/json
  1. body

App scopes payload

scopes?array<>

Response Body

OK

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

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

Example Request
curl -X PUT 'https://api.us.pontive.com/v1/service-accounts/string/client-scopes' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "data": [    {      "allowed_scopes": [        "string"      ],      "object": "string"    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}
GET
/service-accounts/{service_account_id}/client-secrets

The account's client secrets that still authenticate (D19), newest first: preview, label, status, created and expiry, never the value. Needs sys:sa:secret on the account's owner.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

service_account_id*string

Service Account ID

Query Parameters

page?integer

Page number

limit?integer

Items per page

Response Body

OK

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

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

Example Request
curl -X GET 'https://api.us.pontive.com/v1/service-accounts/string/client-secrets'
Example Response
{  "data": [    {      "created_at": "string",      "expires_at": "string",      "id": "string",      "label": "string",      "last_used_at": "string",      "object": "string",      "secret_preview": "string",      "status": "active"    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}
POST
/service-accounts/{service_account_id}/client-secrets

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

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

service_account_id*string

Service Account ID

Request Body

Label and the others' expiry

application/json
  1. body

Label and the others' expiry

expire_others_in?integer
label?string

Label is an optional label for the new secret.

Response Body

Created

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

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

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

service_account_id*string

Service Account ID

secret_id*string

Client secret ID

Response Body

No Content

Example Request
curl -X DELETE 'https://api.us.pontive.com/v1/service-accounts/string/client-secrets/string'
Example Response
Empty
POST
/service-accounts/{service_account_id}/deactivate

Deactivate a service account

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

service_account_id*string

Service Account ID

Response Body

OK

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

AllowedScopes are the scopes the account may request for itself; a pontive: scope is refused (400). To reach the management API, grant the account on the management (system) API instead: PUT /apis/{api_id}/clients (pontive-spec 44 §7, §10).

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

OwnerID is the owner's prefixed id: inst_, org_ or res_.

owner_type?string

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

public_keys?array<>

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

roles?array<string>

Roles are the roles the account holds on its owner; what lies below the owner is reached by inheritance.

status?string
Value in"active""deactivated"
updated_at?string
Example Request
curl -X POST 'https://api.us.pontive.com/v1/service-accounts/string/deactivate'
Example Response
{  "allowed_scopes": [    "string"  ],  "created_at": "string",  "description": "string",  "domain_id": "string",  "id": "string",  "instance_id": "string",  "issuer": "string",  "jwks_uri": "string",  "last_used_at": "string",  "metadata": {    "property1": "string",    "property2": "string"  },  "name": "string",  "object": "string",  "owner_id": "string",  "owner_type": "string",  "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"    }  ],  "roles": [    "string"  ],  "status": "active",  "updated_at": "string"}
GET
/service-accounts/{service_account_id}/federated-credentials

Every federated credential of the service account (at most 20). Needs sys:sa:read on its owner (the instance root, its organization, or its resource's organization).

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

service_account_id*string

Service account ID (svc_)

Query Parameters

page?integer

Page number

limit?integer

Items per page, 1 to 100

Response Body

OK

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

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

Example Request
curl -X GET 'https://api.us.pontive.com/v1/service-accounts/string/federated-credentials'
Example Response
{  "data": [    {      "client_id": "string",      "created_at": "string",      "description": "string",      "id": "string",      "instance_id": "string",      "name": "string",      "object": "string",      "required_claims": {        "property1": "string",        "property2": "string"      },      "subject": "string",      "trusted_issuer_id": "string",      "updated_at": "string"    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}
POST
/service-accounts/{service_account_id}/federated-credentials

Let the service account 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 service account'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 service account, the name once. Needs sys:sa:secret on its owner (the instance root, its organization, or its resource's organization).

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

service_account_id*string

Service account ID (svc_)

Request Body

Credential

application/json
  1. body

Credential

description?string
name*string

Name is unique among the client's credentials.

required_claims?

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

subject*string

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

trusted_issuer_id*string

Response Body

Created

application/json
  1. response
client_id?string

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

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

RequiredClaims must be in the assertion with exactly these values.

subject?string

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

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

Needs sys:sa:read on its owner (the instance root, its organization, or its resource's organization).

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

service_account_id*string

Service account ID (svc_)

credential_id*string

Federated credential ID (fic_)

Response Body

OK

application/json
  1. response
client_id?string

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

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

RequiredClaims must be in the assertion with exactly these values.

subject?string

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

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

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

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

service_account_id*string

Service account ID (svc_)

credential_id*string

Federated credential ID (fic_)

Request Body

Changes

application/json
  1. body

Changes

description?string
name?string
required_claims?

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

subject?string

Response Body

OK

application/json
  1. response
client_id?string

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

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

RequiredClaims must be in the assertion with exactly these values.

subject?string

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

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

The credential stops authenticating at once; tokens already issued live out their lifetime. Needs sys:sa:secret on its owner (the instance root, its organization, or its resource's organization).

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

service_account_id*string

Service account ID (svc_)

credential_id*string

Federated credential ID (fic_)

Response Body

No Content

Example Request
curl -X DELETE 'https://api.us.pontive.com/v1/service-accounts/string/federated-credentials/string'
Example Response
Empty
POST
/service-accounts/{service_account_id}/public-keys

Add a public JWK to the account's inline keys, for private_key_jwt client authentication (RFC 7523). 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 account has a jwks_uri (409 key_source_conflict). Rotate by overlap: add the new key, move over to it, then remove the old one.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

service_account_id*string

Service Account ID

Request Body

The public JWK

application/json
  1. body

The public JWK

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

Response Body

Created

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

AllowedScopes are the scopes the account may request for itself; a pontive: scope is refused (400). To reach the management API, grant the account on the management (system) API instead: PUT /apis/{api_id}/clients (pontive-spec 44 §7, §10).

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

OwnerID is the owner's prefixed id: inst_, org_ or res_.

owner_type?string

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

public_keys?array<>

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

roles?array<string>

Roles are the roles the account holds on its owner; what lies below the owner is reached by inheritance.

status?string
Value in"active""deactivated"
updated_at?string
Example Request
curl -X POST 'https://api.us.pontive.com/v1/service-accounts/string/public-keys' \  -H 'Content-Type: application/json' \  -d '{  "kid": "string",  "kty": "RSA"}'
Example Response
{  "allowed_scopes": [    "string"  ],  "created_at": "string",  "description": "string",  "domain_id": "string",  "id": "string",  "instance_id": "string",  "issuer": "string",  "jwks_uri": "string",  "last_used_at": "string",  "metadata": {    "property1": "string",    "property2": "string"  },  "name": "string",  "object": "string",  "owner_id": "string",  "owner_type": "string",  "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"    }  ],  "roles": [    "string"  ],  "status": "active",  "updated_at": "string"}
DELETE
/service-accounts/{service_account_id}/public-keys/{key_id}

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

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

service_account_id*string

Service Account ID

key_id*string

Key ID

Response Body

OK

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

AllowedScopes are the scopes the account may request for itself; a pontive: scope is refused (400). To reach the management API, grant the account on the management (system) API instead: PUT /apis/{api_id}/clients (pontive-spec 44 §7, §10).

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

OwnerID is the owner's prefixed id: inst_, org_ or res_.

owner_type?string

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

public_keys?array<>

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

roles?array<string>

Roles are the roles the account holds on its owner; what lies below the owner is reached by inheritance.

status?string
Value in"active""deactivated"
updated_at?string
Example Request
curl -X DELETE 'https://api.us.pontive.com/v1/service-accounts/string/public-keys/string'
Example Response
{  "allowed_scopes": [    "string"  ],  "created_at": "string",  "description": "string",  "domain_id": "string",  "id": "string",  "instance_id": "string",  "issuer": "string",  "jwks_uri": "string",  "last_used_at": "string",  "metadata": {    "property1": "string",    "property2": "string"  },  "name": "string",  "object": "string",  "owner_id": "string",  "owner_type": "string",  "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"    }  ],  "roles": [    "string"  ],  "status": "active",  "updated_at": "string"}
POST
/service-accounts/{service_account_id}/reactivate

Reactivate a service account

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

service_account_id*string

Service Account ID

Response Body

OK

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

AllowedScopes are the scopes the account may request for itself; a pontive: scope is refused (400). To reach the management API, grant the account on the management (system) API instead: PUT /apis/{api_id}/clients (pontive-spec 44 §7, §10).

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

OwnerID is the owner's prefixed id: inst_, org_ or res_.

owner_type?string

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

public_keys?array<>

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

roles?array<string>

Roles are the roles the account holds on its owner; what lies below the owner is reached by inheritance.

status?string
Value in"active""deactivated"
updated_at?string
Example Request
curl -X POST 'https://api.us.pontive.com/v1/service-accounts/string/reactivate'
Example Response
{  "allowed_scopes": [    "string"  ],  "created_at": "string",  "description": "string",  "domain_id": "string",  "id": "string",  "instance_id": "string",  "issuer": "string",  "jwks_uri": "string",  "last_used_at": "string",  "metadata": {    "property1": "string",    "property2": "string"  },  "name": "string",  "object": "string",  "owner_id": "string",  "owner_type": "string",  "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"    }  ],  "roles": [    "string"  ],  "status": "active",  "updated_at": "string"}
PUT
/service-accounts/{service_account_id}/roles

Replace the roles a service account holds on its owner — the instance root, its organization, or its resource — with roles of the owner's type; no roles removes them all. What lies below the owner is reached by inheritance. A service account never holds owner on an organization (owner_not_grantable).

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

service_account_id*string

Service Account ID

Request Body

Roles

application/json
  1. body

Roles

roles?array<string>

Response Body

OK

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

AllowedScopes are the scopes the account may request for itself; a pontive: scope is refused (400). To reach the management API, grant the account on the management (system) API instead: PUT /apis/{api_id}/clients (pontive-spec 44 §7, §10).

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

OwnerID is the owner's prefixed id: inst_, org_ or res_.

owner_type?string

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

public_keys?array<>

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

roles?array<string>

Roles are the roles the account holds on its owner; what lies below the owner is reached by inheritance.

status?string
Value in"active""deactivated"
updated_at?string
Example Request
curl -X PUT 'https://api.us.pontive.com/v1/service-accounts/string/roles' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "allowed_scopes": [    "string"  ],  "created_at": "string",  "description": "string",  "domain_id": "string",  "id": "string",  "instance_id": "string",  "issuer": "string",  "jwks_uri": "string",  "last_used_at": "string",  "metadata": {    "property1": "string",    "property2": "string"  },  "name": "string",  "object": "string",  "owner_id": "string",  "owner_type": "string",  "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"    }  ],  "roles": [    "string"  ],  "status": "active",  "updated_at": "string"}

Get token configuration

GET
/service-accounts/{service_account_id}/token-config

Get token configuration for a service account

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

service_account_id*string

Service Account ID

Response Body

OK

application/json
  1. response
access_token_ttl?integer
updated_at?string
Example Request
curl -X GET 'https://api.us.pontive.com/v1/service-accounts/string/token-config'
Example Response
{  "access_token_ttl": 0,  "updated_at": "string"}
PATCH
/service-accounts/{service_account_id}/token-config

Update token configuration for a service account

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

service_account_id*string

Service Account ID

Header Parameters

If-Match?string

The ETag the document was read with: a stale one is refused 412 precondition_failed (D42)

Request Body

Update token configuration payload

application/json
  1. body

Update token configuration payload

access_token_ttl?integer

Response Body

OK

application/json
  1. response
access_token_ttl?integer
updated_at?string
Example Request
curl -X PATCH 'https://api.us.pontive.com/v1/service-accounts/string/token-config' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "access_token_ttl": 0,  "updated_at": "string"}