← Marketing API
LinkPortals
Singular: LinkPortal — Base URL: https://marketing-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 | /linkportals |
List with filters/pagination | marketing.linkportals.view |
| GET | /linkportals/:id |
Single record | marketing.linkportals.view |
| POST | /linkportals |
Create new record | marketing.linkportals.new |
| PUT | /linkportals |
Update record | marketing.linkportals.edit |
| DELETE | /linkportals/:id |
Delete record | marketing.linkportals.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// List all
const list = await ay.marketing.linkPortals.find().limit(10).exec();
// Single record
const one = await ay.marketing.linkPortals.findById('OBJECT_ID').exec();
// Create
const created = await ay.marketing.linkPortals.create({ name: 'Foo' });