autessa.apiKeys
Create and manage API keys. None of these methods can be called from scripts; manage keys in the Autessa app or over the API.
autessa.apiKeys.addPermissionGroupMUTATENot scriptable
Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.
Grant a whole permission group (a resource type plus a set of resource ids) to a key in one call.
Adds the given ApiPermissionsDto (resourceType + resourceIds) to the key's scoped permissions. No-op if the key has allResources = true (it already sees everything). Widens the key's reach, so treat with care.
autessa.apiKeys.addResourcePermissionMUTATENot scriptable
Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.
Grant a key access to one specific resource (a single resourceType + resourceId).
Adds a single resource grant, skipping it if the key already has it. No-op if the key has allResources = true. Widens the key's reach — use setAllForType to grant the whole type instead of enumerating ids.
autessa.apiKeys.createMUTATENot scriptable
Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.
Create a new API key and return its one-time secret value.
Mints a secret and returns it once as keyValue (formatted keyId:secret) — it is never retrievable again, so capture it immediately. The apiKey field carries the desired configuration (name, rate limits, allowed origins, allResources or scoped permissions); isSystemKey is always forced false and cannot be set. Origins must be well-formed and rate limits positive, or the call returns errors. A key acting as another user requires Admin.
autessa.apiKeys.deleteMUTATENot scriptable
Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.
Permanently delete a (disabled) API key.
Irreversible. The key must already be disabled — deleting an enabled key returns an error, so call apiKeys.disable first. Scoped to your company; an id outside it reports as not found.
autessa.apiKeys.deleteSpecificPermissionMUTATENot scriptable
Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.
Revoke a key's grant to one specific resource (a single resourceType + resourceId).
Removes exactly one per-resource grant, narrowing the key's access. Returns deleted = false if no such grant existed.
autessa.apiKeys.disableMUTATENot scriptable
Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.
Disable (deactivate) an API key so it authenticates to nothing.
Flips isEnabled to false; the key stops working immediately but is not deleted. A key must be disabled before it can be deleted with apiKeys.delete.
autessa.apiKeys.enableMUTATENot scriptable
Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.
Enable (activate) an API key so it can authenticate again.
Flips isEnabled to true. A newly enabled key authenticates with whatever secret it already has — enabling does not mint a new secret.
autessa.apiKeys.getREADNot scriptable
Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.
Fetch a single API key's configuration by id.
Returns the key's configuration (never the secret). Scoped to your company: a key id outside your company, or the backend system key when you are not an Admin, reports as not found.
autessa.apiKeys.grantEsignaturePermissionMUTATENot scriptable
Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.
Grant or overwrite a key's access level on one e-signature envelope.
Sets the key's access level for the given envelope in its e-signature metadata (envelopes use UUID ids and a four-level ladder, so they live outside the resource-id permission table). envelopeId must be a valid UUID and level is required, or the call returns errors. Widens the key's reach over signed documents.
autessa.apiKeys.listREADNot scriptable
Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.
List every API key in the current company.
Returns all keys in your company (secrets never included). The backend system key is omitted unless you are an Admin. Not paginated.
autessa.apiKeys.monthlyStatsREADNot scriptable
Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.
Read a key's aggregated request usage for a given month, broken down by servlet path, agent, and tool.
Returns success/error/total request counts for the key in the given year and month, plus per-servlet-path, per-agent, and per-tool breakdowns. Read-only aggregation over the transaction log.
autessa.apiKeys.refreshMUTATENot scriptable
Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.
Rotate an API key's secret, returning the new one-time value and invalidating the old one.
Mints a fresh secret for the same key id and returns it once as keyValue (keyId:secret) — capture it immediately, it cannot be retrieved again. The previous secret stops working the moment this succeeds, so update every caller.
autessa.apiKeys.removeAllPermissionsForTypeMUTATENot scriptable
Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.
Revoke all of a key's grants for one resource type (both per-id and wildcard).
Deletes every permission the key holds for resourceType, narrowing its access. Scoped to your company; an id outside it reports removed = false.
autessa.apiKeys.revokeEsignaturePermissionMUTATENot scriptable
Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.
Revoke a key's access to one e-signature envelope.
Removes the key's per-envelope grant from its e-signature metadata, narrowing its access. envelopeId must be a valid UUID, or the call returns errors.
autessa.apiKeys.setAllPermissionsForTypeMUTATENot scriptable
Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.
Grant a key access to ALL current and future resources of one type, replacing any per-id grants for that type.
Deletes the key's existing per-id grants for resourceType and installs a single wildcard grant covering every resource of that type — including ones created later. This meaningfully widens the key's blast radius; prefer addResource when only specific resources are intended.
autessa.apiKeys.transactionHistoryREADNot scriptable
Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.
List a key's request history, newest first, one fixed-size page at a time (page is 0-based).
Returns the key's logged requests, optionally bounded by startDate/endDate. Page through with hasNext/totalPages. Each entry includes the endpoint, status code, latency, and a 500-character request preview.
autessa.apiKeys.updateMUTATENot scriptable
Scripts can't call this method: it isn't on the autessa global. It's listed for reference; do this in the Autessa app or over the API instead.
Update an API key by submitting its modified configuration in updatedApiKey (read with apiKeys.get, modify, submit).
The submitted updatedApiKey replaces the stored configuration wholesale — start from the entity returned by apiKeys.get so unmentioned fields survive. Origins must be well-formed and rate limits positive; isSystemKey cannot be set. Does not rotate the secret (use apiKeys.refresh) and does not itself grant per-resource permissions (use keys.permissions.*).