Skip to main content
GET
/
api
/
businesses
/
{business_id}
Get business
curl --request GET \
  --url https://api.mymarky.ai/api/businesses/{business_id} \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.mymarky.ai/api/businesses/{business_id}"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.mymarky.ai/api/businesses/{business_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mymarky.ai/api/businesses/{business_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.mymarky.ai/api/businesses/{business_id}"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Authorization", "Bearer <token>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.mymarky.ai/api/businesses/{business_id}")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.mymarky.ai/api/businesses/{business_id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "tone": "<string>",
  "audience_combined": "<string>",
  "caption_writing_rules": "<string>",
  "caption_suffix": "<string>",
  "custom_caption_prompt": "<string>",
  "imagery_preferences": "<string>",
  "tagline": "<string>",
  "ctas": [
    "<string>"
  ],
  "palettes": [
    {
      "name": "My Palette",
      "colors": [
        "<string>"
      ],
      "text_color": "<string>",
      "accent_color": "<string>",
      "background_color": "<string>"
    }
  ],
  "header_font": {
    "name": "<string>",
    "url": "<string>"
  },
  "body_font": {
    "name": "<string>",
    "url": "<string>"
  },
  "logo_url": "<string>",
  "logo_background_color": "<string>",
  "logo_width": 123,
  "name": "<string>",
  "description": "<string>",
  "industry": "<string>",
  "website": "<string>",
  "language": "English",
  "platform_writing_instructions": {},
  "updated_at": "2023-11-07T05:31:56Z"
}
{
"error": {
"type": "<string>",
"message": "<string>",
"doc_url": "<string>",
"param": "<string>",
"request_id": "<string>"
}
}
{
"error": {
"type": "<string>",
"message": "<string>",
"doc_url": "<string>",
"param": "<string>",
"request_id": "<string>"
}
}
{
"error": {
"type": "<string>",
"message": "<string>",
"doc_url": "<string>",
"param": "<string>",
"request_id": "<string>"
}
}
{
"error": {
"type": "<string>",
"message": "<string>",
"doc_url": "<string>",
"param": "<string>",
"request_id": "<string>"
}
}
{
"error": {
"type": "<string>",
"message": "<string>",
"doc_url": "<string>",
"param": "<string>",
"request_id": "<string>"
}
}
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}
{
"error": {
"type": "<string>",
"message": "<string>",
"doc_url": "<string>",
"param": "<string>",
"request_id": "<string>"
}
}
{
"error": {
"type": "<string>",
"message": "<string>",
"doc_url": "<string>",
"param": "<string>",
"request_id": "<string>"
}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

business_id
string
required

A UUID identifier.

Response

Successful Response

id
string
required

Business ID

created_at
string<date-time>
required

When the business was created

tone
string | null

Brand voice — the tone and personality Marky writes captions in (the 'Profile' field in the app).

audience_combined
string | null

The target audience the brand writes for — who the posts are meant to reach (the 'Target Audience' field in the app).

caption_writing_rules
string | null

Extra rules Marky follows when writing captions (e.g. 'never use emojis', 'always end with a question').

caption_suffix
string | null

Text appended to the end of every generated caption (e.g. a hashtag block or a link).

custom_caption_prompt
string | null

A custom instruction injected into caption generation for this business.

imagery_preferences
string | null

Guidance on the imagery the brand prefers (style, subjects, mood).

tagline
string | null

Brand tagline shown on designs.

ctas
string[] | null

Call-to-action phrases Marky can use on designs (e.g. 'Call today', 'Book now').

palettes
Palette · object[] | null

Brand color palettes used on generated designs.

header_font
FontSetting · object | null

Font used for headlines on designs.

body_font
FontSetting · object | null

Font used for body text on designs.

logo_url
string | null

URL of the brand logo.

logo_background_color
string | null

Background color behind the logo on designs (hex, or '#00000000' for transparent).

logo_width
integer | null

Logo width in pixels, used when laying the logo onto designs.

name
string | null

Business name

description
string | null

Business description

industry
string | null

Industry category

website
string | null

Business website URL

language
string
default:English

Content language

platform_writing_instructions
Platform Writing Instructions · object | null

The user's customized per-platform caption-writing instructions (empty when none set). Keys are canonical platform names (e.g. 'instagram', 'linkedIn') plus 'common' (applies to all platforms). Follow the matching entry when writing a caption or platform_overrides caption — the user's instructions ALWAYS outrank generic platform best practices. Update via PATCH (merge semantics). Returned by get_business only, not the list endpoint.

updated_at
string<date-time> | null

Last update time