API ReferenceView as MarkdownOpenAPI

Marketing & notifications

View as Markdown

Reaching the site's users: push notifications, newsletters, automations and QR codes.

Endpoints that need a token: the site owner creates it in their admin (Developers > API reference). AI assistants: how to ask the user for one.

28 endpoints in 7 parts: Advertisment, Alert, Automation, Connected Account, Instagram, Push Notification, Push Token.

Create an ad

Creates an ad from the fields sent.

Admin token

Needs a site admin token.

Status codes

201 400 401 500

POST/ads
curl -X POST 'http://builderly.max-media.io/ads?ionic=true' \
  -H 'Authorization: Bearer <TOKEN>'
Response
{
  "name": "Example",
  "media": "6543210fedcba98765432100",
  "alt": "example",
  "link": "example-item",
  "_id": "6543210fedcba98765432100",
  "updatedAt": "2026-11-04T12:00:00.000Z",
  "createdAt": "2026-11-04T12:00:00.000Z"
}

Retrieve an ad

Returns one ad, found by its ID.

Admin token

Needs a site admin token.

Path parameters
idstringRequired

The ID of the ad.

Status codes

200 401 404 500

GET/ads/:id
curl -X GET 'http://builderly.max-media.io/ads/{id}?ionic=true' \
  -H 'Authorization: Bearer <TOKEN>'
Response
{
  "name": "Example",
  "media": "6543210fedcba98765432100",
  "alt": "example",
  "link": "example-item",
  "_id": "6543210fedcba98765432100",
  "updatedAt": "2026-11-04T12:00:00.000Z",
  "createdAt": "2026-11-04T12:00:00.000Z"
}

Update an ad

Changes the fields sent; the others stay as they are.

Admin token

Needs a site admin token.

Path parameters
idstringRequired

The ID of the ad.

Status codes

200 400 401 500

PATCH/ads/:id
curl -X PATCH 'http://builderly.max-media.io/ads/{id}?ionic=true' \
  -H 'Authorization: Bearer <TOKEN>'
Response
{
  "name": "Example",
  "media": "6543210fedcba98765432100",
  "alt": "example",
  "link": "example-item",
  "_id": "6543210fedcba98765432100",
  "updatedAt": "2026-11-04T12:00:00.000Z",
  "createdAt": "2026-11-04T12:00:00.000Z"
}

Delete an ad

Deletes the ad. This cannot be undone.

Admin token

Needs a site admin token.

Path parameters
idstringRequired

The ID of the ad.

Returns

Returns an empty answer on success.

Status codes

200 401 404 500

DELETE/ads/:id
curl -X DELETE 'http://builderly.max-media.io/ads/{id}?ionic=true' \
  -H 'Authorization: Bearer <TOKEN>'

List all alerts

Returns the site's alerts, newest first unless a sort is given.

Admin token

Needs a site admin token.

Returns

Returns a list of Alert objects.

Status codes

200 401 500

GET/alerts
curl -X GET 'http://builderly.max-media.io/alerts?ionic=true' \
  -H 'Authorization: Bearer <TOKEN>'
Response
[
  {
    "type": "example",
    "heading": "Example",
    "message": "example",
    "meta_id": "6543210fedcba98765432100",
    "_id": "6543210fedcba98765432100",
    "updatedAt": "2026-11-04T12:00:00.000Z",
    "createdAt": "2026-11-04T12:00:00.000Z"
  }
]

Create an alert

Create new alert.

Admin token

Needs a site admin token.

Status codes

201 400 401 500

POST/alerts
curl -X POST 'http://builderly.max-media.io/alerts?ionic=true' \
  -H 'Authorization: Bearer <TOKEN>'

Retrieve an alert

Returns one alert, found by its ID.

Admin token

Needs a site admin token.

Path parameters
idstringRequired

The ID of the alert.

Returns

Returns the Alert object.

Status codes

200 401 404 500

GET/alerts/:id
curl -X GET 'http://builderly.max-media.io/alerts/{id}?ionic=true' \
  -H 'Authorization: Bearer <TOKEN>'
Response
{
  "type": "example",
  "heading": "Example",
  "message": "example",
  "meta_id": "6543210fedcba98765432100",
  "_id": "6543210fedcba98765432100",
  "updatedAt": "2026-11-04T12:00:00.000Z",
  "createdAt": "2026-11-04T12:00:00.000Z"
}

List all automations

Returns the site's automations, newest first unless a sort is given.

Admin token

Needs a site admin token.

Returns

Returns a list of Automation objects.

Status codes

200 401 500

GET/automations
curl -X GET 'http://builderly.max-media.io/automations?ionic=true' \
  -H 'Authorization: Bearer <TOKEN>'
Response
[
  {
    "title": "Example",
    "webhook_url": "example-item",
    "event_type": "example",
    "_id": "6543210fedcba98765432100",
    "updatedAt": "2026-11-04T12:00:00.000Z",
    "createdAt": "2026-11-04T12:00:00.000Z"
  }
]

Create an automation

Creates an automation from the fields sent.

Admin token

Needs a site admin token.

Returns

Returns the Automation object.

Status codes

201 400 401 500

POST/automations
curl -X POST 'http://builderly.max-media.io/automations?ionic=true' \
  -H 'Authorization: Bearer <TOKEN>'
Response
{
  "title": "Example",
  "webhook_url": "example-item",
  "event_type": "example",
  "_id": "6543210fedcba98765432100",
  "updatedAt": "2026-11-04T12:00:00.000Z",
  "createdAt": "2026-11-04T12:00:00.000Z"
}

Retrieve an automation

Returns one automation, found by its ID.

Admin token

Needs a site admin token.

Path parameters
idstringRequired

The ID of the automation.

Returns

Returns the Automation object.

Status codes

200 401 404 500

GET/automations/:id
curl -X GET 'http://builderly.max-media.io/automations/{id}?ionic=true' \
  -H 'Authorization: Bearer <TOKEN>'
Response
{
  "title": "Example",
  "webhook_url": "example-item",
  "event_type": "example",
  "_id": "6543210fedcba98765432100",
  "updatedAt": "2026-11-04T12:00:00.000Z",
  "createdAt": "2026-11-04T12:00:00.000Z"
}

Update an automation

Changes the fields sent; the others stay as they are.

Admin token

Needs a site admin token.

Path parameters
idstringRequired

The ID of the automation.

Returns

Returns the Automation object.

Status codes

200 400 401 404 500

PATCH/automations/:id
curl -X PATCH 'http://builderly.max-media.io/automations/{id}?ionic=true' \
  -H 'Authorization: Bearer <TOKEN>'
Response
{
  "title": "Example",
  "webhook_url": "example-item",
  "event_type": "example",
  "_id": "6543210fedcba98765432100",
  "updatedAt": "2026-11-04T12:00:00.000Z",
  "createdAt": "2026-11-04T12:00:00.000Z"
}

Delete an automation

Deletes the automation. This cannot be undone.

Admin token

Needs a site admin token.

Path parameters
idstringRequired

The ID of the automation.

Returns

Returns an empty answer on success.

Status codes

200 401 404 500

DELETE/automations/:id
curl -X DELETE 'http://builderly.max-media.io/automations/{id}?ionic=true' \
  -H 'Authorization: Bearer <TOKEN>'

List all models

Returns the site's models, newest first unless a sort is given.

Admin token

Needs a site admin token.

Path parameters
modelstringRequired

The model's model.

Status codes

200 401 500

GET/get-model/:model
curl -X GET 'http://builderly.max-media.io/get-model/{model}?ionic=true' \
  -H 'Authorization: Bearer <TOKEN>'

List all connected accounts

Returns the site's connected accounts, newest first unless a sort is given.

User token

Needs the token of a signed-in user.

Returns

Returns a list of ConnectedAccount objects.

Status codes

200 401 500

GET/connected-accounts
curl -X GET 'http://builderly.max-media.io/connected-accounts?ionic=true' \
  -H 'Authorization: Bearer <TOKEN>'
Response
[
  {
    "on_behalf_of": "6543210fedcba98765432100",
    "user_account": "6543210fedcba98765432100",
    "status": "pending",
    "_id": "6543210fedcba98765432100",
    "updatedAt": "2026-11-04T12:00:00.000Z",
    "createdAt": "2026-11-04T12:00:00.000Z",
    "is_authorized_to": {
      "create_posts": false,
      "send_messages": false,
      "answer_delete_comments": false,
      "access_engagements": false,
      "access_boosted_posts": false,
      "access_analytics": false,
      "alter_profile_settings": false
    }
  }
]

Retrieve a connected accounts on behalf of

Returns one connected accounts on behalf of, found by its ID.

User token

Needs the token of a signed-in user.

Path parameters
idstringRequired

The ID of the connected accounts on behalf of.

Status codes

200 401 404 500

GET/connected-accounts-by-on-behalf-of/:id
curl -X GET 'http://builderly.max-media.io/connected-accounts-by-on-behalf-of/{id}?ionic=true' \
  -H 'Authorization: Bearer <TOKEN>'
Response
{
  "on_behalf_of": "6543210fedcba98765432100",
  "user_account": "6543210fedcba98765432100",
  "status": "pending",
  "_id": "6543210fedcba98765432100",
  "updatedAt": "2026-11-04T12:00:00.000Z",
  "createdAt": "2026-11-04T12:00:00.000Z",
  "is_authorized_to": {
    "create_posts": false,
    "send_messages": false,
    "answer_delete_comments": false,
    "access_engagements": false,
    "access_boosted_posts": false,
    "access_analytics": false,
    "alter_profile_settings": false
  }
}

Retrieve a connected accounts on behalf of

Returns one connected accounts on behalf of, found by its ID.

User token

Needs the token of a signed-in user.

Path parameters
idstringRequired

The ID of the connected accounts on behalf of.

Status codes

200 401 404 500

GET/connected-accounts-on-behalf-of/:id
curl -X GET 'http://builderly.max-media.io/connected-accounts-on-behalf-of/{id}?ionic=true' \
  -H 'Authorization: Bearer <TOKEN>'
Response
{
  "on_behalf_of": "6543210fedcba98765432100",
  "user_account": "6543210fedcba98765432100",
  "status": "pending",
  "_id": "6543210fedcba98765432100",
  "updatedAt": "2026-11-04T12:00:00.000Z",
  "createdAt": "2026-11-04T12:00:00.000Z",
  "is_authorized_to": {
    "create_posts": false,
    "send_messages": false,
    "answer_delete_comments": false,
    "access_engagements": false,
    "access_boosted_posts": false,
    "access_analytics": false,
    "alter_profile_settings": false
  }
}

Change the status of a connected account

Update ConnectedAccount by id.

User token

Needs the token of a signed-in user.

Path parameters
idstringRequired

The ID of the connected account.

Returns

Returns the ConnectedAccount object.

Status codes

200 400 401 403 404 500

PATCH/connected-accounts-status/:id
curl -X PATCH 'http://builderly.max-media.io/connected-accounts-status/{id}?ionic=true' \
  -H 'Authorization: Bearer <TOKEN>'
Response
{
  "on_behalf_of": "6543210fedcba98765432100",
  "user_account": "6543210fedcba98765432100",
  "status": "pending",
  "_id": "6543210fedcba98765432100",
  "updatedAt": "2026-11-04T12:00:00.000Z",
  "createdAt": "2026-11-04T12:00:00.000Z",
  "is_authorized_to": {
    "create_posts": false,
    "send_messages": false,
    "answer_delete_comments": false,
    "access_engagements": false,
    "access_boosted_posts": false,
    "access_analytics": false,
    "alter_profile_settings": false
  }
}

Retrieve a connected account

Returns one connected account, found by its ID.

User token

Needs the token of a signed-in user.

Path parameters
idstringRequired

The ID of the connected account.

Returns

Returns the ConnectedAccount object.

Status codes

200 401 404 500

GET/connected-accounts/:id
curl -X GET 'http://builderly.max-media.io/connected-accounts/{id}?ionic=true' \
  -H 'Authorization: Bearer <TOKEN>'
Response
{
  "on_behalf_of": "6543210fedcba98765432100",
  "user_account": "6543210fedcba98765432100",
  "status": "pending",
  "_id": "6543210fedcba98765432100",
  "updatedAt": "2026-11-04T12:00:00.000Z",
  "createdAt": "2026-11-04T12:00:00.000Z",
  "is_authorized_to": {
    "create_posts": false,
    "send_messages": false,
    "answer_delete_comments": false,
    "access_engagements": false,
    "access_boosted_posts": false,
    "access_analytics": false,
    "alter_profile_settings": false
  }
}

Update a connected account

Update ConnectedAccount by id.

User token

Needs the token of a signed-in user.

Path parameters
idstringRequired

The ID of the connected account.

Returns

Returns the ConnectedAccount object.

Status codes

200 400 401 403 404 500

PATCH/connected-accounts/:id
curl -X PATCH 'http://builderly.max-media.io/connected-accounts/{id}?ionic=true' \
  -H 'Authorization: Bearer <TOKEN>'
Response
{
  "on_behalf_of": "6543210fedcba98765432100",
  "user_account": "6543210fedcba98765432100",
  "status": "pending",
  "_id": "6543210fedcba98765432100",
  "updatedAt": "2026-11-04T12:00:00.000Z",
  "createdAt": "2026-11-04T12:00:00.000Z",
  "is_authorized_to": {
    "create_posts": false,
    "send_messages": false,
    "answer_delete_comments": false,
    "access_engagements": false,
    "access_boosted_posts": false,
    "access_analytics": false,
    "alter_profile_settings": false
  }
}

Delete a connected account

Delete ConnectedAccount record by id.

User token

Needs the token of a signed-in user.

Path parameters
idstringRequired

The ID of the connected account.

Returns

Returns an empty answer on success.

Status codes

200 401 403 404 500

DELETE/connected-accounts/:id
curl -X DELETE 'http://builderly.max-media.io/connected-accounts/{id}?ionic=true' \
  -H 'Authorization: Bearer <TOKEN>'

List all connected accounts

Returns the site's connected accounts, newest first unless a sort is given.

User token

Needs the token of a signed-in user.

Returns

Returns a list of ConnectedAccount objects.

Status codes

200 401 500

GET/my-connected-accounts
curl -X GET 'http://builderly.max-media.io/my-connected-accounts?ionic=true' \
  -H 'Authorization: Bearer <TOKEN>'
Response
[
  {
    "on_behalf_of": "6543210fedcba98765432100",
    "user_account": "6543210fedcba98765432100",
    "status": "pending",
    "_id": "6543210fedcba98765432100",
    "updatedAt": "2026-11-04T12:00:00.000Z",
    "createdAt": "2026-11-04T12:00:00.000Z",
    "is_authorized_to": {
      "create_posts": false,
      "send_messages": false,
      "answer_delete_comments": false,
      "access_engagements": false,
      "access_boosted_posts": false,
      "access_analytics": false,
      "alter_profile_settings": false
    }
  }
]

Send an account connection request

Send an account connection request.

User token

Needs the token of a signed-in user.

Parameters
emailstring

An email address.

Status codes

201 400 401 500

POST/send-account-connection-request
curl -X POST 'http://builderly.max-media.io/send-account-connection-request?ionic=true' \
  -H 'Authorization: Bearer <TOKEN>' \
  -H 'Content-Type: application/json' \
  -d '{ "email": "..." }'
Response
{
  "name": "Example",
  "email": "jane@example.com",
  "avatar": "6543210fedcba98765432100",
  "social_avatar": "example",
  "isAdmin": false,
  "isStaff": false,
  "owner_id": "6543210fedcba98765432100",
  "organization_name": "Example",
  "firstname": "Example",
  "lastname": "Example",
  "phone_number": "+359 888 123 456",
  "address": "example",
  "city": "example",
  "state": "example",
  "country": "example",
  "zip_code": "example",
  "tax_identification_number": "example",
  "notes": "Text shown on the site.",
  "isConfirmed": false,
  "number_of_sales": 0,
  "stripe_id": "example",
  "paypal_id": "example",
  "access_level": 1,
  "validation_code": "example",
  "can_edit": {
    "site": false,
    "crm": false,
    "store": false,
    "payments": false,
    "staff": false
  },
  "ip_location": {
    "city": "example",
    "continent_name": "Example",
    "country_name": "Example",
    "country_subdivision": "example",
    "location_latitude": 0,
    "location_longitude": 0,
    "last_updated": "example"
  }
}

Retrieve the instagram

Returns the instagram.

Public

Public - no token needed.

Query parameters
profilestring

Only instagrams with this profile.

firststring

Only instagrams with this first.

Status codes

200 500

GET/get-instagram
curl -X GET 'http://builderly.max-media.io/get-instagram?ionic=true&profile=...&first=...'

Create a push notification

Create new PushNotification.

Admin token

Needs a site admin token.

Parameters
titlestring

The push notification's title.

bodystring

The push notification's body.

imagestring

The push notification's image.

sendTostring

The push notification's send to.

typestring

The push notification's type.

urlstring

The push notification's URL slug, as in its address on the site.

Returns

Returns the PushNotification object.

Status codes

201 400 401 412 500

POST/push-notification
curl -X POST 'http://builderly.max-media.io/push-notification?ionic=true' \
  -H 'Authorization: Bearer <TOKEN>' \
  -H 'Content-Type: application/json' \
  -d '{ "title": "...", "body": "...", "image": "...", "sendTo": "...", "type": "..." }'
Response
{
  "title": "Example",
  "body": "Text shown on the site.",
  "image": "example",
  "send_to": "example",
  "type": "example",
  "_id": "6543210fedcba98765432100",
  "updatedAt": "2026-11-04T12:00:00.000Z",
  "createdAt": "2026-11-04T12:00:00.000Z"
}

Retrieve the push notification info

Get a summary info of push notifications.

Admin token

Needs a site admin token.

Status codes

200 401 500

GET/push-notification-info
curl -X GET 'http://builderly.max-media.io/push-notification-info?ionic=true' \
  -H 'Authorization: Bearer <TOKEN>'
Response
{
  "user": "example",
  "is_admin": false,
  "_id": "6543210fedcba98765432100",
  "updatedAt": "2026-11-04T12:00:00.000Z",
  "createdAt": "2026-11-04T12:00:00.000Z"
}

Retrieve the push notification

Returns the push notification.

Admin token

Needs a site admin token.

Query parameters
sendTostring

Only push notifications with this send to.

Returns

Returns the PushNotification object.

Status codes

200 401 500

GET/push-notification/timer
curl -X GET 'http://builderly.max-media.io/push-notification/timer?ionic=true&sendTo=...' \
  -H 'Authorization: Bearer <TOKEN>'
Response
{
  "title": "Example",
  "body": "Text shown on the site.",
  "image": "example",
  "send_to": "example",
  "type": "example",
  "_id": "6543210fedcba98765432100",
  "updatedAt": "2026-11-04T12:00:00.000Z",
  "createdAt": "2026-11-04T12:00:00.000Z"
}

Retrieve the push token

Returns the push token.

Admin token

Needs a site admin token.

Returns

Returns the PushToken object.

Status codes

200 401 500

GET/push-token
curl -X GET 'http://builderly.max-media.io/push-token?ionic=true' \
  -H 'Authorization: Bearer <TOKEN>'
Response
{
  "user": "example",
  "is_admin": false,
  "_id": "6543210fedcba98765432100",
  "updatedAt": "2026-11-04T12:00:00.000Z",
  "createdAt": "2026-11-04T12:00:00.000Z"
}

Retrieve a push token

Returns one push token, found by its ID.

Admin token

Needs a site admin token.

Path parameters
idstringRequired

The ID of the push token.

Returns

Returns the PushToken object.

Status codes

200 401 404 500

GET/push-token/:id
curl -X GET 'http://builderly.max-media.io/push-token/{id}?ionic=true' \
  -H 'Authorization: Bearer <TOKEN>'
Response
{
  "user": "example",
  "is_admin": false,
  "_id": "6543210fedcba98765432100",
  "updatedAt": "2026-11-04T12:00:00.000Z",
  "createdAt": "2026-11-04T12:00:00.000Z"
}
↑↓ Navigate↵ GoEsc Close