← Automation API
BrowserAutomationPolicies
Singular: BrowserAutomationPolicy — Base URL: https://automation-api.ayoune.app — Access: CRUD
Try it now
beta
Response (live)
Requests are proxied through the consumer-app to *.ayoune.app. Tokens stay in your browser and are forwarded per call.
Endpoints
| Method | Path | Description | Right |
|---|---|---|---|
| GET | /browserautomationpolicies |
List with filters/pagination | automation.browserautomationpolicies.view |
| GET | /browserautomationpolicies/:id |
Single record | automation.browserautomationpolicies.view |
| POST | /browserautomationpolicies |
Create new record | automation.browserautomationpolicies.new |
| PUT | /browserautomationpolicies |
Update record | automation.browserautomationpolicies.edit |
| DELETE | /browserautomationpolicies/:id |
Delete record | automation.browserautomationpolicies.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// List all
const list = await ay.automation.browserAutomationPolicies.find().limit(10).exec();
// Single record
const one = await ay.automation.browserAutomationPolicies.findById('OBJECT_ID').exec();
// Create
const created = await ay.automation.browserAutomationPolicies.create({ name: 'Foo' });