Package ai.vectros.resources.auth
Class AsyncRawAuthClient
java.lang.Object
ai.vectros.resources.auth.AsyncRawAuthClient
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAccessProfile(String contextId, CreateAccessProfileRequest request) Creates a new access profile under the given app context.createAccessProfile(String contextId, CreateAccessProfileRequest request, RequestOptions requestOptions) Creates a new access profile under the given app context.createAccessProfile(String contextId, AccessProfileRequest body) Creates a new access profile under the given app context.createAccessProfile(String contextId, AccessProfileRequest body, RequestOptions requestOptions) Creates a new access profile under the given app context.createAppContext(CreateAppContextRequest request) Creates a new app context.createAppContext(CreateAppContextRequest request, RequestOptions requestOptions) Creates a new app context.Creates a new app context.createAppContext(AppContextRequest body, RequestOptions requestOptions) Creates a new app context.createInvite(CreateInviteRequest request) Invite a new member to one of your app contexts by email.createInvite(CreateInviteRequest request, RequestOptions requestOptions) Invite a new member to one of your app contexts by email.createRole(String contextId, CreateRoleRequest request) Creates a new role under the given app context.createRole(String contextId, CreateRoleRequest request, RequestOptions requestOptions) Creates a new role under the given app context.createRole(String contextId, RoleRequest body) Creates a new role under the given app context.createRole(String contextId, RoleRequest body, RequestOptions requestOptions) Creates a new role under the given app context.createScopedKey(CreateScopedKeyRequest request) Creates a scoped API key (anssk_*secret) that inherits its permissions from an existing access profile in your account.createScopedKey(CreateScopedKeyRequest request, RequestOptions requestOptions) Creates a scoped API key (anssk_*secret) that inherits its permissions from an existing access profile in your account.deleteAccessProfile(String contextId, String principalId) Deletes an access profile.deleteAccessProfile(String contextId, String principalId, RequestOptions requestOptions) Deletes an access profile.deleteAccessProfile(String contextId, String principalId, DeleteAccessProfileRequest request) Deletes an access profile.deleteAccessProfile(String contextId, String principalId, DeleteAccessProfileRequest request, RequestOptions requestOptions) Deletes an access profile.deleteAppContext(String contextId) Permanently deletes an app context and everything in it — every record, document, folder, schema, role, and access profile belonging to the context.deleteAppContext(String contextId, RequestOptions requestOptions) Permanently deletes an app context and everything in it — every record, document, folder, schema, role, and access profile belonging to the context.deleteAppContext(String contextId, DeleteAppContextRequest request) Permanently deletes an app context and everything in it — every record, document, folder, schema, role, and access profile belonging to the context.deleteAppContext(String contextId, DeleteAppContextRequest request, RequestOptions requestOptions) Permanently deletes an app context and everything in it — every record, document, folder, schema, role, and access profile belonging to the context.deleteIssuer(String issuerId) Deregisters a trusted third-party IdP issuer.deleteIssuer(String issuerId, RequestOptions requestOptions) Deregisters a trusted third-party IdP issuer.deleteIssuer(String issuerId, DeleteIssuerRequest request) Deregisters a trusted third-party IdP issuer.deleteIssuer(String issuerId, DeleteIssuerRequest request, RequestOptions requestOptions) Deregisters a trusted third-party IdP issuer.deleteRole(String contextId, String roleId) Deletes a role.deleteRole(String contextId, String roleId, RequestOptions requestOptions) Deletes a role.deleteRole(String contextId, String roleId, DeleteRoleRequest request) Deletes a role.deleteRole(String contextId, String roleId, DeleteRoleRequest request, RequestOptions requestOptions) Deletes a role.exchangeToken(TokenExchangeRequest request) RFC 8693 OAuth 2.0 Token Exchange.exchangeToken(TokenExchangeRequest request, RequestOptions requestOptions) RFC 8693 OAuth 2.0 Token Exchange.Returns a page of per-subject PHI read-access rows: who read which subject's PHI, when, against which record, and whether any sensitive value was actually revealed in plaintext.getAccessLog(RequestOptions requestOptions) Returns a page of per-subject PHI read-access rows: who read which subject's PHI, when, against which record, and whether any sensitive value was actually revealed in plaintext.getAccessLog(GetAccessLogRequest request) Returns a page of per-subject PHI read-access rows: who read which subject's PHI, when, against which record, and whether any sensitive value was actually revealed in plaintext.getAccessLog(GetAccessLogRequest request, RequestOptions requestOptions) Returns a page of per-subject PHI read-access rows: who read which subject's PHI, when, against which record, and whether any sensitive value was actually revealed in plaintext.getAccessProfile(String contextId, String principalId) Returns a single access profile by itsprincipalIdwithin the given app context.getAccessProfile(String contextId, String principalId, RequestOptions requestOptions) Returns a single access profile by itsprincipalIdwithin the given app context.getAccessProfile(String contextId, String principalId, GetAccessProfileRequest request) Returns a single access profile by itsprincipalIdwithin the given app context.getAccessProfile(String contextId, String principalId, GetAccessProfileRequest request, RequestOptions requestOptions) Returns a single access profile by itsprincipalIdwithin the given app context.getAccessProfileVersions(String contextId, String principalId) Returns the audit trail of changes (create, update, and delete events) for an access profile, most recent first.getAccessProfileVersions(String contextId, String principalId, RequestOptions requestOptions) Returns the audit trail of changes (create, update, and delete events) for an access profile, most recent first.getAccessProfileVersions(String contextId, String principalId, GetAccessProfileVersionsRequest request) Returns the audit trail of changes (create, update, and delete events) for an access profile, most recent first.getAccessProfileVersions(String contextId, String principalId, GetAccessProfileVersionsRequest request, RequestOptions requestOptions) Returns the audit trail of changes (create, update, and delete events) for an access profile, most recent first.getAdminLogs(GetAdminLogsRequest request) Returns recent API call logs for your account.getAdminLogs(GetAdminLogsRequest request, RequestOptions requestOptions) Returns recent API call logs for your account.getAppContext(String contextId) Returns a single app context by itscontextId.getAppContext(String contextId, RequestOptions requestOptions) Returns a single app context by itscontextId.getAppContext(String contextId, GetAppContextRequest request) Returns a single app context by itscontextId.getAppContext(String contextId, GetAppContextRequest request, RequestOptions requestOptions) Returns a single app context by itscontextId.Retrieves a single registered issuer by issuerId.getIssuer(String issuerId, RequestOptions requestOptions) Retrieves a single registered issuer by issuerId.getIssuer(String issuerId, GetIssuerRequest request) Retrieves a single registered issuer by issuerId.getIssuer(String issuerId, GetIssuerRequest request, RequestOptions requestOptions) Retrieves a single registered issuer by issuerId.getJwks()Returns the platform's JWT signing public key in RFC 7517 JWKS format.getJwks(RequestOptions requestOptions) Returns the platform's JWT signing public key in RFC 7517 JWKS format.Returns a single role by itsroleIdwithin the given app context.getRole(String contextId, String roleId, RequestOptions requestOptions) Returns a single role by itsroleIdwithin the given app context.getRole(String contextId, String roleId, GetRoleRequest request) Returns a single role by itsroleIdwithin the given app context.getRole(String contextId, String roleId, GetRoleRequest request, RequestOptions requestOptions) Returns a single role by itsroleIdwithin the given app context.getRoleVersions(String contextId, String roleId) Returns the audit trail of changes (create, update, and delete events) for a role, newest first.getRoleVersions(String contextId, String roleId, RequestOptions requestOptions) Returns the audit trail of changes (create, update, and delete events) for a role, newest first.getRoleVersions(String contextId, String roleId, GetRoleVersionsRequest request) Returns the audit trail of changes (create, update, and delete events) for a role, newest first.getRoleVersions(String contextId, String roleId, GetRoleVersionsRequest request, RequestOptions requestOptions) Returns the audit trail of changes (create, update, and delete events) for a role, newest first.getScopedKey(String keyId) Returns the metadata for a single scoped API key.getScopedKey(String keyId, RequestOptions requestOptions) Returns the metadata for a single scoped API key.getScopedKey(String keyId, GetScopedKeyRequest request) Returns the metadata for a single scoped API key.getScopedKey(String keyId, GetScopedKeyRequest request, RequestOptions requestOptions) Returns the metadata for a single scoped API key.getUsage()Returns full usage detail for the requested calendar month, broken down by category (search, documents, and records) with per-category credit estimates and a split between your live and test environments.getUsage(RequestOptions requestOptions) Returns full usage detail for the requested calendar month, broken down by category (search, documents, and records) with per-category credit estimates and a split between your live and test environments.getUsage(GetUsageRequest request) Returns full usage detail for the requested calendar month, broken down by category (search, documents, and records) with per-category credit estimates and a split between your live and test environments.getUsage(GetUsageRequest request, RequestOptions requestOptions) Returns full usage detail for the requested calendar month, broken down by category (search, documents, and records) with per-category credit estimates and a split between your live and test environments.listAccessProfiles(String contextId) Returns the access profiles assigned within the given app context — in effect, who has access to this context and with what scopes.listAccessProfiles(String contextId, RequestOptions requestOptions) Returns the access profiles assigned within the given app context — in effect, who has access to this context and with what scopes.listAccessProfiles(String contextId, ListAccessProfilesRequest request) Returns the access profiles assigned within the given app context — in effect, who has access to this context and with what scopes.listAccessProfiles(String contextId, ListAccessProfilesRequest request, RequestOptions requestOptions) Returns the access profiles assigned within the given app context — in effect, who has access to this context and with what scopes.Returns a paginated list of the app contexts in your account.listAppContexts(RequestOptions requestOptions) Returns a paginated list of the app contexts in your account.listAppContexts(ListAppContextsRequest request) Returns a paginated list of the app contexts in your account.listAppContexts(ListAppContextsRequest request, RequestOptions requestOptions) Returns a paginated list of the app contexts in your account.Returns the issuers registered in your tenant.listIssuers(RequestOptions requestOptions) Returns the issuers registered in your tenant.listIssuers(ListIssuersRequest request) Returns the issuers registered in your tenant.listIssuers(ListIssuersRequest request, RequestOptions requestOptions) Returns the issuers registered in your tenant.listProfilesForPrincipal(String principalId) Returns the access profiles for the given principal.listProfilesForPrincipal(String principalId, RequestOptions requestOptions) Returns the access profiles for the given principal.listProfilesForPrincipal(String principalId, ListProfilesForPrincipalRequest request) Returns the access profiles for the given principal.listProfilesForPrincipal(String principalId, ListProfilesForPrincipalRequest request, RequestOptions requestOptions) Returns the access profiles for the given principal.Returns the roles defined under the given app context.listRoles(String contextId, RequestOptions requestOptions) Returns the roles defined under the given app context.listRoles(String contextId, ListRolesRequest request) Returns the roles defined under the given app context.listRoles(String contextId, ListRolesRequest request, RequestOptions requestOptions) Returns the roles defined under the given app context.Lists your scoped API keys (ssk_*) in your credential's own environment — a live key lists live keys, a test key lists test keys.listScopedKeys(RequestOptions requestOptions) Lists your scoped API keys (ssk_*) in your credential's own environment — a live key lists live keys, a test key lists test keys.mintToken(TokenRequest request) Creates a short-lived JWT bearer token restricted to specific actions and, optionally, to a particular user or identity entity (in any namespace).mintToken(TokenRequest request, RequestOptions requestOptions) Creates a short-lived JWT bearer token restricted to specific actions and, optionally, to a particular user or identity entity (in any namespace).ping()Returns the identity bound to your credential — your account, principal type, key id, and scope details — so you can confirm who you are authenticated as and that the credential is valid.ping(RequestOptions requestOptions) Returns the identity bound to your credential — your account, principal type, key id, and scope details — so you can confirm who you are authenticated as and that the credential is valid.registerIssuer(IssuerRequest request) Registers a trusted third-party IdP issuer that BYO-IdP token exchange (POST /v1/auth/token/exchange) may accept asubject_tokenfrom.registerIssuer(IssuerRequest request, RequestOptions requestOptions) Registers a trusted third-party IdP issuer that BYO-IdP token exchange (POST /v1/auth/token/exchange) may accept asubject_tokenfrom.resendInvite(CreateInviteRequest request) Resend an outstanding invitation, identified by its email and app context.resendInvite(CreateInviteRequest request, RequestOptions requestOptions) Resend an outstanding invitation, identified by its email and app context.revokeScopedKey(String keyId) Revokes a scoped API key.revokeScopedKey(String keyId, RequestOptions requestOptions) Revokes a scoped API key.revokeScopedKey(String keyId, RevokeScopedKeyRequest request) Revokes a scoped API key.revokeScopedKey(String keyId, RevokeScopedKeyRequest request, RequestOptions requestOptions) Revokes a scoped API key.updateAccessProfile(String contextId, String principalId, UpdateAccessProfileRequest request) Updates an access profile.updateAccessProfile(String contextId, String principalId, UpdateAccessProfileRequest request, RequestOptions requestOptions) Updates an access profile.updateAppContext(String contextId, UpdateAppContextRequest request) Updates the name and/or description of an app context.updateAppContext(String contextId, UpdateAppContextRequest request, RequestOptions requestOptions) Updates the name and/or description of an app context.updateRole(String contextId, String roleId, UpdateRoleRequest request) Updates a role.updateRole(String contextId, String roleId, UpdateRoleRequest request, RequestOptions requestOptions) Updates a role.
-
Field Details
-
clientOptions
-
-
Constructor Details
-
AsyncRawAuthClient
-
-
Method Details
-
getJwks
Returns the platform's JWT signing public key in RFC 7517 JWKS format. Use it with any JWKS-aware JWT library to verifyinv_*invite tokens,st_*scoped tokens, and other platform-signed tokens locally, without calling back to the API for each verification. The response carries a one-hourCache-Control, so cache it and re-fetch roughly hourly rather than on every verification. Thekidvalue changes when the key rotates; re-fetch this document whenever you encounter a token signed with an unknownkid. -
getJwks
public CompletableFuture<VectrosApiHttpResponse<JwksResponse>> getJwks(RequestOptions requestOptions) Returns the platform's JWT signing public key in RFC 7517 JWKS format. Use it with any JWKS-aware JWT library to verifyinv_*invite tokens,st_*scoped tokens, and other platform-signed tokens locally, without calling back to the API for each verification. The response carries a one-hourCache-Control, so cache it and re-fetch roughly hourly rather than on every verification. Thekidvalue changes when the key rotates; re-fetch this document whenever you encounter a token signed with an unknownkid. -
getAccessLog
Returns a page of per-subject PHI read-access rows: who read which subject's PHI, when, against which record, and whether any sensitive value was actually revealed in plaintext. Metadata only — never the PHI itself. This is the disclosure-accounting surface from which a covered entity derives its HIPAA §164.528 accounting of disclosures. Provide at least one query axis: a subject (subjectType+subjectId) within acontextIdfor the primary accounting query;resourceIdwithin acontextIdfor 'who read this record';callerKeyIdfor 'what did this credential read' (account-wide forensic); orcontextIdalone to enumerate a whole context.from/tobound the time window. Results are scoped to your account, derived from your token — never from input. Requires theaccess-log:rscope. -
getAccessLog
public CompletableFuture<VectrosApiHttpResponse<ReadAccessLogPage>> getAccessLog(RequestOptions requestOptions) Returns a page of per-subject PHI read-access rows: who read which subject's PHI, when, against which record, and whether any sensitive value was actually revealed in plaintext. Metadata only — never the PHI itself. This is the disclosure-accounting surface from which a covered entity derives its HIPAA §164.528 accounting of disclosures. Provide at least one query axis: a subject (subjectType+subjectId) within acontextIdfor the primary accounting query;resourceIdwithin acontextIdfor 'who read this record';callerKeyIdfor 'what did this credential read' (account-wide forensic); orcontextIdalone to enumerate a whole context.from/tobound the time window. Results are scoped to your account, derived from your token — never from input. Requires theaccess-log:rscope. -
getAccessLog
public CompletableFuture<VectrosApiHttpResponse<ReadAccessLogPage>> getAccessLog(GetAccessLogRequest request) Returns a page of per-subject PHI read-access rows: who read which subject's PHI, when, against which record, and whether any sensitive value was actually revealed in plaintext. Metadata only — never the PHI itself. This is the disclosure-accounting surface from which a covered entity derives its HIPAA §164.528 accounting of disclosures. Provide at least one query axis: a subject (subjectType+subjectId) within acontextIdfor the primary accounting query;resourceIdwithin acontextIdfor 'who read this record';callerKeyIdfor 'what did this credential read' (account-wide forensic); orcontextIdalone to enumerate a whole context.from/tobound the time window. Results are scoped to your account, derived from your token — never from input. Requires theaccess-log:rscope. -
getAccessLog
public CompletableFuture<VectrosApiHttpResponse<ReadAccessLogPage>> getAccessLog(GetAccessLogRequest request, RequestOptions requestOptions) Returns a page of per-subject PHI read-access rows: who read which subject's PHI, when, against which record, and whether any sensitive value was actually revealed in plaintext. Metadata only — never the PHI itself. This is the disclosure-accounting surface from which a covered entity derives its HIPAA §164.528 accounting of disclosures. Provide at least one query axis: a subject (subjectType+subjectId) within acontextIdfor the primary accounting query;resourceIdwithin acontextIdfor 'who read this record';callerKeyIdfor 'what did this credential read' (account-wide forensic); orcontextIdalone to enumerate a whole context.from/tobound the time window. Results are scoped to your account, derived from your token — never from input. Requires theaccess-log:rscope. -
listScopedKeys
Lists your scoped API keys (ssk_*) in your credential's own environment — a live key lists live keys, a test key lists test keys. Revoked keys are excluded. Requires thekeys:rscope. -
listScopedKeys
public CompletableFuture<VectrosApiHttpResponse<ScopedKeyPage>> listScopedKeys(RequestOptions requestOptions) Lists your scoped API keys (ssk_*) in your credential's own environment — a live key lists live keys, a test key lists test keys. Revoked keys are excluded. Requires thekeys:rscope. -
createScopedKey
public CompletableFuture<VectrosApiHttpResponse<ScopedKeyResponse>> createScopedKey(CreateScopedKeyRequest request) Creates a scoped API key (anssk_*secret) that inherits its permissions from an existing access profile in your account. The call is idempotent on the combination of tenant, context, user, and key name: re-issuing the same request returns the existing key WITHOUT re-disclosing its raw secret. The raw key is returned ONLY in this response — store it securely, as it cannot be retrieved again. Requires thekeys:cscope. If you use a scoped credential,keys:calone is not sufficient: because the minted key is durably bound to the profile you name, the profile's effective scopes may not exceed your own, and you may only mint against a profile whoseidentityOverridesvalues your own identity holds. Minting a key bound to your OWN principal needs nothing further; minting one bound to a DIFFERENT principal additionally requires thedelegate-mintcapability (granted_capabilities) on your credential — without it the request is refused. A root API key (sk_) is exempt from all three bounds. -
createScopedKey
public CompletableFuture<VectrosApiHttpResponse<ScopedKeyResponse>> createScopedKey(CreateScopedKeyRequest request, RequestOptions requestOptions) Creates a scoped API key (anssk_*secret) that inherits its permissions from an existing access profile in your account. The call is idempotent on the combination of tenant, context, user, and key name: re-issuing the same request returns the existing key WITHOUT re-disclosing its raw secret. The raw key is returned ONLY in this response — store it securely, as it cannot be retrieved again. Requires thekeys:cscope. If you use a scoped credential,keys:calone is not sufficient: because the minted key is durably bound to the profile you name, the profile's effective scopes may not exceed your own, and you may only mint against a profile whoseidentityOverridesvalues your own identity holds. Minting a key bound to your OWN principal needs nothing further; minting one bound to a DIFFERENT principal additionally requires thedelegate-mintcapability (granted_capabilities) on your credential — without it the request is refused. A root API key (sk_) is exempt from all three bounds. -
getScopedKey
Returns the metadata for a single scoped API key. The raw secret is NOT included — it is only ever returned once, when the key is first created. Requires thekeys:rscope. -
getScopedKey
public CompletableFuture<VectrosApiHttpResponse<ScopedKeyResponse>> getScopedKey(String keyId, RequestOptions requestOptions) Returns the metadata for a single scoped API key. The raw secret is NOT included — it is only ever returned once, when the key is first created. Requires thekeys:rscope. -
getScopedKey
public CompletableFuture<VectrosApiHttpResponse<ScopedKeyResponse>> getScopedKey(String keyId, GetScopedKeyRequest request) Returns the metadata for a single scoped API key. The raw secret is NOT included — it is only ever returned once, when the key is first created. Requires thekeys:rscope. -
getScopedKey
public CompletableFuture<VectrosApiHttpResponse<ScopedKeyResponse>> getScopedKey(String keyId, GetScopedKeyRequest request, RequestOptions requestOptions) Returns the metadata for a single scoped API key. The raw secret is NOT included — it is only ever returned once, when the key is first created. Requires thekeys:rscope. -
revokeScopedKey
Revokes a scoped API key. Its status changes torevokedand it stops working within about 5 minutes, the maximum time authorization is cached. Revocation is permanent. Requires thekeys:dscope. -
revokeScopedKey
public CompletableFuture<VectrosApiHttpResponse<Void>> revokeScopedKey(String keyId, RequestOptions requestOptions) Revokes a scoped API key. Its status changes torevokedand it stops working within about 5 minutes, the maximum time authorization is cached. Revocation is permanent. Requires thekeys:dscope. -
revokeScopedKey
public CompletableFuture<VectrosApiHttpResponse<Void>> revokeScopedKey(String keyId, RevokeScopedKeyRequest request) Revokes a scoped API key. Its status changes torevokedand it stops working within about 5 minutes, the maximum time authorization is cached. Revocation is permanent. Requires thekeys:dscope. -
revokeScopedKey
public CompletableFuture<VectrosApiHttpResponse<Void>> revokeScopedKey(String keyId, RevokeScopedKeyRequest request, RequestOptions requestOptions) Revokes a scoped API key. Its status changes torevokedand it stops working within about 5 minutes, the maximum time authorization is cached. Revocation is permanent. Requires thekeys:dscope. -
getAdminLogs
public CompletableFuture<VectrosApiHttpResponse<AdminLogsResponse>> getAdminLogs(GetAdminLogsRequest request) Returns recent API call logs for your account. Each entry represents one API request; request and response bodies are never logged.startTimeandendTimemust be ISO-8601 UTC (e.g.2025-01-15T09:00:00Z);endTimedefaults to now. Filter by resource, method, key id, or context id, or seterrorsOnlyto see only failures. Results are scoped to your account, derived from your token — never from input. Requires thelogs:rscope. -
getAdminLogs
public CompletableFuture<VectrosApiHttpResponse<AdminLogsResponse>> getAdminLogs(GetAdminLogsRequest request, RequestOptions requestOptions) Returns recent API call logs for your account. Each entry represents one API request; request and response bodies are never logged.startTimeandendTimemust be ISO-8601 UTC (e.g.2025-01-15T09:00:00Z);endTimedefaults to now. Filter by resource, method, key id, or context id, or seterrorsOnlyto see only failures. Results are scoped to your account, derived from your token — never from input. Requires thelogs:rscope. -
listAccessProfiles
public CompletableFuture<VectrosApiHttpResponse<AccessProfilePage>> listAccessProfiles(String contextId) Returns the access profiles assigned within the given app context — in effect, who has access to this context and with what scopes. Each profile binds a principal to either a set of inline scopes or a referenced role. Results are paginated. Requires theprofiles:rscope. -
listAccessProfiles
public CompletableFuture<VectrosApiHttpResponse<AccessProfilePage>> listAccessProfiles(String contextId, RequestOptions requestOptions) Returns the access profiles assigned within the given app context — in effect, who has access to this context and with what scopes. Each profile binds a principal to either a set of inline scopes or a referenced role. Results are paginated. Requires theprofiles:rscope. -
listAccessProfiles
public CompletableFuture<VectrosApiHttpResponse<AccessProfilePage>> listAccessProfiles(String contextId, ListAccessProfilesRequest request) Returns the access profiles assigned within the given app context — in effect, who has access to this context and with what scopes. Each profile binds a principal to either a set of inline scopes or a referenced role. Results are paginated. Requires theprofiles:rscope. -
listAccessProfiles
public CompletableFuture<VectrosApiHttpResponse<AccessProfilePage>> listAccessProfiles(String contextId, ListAccessProfilesRequest request, RequestOptions requestOptions) Returns the access profiles assigned within the given app context — in effect, who has access to this context and with what scopes. Each profile binds a principal to either a set of inline scopes or a referenced role. Results are paginated. Requires theprofiles:rscope. -
createAccessProfile
public CompletableFuture<VectrosApiHttpResponse<AccessProfileResponse>> createAccessProfile(String contextId, AccessProfileRequest body) Creates a new access profile under the given app context. This call is idempotent byprincipalId: if a profile with the sameprincipalIdalready exists, the existing profile is returned (with status 200) instead of creating a duplicate. The response'screatedfield (and the HTTP status — 201 when created, 200 when an existing profile was returned) tells the two apart. To overwrite an existing profile'sscopes/roleId,identityOverrides, andstatusinstead of returning it unchanged, set?upsert=true(this also requires theprofiles:uscope, and applies the sameidentityOverridesbounds the update endpoint documents — a scoped credential may not repoint or clear an identity value it does not itself hold). TheprincipalIdmust name a principal that already exists: ausr_principal must be a live user in your tenant, so create the user before granting it a profile. Ausr_id that names no such user is rejected, and no profile is created.key_principals are not checked this way. You must provide exactly one ofscopes(an inline list of scopes) orroleId(a reference to a role); supplying both, or neither, is rejected.identityOverridesis keyed by ownership namespace inscope:<namespace>form —scope:organdscope:clientfor the reserved namespaces, or any namespace you have registered — and may name at most two; any other key (including the account identifier oruserId) is rejected. If you use a scoped credential, the profile's effective scopes may not exceed your own; a root API key (sk_) is exempt. Requires theprofiles:cscope. -
createAccessProfile
public CompletableFuture<VectrosApiHttpResponse<AccessProfileResponse>> createAccessProfile(String contextId, AccessProfileRequest body, RequestOptions requestOptions) Creates a new access profile under the given app context. This call is idempotent byprincipalId: if a profile with the sameprincipalIdalready exists, the existing profile is returned (with status 200) instead of creating a duplicate. The response'screatedfield (and the HTTP status — 201 when created, 200 when an existing profile was returned) tells the two apart. To overwrite an existing profile'sscopes/roleId,identityOverrides, andstatusinstead of returning it unchanged, set?upsert=true(this also requires theprofiles:uscope, and applies the sameidentityOverridesbounds the update endpoint documents — a scoped credential may not repoint or clear an identity value it does not itself hold). TheprincipalIdmust name a principal that already exists: ausr_principal must be a live user in your tenant, so create the user before granting it a profile. Ausr_id that names no such user is rejected, and no profile is created.key_principals are not checked this way. You must provide exactly one ofscopes(an inline list of scopes) orroleId(a reference to a role); supplying both, or neither, is rejected.identityOverridesis keyed by ownership namespace inscope:<namespace>form —scope:organdscope:clientfor the reserved namespaces, or any namespace you have registered — and may name at most two; any other key (including the account identifier oruserId) is rejected. If you use a scoped credential, the profile's effective scopes may not exceed your own; a root API key (sk_) is exempt. Requires theprofiles:cscope. -
createAccessProfile
public CompletableFuture<VectrosApiHttpResponse<AccessProfileResponse>> createAccessProfile(String contextId, CreateAccessProfileRequest request) Creates a new access profile under the given app context. This call is idempotent byprincipalId: if a profile with the sameprincipalIdalready exists, the existing profile is returned (with status 200) instead of creating a duplicate. The response'screatedfield (and the HTTP status — 201 when created, 200 when an existing profile was returned) tells the two apart. To overwrite an existing profile'sscopes/roleId,identityOverrides, andstatusinstead of returning it unchanged, set?upsert=true(this also requires theprofiles:uscope, and applies the sameidentityOverridesbounds the update endpoint documents — a scoped credential may not repoint or clear an identity value it does not itself hold). TheprincipalIdmust name a principal that already exists: ausr_principal must be a live user in your tenant, so create the user before granting it a profile. Ausr_id that names no such user is rejected, and no profile is created.key_principals are not checked this way. You must provide exactly one ofscopes(an inline list of scopes) orroleId(a reference to a role); supplying both, or neither, is rejected.identityOverridesis keyed by ownership namespace inscope:<namespace>form —scope:organdscope:clientfor the reserved namespaces, or any namespace you have registered — and may name at most two; any other key (including the account identifier oruserId) is rejected. If you use a scoped credential, the profile's effective scopes may not exceed your own; a root API key (sk_) is exempt. Requires theprofiles:cscope. -
createAccessProfile
public CompletableFuture<VectrosApiHttpResponse<AccessProfileResponse>> createAccessProfile(String contextId, CreateAccessProfileRequest request, RequestOptions requestOptions) Creates a new access profile under the given app context. This call is idempotent byprincipalId: if a profile with the sameprincipalIdalready exists, the existing profile is returned (with status 200) instead of creating a duplicate. The response'screatedfield (and the HTTP status — 201 when created, 200 when an existing profile was returned) tells the two apart. To overwrite an existing profile'sscopes/roleId,identityOverrides, andstatusinstead of returning it unchanged, set?upsert=true(this also requires theprofiles:uscope, and applies the sameidentityOverridesbounds the update endpoint documents — a scoped credential may not repoint or clear an identity value it does not itself hold). TheprincipalIdmust name a principal that already exists: ausr_principal must be a live user in your tenant, so create the user before granting it a profile. Ausr_id that names no such user is rejected, and no profile is created.key_principals are not checked this way. You must provide exactly one ofscopes(an inline list of scopes) orroleId(a reference to a role); supplying both, or neither, is rejected.identityOverridesis keyed by ownership namespace inscope:<namespace>form —scope:organdscope:clientfor the reserved namespaces, or any namespace you have registered — and may name at most two; any other key (including the account identifier oruserId) is rejected. If you use a scoped credential, the profile's effective scopes may not exceed your own; a root API key (sk_) is exempt. Requires theprofiles:cscope. -
listAppContexts
Returns a paginated list of the app contexts in your account. Each app context is a namespace that groups the access profiles and roles for one of your applications. Requires theapp-contexts:rscope. -
listAppContexts
public CompletableFuture<VectrosApiHttpResponse<AppContextPage>> listAppContexts(RequestOptions requestOptions) Returns a paginated list of the app contexts in your account. Each app context is a namespace that groups the access profiles and roles for one of your applications. Requires theapp-contexts:rscope. -
listAppContexts
public CompletableFuture<VectrosApiHttpResponse<AppContextPage>> listAppContexts(ListAppContextsRequest request) Returns a paginated list of the app contexts in your account. Each app context is a namespace that groups the access profiles and roles for one of your applications. Requires theapp-contexts:rscope. -
listAppContexts
public CompletableFuture<VectrosApiHttpResponse<AppContextPage>> listAppContexts(ListAppContextsRequest request, RequestOptions requestOptions) Returns a paginated list of the app contexts in your account. Each app context is a namespace that groups the access profiles and roles for one of your applications. Requires theapp-contexts:rscope. -
createAppContext
public CompletableFuture<VectrosApiHttpResponse<AppContextResponse>> createAppContext(AppContextRequest body) Creates a new app context. This call is idempotent bycontextId: if an app context with the samecontextIdalready exists, the existing app context is returned (with status 200) instead of creating a duplicate. The response'screatedfield (and the HTTP status — 201 when created, 200 when an existing context was returned) tells the two apart. To overwrite an existing context'sname/descriptioninstead of returning it unchanged, set?upsert=true(this also requires theapp-contexts:uscope). The reservedcontextIdvaluevectros-admincannot be created through this endpoint; it is provisioned automatically for your account. Requires theapp-contexts:cscope. -
createAppContext
public CompletableFuture<VectrosApiHttpResponse<AppContextResponse>> createAppContext(AppContextRequest body, RequestOptions requestOptions) Creates a new app context. This call is idempotent bycontextId: if an app context with the samecontextIdalready exists, the existing app context is returned (with status 200) instead of creating a duplicate. The response'screatedfield (and the HTTP status — 201 when created, 200 when an existing context was returned) tells the two apart. To overwrite an existing context'sname/descriptioninstead of returning it unchanged, set?upsert=true(this also requires theapp-contexts:uscope). The reservedcontextIdvaluevectros-admincannot be created through this endpoint; it is provisioned automatically for your account. Requires theapp-contexts:cscope. -
createAppContext
public CompletableFuture<VectrosApiHttpResponse<AppContextResponse>> createAppContext(CreateAppContextRequest request) Creates a new app context. This call is idempotent bycontextId: if an app context with the samecontextIdalready exists, the existing app context is returned (with status 200) instead of creating a duplicate. The response'screatedfield (and the HTTP status — 201 when created, 200 when an existing context was returned) tells the two apart. To overwrite an existing context'sname/descriptioninstead of returning it unchanged, set?upsert=true(this also requires theapp-contexts:uscope). The reservedcontextIdvaluevectros-admincannot be created through this endpoint; it is provisioned automatically for your account. Requires theapp-contexts:cscope. -
createAppContext
public CompletableFuture<VectrosApiHttpResponse<AppContextResponse>> createAppContext(CreateAppContextRequest request, RequestOptions requestOptions) Creates a new app context. This call is idempotent bycontextId: if an app context with the samecontextIdalready exists, the existing app context is returned (with status 200) instead of creating a duplicate. The response'screatedfield (and the HTTP status — 201 when created, 200 when an existing context was returned) tells the two apart. To overwrite an existing context'sname/descriptioninstead of returning it unchanged, set?upsert=true(this also requires theapp-contexts:uscope). The reservedcontextIdvaluevectros-admincannot be created through this endpoint; it is provisioned automatically for your account. Requires theapp-contexts:cscope. -
listRoles
Returns the roles defined under the given app context. A role is a reusable, named bundle of scopes that access profiles can reference instead of listing scopes inline. Results are paginated. Requires theprofiles:rscope. -
listRoles
public CompletableFuture<VectrosApiHttpResponse<RolePage>> listRoles(String contextId, RequestOptions requestOptions) Returns the roles defined under the given app context. A role is a reusable, named bundle of scopes that access profiles can reference instead of listing scopes inline. Results are paginated. Requires theprofiles:rscope. -
listRoles
public CompletableFuture<VectrosApiHttpResponse<RolePage>> listRoles(String contextId, ListRolesRequest request) Returns the roles defined under the given app context. A role is a reusable, named bundle of scopes that access profiles can reference instead of listing scopes inline. Results are paginated. Requires theprofiles:rscope. -
listRoles
public CompletableFuture<VectrosApiHttpResponse<RolePage>> listRoles(String contextId, ListRolesRequest request, RequestOptions requestOptions) Returns the roles defined under the given app context. A role is a reusable, named bundle of scopes that access profiles can reference instead of listing scopes inline. Results are paginated. Requires theprofiles:rscope. -
createRole
public CompletableFuture<VectrosApiHttpResponse<RoleResponse>> createRole(String contextId, RoleRequest body) Creates a new role under the given app context. This call is idempotent byroleId: if a role with the sameroleIdalready exists, the existing role is returned (with status 200) instead of creating a duplicate. The response'screatedfield (and the HTTP status — 201 when created, 200 when an existing role was returned) tells the two apart. To overwrite an existing role'sname/description/scopesinstead of returning it unchanged, set?upsert=true(this also requires theprofiles:uscope). If you use a scoped credential, the role's scopes may not exceed your own; a root API key (sk_) is exempt. Requires theprofiles:cscope. -
createRole
public CompletableFuture<VectrosApiHttpResponse<RoleResponse>> createRole(String contextId, RoleRequest body, RequestOptions requestOptions) Creates a new role under the given app context. This call is idempotent byroleId: if a role with the sameroleIdalready exists, the existing role is returned (with status 200) instead of creating a duplicate. The response'screatedfield (and the HTTP status — 201 when created, 200 when an existing role was returned) tells the two apart. To overwrite an existing role'sname/description/scopesinstead of returning it unchanged, set?upsert=true(this also requires theprofiles:uscope). If you use a scoped credential, the role's scopes may not exceed your own; a root API key (sk_) is exempt. Requires theprofiles:cscope. -
createRole
public CompletableFuture<VectrosApiHttpResponse<RoleResponse>> createRole(String contextId, CreateRoleRequest request) Creates a new role under the given app context. This call is idempotent byroleId: if a role with the sameroleIdalready exists, the existing role is returned (with status 200) instead of creating a duplicate. The response'screatedfield (and the HTTP status — 201 when created, 200 when an existing role was returned) tells the two apart. To overwrite an existing role'sname/description/scopesinstead of returning it unchanged, set?upsert=true(this also requires theprofiles:uscope). If you use a scoped credential, the role's scopes may not exceed your own; a root API key (sk_) is exempt. Requires theprofiles:cscope. -
createRole
public CompletableFuture<VectrosApiHttpResponse<RoleResponse>> createRole(String contextId, CreateRoleRequest request, RequestOptions requestOptions) Creates a new role under the given app context. This call is idempotent byroleId: if a role with the sameroleIdalready exists, the existing role is returned (with status 200) instead of creating a duplicate. The response'screatedfield (and the HTTP status — 201 when created, 200 when an existing role was returned) tells the two apart. To overwrite an existing role'sname/description/scopesinstead of returning it unchanged, set?upsert=true(this also requires theprofiles:uscope). If you use a scoped credential, the role's scopes may not exceed your own; a root API key (sk_) is exempt. Requires theprofiles:cscope. -
getAccessProfile
public CompletableFuture<VectrosApiHttpResponse<AccessProfileResponse>> getAccessProfile(String contextId, String principalId) Returns a single access profile by itsprincipalIdwithin the given app context. Requires theprofiles:rscope. -
getAccessProfile
public CompletableFuture<VectrosApiHttpResponse<AccessProfileResponse>> getAccessProfile(String contextId, String principalId, RequestOptions requestOptions) Returns a single access profile by itsprincipalIdwithin the given app context. Requires theprofiles:rscope. -
getAccessProfile
public CompletableFuture<VectrosApiHttpResponse<AccessProfileResponse>> getAccessProfile(String contextId, String principalId, GetAccessProfileRequest request) Returns a single access profile by itsprincipalIdwithin the given app context. Requires theprofiles:rscope. -
getAccessProfile
public CompletableFuture<VectrosApiHttpResponse<AccessProfileResponse>> getAccessProfile(String contextId, String principalId, GetAccessProfileRequest request, RequestOptions requestOptions) Returns a single access profile by itsprincipalIdwithin the given app context. Requires theprofiles:rscope. -
updateAccessProfile
public CompletableFuture<VectrosApiHttpResponse<AccessProfileResponse>> updateAccessProfile(String contextId, String principalId, UpdateAccessProfileRequest request) Updates an access profile. This is a partial update: any field you omit (or send as null) keeps its existing value. A profile must reference either inlinescopesor aroleId, never both — so settingscopesclears anyroleId, and settingroleIdclears any inlinescopes. ThecontextIdandprincipalIdare immutable. Status changes (for example active to suspended) take effect within about five minutes. If you use a scoped credential, the profile's effective scopes may not exceed your own, and itsidentityOverridesare bounded twice: you may only set a value your own identity holds, and you may only change or clear a value the profile already holds if that value is yours as well. Repointing or clearing another principal's established identity therefore returns 403. A root API key (sk_) is exempt. If you setroleId, it must reference a role that already exists in this context. Requires theprofiles:uscope. -
updateAccessProfile
public CompletableFuture<VectrosApiHttpResponse<AccessProfileResponse>> updateAccessProfile(String contextId, String principalId, UpdateAccessProfileRequest request, RequestOptions requestOptions) Updates an access profile. This is a partial update: any field you omit (or send as null) keeps its existing value. A profile must reference either inlinescopesor aroleId, never both — so settingscopesclears anyroleId, and settingroleIdclears any inlinescopes. ThecontextIdandprincipalIdare immutable. Status changes (for example active to suspended) take effect within about five minutes. If you use a scoped credential, the profile's effective scopes may not exceed your own, and itsidentityOverridesare bounded twice: you may only set a value your own identity holds, and you may only change or clear a value the profile already holds if that value is yours as well. Repointing or clearing another principal's established identity therefore returns 403. A root API key (sk_) is exempt. If you setroleId, it must reference a role that already exists in this context. Requires theprofiles:uscope. -
deleteAccessProfile
public CompletableFuture<VectrosApiHttpResponse<Void>> deleteAccessProfile(String contextId, String principalId) Deletes an access profile. Within about five minutes (the access-profile cache lifetime), token minting for this principal in this context will be denied. If you use a scoped credential and the profile carriesidentityOverrides, you may only delete it when you hold those values yourself — deleting a profile removes its identity, so the same bound applies as when clearing it. A profile with noidentityOverridesis unaffected, and a root API key (sk_) is exempt. Requires theprofiles:dscope. -
deleteAccessProfile
public CompletableFuture<VectrosApiHttpResponse<Void>> deleteAccessProfile(String contextId, String principalId, RequestOptions requestOptions) Deletes an access profile. Within about five minutes (the access-profile cache lifetime), token minting for this principal in this context will be denied. If you use a scoped credential and the profile carriesidentityOverrides, you may only delete it when you hold those values yourself — deleting a profile removes its identity, so the same bound applies as when clearing it. A profile with noidentityOverridesis unaffected, and a root API key (sk_) is exempt. Requires theprofiles:dscope. -
deleteAccessProfile
public CompletableFuture<VectrosApiHttpResponse<Void>> deleteAccessProfile(String contextId, String principalId, DeleteAccessProfileRequest request) Deletes an access profile. Within about five minutes (the access-profile cache lifetime), token minting for this principal in this context will be denied. If you use a scoped credential and the profile carriesidentityOverrides, you may only delete it when you hold those values yourself — deleting a profile removes its identity, so the same bound applies as when clearing it. A profile with noidentityOverridesis unaffected, and a root API key (sk_) is exempt. Requires theprofiles:dscope. -
deleteAccessProfile
public CompletableFuture<VectrosApiHttpResponse<Void>> deleteAccessProfile(String contextId, String principalId, DeleteAccessProfileRequest request, RequestOptions requestOptions) Deletes an access profile. Within about five minutes (the access-profile cache lifetime), token minting for this principal in this context will be denied. If you use a scoped credential and the profile carriesidentityOverrides, you may only delete it when you hold those values yourself — deleting a profile removes its identity, so the same bound applies as when clearing it. A profile with noidentityOverridesis unaffected, and a root API key (sk_) is exempt. Requires theprofiles:dscope. -
getAppContext
public CompletableFuture<VectrosApiHttpResponse<AppContextResponse>> getAppContext(String contextId) Returns a single app context by itscontextId. Requires theapp-contexts:rscope. -
getAppContext
public CompletableFuture<VectrosApiHttpResponse<AppContextResponse>> getAppContext(String contextId, RequestOptions requestOptions) Returns a single app context by itscontextId. Requires theapp-contexts:rscope. -
getAppContext
public CompletableFuture<VectrosApiHttpResponse<AppContextResponse>> getAppContext(String contextId, GetAppContextRequest request) Returns a single app context by itscontextId. Requires theapp-contexts:rscope. -
getAppContext
public CompletableFuture<VectrosApiHttpResponse<AppContextResponse>> getAppContext(String contextId, GetAppContextRequest request, RequestOptions requestOptions) Returns a single app context by itscontextId. Requires theapp-contexts:rscope. -
updateAppContext
public CompletableFuture<VectrosApiHttpResponse<AppContextResponse>> updateAppContext(String contextId, UpdateAppContextRequest request) Updates the name and/or description of an app context. This is a partial update: any field you omit (or send as null) keeps its existing value. ThecontextIdis immutable and is taken from the URL path, so anycontextIdin the request body is ignored. Requires theapp-contexts:uscope. -
updateAppContext
public CompletableFuture<VectrosApiHttpResponse<AppContextResponse>> updateAppContext(String contextId, UpdateAppContextRequest request, RequestOptions requestOptions) Updates the name and/or description of an app context. This is a partial update: any field you omit (or send as null) keeps its existing value. ThecontextIdis immutable and is taken from the URL path, so anycontextIdin the request body is ignored. Requires theapp-contexts:uscope. -
deleteAppContext
Permanently deletes an app context and everything in it — every record, document, folder, schema, role, and access profile belonging to the context. This is irreversible. The deletion runs asynchronously: the call returns 202 immediately and the context's data drains in the background. Poll the context'sstatusfield to observe when the teardown completes (purgingwhile draining, thendeleted). To guard against accidental deletion, you must echo the contextId back in theconfirmquery parameter (?confirm={contextId}). The reserveddefaultandvectros-admincontexts cannot be deleted. This operation requires a root API key (one beginning withsk_): no scoped credential, not even one with full wildcard (*) scope, can trigger this teardown. -
deleteAppContext
public CompletableFuture<VectrosApiHttpResponse<Void>> deleteAppContext(String contextId, RequestOptions requestOptions) Permanently deletes an app context and everything in it — every record, document, folder, schema, role, and access profile belonging to the context. This is irreversible. The deletion runs asynchronously: the call returns 202 immediately and the context's data drains in the background. Poll the context'sstatusfield to observe when the teardown completes (purgingwhile draining, thendeleted). To guard against accidental deletion, you must echo the contextId back in theconfirmquery parameter (?confirm={contextId}). The reserveddefaultandvectros-admincontexts cannot be deleted. This operation requires a root API key (one beginning withsk_): no scoped credential, not even one with full wildcard (*) scope, can trigger this teardown. -
deleteAppContext
public CompletableFuture<VectrosApiHttpResponse<Void>> deleteAppContext(String contextId, DeleteAppContextRequest request) Permanently deletes an app context and everything in it — every record, document, folder, schema, role, and access profile belonging to the context. This is irreversible. The deletion runs asynchronously: the call returns 202 immediately and the context's data drains in the background. Poll the context'sstatusfield to observe when the teardown completes (purgingwhile draining, thendeleted). To guard against accidental deletion, you must echo the contextId back in theconfirmquery parameter (?confirm={contextId}). The reserveddefaultandvectros-admincontexts cannot be deleted. This operation requires a root API key (one beginning withsk_): no scoped credential, not even one with full wildcard (*) scope, can trigger this teardown. -
deleteAppContext
public CompletableFuture<VectrosApiHttpResponse<Void>> deleteAppContext(String contextId, DeleteAppContextRequest request, RequestOptions requestOptions) Permanently deletes an app context and everything in it — every record, document, folder, schema, role, and access profile belonging to the context. This is irreversible. The deletion runs asynchronously: the call returns 202 immediately and the context's data drains in the background. Poll the context'sstatusfield to observe when the teardown completes (purgingwhile draining, thendeleted). To guard against accidental deletion, you must echo the contextId back in theconfirmquery parameter (?confirm={contextId}). The reserveddefaultandvectros-admincontexts cannot be deleted. This operation requires a root API key (one beginning withsk_): no scoped credential, not even one with full wildcard (*) scope, can trigger this teardown. -
getRole
public CompletableFuture<VectrosApiHttpResponse<RoleResponse>> getRole(String contextId, String roleId) Returns a single role by itsroleIdwithin the given app context. Requires theprofiles:rscope. -
getRole
public CompletableFuture<VectrosApiHttpResponse<RoleResponse>> getRole(String contextId, String roleId, RequestOptions requestOptions) Returns a single role by itsroleIdwithin the given app context. Requires theprofiles:rscope. -
getRole
public CompletableFuture<VectrosApiHttpResponse<RoleResponse>> getRole(String contextId, String roleId, GetRoleRequest request) Returns a single role by itsroleIdwithin the given app context. Requires theprofiles:rscope. -
getRole
public CompletableFuture<VectrosApiHttpResponse<RoleResponse>> getRole(String contextId, String roleId, GetRoleRequest request, RequestOptions requestOptions) Returns a single role by itsroleIdwithin the given app context. Requires theprofiles:rscope. -
updateRole
public CompletableFuture<VectrosApiHttpResponse<RoleResponse>> updateRole(String contextId, String roleId, UpdateRoleRequest request) Updates a role. This is a partial update: any field you omit (or send as null) keeps its existing value. TheroleIdandcontextIdare immutable. Scope changes take effect for access profiles that reference this role within about five minutes. If you use a scoped credential, the role's scopes may not exceed your own; a root API key (sk_) is exempt. Requires theprofiles:uscope. -
updateRole
public CompletableFuture<VectrosApiHttpResponse<RoleResponse>> updateRole(String contextId, String roleId, UpdateRoleRequest request, RequestOptions requestOptions) Updates a role. This is a partial update: any field you omit (or send as null) keeps its existing value. TheroleIdandcontextIdare immutable. Scope changes take effect for access profiles that reference this role within about five minutes. If you use a scoped credential, the role's scopes may not exceed your own; a root API key (sk_) is exempt. Requires theprofiles:uscope. -
deleteRole
Deletes a role. A role that is still referenced by one or more access profiles cannot be deleted: the request is rejected with 409. Reassign or delete those profiles first, then retry. Requires theprofiles:dscope. -
deleteRole
public CompletableFuture<VectrosApiHttpResponse<Void>> deleteRole(String contextId, String roleId, RequestOptions requestOptions) Deletes a role. A role that is still referenced by one or more access profiles cannot be deleted: the request is rejected with 409. Reassign or delete those profiles first, then retry. Requires theprofiles:dscope. -
deleteRole
public CompletableFuture<VectrosApiHttpResponse<Void>> deleteRole(String contextId, String roleId, DeleteRoleRequest request) Deletes a role. A role that is still referenced by one or more access profiles cannot be deleted: the request is rejected with 409. Reassign or delete those profiles first, then retry. Requires theprofiles:dscope. -
deleteRole
public CompletableFuture<VectrosApiHttpResponse<Void>> deleteRole(String contextId, String roleId, DeleteRoleRequest request, RequestOptions requestOptions) Deletes a role. A role that is still referenced by one or more access profiles cannot be deleted: the request is rejected with 409. Reassign or delete those profiles first, then retry. Requires theprofiles:dscope. -
getAccessProfileVersions
public CompletableFuture<VectrosApiHttpResponse<ModelDataVersionPage>> getAccessProfileVersions(String contextId, String principalId) Returns the audit trail of changes (create, update, and delete events) for an access profile, most recent first. Version history is always recorded for every access profile; there is no setting to turn it off. Results are paginated. Requires theprofiles:rscope. -
getAccessProfileVersions
public CompletableFuture<VectrosApiHttpResponse<ModelDataVersionPage>> getAccessProfileVersions(String contextId, String principalId, RequestOptions requestOptions) Returns the audit trail of changes (create, update, and delete events) for an access profile, most recent first. Version history is always recorded for every access profile; there is no setting to turn it off. Results are paginated. Requires theprofiles:rscope. -
getAccessProfileVersions
public CompletableFuture<VectrosApiHttpResponse<ModelDataVersionPage>> getAccessProfileVersions(String contextId, String principalId, GetAccessProfileVersionsRequest request) Returns the audit trail of changes (create, update, and delete events) for an access profile, most recent first. Version history is always recorded for every access profile; there is no setting to turn it off. Results are paginated. Requires theprofiles:rscope. -
getAccessProfileVersions
public CompletableFuture<VectrosApiHttpResponse<ModelDataVersionPage>> getAccessProfileVersions(String contextId, String principalId, GetAccessProfileVersionsRequest request, RequestOptions requestOptions) Returns the audit trail of changes (create, update, and delete events) for an access profile, most recent first. Version history is always recorded for every access profile; there is no setting to turn it off. Results are paginated. Requires theprofiles:rscope. -
getRoleVersions
public CompletableFuture<VectrosApiHttpResponse<ModelDataVersionPage>> getRoleVersions(String contextId, String roleId) Returns the audit trail of changes (create, update, and delete events) for a role, newest first. Version history is always recorded for every role; there is no setting to turn it off. Results are paginated. Requires theprofiles:rscope. -
getRoleVersions
public CompletableFuture<VectrosApiHttpResponse<ModelDataVersionPage>> getRoleVersions(String contextId, String roleId, RequestOptions requestOptions) Returns the audit trail of changes (create, update, and delete events) for a role, newest first. Version history is always recorded for every role; there is no setting to turn it off. Results are paginated. Requires theprofiles:rscope. -
getRoleVersions
public CompletableFuture<VectrosApiHttpResponse<ModelDataVersionPage>> getRoleVersions(String contextId, String roleId, GetRoleVersionsRequest request) Returns the audit trail of changes (create, update, and delete events) for a role, newest first. Version history is always recorded for every role; there is no setting to turn it off. Results are paginated. Requires theprofiles:rscope. -
getRoleVersions
public CompletableFuture<VectrosApiHttpResponse<ModelDataVersionPage>> getRoleVersions(String contextId, String roleId, GetRoleVersionsRequest request, RequestOptions requestOptions) Returns the audit trail of changes (create, update, and delete events) for a role, newest first. Version history is always recorded for every role; there is no setting to turn it off. Results are paginated. Requires theprofiles:rscope. -
getUsage
Returns full usage detail for the requested calendar month, broken down by category (search, documents, and records) with per-category credit estimates and a split between your live and test environments. Defaults to the current month whenyearandmonthare omitted. Requires thebilling:rscope on scoped tokens; API keys always have access. A token confined to a single app context sees only that context's usage: totals, the environment split, and thecontextsbreakdown narrow to it, and the environment your context is not bound to is omitted (null), not zeroed. Only a token with cross-context reach sees your full account-wide totals. Two exceptions to the narrowing, since they have no per-context breakdown to narrow to:reads.calls.used/reads.dataOut.bytes(metered per account, not per context) read as0for a confined token rather than a narrowed figure — the corresponding overage-credit charge fields narrow correctly; andcredits.limitstays your whole plan's ceiling, socredits.remainingmay overstate the account's true remaining room. -
getUsage
public CompletableFuture<VectrosApiHttpResponse<UsageReportResponse>> getUsage(RequestOptions requestOptions) Returns full usage detail for the requested calendar month, broken down by category (search, documents, and records) with per-category credit estimates and a split between your live and test environments. Defaults to the current month whenyearandmonthare omitted. Requires thebilling:rscope on scoped tokens; API keys always have access. A token confined to a single app context sees only that context's usage: totals, the environment split, and thecontextsbreakdown narrow to it, and the environment your context is not bound to is omitted (null), not zeroed. Only a token with cross-context reach sees your full account-wide totals. Two exceptions to the narrowing, since they have no per-context breakdown to narrow to:reads.calls.used/reads.dataOut.bytes(metered per account, not per context) read as0for a confined token rather than a narrowed figure — the corresponding overage-credit charge fields narrow correctly; andcredits.limitstays your whole plan's ceiling, socredits.remainingmay overstate the account's true remaining room. -
getUsage
public CompletableFuture<VectrosApiHttpResponse<UsageReportResponse>> getUsage(GetUsageRequest request) Returns full usage detail for the requested calendar month, broken down by category (search, documents, and records) with per-category credit estimates and a split between your live and test environments. Defaults to the current month whenyearandmonthare omitted. Requires thebilling:rscope on scoped tokens; API keys always have access. A token confined to a single app context sees only that context's usage: totals, the environment split, and thecontextsbreakdown narrow to it, and the environment your context is not bound to is omitted (null), not zeroed. Only a token with cross-context reach sees your full account-wide totals. Two exceptions to the narrowing, since they have no per-context breakdown to narrow to:reads.calls.used/reads.dataOut.bytes(metered per account, not per context) read as0for a confined token rather than a narrowed figure — the corresponding overage-credit charge fields narrow correctly; andcredits.limitstays your whole plan's ceiling, socredits.remainingmay overstate the account's true remaining room. -
getUsage
public CompletableFuture<VectrosApiHttpResponse<UsageReportResponse>> getUsage(GetUsageRequest request, RequestOptions requestOptions) Returns full usage detail for the requested calendar month, broken down by category (search, documents, and records) with per-category credit estimates and a split between your live and test environments. Defaults to the current month whenyearandmonthare omitted. Requires thebilling:rscope on scoped tokens; API keys always have access. A token confined to a single app context sees only that context's usage: totals, the environment split, and thecontextsbreakdown narrow to it, and the environment your context is not bound to is omitted (null), not zeroed. Only a token with cross-context reach sees your full account-wide totals. Two exceptions to the narrowing, since they have no per-context breakdown to narrow to:reads.calls.used/reads.dataOut.bytes(metered per account, not per context) read as0for a confined token rather than a narrowed figure — the corresponding overage-credit charge fields narrow correctly; andcredits.limitstays your whole plan's ceiling, socredits.remainingmay overstate the account's true remaining room. -
getIssuer
Retrieves a single registered issuer by issuerId. Requires a root API key or the bootstrap's provisioning capability. A credential confined to one app context sees only an issuer registered in that context; naming one registered in another context returns 404, identically to a nonexistent issuerId. A root API key sees every context. -
getIssuer
public CompletableFuture<VectrosApiHttpResponse<IssuerResponse>> getIssuer(String issuerId, RequestOptions requestOptions) Retrieves a single registered issuer by issuerId. Requires a root API key or the bootstrap's provisioning capability. A credential confined to one app context sees only an issuer registered in that context; naming one registered in another context returns 404, identically to a nonexistent issuerId. A root API key sees every context. -
getIssuer
public CompletableFuture<VectrosApiHttpResponse<IssuerResponse>> getIssuer(String issuerId, GetIssuerRequest request) Retrieves a single registered issuer by issuerId. Requires a root API key or the bootstrap's provisioning capability. A credential confined to one app context sees only an issuer registered in that context; naming one registered in another context returns 404, identically to a nonexistent issuerId. A root API key sees every context. -
getIssuer
public CompletableFuture<VectrosApiHttpResponse<IssuerResponse>> getIssuer(String issuerId, GetIssuerRequest request, RequestOptions requestOptions) Retrieves a single registered issuer by issuerId. Requires a root API key or the bootstrap's provisioning capability. A credential confined to one app context sees only an issuer registered in that context; naming one registered in another context returns 404, identically to a nonexistent issuerId. A root API key sees every context. -
deleteIssuer
Deregisters a trusted third-party IdP issuer. Requires a root API key or the bootstrap's provisioning capability. A credential confined to one app context may only deregister an issuer registered in that context; naming one registered in another context returns 404, identically to a nonexistent issuerId. A root API key may deregister any issuer. Refused if any user account was ever created or matched via this issuer (by a prior self-signup or accepted invite, throughPOST /v1/auth/token/exchange) — that access cannot be silently orphaned. Deactivate the affected users first if you intend to cut off their access, or register a replacement issuer before removing this one. An issuer that has never been used for an exchange (no bound users yet) can always be deregistered. -
deleteIssuer
public CompletableFuture<VectrosApiHttpResponse<Void>> deleteIssuer(String issuerId, RequestOptions requestOptions) Deregisters a trusted third-party IdP issuer. Requires a root API key or the bootstrap's provisioning capability. A credential confined to one app context may only deregister an issuer registered in that context; naming one registered in another context returns 404, identically to a nonexistent issuerId. A root API key may deregister any issuer. Refused if any user account was ever created or matched via this issuer (by a prior self-signup or accepted invite, throughPOST /v1/auth/token/exchange) — that access cannot be silently orphaned. Deactivate the affected users first if you intend to cut off their access, or register a replacement issuer before removing this one. An issuer that has never been used for an exchange (no bound users yet) can always be deregistered. -
deleteIssuer
public CompletableFuture<VectrosApiHttpResponse<Void>> deleteIssuer(String issuerId, DeleteIssuerRequest request) Deregisters a trusted third-party IdP issuer. Requires a root API key or the bootstrap's provisioning capability. A credential confined to one app context may only deregister an issuer registered in that context; naming one registered in another context returns 404, identically to a nonexistent issuerId. A root API key may deregister any issuer. Refused if any user account was ever created or matched via this issuer (by a prior self-signup or accepted invite, throughPOST /v1/auth/token/exchange) — that access cannot be silently orphaned. Deactivate the affected users first if you intend to cut off their access, or register a replacement issuer before removing this one. An issuer that has never been used for an exchange (no bound users yet) can always be deregistered. -
deleteIssuer
public CompletableFuture<VectrosApiHttpResponse<Void>> deleteIssuer(String issuerId, DeleteIssuerRequest request, RequestOptions requestOptions) Deregisters a trusted third-party IdP issuer. Requires a root API key or the bootstrap's provisioning capability. A credential confined to one app context may only deregister an issuer registered in that context; naming one registered in another context returns 404, identically to a nonexistent issuerId. A root API key may deregister any issuer. Refused if any user account was ever created or matched via this issuer (by a prior self-signup or accepted invite, throughPOST /v1/auth/token/exchange) — that access cannot be silently orphaned. Deactivate the affected users first if you intend to cut off their access, or register a replacement issuer before removing this one. An issuer that has never been used for an exchange (no bound users yet) can always be deregistered. -
listIssuers
Returns the issuers registered in your tenant. Requires a root API key or the bootstrap's provisioning capability. A credential confined to one app context sees only the issuers registered in that context; a root API key sees every context. Returns a{data, nextCursor}envelope. -
listIssuers
public CompletableFuture<VectrosApiHttpResponse<IssuerPage>> listIssuers(RequestOptions requestOptions) Returns the issuers registered in your tenant. Requires a root API key or the bootstrap's provisioning capability. A credential confined to one app context sees only the issuers registered in that context; a root API key sees every context. Returns a{data, nextCursor}envelope. -
listIssuers
public CompletableFuture<VectrosApiHttpResponse<IssuerPage>> listIssuers(ListIssuersRequest request) Returns the issuers registered in your tenant. Requires a root API key or the bootstrap's provisioning capability. A credential confined to one app context sees only the issuers registered in that context; a root API key sees every context. Returns a{data, nextCursor}envelope. -
listIssuers
public CompletableFuture<VectrosApiHttpResponse<IssuerPage>> listIssuers(ListIssuersRequest request, RequestOptions requestOptions) Returns the issuers registered in your tenant. Requires a root API key or the bootstrap's provisioning capability. A credential confined to one app context sees only the issuers registered in that context; a root API key sees every context. Returns a{data, nextCursor}envelope. -
registerIssuer
public CompletableFuture<VectrosApiHttpResponse<IssuerResponse>> registerIssuer(IssuerRequest request) Registers a trusted third-party IdP issuer that BYO-IdP token exchange (POST /v1/auth/token/exchange) may accept asubject_tokenfrom. Requires a root API key or the CLI bootstrap's provisioning capability — never an ordinary partner-grantable scope. A credential authorized only via the provisioning capability may register only against the app context it is bound to; naming a different one returns 403. A root API key is unaffected and may register against any of its contexts. Idempotent byissuerIdwithin your tenant; the(issuer, audience)pair must not already be registered by a different issuerId/tenant. IfissuerIdcollides with a registration owned by a different app context than the one you're confined to, the request fails with 400 rather than returning that context's configuration. An app context may have at most one active issuer — deregister the existing one first if you need to replace it. One issuer MAY serve several contexts today, each via its own registration row with a distinctaudience. -
registerIssuer
public CompletableFuture<VectrosApiHttpResponse<IssuerResponse>> registerIssuer(IssuerRequest request, RequestOptions requestOptions) Registers a trusted third-party IdP issuer that BYO-IdP token exchange (POST /v1/auth/token/exchange) may accept asubject_tokenfrom. Requires a root API key or the CLI bootstrap's provisioning capability — never an ordinary partner-grantable scope. A credential authorized only via the provisioning capability may register only against the app context it is bound to; naming a different one returns 403. A root API key is unaffected and may register against any of its contexts. Idempotent byissuerIdwithin your tenant; the(issuer, audience)pair must not already be registered by a different issuerId/tenant. IfissuerIdcollides with a registration owned by a different app context than the one you're confined to, the request fails with 400 rather than returning that context's configuration. An app context may have at most one active issuer — deregister the existing one first if you need to replace it. One issuer MAY serve several contexts today, each via its own registration row with a distinctaudience. -
ping
Returns the identity bound to your credential — your account, principal type, key id, and scope details — so you can confirm who you are authenticated as and that the credential is valid. MCP clients use this to render "signed in as ..." in a chat UI without a separate identity endpoint. -
ping
Returns the identity bound to your credential — your account, principal type, key id, and scope details — so you can confirm who you are authenticated as and that the credential is valid. MCP clients use this to render "signed in as ..." in a chat UI without a separate identity endpoint. -
listProfilesForPrincipal
public CompletableFuture<VectrosApiHttpResponse<AccessProfilePage>> listProfilesForPrincipal(String principalId) Returns the access profiles for the given principal. Looking up your OWN principal — or holding thecontext-directory-readcapability — returns the profiles across ALL of your contexts, letting you answer questions like "which apps does this user have access to?". A context-bound credential looking up a DIFFERENT principal instead sees only that principal's profile in your credential's own context (at most one result), never across contexts it has no authority over. Results are always confined to your account. Requires theprofiles:rscope. -
listProfilesForPrincipal
public CompletableFuture<VectrosApiHttpResponse<AccessProfilePage>> listProfilesForPrincipal(String principalId, RequestOptions requestOptions) Returns the access profiles for the given principal. Looking up your OWN principal — or holding thecontext-directory-readcapability — returns the profiles across ALL of your contexts, letting you answer questions like "which apps does this user have access to?". A context-bound credential looking up a DIFFERENT principal instead sees only that principal's profile in your credential's own context (at most one result), never across contexts it has no authority over. Results are always confined to your account. Requires theprofiles:rscope. -
listProfilesForPrincipal
public CompletableFuture<VectrosApiHttpResponse<AccessProfilePage>> listProfilesForPrincipal(String principalId, ListProfilesForPrincipalRequest request) Returns the access profiles for the given principal. Looking up your OWN principal — or holding thecontext-directory-readcapability — returns the profiles across ALL of your contexts, letting you answer questions like "which apps does this user have access to?". A context-bound credential looking up a DIFFERENT principal instead sees only that principal's profile in your credential's own context (at most one result), never across contexts it has no authority over. Results are always confined to your account. Requires theprofiles:rscope. -
listProfilesForPrincipal
public CompletableFuture<VectrosApiHttpResponse<AccessProfilePage>> listProfilesForPrincipal(String principalId, ListProfilesForPrincipalRequest request, RequestOptions requestOptions) Returns the access profiles for the given principal. Looking up your OWN principal — or holding thecontext-directory-readcapability — returns the profiles across ALL of your contexts, letting you answer questions like "which apps does this user have access to?". A context-bound credential looking up a DIFFERENT principal instead sees only that principal's profile in your credential's own context (at most one result), never across contexts it has no authority over. Results are always confined to your account. Requires theprofiles:rscope. -
mintToken
Creates a short-lived JWT bearer token restricted to specific actions and, optionally, to a particular user or identity entity (in any namespace). Use this to hand a narrowly-scoped credential to a browser or downstream service so it never sees your root API key. Only callable with a root API key (sk_*). -
mintToken
public CompletableFuture<VectrosApiHttpResponse<MintTokenResponse>> mintToken(TokenRequest request, RequestOptions requestOptions) Creates a short-lived JWT bearer token restricted to specific actions and, optionally, to a particular user or identity entity (in any namespace). Use this to hand a narrowly-scoped credential to a browser or downstream service so it never sees your root API key. Only callable with a root API key (sk_*). -
createInvite
public CompletableFuture<VectrosApiHttpResponse<CreateInviteResponse>> createInvite(CreateInviteRequest request) Invite a new member to one of your app contexts by email. Creates a pending user with a pre-resolved access profile (their permissions on accept) and signs an invitation token. This call is idempotent on the combination of context and email: re-inviting the same email in the same context rotates the token and resends the invitation rather than creating a duplicate — this requires theusers:randusers:uscopes in addition tousers:c, because resending rotates a credential on an existing invitation and invalidates any link already sent. Without them the collision returns 409 instead, with no invitation details and no change to the outstanding invitation. Returns HTTP 201 on a new invite or a successful resend. Returns 409 if that email already belongs to an active or suspended member of the app context, or already has an identity elsewhere in your account (an email can currently belong to only one tenant per account, i.e. your test and live environments cannot share an email). WhensendEmailis false, the response includes the raw token and a ready-to-use accept link so you can deliver the invitation through your own email provider. Requires theusers:cscope. -
createInvite
public CompletableFuture<VectrosApiHttpResponse<CreateInviteResponse>> createInvite(CreateInviteRequest request, RequestOptions requestOptions) Invite a new member to one of your app contexts by email. Creates a pending user with a pre-resolved access profile (their permissions on accept) and signs an invitation token. This call is idempotent on the combination of context and email: re-inviting the same email in the same context rotates the token and resends the invitation rather than creating a duplicate — this requires theusers:randusers:uscopes in addition tousers:c, because resending rotates a credential on an existing invitation and invalidates any link already sent. Without them the collision returns 409 instead, with no invitation details and no change to the outstanding invitation. Returns HTTP 201 on a new invite or a successful resend. Returns 409 if that email already belongs to an active or suspended member of the app context, or already has an identity elsewhere in your account (an email can currently belong to only one tenant per account, i.e. your test and live environments cannot share an email). WhensendEmailis false, the response includes the raw token and a ready-to-use accept link so you can deliver the invitation through your own email provider. Requires theusers:cscope. -
resendInvite
public CompletableFuture<VectrosApiHttpResponse<CreateInviteResponse>> resendInvite(CreateInviteRequest request) Resend an outstanding invitation, identified by its email and app context. Rotates the invitation token and extends its expiry, then (whensendEmailis true) re-delivers the email. Rotating the token invalidates any previously issued link for this invitation, so only the newest link works. The invitee's pending permissions are left unchanged. Because this rotates a credential on an existing invitation, it requires theusers:c,users:randusers:uscopes. -
resendInvite
public CompletableFuture<VectrosApiHttpResponse<CreateInviteResponse>> resendInvite(CreateInviteRequest request, RequestOptions requestOptions) Resend an outstanding invitation, identified by its email and app context. Rotates the invitation token and extends its expiry, then (whensendEmailis true) re-delivers the email. Rotating the token invalidates any previously issued link for this invitation, so only the newest link works. The invitee's pending permissions are left unchanged. Because this rotates a credential on an existing invitation, it requires theusers:c,users:randusers:uscopes. -
exchangeToken
public CompletableFuture<VectrosApiHttpResponse<TokenExchangeResponse>> exchangeToken(TokenExchangeRequest request) RFC 8693 OAuth 2.0 Token Exchange. Trades a JWT issued by a third-party identity provider you've registered (POST /v1/auth/issuers) for a Vectrosst_*scoped bearer token — no Vectros credential required to call this endpoint. The exchanged token's scope is resolved entirely server-side from the matched user's access profile; this endpoint accepts no caller-supplied scope, resource, or audience parameter (RFC 8693 §2.1'sresource/audience/scopeare not used in v1 — the registered(issuer, audience)pair alone pins the target tenant and app context). On a first-time login (no existing Vectros identity for this subject), two opt-in binding paths exist:invite_token(aPENDINGsub-user invitation), and — if the registration declares one or more self-signup policies —signup_type(a brand-new user is created and bound to the policy's configured role). Ifinvite_tokenis present at all, it is the ONLY path tried — a failed invite never falls through to self-signup. Neither field is required for a subject with an existing identity. If your issuer is registered against more than one app context (each via its own audience),context_idselects which one to target; omit it when your token'saudclaim matches only one registered context — the common case, unaffected by this field. Uses the OAuth-standard error envelope ({"error":..., "error_description":...}, RFC 6749 §5.2), NOT this API's usual{"message":...}shape — its client is generic OAuth tooling, not the Vectros SDK. -
exchangeToken
public CompletableFuture<VectrosApiHttpResponse<TokenExchangeResponse>> exchangeToken(TokenExchangeRequest request, RequestOptions requestOptions) RFC 8693 OAuth 2.0 Token Exchange. Trades a JWT issued by a third-party identity provider you've registered (POST /v1/auth/issuers) for a Vectrosst_*scoped bearer token — no Vectros credential required to call this endpoint. The exchanged token's scope is resolved entirely server-side from the matched user's access profile; this endpoint accepts no caller-supplied scope, resource, or audience parameter (RFC 8693 §2.1'sresource/audience/scopeare not used in v1 — the registered(issuer, audience)pair alone pins the target tenant and app context). On a first-time login (no existing Vectros identity for this subject), two opt-in binding paths exist:invite_token(aPENDINGsub-user invitation), and — if the registration declares one or more self-signup policies —signup_type(a brand-new user is created and bound to the policy's configured role). Ifinvite_tokenis present at all, it is the ONLY path tried — a failed invite never falls through to self-signup. Neither field is required for a subject with an existing identity. If your issuer is registered against more than one app context (each via its own audience),context_idselects which one to target; omit it when your token'saudclaim matches only one registered context — the common case, unaffected by this field. Uses the OAuth-standard error envelope ({"error":..., "error_description":...}, RFC 6749 §5.2), NOT this API's usual{"message":...}shape — its client is generic OAuth tooling, not the Vectros SDK.
-