Skip to Content
webagent docs
API reference

Site access

Allow headers and signed access for your own sites.

Open as .md

List site access entries

GET
/v1/site-access

Authorization

headerAuthorizationBearer <token>

An API key (wa_<region>_…) or a dashboard access token.

Query Parameters

namespace?string
Lengthlength <= 64

Response Body

OK

application/json
  1. response
siteAccess*array<>
Example Request
curl -X GET 'https://api.us.webagent.lookover.ai/v1/site-access'
Example Response
{  "siteAccess": [    {      "id": "string",      "origin": "string",      "namespace": "string",      "label": "string",      "headerNames": [        "string"      ],      "createdAt": 0,      "updatedAt": 0    }  ]}

Add a site access entry

POST
/v1/site-access

Authorization

headerAuthorizationBearer <token>

An API key (wa_<region>_…) or a dashboard access token.

Header Parameters

Idempotency-Key?string

Retry safely: the same key and body replay the first answer.

Length1 <= length <= 255

Request Body

application/json
  1. body
origin*string
Lengthlength <= 300
headers*
namespace?string
Length1 <= length <= 64
label?string
Lengthlength <= 200

Response Body

OK

application/json
  1. response
id*string
origin*string
namespace*string
label*string
headerNames*array<string>
createdAt*number
updatedAt*number
Example Request
curl -X POST 'https://api.us.webagent.lookover.ai/v1/site-access' \  -H 'Content-Type: application/json' \  -d '{  "origin": "string",  "headers": {    "property1": "string",    "property2": "string"  }}'
Example Response
{  "id": "string",  "origin": "string",  "namespace": "string",  "label": "string",  "headerNames": [    "string"  ],  "createdAt": 0,  "updatedAt": 0}
DELETE
/v1/site-access/{id}

Authorization

headerAuthorizationBearer <token>

An API key (wa_<region>_…) or a dashboard access token.

Path Parameters

id*string
Match^acc_(us|in)_[0-9a-z]{24}$

Response Body

OK

application/json
  1. response
deleted*boolean
Example Request
curl -X DELETE 'https://api.us.webagent.lookover.ai/v1/site-access/string'
Example Response
{  "deleted": true}