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.
x-pontive-instance-id<token>Instance ID for the request
owner_type?stringroot, org, or the owning resource's type key
owner_id?stringOne owner's prefixed id: inst_, org_ or res_
status?stringFilter by status
name?stringSearch by name
search?stringSearch by query
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/service-accounts'{ "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 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.
x-pontive-instance-id<token>Instance ID for the request
Create service account payload
application/json- 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?stringdomain_id?stringmetadata?name*stringowner_id?stringOwnerID is the owner's prefixed id: org_ or res_; for root the inst_ id or omitted. Immutable.
owner_type?stringOwnerType is root (the default), org, or the owning resource's type key (D6, D44), which must be that resource's type.
Created
application/json- 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?stringdescription?stringdomain_id?stringid?stringinstance_id?stringissuer?stringjwks_uri?stringlast_used_at?stringmetadata?name?stringobject?stringowner_id?stringOwnerID is the owner's prefixed id: inst_, org_ or res_.
owner_type?stringOwnerType 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"active""deactivated"updated_at?stringcurl -X POST 'https://api.us.pontive.com/v1/service-accounts' \ -H 'Content-Type: application/json' \ -d '{ "name": "string"}'{ "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 a service account by ID
x-pontive-instance-id<token>Instance ID for the request
service_account_id*stringService Account ID
OK
application/json- 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?stringdescription?stringdomain_id?stringid?stringinstance_id?stringissuer?stringjwks_uri?stringlast_used_at?stringmetadata?name?stringobject?stringowner_id?stringOwnerID is the owner's prefixed id: inst_, org_ or res_.
owner_type?stringOwnerType 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"active""deactivated"updated_at?stringcurl -X GET 'https://api.us.pontive.com/v1/service-accounts/string'{ "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 a service account
x-pontive-instance-id<token>Instance ID for the request
service_account_id*stringService Account ID
Update service account payload
application/json- body
Update service account payload
description?stringmetadata?name?stringOK
application/json- 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?stringdescription?stringdomain_id?stringid?stringinstance_id?stringissuer?stringjwks_uri?stringlast_used_at?stringmetadata?name?stringobject?stringowner_id?stringOwnerID is the owner's prefixed id: inst_, org_ or res_.
owner_type?stringOwnerType 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"active""deactivated"updated_at?stringcurl -X PATCH 'https://api.us.pontive.com/v1/service-accounts/string' \ -H 'Content-Type: application/json' \ -d '{}'{ "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 a service account
x-pontive-instance-id<token>Instance ID for the request
service_account_id*stringService Account ID
No Content
curl -X DELETE 'https://api.us.pontive.com/v1/service-accounts/string'List OAuth-style app scope configuration for a service account
x-pontive-instance-id<token>Instance ID for the request
service_account_id*stringService Account ID
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/service-accounts/string/client-scopes'{ "data": [ { "allowed_scopes": [ "string" ], "object": "string" } ], "object": "string", "pagination": { "limit": 0, "page": 0, "total": 0, "total_pages": 0 }}Replace app scope configuration for a service account
x-pontive-instance-id<token>Instance ID for the request
service_account_id*stringService Account ID
App scopes payload
application/json- body
App scopes payload
scopes?array<>OK
application/json- response
data?array<>object?stringpagination?Pagination is the page answered (api-route-review D9).
curl -X PUT 'https://api.us.pontive.com/v1/service-accounts/string/client-scopes' \ -H 'Content-Type: application/json' \ -d '{}'{ "data": [ { "allowed_scopes": [ "string" ], "object": "string" } ], "object": "string", "pagination": { "limit": 0, "page": 0, "total": 0, "total_pages": 0 }}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.
x-pontive-instance-id<token>Instance ID for the request
service_account_id*stringService Account 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/service-accounts/string/client-secrets'{ "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 }}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.
x-pontive-instance-id<token>Instance ID for the request
service_account_id*stringService Account ID
Label and the others' expiry
application/json- body
Label and the others' expiry
expire_others_in?integerlabel?stringLabel is an optional label for the new secret.
Created
application/json- response
created_at?stringexpires_at?stringid?stringlabel?stringlast_used_at?stringobject?stringsecret?stringsecret_preview?stringstatus?string"active""rotating"curl -X POST 'https://api.us.pontive.com/v1/service-accounts/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", "secret": "string", "secret_preview": "string", "status": "active"}Remove one of the account's client secrets (D8, D19); it stops working at once.
x-pontive-instance-id<token>Instance ID for the request
service_account_id*stringService Account ID
secret_id*stringClient secret ID
No Content
curl -X DELETE 'https://api.us.pontive.com/v1/service-accounts/string/client-secrets/string'Deactivate a service account
x-pontive-instance-id<token>Instance ID for the request
service_account_id*stringService Account ID
OK
application/json- 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?stringdescription?stringdomain_id?stringid?stringinstance_id?stringissuer?stringjwks_uri?stringlast_used_at?stringmetadata?name?stringobject?stringowner_id?stringOwnerID is the owner's prefixed id: inst_, org_ or res_.
owner_type?stringOwnerType 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"active""deactivated"updated_at?stringcurl -X POST 'https://api.us.pontive.com/v1/service-accounts/string/deactivate'{ "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"}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).
x-pontive-instance-id<token>Instance ID for the request
service_account_id*stringService account ID (svc_)
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/service-accounts/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 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).
x-pontive-instance-id<token>Instance ID for the request
service_account_id*stringService account ID (svc_)
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/service-accounts/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:sa:read on its owner (the instance root, its organization, or its resource's organization).
x-pontive-instance-id<token>Instance ID for the request
service_account_id*stringService account ID (svc_)
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/service-accounts/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:sa:secret on its owner (the instance root, its organization, or its resource's organization).
x-pontive-instance-id<token>Instance ID for the request
service_account_id*stringService account ID (svc_)
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/service-accounts/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:sa:secret on its owner (the instance root, its organization, or its resource's organization).
x-pontive-instance-id<token>Instance ID for the request
service_account_id*stringService account ID (svc_)
credential_id*stringFederated credential ID (fic_)
No Content
curl -X DELETE 'https://api.us.pontive.com/v1/service-accounts/string/federated-credentials/string'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.
x-pontive-instance-id<token>Instance ID for the request
service_account_id*stringService Account 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
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?stringdescription?stringdomain_id?stringid?stringinstance_id?stringissuer?stringjwks_uri?stringlast_used_at?stringmetadata?name?stringobject?stringowner_id?stringOwnerID is the owner's prefixed id: inst_, org_ or res_.
owner_type?stringOwnerType 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"active""deactivated"updated_at?stringcurl -X POST 'https://api.us.pontive.com/v1/service-accounts/string/public-keys' \ -H 'Content-Type: application/json' \ -d '{ "kid": "string", "kty": "RSA"}'{ "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"}Remove one of the account's inline keys by kid. Assertions signed with it are refused from now on.
x-pontive-instance-id<token>Instance ID for the request
service_account_id*stringService Account ID
key_id*stringKey ID
OK
application/json- 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?stringdescription?stringdomain_id?stringid?stringinstance_id?stringissuer?stringjwks_uri?stringlast_used_at?stringmetadata?name?stringobject?stringowner_id?stringOwnerID is the owner's prefixed id: inst_, org_ or res_.
owner_type?stringOwnerType 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"active""deactivated"updated_at?stringcurl -X DELETE 'https://api.us.pontive.com/v1/service-accounts/string/public-keys/string'{ "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"}Reactivate a service account
x-pontive-instance-id<token>Instance ID for the request
service_account_id*stringService Account ID
OK
application/json- 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?stringdescription?stringdomain_id?stringid?stringinstance_id?stringissuer?stringjwks_uri?stringlast_used_at?stringmetadata?name?stringobject?stringowner_id?stringOwnerID is the owner's prefixed id: inst_, org_ or res_.
owner_type?stringOwnerType 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"active""deactivated"updated_at?stringcurl -X POST 'https://api.us.pontive.com/v1/service-accounts/string/reactivate'{ "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"}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).
x-pontive-instance-id<token>Instance ID for the request
service_account_id*stringService Account ID
Roles
application/json- body
Roles
roles?array<string>OK
application/json- 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?stringdescription?stringdomain_id?stringid?stringinstance_id?stringissuer?stringjwks_uri?stringlast_used_at?stringmetadata?name?stringobject?stringowner_id?stringOwnerID is the owner's prefixed id: inst_, org_ or res_.
owner_type?stringOwnerType 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"active""deactivated"updated_at?stringcurl -X PUT 'https://api.us.pontive.com/v1/service-accounts/string/roles' \ -H 'Content-Type: application/json' \ -d '{}'{ "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 for a service account
x-pontive-instance-id<token>Instance ID for the request
service_account_id*stringService Account ID
OK
application/json- response
access_token_ttl?integerupdated_at?stringcurl -X GET 'https://api.us.pontive.com/v1/service-accounts/string/token-config'{ "access_token_ttl": 0, "updated_at": "string"}Update token configuration for a service account
x-pontive-instance-id<token>Instance ID for the request
service_account_id*stringService Account ID
If-Match?stringThe ETag the document was read with: a stale one is refused 412 precondition_failed (D42)
Update token configuration payload
application/json- body
Update token configuration payload
access_token_ttl?integerOK
application/json- response
access_token_ttl?integerupdated_at?stringcurl -X PATCH 'https://api.us.pontive.com/v1/service-accounts/string/token-config' \ -H 'Content-Type: application/json' \ -d '{}'{ "access_token_ttl": 0, "updated_at": "string"}