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.
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.
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" cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 54
vary: Origin
{
"error": "API key missing"
}
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" cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 53
vary: Origin
{
"error": "API key missing"
}
Update Profile for the authenticated user
Expected request fields:
first_name (optional)last_name (optional)phone (optional)profile (optional)address (optional)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 for the authenticated user
Expected request fields:
feedback(required)image(optional)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" Update Password for the authenticated user
Expected request fields:
old_password (required)password (required(Abc@123))confirm_password (required(Abc@123))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 for the authenticated user
Expected request fields:
reason(required)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\"
}"
Retrieve barcode belonging to the authenticated API key's user
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" 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)))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 belonging to the authenticated API key's user
uuid (required)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 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)))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.\"
}"
Retrieve Pages belonging to the authenticated API key's user
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" 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 belonging to the authenticated API key's user
uuid (required)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\"
}"
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 slugdomain (required, string) Must exist in domains.nameLOGO
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)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 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 slugdomain (required, string) Must exist in domains.nameLOGO
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)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" Returns a simple JSON payload confirming the system is operational.
curl --request GET \
--get "https://api.brevix.global/v1/healthcheck" \
--header "Content-Type: application/json" \
--header "Accept: application/json" 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."
}
Retrieve links belonging to the authenticated API key's user
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" cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 58
vary: Origin
{
"error": "API key missing"
}
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)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\"
}"
Remove links belonging to the authenticated API key's user
uuid (required)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\"
}"
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)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\"
}"
Retrieve QR Code belonging to the authenticated API key's user
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" cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 56
vary: Origin
{
"error": "API key missing"
}
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))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 belonging to the authenticated API key's user
uuid (required)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 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))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" Retrieve Utm links belonging to the authenticated API key's user
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" cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 57
vary: Origin
{
"error": "API key missing"
}
Generate a new UTM link for the authenticated user
Expected request fields:
url (required)source (required)medium (required)campaign (required)content (required)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 belonging to the authenticated API key's user
uuid (required)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 belonging to the authenticated API key's user
Expected request fields:
uuid (required)url (required)source (required)medium (required)campaign (required)content (required)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\"
}"