Screwtape
screwtapeScrewtape checks agent outputs, budgets, payments, and duplicate invoices while issuing signed receipts for audit and verification.
Acciones disponibles (49)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Authorize Payment With Payment GuardSCREWTAPE_AUTHORIZE_PAYMENT_GUARDAcciónApply the connected key's effective spend rules to a payment intent. An allow decision atomically reserves the amount against configured budgets and returns a short-lived Ed25519-signed clearance; a block reserves nothing. This non-custodial action does not make a payment and never accepts private keys, seeds, or mnemonics. Reusing an event_id with the same body replays the decision without billing again.
SCREWTAPE_AUTHORIZE_PAYMENT_GUARDAcciónApply the connected key's effective spend rules to a payment intent. An allow decision atomically reserves the amount against configured budgets and returns a short-lived Ed25519-signed clearance; a block reserves nothing. This non-custodial action does not make a payment and never accepts private keys, seeds, or mnemonics. Reusing an event_id with the same body replays the decision without billing again.
Parámetros de entrada
payeestringPayee address or identifier checked against allowed_sellers.
domainstringSeller hostname checked against allowed_domains.
agent_idstringObligatorioIdentifier of the agent that wants to pay.
event_idstringObligatorioCaller identifier for this payment. Reusing it with the same body replays the decision.
amount_usdnumberObligatorioAmount in USD the agent wants to pay.
seller_urlstringuriPublic HTTPS URL of the paid resource.
payment_requiredanyOptional seller HTTP 402 payload as a parsed object or original header value, used to read the payee.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Check Duplicate InvoiceSCREWTAPE_CHECK_DUPLICATE_INVOICEAcciónJudge an invoice and compare its configured identity fields with stored fingerprints before payment, optionally storing a new fingerprint and retaining submitted content when requested, and returning duplicate and verdict details.
SCREWTAPE_CHECK_DUPLICATE_INVOICEAcciónJudge an invoice and compare its configured identity fields with stored fingerprints before payment, optionally storing a new fingerprint and retaining submitted content when requested, and returning duplicate and verdict details.
Parámetros de entrada
modestringenumWhether the result is a blocking verdict or advisory guidance.
blockingadvisorytaskstringObligatorioTask describing how the invoice output should be evaluated.
checksarrayUp to seven additional typed deterministic checks. Supports required_fields, types, format, sum, url_contains, json_schema, equals, regex, and numeric. Configure the request's one duplicate check in duplicate instead.
retainbooleanWhether to retain judged content under the connected key's retention policy.
versionstringOptional agent or prompt version label.
agent_idstringOptional agent identifier for filtering and drift analysis.
criteriastring[]Optional criteria the invoice output must satisfy.
evidencestring[]Optional evidence used while judging the invoice.
duplicateobjectObligatorioThe single duplicate-invoice check configuration for this request.
agent_outputstringObligatorioInvoice data or agent output to judge and fingerprint.
idempotency_keystringOptional replay key, reused only for the identical request.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Check PaymentSCREWTAPE_CHECK_PAYMENTAcciónAssess available x402 seller or payment-request context and return an allow, review, or block verdict with a signed receipt reference when issued. All inputs are optional; provide seller_url, payment_required, or both when known. This action does not make a payment.
SCREWTAPE_CHECK_PAYMENTAcciónAssess available x402 seller or payment-request context and return an allow, review, or block verdict with a signed receipt reference when issued. All inputs are optional; provide seller_url, payment_required, or both when known. This action does not make a payment.
Parámetros de entrada
agent_idstringOptional stable identifier for the agent requesting the payment check.
event_idstringOptional caller event identifier for correlating this payment decision.
seller_urlstringOptional seller paid-HTTP URL to assess when it is known.
intended_amountnumberAmount in USD the agent intends to pay, used to detect price mismatches.
payment_requiredanyOptional seller x402 PAYMENT-REQUIRED payload, as a parsed object or the original header value.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create Action ReceiptSCREWTAPE_CREATE_ACTION_RECEIPTAcciónCreate an Ed25519-signed, hash-chained receipt for an agent-reported action and status.
SCREWTAPE_CREATE_ACTION_RECEIPTAcciónCreate an Ed25519-signed, hash-chained receipt for an agent-reported action and status.
Parámetros de entrada
actionstringObligatorioCanonical description or payload of the reported action (1-8192 characters).
statusstringObligatorioenumObserved lifecycle status to attest in the receipt.
requestedsucceededfailedpaid_not_servedagent_idstringObligatorioIdentifier of the agent that performed or requested the action (1-128 characters).
childrenstring[]List of 1-64 child receipt identifiers linked to this action, in chain order.
event_idstringObligatorioUnique event identifier used for receipt replay protection (1-128 characters).
referencestringExternal reference for the action (maximum 256 characters).
action_sha256stringPrecomputed SHA-256 digest of the canonical action as 64 lowercase hexadecimal characters.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create Free API KeySCREWTAPE_CREATE_FREE_KEYAcciónCreate a free-tier Screwtape API key with 10 calls per UTC day. An optional proof-of-work nonce raises signup limits. The returned secret is shown once.
SCREWTAPE_CREATE_FREE_KEYAcciónCreate a free-tier Screwtape API key with 10 calls per UTC day. An optional proof-of-work nonce raises signup limits. The returned secret is shown once.
Parámetros de entrada
namestringOptional agent or client name, at most 80 characters.
emailanyOptional account email address. This is sensitive personal information; omit it or send an empty string to store no email.
pow_noncestringOptional proof-of-work nonce for higher signup limits. SHA-256 of screwtape-signup-v1:YYYY-MM-DD:<nonce>, using the current UTC day, must have 12 leading zero bits when supplied.
data_sharingbooleanWhether to opt the new key into storing redacted call samples for 90 days. Off by default and enabled only by an explicit true.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create Free API Key via Keys EndpointSCREWTAPE_CREATE_KEYAcciónCreate a free-tier Screwtape API key, optionally using proof of work for higher signup limits. This endpoint is an alias of POST /v1/signup; prefer the signup endpoint in new workflows.
SCREWTAPE_CREATE_KEYAcciónCreate a free-tier Screwtape API key, optionally using proof of work for higher signup limits. This endpoint is an alias of POST /v1/signup; prefer the signup endpoint in new workflows.
Parámetros de entrada
namestringOptional agent or client name, at most 80 characters.
emailanyOptional account email address. This is sensitive personal information; omit it or send an empty string to store no email.
pow_noncestringOptional proof-of-work nonce for higher signup limits. SHA-256 of screwtape-signup-v1:YYYY-MM-DD:<nonce>, using the current UTC day, must have 12 leading zero bits when supplied.
data_sharingbooleanWhether to opt the new key into storing redacted call samples for 90 days. Off by default and enabled only by an explicit true.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete All Retained CallsSCREWTAPE_DELETE_ALL_RETAINED_CALLSAcciónPermanently delete every retained call for the connected key's subscription account, or only this key when it has no plan, and return the deleted count.
SCREWTAPE_DELETE_ALL_RETAINED_CALLSAcciónPermanently delete every retained call for the connected key's subscription account, or only this key when it has no plan, and return the deleted count.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete BYOM SettingsSCREWTAPE_DELETE_BYOM_SETTINGSAcciónDelete the Bring-Your-Own-Model settings stored for the connected Screwtape API key, including its encrypted provider credential.
SCREWTAPE_DELETE_BYOM_SETTINGSAcciónDelete the Bring-Your-Own-Model settings stored for the connected Screwtape API key, including its encrypted provider credential.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete Current API Key and DataSCREWTAPE_DELETE_CURRENT_KEYAcciónPermanently and irreversibly delete the connected API key hash, counters, payments, retained judgments, shared samples, and feedback. Call this only when the user explicitly asks to delete their key or data.
SCREWTAPE_DELETE_CURRENT_KEYAcciónPermanently and irreversibly delete the connected API key hash, counters, payments, retained judgments, shared samples, and feedback. Call this only when the user explicitly asks to delete their key or data.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete Duplicate FingerprintsSCREWTAPE_DELETE_DUPLICATE_FINGERPRINTSAcciónPermanently delete every keyed fingerprint that duplicate checks stored for the connected key and return the deleted count.
SCREWTAPE_DELETE_DUPLICATE_FINGERPRINTSAcciónPermanently delete every keyed fingerprint that duplicate checks stored for the connected key and return the deleted count.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete Receipt EvidenceSCREWTAPE_DELETE_EVIDENCEAcciónDelete retained evidence for one receipt while preserving the signed receipt. This operation is available to plan keys.
SCREWTAPE_DELETE_EVIDENCEAcciónDelete retained evidence for one receipt while preserving the signed receipt. This operation is available to plan keys.
Parámetros de entrada
receipt_idstringObligatorioIdentifier from the signed receipt.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete Retained CallSCREWTAPE_DELETE_RETAINED_CALLAcciónPermanently delete one retained judge or consensus call by its retention id.
SCREWTAPE_DELETE_RETAINED_CALLAcciónPermanently delete one retained judge or consensus call by its retention id.
Parámetros de entrada
idstringObligatorioRetention id returned when retain was true.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Describe API Key SignupSCREWTAPE_DESCRIBE_KEYSAcciónReturn instructions and the proof-of-work challenge for creating a free Screwtape API key. This operation does not create a key.
SCREWTAPE_DESCRIBE_KEYSAcciónReturn instructions and the proof-of-work challenge for creating a free Screwtape API key. This operation does not create a key.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Describe Free API Key SignupSCREWTAPE_DESCRIBE_SIGNUPAcciónReturn instructions and the proof-of-work challenge for creating a free Screwtape API key. This operation does not create a key.
SCREWTAPE_DESCRIBE_SIGNUPAcciónReturn instructions and the proof-of-work challenge for creating a free Screwtape API key. This operation does not create a key.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Export Spend BooksSCREWTAPE_EXPORT_SPEND_BOOKSAcciónExport charges for the connected key as agent spend-book rows grouped by agent, seller, vendor, UTC day, and product category in QuickBooks CSV, Xero CSV, or JSON format.
SCREWTAPE_EXPORT_SPEND_BOOKSAcciónExport charges for the connected key as agent spend-book rows grouped by agent, seller, vendor, UTC day, and product category in QuickBooks CSV, Xero CSV, or JSON format.
Parámetros de entrada
formatstringObligatorioenumExport format: QuickBooks CSV, Xero CSV, or JSON.
quickbooksxerojsonto_timestringdate-timeOptional inclusive ISO-8601 upper bound on issued_at, at most 92 days after from_time.
from_timestringdate-timeOptional inclusive ISO-8601 lower bound on issued_at.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Export Verdict ReceiptsSCREWTAPE_EXPORT_VERDICT_RECEIPTSAcciónExport one cursor-controlled page of signed verdict receipts as a downloadable JSONL, CSV, or JSON audit file. Pass the returned cursor to continue.
SCREWTAPE_EXPORT_VERDICT_RECEIPTSAcciónExport one cursor-controlled page of signed verdict receipts as a downloadable JSONL, CSV, or JSON audit file. Pass the returned cursor to continue.
Parámetros de entrada
limitintegerMaximum receipts in this export page (1-1000).
orderstringenumSort order by issued time and receipt ID.
descasccursorstringContinuation cursor from the previous export call; omit for the first page.
formatstringObligatorioenumAudit export file format.
jsonlcsvjsonoffsetintegerRows to skip when using offset pagination. Do not combine with cursor.
to_timestringdate-timeOptional inclusive ISO-8601 end time; the range may span at most 92 days.
from_timestringdate-timeOptional inclusive ISO-8601 start time; the range may span at most 92 days.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Account SettingsSCREWTAPE_GET_ACCOUNT_SETTINGSAcciónRead retention, anonymous-statistics contribution, and drift-alert webhook settings. The stored webhook signing secret is not returned.
SCREWTAPE_GET_ACCOUNT_SETTINGSAcciónRead retention, anonymous-statistics contribution, and drift-alert webhook settings. The stored webhook signing secret is not returned.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get BYOM SettingsSCREWTAPE_GET_BYOM_SETTINGSAcciónGet Bring-Your-Own-Model provider, model, key suffix, and error policy for the connected Screwtape API key. The saved provider API key is never returned. BYOM is off unless Screwtape enables it; deterministic checks and per-call billing still apply.
SCREWTAPE_GET_BYOM_SETTINGSAcciónGet Bring-Your-Own-Model provider, model, key suffix, and error policy for the connected Screwtape API key. The saved provider API key is never returned. BYOM is off unless Screwtape enables it; deterministic checks and per-call billing still apply.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Current Key UsageSCREWTAPE_GET_CURRENT_KEY_USAGEAcciónReturn safe metadata, metered-call usage, daily quota, and credit balance for the connected Screwtape API key without revealing its secret.
SCREWTAPE_GET_CURRENT_KEY_USAGEAcciónReturn safe metadata, metered-call usage, daily quota, and credit balance for the connected Screwtape API key without revealing its secret.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Data-Sharing SettingSCREWTAPE_GET_DATA_SHARINGAcciónRead the connected key's opt-in data-sharing state, consent metadata, stored sample count, and redaction and retention policy. Data sharing is off by default.
SCREWTAPE_GET_DATA_SHARINGAcciónRead the connected key's opt-in data-sharing state, consent metadata, stored sample count, and redaction and retention policy. Data sharing is off by default.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Drift ReportSCREWTAPE_GET_DRIFTAcciónReturn daily verdict counts and rates for up to 90 days, the previous 30-day baseline, and the latest 24 hours for the connected key.
SCREWTAPE_GET_DRIFTAcciónReturn daily verdict counts and rates for up to 90 days, the previous 30-day baseline, and the latest 24 hours for the connected key.
Parámetros de entrada
daysintegerNumber of days in the requested daily series, from 1 through 90.
agent_idstringAgent tag to report on. Omit to combine every agent tag on the key.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Drift AlertsSCREWTAPE_GET_DRIFT_ALERTSAcciónList recent drift alerts for the connected key. Each alert identifies the agent, metric, and send time; tasks and outputs are not included.
SCREWTAPE_GET_DRIFT_ALERTSAcciónList recent drift alerts for the connected key. Each alert identifies the agent, metric, and send time; tasks and outputs are not included.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Payment Guard Account RulesSCREWTAPE_GET_PAYMENT_GUARD_ACCOUNT_RULESAcciónRead the account-default spend rules used by Screwtape Payment Guard.
SCREWTAPE_GET_PAYMENT_GUARD_ACCOUNT_RULESAcciónRead the account-default spend rules used by Screwtape Payment Guard.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Payment Guard RulesSCREWTAPE_GET_PAYMENT_GUARD_RULESAcciónRead the spend rules set for the connected Screwtape API key and the effective rules used by Payment Guard.
SCREWTAPE_GET_PAYMENT_GUARD_RULESAcciónRead the spend rules set for the connected Screwtape API key and the effective rules used by Payment Guard.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Action Receipt KeySCREWTAPE_GET_RECEIPT_KEYAcciónGet the public Ed25519 key used to verify Screwtape action receipts. Signatures cover sorted-key canonical JSON of every receipt field except signature.
SCREWTAPE_GET_RECEIPT_KEYAcciónGet the public Ed25519 key used to verify Screwtape action receipts. Signatures cover sorted-key canonical JSON of every receipt field except signature.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Receipt KeysSCREWTAPE_GET_RECEIPT_KEYSAcciónGet the public Ed25519 keys used to verify verdict receipts, including retired keys retained for older exports. No private key is returned.
SCREWTAPE_GET_RECEIPT_KEYSAcciónGet the public Ed25519 keys used to verify verdict receipts, including retired keys retained for older exports. No private key is returned.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Retained CallSCREWTAPE_GET_RETAINED_CALLAcciónReplay one retained call, including its stored request, result, and signed receipt when still available; optionally re-check the receipt signature.
SCREWTAPE_GET_RETAINED_CALLAcciónReplay one retained call, including its stored request, result, and signed receipt when still available; optionally re-check the receipt signature.
Parámetros de entrada
idstringObligatorioRetention id returned when retain was true.
verifystringSet to '1' to re-check the retained call's receipt signature.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get StatusSCREWTAPE_GET_STATUSAcciónGet measured one-hour and 24-hour endpoint latency, uptime, rate limits, and cached x402 facilitator health for Screwtape.
SCREWTAPE_GET_STATUSAcciónGet measured one-hour and 24-hour endpoint latency, uptime, rate limits, and cached x402 facilitator health for Screwtape.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Status JSONSCREWTAPE_GET_STATUS_JSONAcciónGet the JSON status document containing one-hour and 24-hour endpoint latency, uptime, rate limits, and cached x402 facilitator health.
SCREWTAPE_GET_STATUS_JSONAcciónGet the JSON status document containing one-hour and 24-hour endpoint latency, uptime, rate limits, and cached x402 facilitator health.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Judge OutputSCREWTAPE_JUDGE_OUTPUTAcciónJudge one agent output against its task, evidence, criteria, and optional deterministic checks, returning a pass, fail, or retry verdict and a signed receipt when issued. It can retain submitted content when requested.
SCREWTAPE_JUDGE_OUTPUTAcciónJudge one agent output against its task, evidence, criteria, and optional deterministic checks, returning a pass, fail, or retry verdict and a signed receipt when issued. It can retain submitted content when requested.
Parámetros de entrada
modestringenumTreat the result as a blocking verdict or as advisory guidance.
blockingadvisorytaskstringObligatorioTask or instruction the agent output was expected to satisfy.
checksarrayUp to eight typed deterministic checks. Supports required_fields, types, format, sum, duplicate, url_contains, json_schema, equals, regex, and numeric. At most one duplicate and three url_contains checks are allowed.
retainbooleanWhether to retain this judged content under the connected key's retention policy.
versionstringOptional agent or prompt version label.
agent_idstringOptional agent identifier for filtering and drift analysis.
criteriastring[]Optional explicit criteria the output must satisfy.
evidencestring[]Optional evidence the verdict should use as grounding.
agent_outputstringObligatorioAgent output to evaluate.
idempotency_keystringOptional replay key containing only letters, digits, underscores, or hyphens. Reuse it only when retrying the same request.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Retained CallsSCREWTAPE_LIST_RETAINED_CALLSAcciónReturn the 20 newest judge and consensus calls that the connected key chose to retain. Calls not submitted with retain=true are never included.
SCREWTAPE_LIST_RETAINED_CALLSAcciónReturn the 20 newest judge and consensus calls that the connected key chose to retain. Calls not submitted with retain=true are never included.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Verdict ReceiptsSCREWTAPE_LIST_VERDICT_RECEIPTSAcciónList one page of signed verdict receipts stored for the connected API key, with optional date filters and an agent-controlled continuation cursor.
SCREWTAPE_LIST_VERDICT_RECEIPTSAcciónList one page of signed verdict receipts stored for the connected API key, with optional date filters and an agent-controlled continuation cursor.
Parámetros de entrada
limitintegerMaximum receipts to return in this page (1-100).
orderstringenumSort order by issue time and receipt ID.
descasccursorstringContinuation cursor returned by the previous call; omit for the first page.
offsetintegerRows to skip when using offset pagination. Do not combine with cursor.
to_timestringdate-timeInclusive end time in ISO-8601 format.
from_timestringdate-timeInclusive start time in ISO-8601 format.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update Account SettingsSCREWTAPE_PATCH_ACCOUNT_SETTINGSAcciónUpdate retention, anonymous-statistics contribution, or the drift-alert webhook. Omitted fields remain unchanged; existing rows keep their expiry.
SCREWTAPE_PATCH_ACCOUNT_SETTINGSAcciónUpdate retention, anonymous-statistics contribution, or the drift-alert webhook. Omitted fields remain unchanged; existing rows keep their expiry.
Parámetros de entrada
retention_daysintegerenumRetention period. Values 30, 90, and 365 require an active subscription; omit to leave unchanged.
013090365alert_webhook_urlstringHTTPS URL for drift alerts. Send an empty string to remove the webhook, or omit to leave it unchanged.
contribute_anonymous_statsbooleanWhether to contribute anonymous statistics; omit to leave unchanged.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Publish ReceiptSCREWTAPE_PUBLISH_RECEIPTAcciónPublish one signed receipt owned by the connected key and return its public page, badge, and embed snippets. Republishing retains the same public ID.
SCREWTAPE_PUBLISH_RECEIPTAcciónPublish one signed receipt owned by the connected key and return its public page, badge, and embed snippets. Republishing retains the same public ID.
Parámetros de entrada
labelstringOptional public receipt label, at most 80 characters.
receipt_idstringObligatorioIdentifier from the signed receipt.
include_contentbooleanWhether to copy the retained task and agent output onto the public page; defaults to false.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Set BYOM SettingsSCREWTAPE_PUT_BYOM_SETTINGSAcciónSet or rotate Bring-Your-Own-Model provider settings for the connected Screwtape API key. Screwtape AES-GCM encrypts the provider key at rest and never logs it. Unknown models require custom=true. The default error policy is deny, which fails closed for payment decisions.
SCREWTAPE_PUT_BYOM_SETTINGSAcciónSet or rotate Bring-Your-Own-Model provider settings for the connected Screwtape API key. Screwtape AES-GCM encrypts the provider key at rest and never logs it. Unknown models require custom=true. The default error policy is deny, which fails closed for payment decisions.
Parámetros de entrada
modelstringObligatorioProvider model identifier.
custombooleanSet true when using a model outside Screwtape's known-model allowlist.
base_urlstringuriPublic HTTPS API base URL. Required when provider is openai_compatible.
on_errorstringenumBehavior when the configured provider fails. Defaults to deny.
denyfallback_defaultproviderstringObligatorioenumModel provider. bedrock requires Screwtape's BYOM_BEDROCK_ENABLED setting.
openaianthropicbedrockopenai_compatibleapi_key_fileobjectObligatorioUTF-8 text file containing only the sensitive provider API key. Using a file keeps the plaintext credential out of model-controlled tool arguments.
access_key_idstringAWS access key ID required for Bedrock when Bedrock is enabled.
bedrock_regionstringAWS region required for Bedrock when Bedrock is enabled.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Set Payment Guard Account RulesSCREWTAPE_PUT_PAYMENT_GUARD_ACCOUNT_RULESAcciónSet the account-default spend rules used by Screwtape Payment Guard. Key-specific rules take precedence. This endpoint is free.
SCREWTAPE_PUT_PAYMENT_GUARD_ACCOUNT_RULESAcciónSet the account-default spend rules used by Screwtape Payment Guard. Key-specific rules take precedence. This endpoint is free.
Parámetros de entrada
period_hoursintegerLength of the period budget window. Defaults to 24.
allowed_domainsstring[]Only sellers on these hostnames may be paid.
allowed_sellersstring[]Only these payees may be paid.
daily_budget_usdnumberTotal allowed per UTC day.
max_per_call_usdnumberLargest single payment allowed.
period_budget_usdnumberTotal allowed per rolling period of period_hours.
max_calls_per_hourintegerMaximum payment authorizations allowed per hour by default.
max_calls_per_minuteintegerMaximum payment authorizations allowed per minute by default.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Set Payment Guard RulesSCREWTAPE_PUT_PAYMENT_GUARD_RULESAcciónSet spend rules for the connected Screwtape API key. Key-specific rules override account-default rules. This endpoint is free.
SCREWTAPE_PUT_PAYMENT_GUARD_RULESAcciónSet spend rules for the connected Screwtape API key. Key-specific rules override account-default rules. This endpoint is free.
Parámetros de entrada
period_hoursintegerLength of the period budget window. Defaults to 24.
allowed_domainsstring[]Only sellers on these hostnames may be paid.
allowed_sellersstring[]Only these payees may be paid.
daily_budget_usdnumberTotal allowed per UTC day.
max_per_call_usdnumberLargest single payment allowed.
period_budget_usdnumberTotal allowed per rolling period of period_hours.
max_calls_per_hourintegerMaximum payment authorizations allowed per hour.
max_calls_per_minuteintegerMaximum payment authorizations allowed per minute.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Replay DecisionSCREWTAPE_REPLAY_DECISIONAcciónRe-run invoice rules against retained evidence using the original or current policy version. No model is called and the replay is not billed.
SCREWTAPE_REPLAY_DECISIONAcciónRe-run invoice rules against retained evidence using the original or current policy version. No model is called and the replay is not billed.
Parámetros de entrada
policystringenumRules version to replay: original by default, or current.
originalcurrentdocumentobjectOptional original body, for example {"invoice": {...}}, used to prove that it is the same document.
receipt_idstringObligatorioIdentifier from the signed receipt.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Reserve BudgetSCREWTAPE_RESERVE_BUDGETAcciónReserve one spend event against a shared agent-run cap and return whether it is allowed, duplicated, retried, or anomalous. The reservation is persistent; reuse event_id only to intentionally replay the same event.
SCREWTAPE_RESERVE_BUDGETAcciónReserve one spend event against a shared agent-run cap and return whether it is allowed, duplicated, retried, or anomalous. The reservation is persistent; reuse event_id only to intentionally replay the same event.
Parámetros de entrada
capnumberObligatorioMaximum total spend allowed for the run, greater than 0 and at most 1000000.
actionstringDescription of the action causing the spend.
amountnumberObligatorioAmount to reserve, from 0 through 1000000.
run_idstringObligatorioIdentifier for the agent run whose shared budget should be charged.
currencystringCurrency associated with amount and cap. Omit to use the provider default.
event_idstringObligatorioUnique identifier for this spend event. Reuse it only to intentionally replay the same event.
merchantstringObligatorioMerchant or payee associated with the spend event.
parent_run_idstringParent run identifier when this reservation belongs to a sub-agent.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Score ConsensusSCREWTAPE_SCORE_CONSENSUSAcciónCompare 2-16 agent answers for agreement and false-consensus risk, returning a consensus answer, clusters, reasons, and a signed receipt when issued. It can retain submitted content when requested.
SCREWTAPE_SCORE_CONSENSUSAcciónCompare 2-16 agent answers for agreement and false-consensus risk, returning a consensus answer, clusters, reasons, and a signed receipt when issued. It can retain submitted content when requested.
Parámetros de entrada
modestringenumWhether the consensus result is blocking or advisory.
blockingadvisorytaskstringObligatorioTask all submitted agent answers attempted.
retainbooleanWhether to retain submitted content under the connected key's retention policy.
answersobject[]ObligatorioTwo to sixteen agent answers to compare for agreement.
versionstringOptional agent or workflow version label.
agent_idstringOptional identifier of the agent coordinating this consensus check.
evidenceanyOptional shared evidence as one string, or up to 20 strings. Each string may contain at most 4000 characters.
idempotency_keystringOptional replay key containing only letters, digits, underscores, or hyphens. Reuse it only when retrying the same request.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Score Seller TrustSCREWTAPE_SCORE_SELLER_TRUSTAcciónAssess whether a paying agent looks abusive or risky before accepting payment, using network history and optionally contributed observations or seller-computed counts.
SCREWTAPE_SCORE_SELLER_TRUSTAcciónAssess whether a paying agent looks abusive or risky before accepting payment, using network history and optionally contributed observations or seller-computed counts.
Parámetros de entrada
windowobjectSeller-computed counts used only for this request; do not combine with observations.
subjectobjectObligatorioPaying agent or caller to assess.
agent_idstringOptional identifier for the seller agent making the assessment.
event_idstringOptional seller event identifier.
observationsobject[]Up to 32 observations to contribute; do not combine with window.
lookback_hoursintegerHours of stored signals to read; the provider default is 24.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Send Verdict FeedbackSCREWTAPE_SEND_FEEDBACKAcciónRecord whether the verdict on one call made by the connected key was correct. The first submission is stored and later submissions replace it; judged text is never stored and notes are automatically redacted.
SCREWTAPE_SEND_FEEDBACKAcciónRecord whether the verdict on one call made by the connected key was correct. The first submission is stored and later submissions replace it; judged text is never stored and notes are automatically redacted.
Parámetros de entrada
notestringOptional feedback note, at most 300 characters. It may contain sensitive context; Screwtape automatically redacts it before storage.
receipt_idstringReceipt identifier from the evaluated call. Send this or request_id, but not both.
request_idstringProvider request identifier from the evaluated call. Send this or receipt_id, but not both.
verdict_correctbooleanObligatorioWhether Screwtape's verdict was correct.
expected_verdictstringenumVerdict that was expected when the original verdict was incorrect.
passfail
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Set Data-Sharing SettingSCREWTAPE_SET_DATA_SHARINGAcciónTurn opt-in data sharing on or off for the connected key. Disabling it deletes all stored samples immediately. Call this only when the user explicitly asks.
SCREWTAPE_SET_DATA_SHARINGAcciónTurn opt-in data sharing on or off for the connected key. Disabling it deletes all stored samples immediately. Call this only when the user explicitly asks.
Parámetros de entrada
enabledbooleanObligatorioSet true to store redacted samples of later eligible calls for 90 days. Set false to stop sharing and immediately delete all stored samples.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Start PayPal CheckoutSCREWTAPE_START_PAYPAL_CHECKOUTAcciónStart a PayPal card checkout for the $100 Sandbox Evaluation Pack, which provides 2,000 standard checks for 30 days and may be purchased once per customer. This action creates a new key for the supplied email; it never asks an agent to provide an existing API key.
SCREWTAPE_START_PAYPAL_CHECKOUTAcciónStart a PayPal card checkout for the $100 Sandbox Evaluation Pack, which provides 2,000 standard checks for 30 days and may be purchased once per customer. This action creates a new key for the supplied email; it never asks an agent to provide an existing API key.
Parámetros de entrada
packstringObligatorioPack to purchase; the only available pack is 'trial'.
emailstringObligatorioCustomer email that will receive a new API key after checkout approval.
accept_termsbooleanWhether the customer accepts https://screwtape.ai/terms/; recorded when sent.
business_usebooleanWhether the customer confirms business use; recorded when sent.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Submit Enterprise InquirySCREWTAPE_SUBMIT_ENTERPRISE_INQUIRYAcciónSubmit contact details and a message to ask Screwtape about enterprise pricing. This stores the supplied personal contact information.
SCREWTAPE_SUBMIT_ENTERPRISE_INQUIRYAcciónSubmit contact details and a message to ask Screwtape about enterprise pricing. This stores the supplied personal contact information.
Parámetros de entrada
namestringObligatorioName of the person making the enterprise inquiry, at most 80 characters.
emailstringObligatorioContact email address. This is sensitive personal contact information.
messagestringObligatorioEnterprise pricing or account question, at most 2000 characters.
organizationstringOrganization making the inquiry, at most 120 characters.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Try CheckSCREWTAPE_TRY_CHECKAcciónRun Screwtape's deterministic, no-key invoice sample for a duplicate, clean, or bad-total scenario. This demo does not call a model, store a fingerprint, issue a receipt, or make a paid call.
SCREWTAPE_TRY_CHECKAcciónRun Screwtape's deterministic, no-key invoice sample for a duplicate, clean, or bad-total scenario. This demo does not call a model, store a fingerprint, issue a receipt, or make a paid call.
Parámetros de entrada
scenariostringenumFixed demo invoice to check: duplicate (the default), clean, or bad_total for line items that do not add up.
duplicatecleanbad_total
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Unpublish ReceiptSCREWTAPE_UNPUBLISH_RECEIPTAcciónRemove the public page and badge for one receipt published by the connected key. Receipts published by another key are not exposed.
SCREWTAPE_UNPUBLISH_RECEIPTAcciónRemove the public page and badge for one receipt published by the connected key. Receipts published by another key are not exposed.
Parámetros de entrada
receipt_idstringObligatorioIdentifier from the signed receipt.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Verify Action ReceiptSCREWTAPE_VERIFY_ACTION_RECEIPTAcciónVerify an action receipt by its Screwtape receipt ID or by a portable receipt object, including its hash-chain link. Provide exactly one input; portable objects are serialized into the provider's receipt query parameter.
SCREWTAPE_VERIFY_ACTION_RECEIPTAcciónVerify an action receipt by its Screwtape receipt ID or by a portable receipt object, including its hash-chain link. Provide exactly one input; portable objects are serialized into the provider's receipt query parameter.
Parámetros de entrada
receiptobjectChoose this portable signed receipt object only when receipt_id is omitted; the action serializes it into the provider query.
receipt_idstringChoose this ID-based verification input only when the portable receipt object is omitted.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Verify Verdict ReceiptSCREWTAPE_VERIFY_VERDICT_RECEIPTAcciónVerify the Ed25519 signature of a verdict receipt returned by Screwtape judge or consensus without storing it.
SCREWTAPE_VERIFY_VERDICT_RECEIPTAcciónVerify the Ed25519 signature of a verdict receipt returned by Screwtape judge or consensus without storing it.
Parámetros de entrada
receiptobjectObligatorioComplete signed verdict receipt returned by a Screwtape judge or consensus call. Provider-specific receipt fields are preserved.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not