Custom Webhooks
Custom webhooks give you a public HTTPS endpoint that external systems (payment processors, CRMs, CI pipelines, form builders) can call to trigger a tool, agent, manager, or AutessaDB operation inside Autessa. This page covers managing webhook definitions — creating them, updating their configuration, rotating keys, sharing, and auditing deliveries — via the poweruser API.
This page manages webhook definitions. External systems call the webhook through the client-side execution endpoint (/clients/custom-webhooks?resourceId={webhookId}), which accepts any HTTP method and authenticates with the webhook's own wh: key, the sender's signature, or a validation script. See the Custom Webhooks execution API for the trigger URL, payload format, and execution pipeline.
Base URL
https://api.autessa.com/autessa_poweruser/custom-webhooks
All management endpoints are POST with a JSON body. Authenticate with your poweruser key in the Authorization header (no Bearer prefix):
Authorization: pwrusr:{id}:{secret}
The webhook object
Every webhook returned by these endpoints has the same shape.
- Name
id- Type
- string
- Description
Unique ID of the webhook. This is the
resourceIdexternal systems use in the trigger URL:https://api.autessa.com/clients/custom-webhooks?resourceId={id}.
- Name
companyId- Type
- string
- Description
The company that owns the webhook.
- Name
ownerId- Type
- string
- Description
The user who created the webhook. Only the owner can delete it.
- Name
webhookConfig- Type
- object
- Description
The full webhook configuration. See The webhookConfig object below.
- Name
apiKeyId- Type
- string
- Description
ID of the dedicated webhook API key. This matches the
{keyId}segment of the webhook'swh:{keyId}:{keySecret}key. The secret itself is never returned here — only from/createand/refresh-api-key.
- Name
isEnabled- Type
- boolean
- Description
Whether the webhook accepts deliveries. Disabled webhooks reject trigger requests.
- Name
sharingLevel- Type
- string
- Description
Visibility of the webhook:
PRIVATE,SPECIFIC_MEMBER, orCOMPANY.
- Name
companyPermissionLevel- Type
- string
- Description
Access level granted to everyone in the company when
sharingLevelisCOMPANY:READ,WRITE,PUBLISH, orADMIN.
- Name
createdAt- Type
- string
- Description
When the webhook was created, as an ISO-8601 UTC timestamp (e.g.
2026-06-30T18:22:41).
- Name
updatedAt- Type
- string
- Description
When the webhook was last updated, as an ISO-8601 UTC timestamp.
- Name
userAccessLevel- Type
- string
- Description
The calling user's effective access to this webhook:
READ,WRITE,PUBLISH, orADMIN.
The webhookConfig object
- Name
name- Type
- string
- Description
Display name of the webhook. Required on create.
- Name
description- Type
- string
- Description
What the webhook is for.
- Name
validationConfig- Type
- object
- Description
Custom request validation; required when
authModeisSCRIPT. See validationConfig.
- Name
payloadTransformConfig- Type
- object
- Description
How the incoming payload is turned into variables. See payloadTransformConfig.
- Name
resourceExecutionConfig- Type
- object
- Description
Which resource runs when the webhook fires, and with what inputs. See resourceExecutionConfig.
- Name
executionSettings- Type
- object
- Description
Timeout and retry behavior. See executionSettings.
- Name
authMode- Type
- string
- Description
How callers authenticate:
API_KEY(default: the webhook'swh:key, plus the signature too if asignatureConfigis set),SIGNATURE(the sender's signature, verified withsignatureConfig; the trigger URL carries no key),API_KEY_OR_SIGNATURE(a key that is sent must be valid; with no key, the signature must verify), orSCRIPT(no key and no built-in signature: the validation script decides, and is required; the trigger URL carries no key).
- Name
signatureConfig- Type
- object
- Description
The sender's signature scheme, verified on every call when set. See signatureConfig.
- Name
handshakeConfig- Type
- object
- Description
Verification handshakes answered immediately, without running the handler. See handshakeConfig.
- Name
responseConfig- Type
- object
- Description
The HTTP reply the sender receives. Omit for the execution JSON with status
200(when asignatureConfigorhandshakeConfigis set) or202. See responseConfig.
- Name
dedupeConfig- Type
- object
- Description
Which field identifies a redelivery of the same event. Omit to use the signature scheme's delivery ID, where it has one. See dedupeConfig.
validationConfig
- Name
enableValidation- Type
- boolean
- Description
Records whether validation is switched on in the builder. It does not control whether the script runs: a webhook with a
validationScriptruns it on every delivery. To stop validating, remove the script.
- Name
validationScript- Type
- string
- Description
AutessaScript that runs on every delivery after the key or signature check; with
authMode: SCRIPTit is the only check, and it is required. It receivesmethod,url,body,headers,headersLower, andqueryParamsas variables (keys redacted; signature headers are kept) and answers withresponse.setResponse(String(true))orString(false)—falserejects the delivery with401. For a signature schemesignatureConfigdoesn't cover, check it withsecrets.verifyHmac,secrets.verifyHmacSha256, orcryptoUtils.verifySignature. See Webhook scripts.
signatureConfig
See Signature verification for each provider's header and secret.
- Name
scheme- Type
- string
- Description
META,GITHUB,STRIPE,SLACK,SHOPIFY,TWILIO,SVIX, orGENERIC_HMAC.
- Name
secretName- Type
- string
- Description
Name of the Autessa Secret holding the signing secret (App Secret, Signing Secret, Auth Token,
whsec_secret, and so on). The value is never stored in the webhook config. Saving adds this webhook to the secret's What can use it list if you haveUSEon it.
- Name
header- Type
- string
- Description
GENERIC_HMAConly: the header carrying the signature.
- Name
algorithm- Type
- string
- Description
GENERIC_HMAConly:SHA256(default),SHA1, orSHA512.
- Name
encoding- Type
- string
- Description
GENERIC_HMAConly:HEX(default) orBASE64.
- Name
prefix- Type
- string
- Description
GENERIC_HMAConly: text removed from the header value before comparing, e.g.sha256=.
- Name
toleranceSeconds- Type
- integer
- Description
STRIPE,SLACK, andSVIX: maximum age of the signed timestamp, in seconds. Defaults to300.
handshakeConfig
See Verification handshakes for what each preset answers.
- Name
preset- Type
- string
- Description
META,SLACK,MS_GRAPH,DROPBOX,ZOOM,X, orCUSTOM.Xanswers aGETwith acrc_tokenquery parameter with{"response_token": "sha256=..."}, the base64 HMAC-SHA256 ofcrc_tokenkeyed by your X app's consumer secret. A token containing{or[, or longer than 512 characters, is refused.
- Name
verifyToken- Type
- string
- Description
METAonly: the verify token entered in the Meta app dashboard. The handshake is refused unlesshub.verify_tokenmatches it.
- Name
secretName- Type
- string
- Description
ZOOMandXonly, and required for them: name of the Autessa Secret holding the Zoom Secret Token or the X consumer secret. Saving adds this webhook to the secret's What can use it list if you haveUSEon it.
- Name
script- Type
- string
- Description
AutessaScript checked after the preset and the rules, for handshakes no rule can express, such as a computed answer or a call back to the sender to confirm a subscription. It can be set with no preset. It sees the same variables as a validation script. Set no response for a normal delivery,
response.setResponse(JSON.stringify({status, contentType, body}))to answer the call, orresponse.setResponse('text')for a200text/plainreply; throwing refuses the call with401. It runs before authentication, so it must check the sender's signature itself. Because anyone with the URL can run it, it can use only theapi,secrets,cryptoUtils, andmathUtilshelpers, itsapicalls return only their status, and once it has called out its reply is a plain200acknowledgment. See Handshake script.
- Name
rules- Type
- array<object>
- Description
Custom rules, checked after the preset (or on their own with
CUSTOM). Each rule hasmethod(optional; any method when omitted),whenSource(QUERY,HEADER, orBODY),whenPath(field name or dotted body path),whenEquals(optional; presence is enough when omitted),replyStatus(default200),replyContentType(defaulttext/plain), andreplyFrom(query.<name>,header.<name>,body.<path>, or literal text).
responseConfig
- Name
mode- Type
- string
- Description
ACK(default): reply immediately and run the handler afterwards.HANDLER_OUTPUT(TOOLhandlers only): run the tool during the request and reply with its result; if the tool fails, the sender gets500with{"error": "..."}.
- Name
statusCode- Type
- integer
- Description
Status of the acknowledgement. Defaults to
200when the webhook has asignatureConfigorhandshakeConfig, otherwise202.
- Name
contentType- Type
- string
- Description
Content type of the acknowledgement. Defaults to
application/json.
- Name
bodyTemplate- Type
- string
- Description
Body of the acknowledgement. Supports
@@{executionId},@@{webhookId},@@{query.<name>},@@{header.<name>}, and@@{body.<path>}. Omit to keep the default execution JSON.
- Name
syncTimeoutSeconds- Type
- integer
- Description
HANDLER_OUTPUTonly: seconds to wait for the tool before sending the acknowledgement and finishing in the background. Defaults to10, maximum25.
dedupeConfig
Without a dedupeConfig, webhooks whose signature scheme carries a delivery ID dedupe on it: GITHUB (X-GitHub-Delivery header), STRIPE (body id), SLACK (body event_id), SHOPIFY (X-Shopify-Webhook-Id header), and SVIX (svix-id header). META, TWILIO, GENERIC_HMAC, and SCRIPT-mode webhooks don't dedupe by default. See Duplicate deliveries.
- Name
source- Type
- string
- Description
HEADERorBODY.
- Name
path- Type
- string
- Description
Header name, or dotted path into the body (e.g.
id,event_id). An emptypathturns deduplication off.
- Name
windowHours- Type
- integer
- Description
How long a delivery ID is remembered. Defaults to
72.
payloadTransformConfig
- Name
transformType- Type
- string
- Description
JSONPATH(default) orAUTESSA_SCRIPT.
- Name
jsonPathMappings- Type
- object
- Description
Map of variable name to JSONPath expression evaluated against the delivery body, e.g.
{"orderId": "$.order.id"}. Used whentransformTypeisJSONPATH.
- Name
transformScript- Type
- string
- Description
AutessaScript for complex transformations. It receives
payload(raw body string),headers, andqueryParamsas variables (keys redacted) and must return a JSON object of variable mappings. Used whentransformTypeisAUTESSA_SCRIPT.
The extracted variables are substituted into the handler's configured inputs wherever a @@{variableName} reference appears.
resourceExecutionConfig
- Name
resourceType- Type
- string
- Description
Type of resource to execute:
TOOL,AGENT,MANAGER, orAUTESSADB.
- Name
resourceId- Type
- string
- Description
ID of the target tool, agent, or manager. Not used when
resourceTypeisAUTESSADB— the target table is set inautessaDbConfig.targetTableIdinstead.
- Name
variables- Type
- object
- Description
Tool input variables (
TOOLonly). Values support@@{variableName}references.
- Name
environmentVariables- Type
- object
- Description
Environment variables for the execution (
TOOL,AGENT,MANAGER). Values support@@{variableName}references.
- Name
promptTemplateVariables- Type
- object
- Description
Prompt template variables (
AGENT,MANAGER). Values support@@{variableName}references.
- Name
privateVariables- Type
- object
- Description
Secret variables (
TOOL). Not written to execution logs. Values support@@{variableName}references.
- Name
userMessage- Type
- string
- Description
The user message sent to the agent or manager (
AGENT,MANAGER). Supports@@{variableName}references.
- Name
autessaDbConfig- Type
- object
- Description
Direct database operation configuration (
AUTESSADBonly). See autessaDbConfig.
autessaDbConfig
- Name
operation- Type
- string
- Description
The database operation:
INSERT,UPDATE,UPSERT, orDELETE.
- Name
targetTableId- Type
- string
- Description
ID of the target AutessaDB table.
- Name
values- Type
- object
- Description
Column values to insert or update. Map of column name to a typed column-value object (
columnTypeplus the matching value field, e.g.textValue,integerValue,floatValue,booleanValue,multiSelectValue,filePath, orvariableValue). Values support@@{variableName}references.
- Name
recordId- Type
- string
- Description
For single-row updates: the specific record ID to update. Mutually exclusive with
whereGroups. Supports@@{variableName}references.
- Name
whereGroups- Type
- array<object>
- Description
For batch updates: WHERE condition groups matching the records to modify. Mutually exclusive with
recordId.
- Name
groupsLogicalOperator- Type
- string
- Description
Logical operator between WHERE groups:
ANDorOR. Only used withwhereGroups.
- Name
description- Type
- string
- Description
Optional description of what the operation does.
executionSettings
- Name
timeoutSeconds- Type
- integer
- Description
Execution timeout in seconds. Defaults to
300.
- Name
maxRetries- Type
- integer
- Description
How many more times the handler runs after it fails in the background. Defaults to
3. Not used forHANDLER_OUTPUTreplies.
- Name
retryDelaySeconds- Type
- integer
- Description
Delay before the first retry, in seconds. Defaults to
5, doubling on each attempt up to 15 minutes.
{
"id": "V1StGXR8Z5",
"companyId": "kTn4vB2p9Q",
"ownerId": "aB3xK9mQ2w",
"webhookConfig": {
"name": "Order events",
"description": "Handles order.created events from the storefront",
"validationConfig": {
"enableValidation": false
},
"payloadTransformConfig": {
"transformType": "JSONPATH",
"jsonPathMappings": {
"orderId": "$.order.id",
"eventType": "$.event.type"
}
},
"resourceExecutionConfig": {
"resourceType": "AGENT",
"resourceId": "pQ7wXr2LmN",
"userMessage": "Process order @@{orderId} for event @@{eventType}",
"environmentVariables": {
"SOURCE": "storefront"
},
"promptTemplateVariables": {}
},
"executionSettings": {
"timeoutSeconds": 300,
"maxRetries": 3,
"retryDelaySeconds": 5
}
},
"apiKeyId": "c1f2a3b4-5d6e-4789-9abc-0def12345678",
"isEnabled": true,
"sharingLevel": "PRIVATE",
"companyPermissionLevel": null,
"createdAt": "2026-06-30T18:22:41",
"updatedAt": "2026-06-30T18:22:41",
"userAccessLevel": "ADMIN"
}
Create Webhook POST/create
Creates a new webhook handler. The webhook is created enabled, and a dedicated webhook API key (named after the webhook) is generated for it. The response returns the full key value — wh:{keyId}:{keySecret} — once; only the key ID is stored retrievably, so save the key now. If you lose it, rotate it with /refresh-api-key.
The webhook's public trigger URL is derived from the returned id:
https://api.autessa.com/clients/custom-webhooks?resourceId={id}
The webhookConfig.name field is required; everything else in the configuration is optional and can be filled in later with /update.
Request Body
- Name
webhookConfig- Type
- object
- Description
The webhook configuration. Must include
name. See The webhookConfig object.
Response
- Name
webhook- Type
- object
- Description
The created webhook. See The webhook object.
- Name
apiKey- Type
- string
- Description
The full webhook API key (
wh:{keyId}:{keySecret}). Returned only in this response — store it securely.
- Name
errors- Type
- array<string>
- Description
Array of error messages. Absent on success.
- cURL
- JavaScript
- Python
curl https://api.autessa.com/autessa_poweruser/custom-webhooks/create \
-H "Authorization: $POWERUSER_KEY" \
-H "Content-Type: application/json" \
-d '{
"webhookConfig": {
"name": "Order events",
"description": "Handles order.created events from the storefront",
"payloadTransformConfig": {
"transformType": "JSONPATH",
"jsonPathMappings": {
"orderId": "$.order.id",
"eventType": "$.event.type"
}
},
"resourceExecutionConfig": {
"resourceType": "AGENT",
"resourceId": "pQ7wXr2LmN",
"userMessage": "Process order @@{orderId} for event @@{eventType}"
}
}
}'
const response = await fetch(
'https://api.autessa.com/autessa_poweruser/custom-webhooks/create',
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': process.env.POWERUSER_KEY
},
body: JSON.stringify({
webhookConfig: {
name: 'Order events',
description: 'Handles order.created events from the storefront',
payloadTransformConfig: {
transformType: 'JSONPATH',
jsonPathMappings: {
orderId: '$.order.id',
eventType: '$.event.type'
}
},
resourceExecutionConfig: {
resourceType: 'AGENT',
resourceId: 'pQ7wXr2LmN',
userMessage: 'Process order @@{orderId} for event @@{eventType}'
}
}
})
}
);
const data = await response.json();
console.log(data.webhook.id, data.apiKey); // save the key!
import os
import requests
response = requests.post(
'https://api.autessa.com/autessa_poweruser/custom-webhooks/create',
headers={'Authorization': os.environ['POWERUSER_KEY']},
json={
'webhookConfig': {
'name': 'Order events',
'description': 'Handles order.created events from the storefront',
'payloadTransformConfig': {
'transformType': 'JSONPATH',
'jsonPathMappings': {
'orderId': '$.order.id',
'eventType': '$.event.type'
}
},
'resourceExecutionConfig': {
'resourceType': 'AGENT',
'resourceId': 'pQ7wXr2LmN',
'userMessage': 'Process order @@{orderId} for event @@{eventType}'
}
}
}
)
data = response.json()
print(data['webhook']['id'], data['apiKey']) # save the key!
{
"webhook": {
"id": "V1StGXR8Z5",
"companyId": "kTn4vB2p9Q",
"ownerId": "aB3xK9mQ2w",
"webhookConfig": {
"name": "Order events",
"description": "Handles order.created events from the storefront",
"payloadTransformConfig": {
"transformType": "JSONPATH",
"jsonPathMappings": {
"orderId": "$.order.id",
"eventType": "$.event.type"
}
},
"resourceExecutionConfig": {
"resourceType": "AGENT",
"resourceId": "pQ7wXr2LmN",
"userMessage": "Process order @@{orderId} for event @@{eventType}"
}
},
"apiKeyId": "c1f2a3b4-5d6e-4789-9abc-0def12345678",
"isEnabled": true,
"sharingLevel": "PRIVATE",
"createdAt": "2026-06-30T18:22:41",
"updatedAt": "2026-06-30T18:22:41",
"userAccessLevel": "ADMIN"
},
"apiKey": "wh:c1f2a3b4-5d6e-4789-9abc-0def12345678:sk_9f8e7d6c5b4a"
}
Get Webhook POST/get
Fetches a single webhook by ID. Requires at least READ access to the webhook.
Request Body
- Name
webhookId- Type
- string
- Description
ID of the webhook to fetch.
Response
- Name
webhook- Type
- object
- Description
The webhook. See The webhook object.
- Name
errors- Type
- array<string>
- Description
Array of error messages. Absent on success.
curl https://api.autessa.com/autessa_poweruser/custom-webhooks/get \
-H "Authorization: $POWERUSER_KEY" \
-H "Content-Type: application/json" \
-d '{"webhookId": "V1StGXR8Z5"}'
{
"webhook": {
"id": "V1StGXR8Z5",
"companyId": "kTn4vB2p9Q",
"ownerId": "aB3xK9mQ2w",
"webhookConfig": {
"name": "Order events",
"resourceExecutionConfig": {
"resourceType": "AGENT",
"resourceId": "pQ7wXr2LmN"
}
},
"apiKeyId": "c1f2a3b4-5d6e-4789-9abc-0def12345678",
"isEnabled": true,
"sharingLevel": "PRIVATE",
"createdAt": "2026-06-30T18:22:41",
"updatedAt": "2026-06-30T18:22:41",
"userAccessLevel": "ADMIN"
}
}
List Webhooks POST/get-all
Lists every webhook the calling user can access in the current company — webhooks they own, webhooks shared with them directly, and company-shared webhooks.
Request Body
No fields — send an empty JSON object ({}).
Response
- Name
webhooks- Type
- array<object>
- Description
All accessible webhooks. See The webhook object.
- Name
errors- Type
- array<string>
- Description
Array of error messages. Absent on success.
curl https://api.autessa.com/autessa_poweruser/custom-webhooks/get-all \
-H "Authorization: $POWERUSER_KEY" \
-H "Content-Type: application/json" \
-d '{}'
{
"webhooks": [
{
"id": "V1StGXR8Z5",
"companyId": "kTn4vB2p9Q",
"ownerId": "aB3xK9mQ2w",
"webhookConfig": {
"name": "Order events"
},
"apiKeyId": "c1f2a3b4-5d6e-4789-9abc-0def12345678",
"isEnabled": true,
"sharingLevel": "COMPANY",
"companyPermissionLevel": "READ",
"createdAt": "2026-06-30T18:22:41",
"updatedAt": "2026-06-30T18:22:41",
"userAccessLevel": "ADMIN"
}
]
}
Update Webhook POST/update
Updates a webhook's configuration and/or toggles it on or off. Requires WRITE access or higher — READ-only users are rejected.
The webhookConfig you send replaces the stored configuration, so send the complete config (fetch it with /get, modify, and send it back). If isEnabled is omitted, the current enabled state is kept.
Request Body
- Name
webhookId- Type
- string
- Description
ID of the webhook to update.
- Name
webhookConfig- Type
- object
- Description
The full replacement configuration. See The webhookConfig object.
- Name
isEnabled- Type
- boolean
- Description
Set
falseto pause deliveries,trueto resume. Unchanged if omitted.
Response
- Name
webhook- Type
- object
- Description
The updated webhook. See The webhook object.
- Name
errors- Type
- array<string>
- Description
Array of error messages. Absent on success.
curl https://api.autessa.com/autessa_poweruser/custom-webhooks/update \
-H "Authorization: $POWERUSER_KEY" \
-H "Content-Type: application/json" \
-d '{
"webhookId": "V1StGXR8Z5",
"webhookConfig": {
"name": "Order events",
"description": "Now also handles refund events",
"payloadTransformConfig": {
"transformType": "JSONPATH",
"jsonPathMappings": {
"orderId": "$.order.id",
"eventType": "$.event.type"
}
},
"resourceExecutionConfig": {
"resourceType": "AGENT",
"resourceId": "pQ7wXr2LmN",
"userMessage": "Process order @@{orderId} for event @@{eventType}"
}
},
"isEnabled": true
}'
{
"webhook": {
"id": "V1StGXR8Z5",
"companyId": "kTn4vB2p9Q",
"ownerId": "aB3xK9mQ2w",
"webhookConfig": {
"name": "Order events",
"description": "Now also handles refund events"
},
"apiKeyId": "c1f2a3b4-5d6e-4789-9abc-0def12345678",
"isEnabled": true,
"sharingLevel": "PRIVATE",
"createdAt": "2026-06-30T18:22:41",
"updatedAt": "2026-07-01T09:15:03",
"userAccessLevel": "ADMIN"
}
}
Delete Webhook POST/delete
Permanently deletes a webhook. Only the webhook's owner can delete it — even ADMIN-level collaborators are rejected. External calls to the webhook's trigger URL stop working immediately.
Request Body
- Name
webhookId- Type
- string
- Description
ID of the webhook to delete.
Response
- Name
deleted- Type
- boolean
- Description
trueif the webhook was deleted.
- Name
errors- Type
- array<string>
- Description
Array of error messages. Absent on success.
curl https://api.autessa.com/autessa_poweruser/custom-webhooks/delete \
-H "Authorization: $POWERUSER_KEY" \
-H "Content-Type: application/json" \
-d '{"webhookId": "V1StGXR8Z5"}'
{
"deleted": true
}
Refresh API Key POST/refresh-api-key
Rotates the webhook's API key. The old key is invalidated immediately — any external system still sending it will start receiving 401 on the trigger URL — and a new full key value is generated and returned once in this response. Update the calling systems with the new key right away.
Requires ADMIN access to the webhook.
Request Body
- Name
webhookId- Type
- string
- Description
ID of the webhook whose key to rotate.
Response
- Name
apiKey- Type
- string
- Description
The new webhook API key (
wh:{keyId}:{keySecret}). Returned only in this response — store it securely.
- Name
errors- Type
- array<string>
- Description
Array of error messages. Absent on success.
curl https://api.autessa.com/autessa_poweruser/custom-webhooks/refresh-api-key \
-H "Authorization: $POWERUSER_KEY" \
-H "Content-Type: application/json" \
-d '{"webhookId": "V1StGXR8Z5"}'
{
"apiKey": "wh:c1f2a3b4-5d6e-4789-9abc-0def12345678:sk_2b3c4d5e6f7a"
}
Get Execution History POST/get-execution-history
Returns the paginated delivery log for a webhook — every trigger request, including handshakes, duplicates, and rejected calls, with its status, timing, and full execution details (request payload, transformed variables, and the handler's request/response). Requires at least READ access to the webhook.
Each entry's executionId matches the executionId returned to the caller by the execution endpoint, so you can correlate a specific delivery end to end. To run a stored delivery again, use Replay in the builder or autessa custom-webhooks replay --executionId <executionId>; to try a sample call without a sender, use autessa custom-webhooks test (see Test and replay from the CLI).
Request Body
- Name
webhookId- Type
- string
- Description
ID of the webhook whose history to fetch.
- Name
status- Type
- string
- Description
Optional status filter:
QUEUED,PROCESSING,SUCCESS,FAILED,TRANSFORM_FAILED,RETRYING,HANDSHAKE,DUPLICATE, orREJECTED. Omit to return all statuses.
- Name
page- Type
- integer
- Description
Zero-based page number. Defaults to
0.
- Name
size- Type
- integer
- Description
Page size. Defaults to
20.
Response
- Name
history- Type
- array<object>
- Description
Execution history entries, one per delivery attempt. See fields below.
- Name
totalPages- Type
- integer
- Description
Total number of pages available.
- Name
totalElements- Type
- integer
- Description
Total number of history entries matching the query.
- Name
currentPage- Type
- integer
- Description
The zero-based page number returned.
- Name
errors- Type
- array<string>
- Description
Array of error messages. Absent on success.
History entry fields
- Name
id- Type
- string
- Description
Unique ID of the history record (a UUID string).
- Name
executionId- Type
- string
- Description
Delivery correlation ID — the same value the execution endpoint returned to the external caller.
- Name
webhookId- Type
- string
- Description
ID of the webhook that received the delivery.
- Name
resourceType- Type
- string
- Description
Type of handler resource that ran:
TOOL,AGENT,MANAGER, orAUTESSADB.
- Name
resourceId- Type
- string
- Description
ID of the handler resource that ran.
- Name
queuedAt- Type
- string
- Description
When the delivery was accepted and queued (ISO-8601 UTC timestamp).
- Name
startedAt- Type
- string
- Description
When background execution started. Null while still queued.
- Name
endedAt- Type
- string
- Description
When execution finished. Null until the run completes.
- Name
durationMs- Type
- integer
- Description
Execution duration in milliseconds.
- Name
status- Type
- string
- Description
Current status of the delivery:
QUEUED,PROCESSING,SUCCESS,FAILED,TRANSFORM_FAILED(the payload transform failed and the handler did not run),RETRYING(failed, and will run again),HANDSHAKE(a verification handshake answered without running the handler),DUPLICATE(a redelivery that was not run again), orREJECTED(failed the key, signature, or validation check and got a401;errorMessagesays why).
- Name
attemptNumber- Type
- integer
- Description
Which retry attempt this entry represents (
1for the first attempt).
- Name
executionDetails- Type
- object
- Description
Full delivery detail. See fields below.
executionDetails fields
- Name
webhookName- Type
- string
- Description
Name of the webhook at the time of delivery.
- Name
httpMethod- Type
- string
- Description
HTTP method the external system used (
GET,POST,PUT,DELETE,PATCH).
- Name
sourceIp- Type
- string
- Description
IP address the delivery came from.
- Name
requestHeaders- Type
- string
- Description
The delivery's HTTP headers, JSON-encoded. The webhook key and other credential headers are redacted.
- Name
requestPayload- Type
- string
- Description
The raw request body as received.
- Name
transformType- Type
- string
- Description
Transform that was applied:
JSONPATHorAUTESSA_SCRIPT.
- Name
transformedVariables- Type
- string
- Description
The variables extracted from the payload, JSON-encoded.
- Name
transformError- Type
- string
- Description
Error message if the payload transform failed. Null otherwise.
- Name
resourceRequestJson- Type
- string
- Description
The request sent to the handler resource, JSON-encoded.
- Name
resourceResponseJson- Type
- string
- Description
The handler resource's response, JSON-encoded.
- Name
errorMessage- Type
- string
- Description
Error message if execution failed. Null otherwise.
- cURL
- JavaScript
- Python
curl https://api.autessa.com/autessa_poweruser/custom-webhooks/get-execution-history \
-H "Authorization: $POWERUSER_KEY" \
-H "Content-Type: application/json" \
-d '{
"webhookId": "V1StGXR8Z5",
"status": "FAILED",
"page": 0,
"size": 20
}'
const response = await fetch(
'https://api.autessa.com/autessa_poweruser/custom-webhooks/get-execution-history',
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': process.env.POWERUSER_KEY
},
body: JSON.stringify({
webhookId: 'V1StGXR8Z5',
status: 'FAILED',
page: 0,
size: 20
})
}
);
const data = await response.json();
for (const entry of data.history) {
console.log(entry.executionId, entry.status, entry.durationMs);
}
import os
import requests
response = requests.post(
'https://api.autessa.com/autessa_poweruser/custom-webhooks/get-execution-history',
headers={'Authorization': os.environ['POWERUSER_KEY']},
json={
'webhookId': 'V1StGXR8Z5',
'status': 'FAILED',
'page': 0,
'size': 20
}
)
data = response.json()
for entry in data['history']:
print(entry['executionId'], entry['status'], entry['durationMs'])
{
"history": [
{
"id": "7d0a4c2e-91f3-4b6a-8c5d-1e2f3a4b5c6d",
"executionId": "exec_f47ac10b58cc",
"webhookId": "V1StGXR8Z5",
"resourceType": "AGENT",
"resourceId": "pQ7wXr2LmN",
"queuedAt": "2026-07-01T08:30:12",
"startedAt": "2026-07-01T08:30:13",
"endedAt": "2026-07-01T08:30:19",
"durationMs": 6114,
"status": "FAILED",
"attemptNumber": 1,
"executionDetails": {
"webhookName": "Order events",
"httpMethod": "POST",
"sourceIp": "203.0.113.42",
"requestHeaders": "{\"content-type\": \"application/json\"}",
"requestPayload": "{\"order\": {\"id\": \"ord_991\"}, \"event\": {\"type\": \"order.created\"}}",
"transformType": "JSONPATH",
"transformedVariables": "{\"orderId\": \"ord_991\", \"eventType\": \"order.created\"}",
"transformError": null,
"resourceRequestJson": "{\"agentId\": \"pQ7wXr2LmN\", \"input\": [...]}",
"resourceResponseJson": null,
"errorMessage": "Agent execution timed out after 300 seconds"
}
}
],
"totalPages": 3,
"totalElements": 47,
"currentPage": 0
}
Share Webhook POST/share
Changes who can see and manage a webhook. Requires ADMIN access, and the webhook must belong to your current company.
Sharing has three levels:
PRIVATE— only the owner (and existing direct shares) can access it.COMPANY— everyone in the company gets the access level inaccessLevel.SPECIFIC_MEMBER— the users inusersToAddget their individual access levels.
COMPANY adds a company-wide grant and keeps everyone already shared individually at their own level. People get the highest level from any grant that covers them.Request Body
- Name
webhookId- Type
- string
- Description
ID of the webhook to share.
- Name
level- Type
- string
- Description
Sharing level:
PRIVATE,COMPANY, orSPECIFIC_MEMBER.
- Name
accessLevel- Type
- string
- Description
Access level granted company-wide:
READ,WRITE,PUBLISH, orADMIN. Required whenlevelisCOMPANY.
- Name
usersToAdd- Type
- array<object>
- Description
Users to grant access to. Required when
levelisSPECIFIC_MEMBER. Each entry hasuserEmail(string),userId(string), andaccessLevel(string).
- Name
usersToRemove- Type
- array<object>
- Description
Users to drop from access when editing an existing share. Same entry shape as
usersToAdd.
Response
- Name
updated- Type
- boolean
- Description
trueif the sharing settings were saved.
- Name
errors- Type
- array<string>
- Description
Array of error messages. Absent on success.
curl https://api.autessa.com/autessa_poweruser/custom-webhooks/share \
-H "Authorization: $POWERUSER_KEY" \
-H "Content-Type: application/json" \
-d '{
"webhookId": "V1StGXR8Z5",
"level": "SPECIFIC_MEMBER",
"usersToAdd": [
{
"userEmail": "teammate@example.com",
"userId": "mK4rT8vZ1x",
"accessLevel": "WRITE"
}
]
}'
{
"updated": true
}
Errors
All endpoints return errors in a consistent shape. Exceptions are caught server-side and folded into the errors array of the response — when errors is present, the HTTP status is non-2xx.
- Name
errors- Type
- array<string>
- Description
Human-readable error messages, e.g.
"Webhook not found","Webhook must have a name in the configuration","Only the owner can delete this webhook","Only admins can refresh the API key".
Common failure cases:
- 401 — missing or invalid poweruser key, or the key lacks access to the target webhook (not-found and permission failures are both reported this way).
- Validation failures — missing
webhookConfig, or a config without anameon create. - Permission failures —
READ-only users calling/update; non-owners calling/delete; non-ADMINusers calling/refresh-api-keyor/share.
Related
- Poweruser API overview
- Custom Webhooks execution API — the public trigger endpoint external systems call
- Poweruser Agents API
- Poweruser Tools API
- Poweruser AutessaDB Tables API