API reference
API keys
List and revoke API keys.
GET
header
AuthorizationBearer <token>An API key (wa_<region>_…) or a dashboard access token.
OK
application/json- response
keys*array<>curl -X GET 'https://api.us.webagent.lookover.ai/v1/keys'Example Response
{ "keys": [ { "id": "string", "projectId": "string", "name": "string", "prefix": "string", "role": "admin", "createdAt": 0, "lastUsedAt": 0, "revokedAt": 0 } ]}POST
Mint an API key (admin, fresh sign-in); the plaintext key is returned once
header
AuthorizationBearer <token>An API key (wa_<region>_…) or a dashboard access token.
application/json- body
name*stringLength
1 <= length <= 100role?stringValue in
"admin""member"projectId?stringMatch
^prj_(us|in)_[0-9a-z]{24}$OK
application/json- response
key*stringMatch
^wa_(us|in)_[A-Za-z0-9_-]{43}$info*curl -X POST 'https://api.us.webagent.lookover.ai/v1/keys' \ -H 'Content-Type: application/json' \ -d '{ "name": "string"}'Example Response
{ "key": "string", "info": { "id": "string", "projectId": "string", "name": "string", "prefix": "string", "role": "admin", "createdAt": 0, "lastUsedAt": 0, "revokedAt": 0 }}DELETE
header
AuthorizationBearer <token>An API key (wa_<region>_…) or a dashboard access token.
keyId*stringMatch
^key_(us|in)_[0-9a-z]{24}$OK
application/json- response
deleted*booleanrevoked*booleancurl -X DELETE 'https://api.us.webagent.lookover.ai/v1/keys/string'Example Response
{ "deleted": true, "revoked": true}