Introduction

Public API documentation for Brevix.

This documentation aims to provide all the information you need to work with our API.

As you scroll, you will see code examples for working with the API in different programming languages 
in the dark area to the right.You can switch the language used with the tabs at the top right.

Authenticating requests

To authenticate requests, include a X-API-KEY header with the value "{YOUR_CLIENT_KEY}".

All authenticated endpoints are marked with a requires authentication badge in the documentation below.

Accounts

Current Plan

GET
https://api.brevix.global
/v1/current-plan

Headers

X-API-KEY:
Example:
{api_key}
X-SIGNATURE:
Example:
{hmac_signature}
X-TIMESTAMP:
Example:
{timestamp}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.brevix.global/v1/current-plan" \
    --header "X-API-KEY:: {api_key}" \
    --header "X-SIGNATURE:: {hmac_signature}" \
    --header "X-TIMESTAMP:: {timestamp}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 54
vary: Origin
{
    "error": "API key missing"
}

Download Invoice

GET
https://api.brevix.global
/v1/download-invoice

Headers

X-API-KEY:
Example:
{api_key}
X-SIGNATURE:
Example:
{hmac_signature}
X-TIMESTAMP:
Example:
{timestamp}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.brevix.global/v1/download-invoice" \
    --header "X-API-KEY:: {api_key}" \
    --header "X-SIGNATURE:: {hmac_signature}" \
    --header "X-TIMESTAMP:: {timestamp}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 53
vary: Origin
{
    "error": "API key missing"
}

Profile Update

POST
https://api.brevix.global
/v1/update-personal-info

Update Profile for the authenticated user

Expected request fields:

  • first_name (optional)
  • last_name (optional)
  • phone (optional)
  • profile (optional)
  • address (optional)

Headers

X-API-KEY:
Example:
{api_key}
X-SIGNATURE:
Example:
{hmac_signature}
X-TIMESTAMP:
Example:
{timestamp}
Content-Type
Example:
multipart/form-data
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brevix.global/v1/update-personal-info" \
    --header "X-API-KEY:: {api_key}" \
    --header "X-SIGNATURE:: {hmac_signature}" \
    --header "X-TIMESTAMP:: {timestamp}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "first_name=architecto"\
    --form "last_name=architecto"\
    --form "phone=ngzmiyvdljnikhwa"\
    --form "address=architecto"\
    --form "image=@/tmp/phpmbhlNw" 

Feedback

POST
https://api.brevix.global
/v1/add-feedback

Feedback for the authenticated user

Expected request fields:

  • feedback(required)
  • image(optional)

Headers

X-API-KEY:
Example:
{api_key}
X-SIGNATURE:
Example:
{hmac_signature}
X-TIMESTAMP:
Example:
{timestamp}
Content-Type
Example:
multipart/form-data
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brevix.global/v1/add-feedback" \
    --header "X-API-KEY:: {api_key}" \
    --header "X-SIGNATURE:: {hmac_signature}" \
    --header "X-TIMESTAMP:: {timestamp}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "feedback=b"\
    --form "image=@/tmp/phpf5ZRaA" 

Password Update

POST
https://api.brevix.global
/v1/update-password

Update Password for the authenticated user

Expected request fields:

  • old_password (required)
  • password (required(Abc@123))
  • confirm_password (required(Abc@123))

Headers

X-API-KEY:
Example:
{api_key}
X-SIGNATURE:
Example:
{hmac_signature}
X-TIMESTAMP:
Example:
{timestamp}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brevix.global/v1/update-password" \
    --header "X-API-KEY:: {api_key}" \
    --header "X-SIGNATURE:: {hmac_signature}" \
    --header "X-TIMESTAMP:: {timestamp}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"old_password\": \"architecto\",
    \"password\": \"architecto\",
    \"confirm_password\": \"architecto\"
}"

Remove Account

POST
https://api.brevix.global
/v1/remove-account

Remove Account for the authenticated user

Expected request fields:

  • reason(required)

Headers

X-API-KEY:
Example:
{api_key}
X-SIGNATURE:
Example:
{hmac_signature}
X-TIMESTAMP:
Example:
{timestamp}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brevix.global/v1/remove-account" \
    --header "X-API-KEY:: {api_key}" \
    --header "X-SIGNATURE:: {hmac_signature}" \
    --header "X-TIMESTAMP:: {timestamp}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"reason\": \"b\"
}"

Barcode

Retrieve Barcode

GET
https://api.brevix.global
/v1/barcode

Retrieve barcode belonging to the authenticated API key's user

Headers

X-API-KEY:
Example:
{api_key}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.brevix.global/v1/barcode" \
    --header "X-API-KEY:: {api_key}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 55
vary: Origin
{
    "error": "API key missing"
}

Generate Barcode

POST
https://api.brevix.global
/v1/generate-barcode

Generate a new Barcode for the authenticated user

Expected request fields:

  • url (required)
  • description (optional)
  • size (optional)
  • color (optional (hex(like : #000)))
  • text (optional)
  • text_size (optional)
  • text_color (optional (hex(like : #000)))
  • text_position (optional)
  • color (optional (hex(like : #000)))

Headers

X-API-KEY:
Example:
{api_key}
X-SIGNATURE:
Example:
{hmac_signature}
X-TIMESTAMP:
Example:
{timestamp}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brevix.global/v1/generate-barcode" \
    --header "X-API-KEY:: {api_key}" \
    --header "X-SIGNATURE:: {hmac_signature}" \
    --header "X-TIMESTAMP:: {timestamp}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"url\": \"http:\\/\\/www.bailey.biz\\/quos-velit-et-fugiat-sunt-nihil-accusantium-harum.html\",
    \"size\": 5,
    \"color\": \"#(922815\",
    \"text\": \"l\",
    \"text_position\": \"bottom\",
    \"text_color\": \"#(922815\",
    \"text_size\": 5,
    \"description\": \"Harum mollitia modi deserunt aut ab provident perspiciatis quo.\"
}"

Remove Barcode

POST
https://api.brevix.global
/v1/remove-barcode

Remove Barcode belonging to the authenticated API key's user

  • Expected request fields:
    • uuid (required)

Headers

X-API-KEY:
Example:
{api_key}
X-SIGNATURE:
Example:
{hmac_signature}
X-TIMESTAMP:
Example:
{timestamp}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brevix.global/v1/remove-barcode" \
    --header "X-API-KEY:: {api_key}" \
    --header "X-SIGNATURE:: {hmac_signature}" \
    --header "X-TIMESTAMP:: {timestamp}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"uuid\": \"architecto\"
}"

Update Barcode

POST
https://api.brevix.global
/v1/edit-barcode

Update Barcode belonging to the authenticated API key's user

Expected request fields:

  • uuid (required)
  • url (required)
  • description (optional)
  • size (optional)
  • color (optional (hex(like : #000)))
  • text (optional)
  • text_size (optional)
  • text_color (optional (hex(like : #000)))
  • text_position (optional)
  • color (optional (hex(like : #000)))

Headers

X-API-KEY:
Example:
{api_key}
X-SIGNATURE:
Example:
{hmac_signature}
X-TIMESTAMP:
Example:
{timestamp}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brevix.global/v1/edit-barcode" \
    --header "X-API-KEY:: {api_key}" \
    --header "X-SIGNATURE:: {hmac_signature}" \
    --header "X-TIMESTAMP:: {timestamp}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"uuid\": \"architecto\",
    \"url\": \"http:\\/\\/bailey.com\\/\",
    \"size\": 17,
    \"color\": \"#(922815\",
    \"text\": \"l\",
    \"text_position\": \"bottom\",
    \"text_color\": \"#(922815\",
    \"text_size\": 5,
    \"description\": \"Harum mollitia modi deserunt aut ab provident perspiciatis quo.\"
}"

Custom Pages

Retrieve Pages

GET
https://api.brevix.global
/v1/pages

Retrieve Pages belonging to the authenticated API key's user

Headers

X-API-KEY:
Example:
{api_key}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.brevix.global/v1/pages" \
    --header "X-API-KEY:: {api_key}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 52
vary: Origin
{
    "error": "API key missing"
}

Remove Pages

POST
https://api.brevix.global
/v1/remove-page

Remove Pages belonging to the authenticated API key's user

  • Expected request fields:
    • uuid (required)

Headers

X-API-KEY:
Example:
{api_key}
X-SIGNATURE:
Example:
{hmac_signature}
X-TIMESTAMP:
Example:
{timestamp}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brevix.global/v1/remove-page" \
    --header "X-API-KEY:: {api_key}" \
    --header "X-SIGNATURE:: {hmac_signature}" \
    --header "X-TIMESTAMP:: {timestamp}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"uuid\": \"architecto\"
}"

Generate Pages

POST
https://api.brevix.global
/v1/generate-page

Create a custom page for the authenticated user. This API stores frame configuration, generates a shareable page, creates a short link, and generates a QR code.

Expected request fields:

BASIC

  • title (required, string)
  • subtitle (optional, string)
  • slug (required, string) Unique page slug
  • domain (required, string) Must exist in domains.name

LOGO

  • logoText (optional, string)
  • logoStatus (required, 0|1)
  • logoPosition (required, top-left|top-right|bottom-left|bottom-right)

THEME (object)

  • theme.bggradient (required, array[2])
  • theme.bg (optional, string)
  • theme.logoBg (optional, string)
  • theme.bodyBg (optional, string)
  • theme.boxShadow (optional, string)
  • theme.text (optional, string)
  • theme.subtext (optional, string)
  • theme.buttonBg (optional, string)
  • theme.buttonText (optional, string)
  • theme.borderWidth (optional, string)
  • theme.borderColor (optional, string)
  • theme.borderRadius (optional, string)
  • theme.socialColor (optional, string)

TOP SHAPE (object)

  • topShape.color (optional, string)
  • topShape.height (optional, integer)
  • topShape.clip (optional, string)

SOCIAL

  • socialAlign (optional, left|center|right)
  • socialIcons (optional, array)
  • socialIcons[].icon (required, string)
  • socialIcons[].link (optional, URL)
  • socialIcons[].bg (optional, string)

IMAGES (array)

  • images[].id (required, integer)
  • images[].src (required, URL)
  • images[].status (required, 0|1)
  • images[].title (optional, string)

BUTTONS (array)

  • buttons[].id (required, integer)
  • buttons[].status (required, 0|1)
  • buttons[].label (required, string)
  • buttons[].url (optional, URL)

Headers

X-API-KEY:
Example:
{api_key}
X-SIGNATURE:
Example:
{hmac_signature}
X-TIMESTAMP:
Example:
{timestamp}
Content-Type
Example:
multipart/form-data
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brevix.global/v1/generate-page" \
    --header "X-API-KEY:: {api_key}" \
    --header "X-SIGNATURE:: {hmac_signature}" \
    --header "X-TIMESTAMP:: {timestamp}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "title=b"\
    --form "subtext=n"\
    --form "slug=g"\
    --form "logoText=z"\
    --form "logoPosition=top-right"\
    --form "socialAlign=right"\
    --form "buttons[][label]=n"\
    --form "buttons[][url]=http://crooks.biz/et-fugiat-sunt-nihil-accusantium"\
    --form "theme[][bgColor]=architecto"\
    --form "theme[][textColor]=architecto"\
    --form "theme[][subTextColor]=architecto"\
    --form "theme[][buttonBgColor]=architecto"\
    --form "theme[][buttonTextColor]=architecto"\
    --form "theme[][logoBgColor]=architecto"\
    --form "theme[][borderWidth]=architecto"\
    --form "theme[][borderColor]=architecto"\
    --form "theme[][borderRadius]=architecto"\
    --form "theme[][boxShadow]=architecto"\
    --form "theme[][socialIconColor]=architecto"\
    --form "socialIcons[][name]=facebook"\
    --form "socialIcons[][link]=http://bailey.com/"\
    --form "socialIcons[][bg]=architecto"\
    --form "logo=@/tmp/phpR3OBcU" \
    --form "images[]=@/tmp/phpx94kq0" 

Update Pages

POST
https://api.brevix.global
/v1/edit-page

Update pages belonging to the authenticated API key's user

Expected request fields:

BASIC

  • uuid (required)
  • title (required, string)
  • subtitle (optional, string)
  • slug (required, string) Unique page slug
  • domain (required, string) Must exist in domains.name

LOGO

  • logoText (optional, string)
  • logoStatus (required, 0|1)
  • logoPosition (required, top-left|top-right|bottom-left|bottom-right)

THEME (object)

  • theme.bggradient (required, array[2])
  • theme.bg (optional, string)
  • theme.logoBg (optional, string)
  • theme.bodyBg (optional, string)
  • theme.boxShadow (optional, string)
  • theme.text (optional, string)
  • theme.subtext (optional, string)
  • theme.buttonBg (optional, string)
  • theme.buttonText (optional, string)
  • theme.borderWidth (optional, string)
  • theme.borderColor (optional, string)
  • theme.borderRadius (optional, string)
  • theme.socialColor (optional, string)

TOP SHAPE (object)

  • topShape.color (optional, string)
  • topShape.height (optional, integer)
  • topShape.clip (optional, string)

SOCIAL

  • socialAlign (optional, left|center|right)
  • socialIcons (optional, array)
  • socialIcons[].icon (required, string)
  • socialIcons[].link (optional, URL)
  • socialIcons[].bg (optional, string)

IMAGES (array)

  • images[].id (required, integer)
  • images[].src (required, URL)
  • images[].status (required, 0|1)
  • images[].title (optional, string)

BUTTONS (array)

  • buttons[].id (required, integer)
  • buttons[].status (required, 0|1)
  • buttons[].label (required, string)
  • buttons[].url (optional, URL)

Headers

X-API-KEY:
Example:
{api_key}
X-SIGNATURE:
Example:
{hmac_signature}
X-TIMESTAMP:
Example:
{timestamp}
Content-Type
Example:
multipart/form-data
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brevix.global/v1/edit-page" \
    --header "X-API-KEY:: {api_key}" \
    --header "X-SIGNATURE:: {hmac_signature}" \
    --header "X-TIMESTAMP:: {timestamp}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "uuid=architecto"\
    --form "title=n"\
    --form "subtext=g"\
    --form "logoText=z"\
    --form "logoPosition=top-center"\
    --form "socialAlign=left"\
    --form "buttons[][label]=n"\
    --form "buttons[][url]=http://crooks.biz/et-fugiat-sunt-nihil-accusantium"\
    --form "theme[][bgColor]=architecto"\
    --form "theme[][textColor]=architecto"\
    --form "theme[][subTextColor]=architecto"\
    --form "theme[][buttonBgColor]=architecto"\
    --form "theme[][buttonTextColor]=architecto"\
    --form "theme[][logoBgColor]=architecto"\
    --form "theme[][borderWidth]=architecto"\
    --form "theme[][borderColor]=architecto"\
    --form "theme[][borderRadius]=architecto"\
    --form "theme[][boxShadow]=architecto"\
    --form "theme[][socialIconColor]=architecto"\
    --form "socialIcons[][name]=facebook"\
    --form "socialIcons[][link]=http://bailey.com/"\
    --form "socialIcons[][bg]=architecto"\
    --form "logo=@/tmp/phpCo0cxo" \
    --form "images[]=@/tmp/phpJxAcCC" 

Health

Health check

GET
https://api.brevix.global
/v1/healthcheck

Returns a simple JSON payload confirming the system is operational.

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.brevix.global/v1/healthcheck" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 59
vary: Origin
{
    "status": "success",
    "message": "System is healthy and operational."
}

Links

GET
https://api.brevix.global
/v1/links

Retrieve links belonging to the authenticated API key's user

Headers

X-API-KEY:
Example:
{api_key}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.brevix.global/v1/links" \
    --header "X-API-KEY:: {api_key}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
POST
https://api.brevix.global
/v1/generate-link

Generate a new shortened link for the authenticated user

Expected request fields:

  • link (required, URL)
  • description (optional)
  • tag (optional)
  • expire (optional, date)
  • customLink (optional, custom short code)

Headers

X-API-KEY:
Example:
{api_key}
X-SIGNATURE:
Example:
{hmac_signature}
X-TIMESTAMP:
Example:
{timestamp}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brevix.global/v1/generate-link" \
    --header "X-API-KEY:: {api_key}" \
    --header "X-SIGNATURE:: {hmac_signature}" \
    --header "X-TIMESTAMP:: {timestamp}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"link\": \"http:\\/\\/www.bailey.biz\\/quos-velit-et-fugiat-sunt-nihil-accusantium-harum.html\"
}"
POST
https://api.brevix.global
/v1/remove-links

Remove links belonging to the authenticated API key's user

  • Expected request fields:
    • uuid (required)

Headers

X-API-KEY:
Example:
{api_key}
X-SIGNATURE:
Example:
{hmac_signature}
X-TIMESTAMP:
Example:
{timestamp}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brevix.global/v1/remove-links" \
    --header "X-API-KEY:: {api_key}" \
    --header "X-SIGNATURE:: {hmac_signature}" \
    --header "X-TIMESTAMP:: {timestamp}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"uuid\": \"architecto\"
}"
POST
https://api.brevix.global
/v1/edit-links

Update links belonging to the authenticated API key's user

Expected request fields:

  • uuid (required)
  • link (required, URL)
  • description (optional)
  • tag (optional)
  • expire (optional, date)
  • customLink (optional, custom short code)

Headers

X-API-KEY:
Example:
{api_key}
X-SIGNATURE:
Example:
{hmac_signature}
X-TIMESTAMP:
Example:
{timestamp}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brevix.global/v1/edit-links" \
    --header "X-API-KEY:: {api_key}" \
    --header "X-SIGNATURE:: {hmac_signature}" \
    --header "X-TIMESTAMP:: {timestamp}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"uuid\": \"architecto\",
    \"link\": \"architecto\"
}"

QR Code

Retrieve QR Code

GET
https://api.brevix.global
/v1/qrcode

Retrieve QR Code belonging to the authenticated API key's user

Headers

X-API-KEY:
Example:
{api_key}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.brevix.global/v1/qrcode" \
    --header "X-API-KEY:: {api_key}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 56
vary: Origin
{
    "error": "API key missing"
}

Generate QR Code

POST
https://api.brevix.global
/v1/generate-qr

Generate a new QR Code for the authenticated user

Expected request fields:

  • url (required)
  • description (optional)
  • size (optional)
  • color (optional (hex(like : #000)))
  • eye_color (optional(hex(like : #000)))
  • pattern (required(squares,dots))
  • logo (optional(type:jpeg,png,jpg,size:2mb))

Headers

X-API-KEY:
Example:
{api_key}
X-SIGNATURE:
Example:
{hmac_signature}
X-TIMESTAMP:
Example:
{timestamp}
Content-Type
Example:
multipart/form-data
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brevix.global/v1/generate-qr" \
    --header "X-API-KEY:: {api_key}" \
    --header "X-SIGNATURE:: {hmac_signature}" \
    --header "X-TIMESTAMP:: {timestamp}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "url=http://www.bailey.biz/quos-velit-et-fugiat-sunt-nihil-accusantium-harum.html"\
    --form "color=#(922815"\
    --form "eye_color=#(922815"\
    --form "pattern=squares"\
    --form "size=5"\
    --form "logo=@/tmp/php7eQyNc" 

Remove QR Code

POST
https://api.brevix.global
/v1/remove-qr

Remove QR Code belonging to the authenticated API key's user

  • Expected request fields:
    • uuid (required)

Headers

X-API-KEY:
Example:
{api_key}
X-SIGNATURE:
Example:
{hmac_signature}
X-TIMESTAMP:
Example:
{timestamp}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brevix.global/v1/remove-qr" \
    --header "X-API-KEY:: {api_key}" \
    --header "X-SIGNATURE:: {hmac_signature}" \
    --header "X-TIMESTAMP:: {timestamp}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"uuid\": \"architecto\"
}"

Update QR Code

POST
https://api.brevix.global
/v1/edit-qr

Update Qr Code belonging to the authenticated API key's user

Expected request fields:

  • uuid (required)
  • url (required)
  • description (optional)
  • size (optional)
  • color (optional (hex(like : #000)))
  • eye_color (optional(hex(like : #000)))
  • pattern (required(squares,dots))
  • logo (optional(type:jpeg,png,jpg,size:2mb))

Headers

X-API-KEY:
Example:
{api_key}
X-SIGNATURE:
Example:
{hmac_signature}
X-TIMESTAMP:
Example:
{timestamp}
Content-Type
Example:
multipart/form-data
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brevix.global/v1/edit-qr" \
    --header "X-API-KEY:: {api_key}" \
    --header "X-SIGNATURE:: {hmac_signature}" \
    --header "X-TIMESTAMP:: {timestamp}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "uuid=architecto"\
    --form "url=http://bailey.com/"\
    --form "color=#(922815"\
    --form "eye_color=#(922815"\
    --form "pattern=dots"\
    --form "size=5"\
    --form "logo=@/tmp/phpA32s6T" 

UTM Builder

Retrieve UTM

GET
https://api.brevix.global
/v1/utm

Retrieve Utm links belonging to the authenticated API key's user

Headers

X-API-KEY:
Example:
{api_key}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.brevix.global/v1/utm" \
    --header "X-API-KEY:: {api_key}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 57
vary: Origin
{
    "error": "API key missing"
}

Generate UTM

POST
https://api.brevix.global
/v1/generate-utm

Generate a new UTM link for the authenticated user

Expected request fields:

  • url (required)
  • source (required)
  • medium (required)
  • campaign (required)
  • content (required)

Headers

X-API-KEY:
Example:
{api_key}
X-SIGNATURE:
Example:
{hmac_signature}
X-TIMESTAMP:
Example:
{timestamp}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brevix.global/v1/generate-utm" \
    --header "X-API-KEY:: {api_key}" \
    --header "X-SIGNATURE:: {hmac_signature}" \
    --header "X-TIMESTAMP:: {timestamp}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"url\": \"http:\\/\\/www.bailey.biz\\/quos-velit-et-fugiat-sunt-nihil-accusantium-harum.html\",
    \"source\": \"architecto\",
    \"medium\": \"architecto\",
    \"campaign\": \"architecto\",
    \"content\": \"architecto\"
}"

Remove UTM

POST
https://api.brevix.global
/v1/remove-utm

Remove UTM belonging to the authenticated API key's user

  • Expected request fields:
    • uuid (required)

Headers

X-API-KEY:
Example:
{api_key}
X-SIGNATURE:
Example:
{hmac_signature}
X-TIMESTAMP:
Example:
{timestamp}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brevix.global/v1/remove-utm" \
    --header "X-API-KEY:: {api_key}" \
    --header "X-SIGNATURE:: {hmac_signature}" \
    --header "X-TIMESTAMP:: {timestamp}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"uuid\": \"architecto\"
}"

Update UTM

POST
https://api.brevix.global
/v1/edit-utm

Update utm belonging to the authenticated API key's user

Expected request fields:

  • uuid (required)
  • url (required)
  • source (required)
  • medium (required)
  • campaign (required)
  • content (required)

Headers

X-API-KEY:
Example:
{api_key}
X-SIGNATURE:
Example:
{hmac_signature}
X-TIMESTAMP:
Example:
{timestamp}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brevix.global/v1/edit-utm" \
    --header "X-API-KEY:: {api_key}" \
    --header "X-SIGNATURE:: {hmac_signature}" \
    --header "X-TIMESTAMP:: {timestamp}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"uuid\": \"architecto\",
    \"url\": \"http:\\/\\/bailey.com\\/\",
    \"source\": \"architecto\",
    \"medium\": \"architecto\",
    \"campaign\": \"architecto\",
    \"content\": \"architecto\"
}"