https://gr-prd.aporia.com/<PROJECT_ID>/validate
Headers:
Content-Type
: application/json
X-APORIA-API-KEY
: Your copied Aporia API keyrole
and content
.Possible role
values are system
, user
, assistant
, or other
for any unsupported roles.prompt
, response
, or both
.modify
, passthrough
, block
, rephrase
.fetch
API in JavaScript, you can provide an abort signal using the AbortController API and trigger it with setTimeout
. See this example.
If you are using the requests library in Python, you can simply provide a timeout
argument: