AI agents

Decide whether to allow an agent request

Applies your agent policy to a verified signature and returns allow, review or deny.

post/v1/agent/authorize

Request

  • Base URL: https://www.layercall.com
  • URL: https://www.layercall.com/v1/agent/authorize
  • Auth: one of:
    • API key in header x-api-key
    • HTTP bearer

Request body

urlstring required
methodstring
headersobject required

Response

Success

decisionstring
docsstring
matchedstring
processing_time_secnumber
reasonstring
request_idstring
requests_last_hourunknown

Example response

{
  "agent": {
    "signature_reason": "not_web_bot_auth"
  },
  "decision": "deny",
  "docs": "https://www.layercall.com/docs/agents",
  "matched": "default:signature_failed",
  "processing_time_sec": 0.072,
  "reason": "A Signature-Agent header was present but did not verify. An unverifiable claim of identity is worth less than no claim at all.",
  "request_id": "req_1afc9f14-aef6-49cd-8524-f76fae58fbd2"
}

Changes

No recorded changes to this operation across all 1 revision of this API.