Unitpost Branding API

The look marketing emails' footer and the hosted unsubscribe page share, with the same options as Settings → Brand, and the logo. Writes need `branding:write`, which no key preset includes.

GitHub OpenAPI

Operations 4

GET /branding Retrieve branding #
PATCH /branding Update branding #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/unitpost-com:unitpost-com-branding-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

unitpost-com-branding-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Unitpost Branding API
  version: v1
  description: 'Public, versioned API for sending email and SMS and managing contacts, segments, campaigns, templates, domains, and webhooks. SMS is included on paid plans; on the free plan `POST /sms` returns `403` with `limit_reached`. Authenticate every request with an API key: `Authorization: Bearer `. A `User-Agent` header is required. Requests are scoped to the workspace that owns the key and are rate-limited per workspace. List endpoints are cursor-paginated via `limit`/`after`/`before` and return a `{ object: "list", has_more, data }` envelope. Register webhook endpoints to receive events: each create returns a `signing_secret` (`whsec_…`) exactly once. Every delivery is **svix-compatible**: it carries `svix-id`, `svix-timestamp`, and `svix-signature` (`v1,`) headers computed over `..` with your secret — verify them and reject deliveries whose signature doesn''t match (any Svix-compatible library works). Inbound email that lands on a receiving-enabled domain is readable under `/email/received`.'
servers:
- url: https://www.unitpost.com/api/v1
  description: Base URL
security:
- apiKey: []
tags:
- name: Branding
  description: The look marketing emails' footer and the hosted unsubscribe page share, with the same options as Settings → Brand, and the logo. Writes need `branding:write`, which no key preset includes.
paths:
  /branding:
    get:
      operationId: branding_get
      tags:
      - Branding
      summary: Retrieve branding
      description: 'The look marketing emails'' footer and the hosted unsubscribe page share, as Settings → Brand shows it: colors, the font, the company name and postal address, the page''s copy and behavior, the footer''s labels, the logo, and whether the "Sent with Unitpost" mark shows. `null` means the default; `company_name` falls back to the workspace''s name, so send it only to pin a different one. Requires the `templates:read` capability.'
      responses:
        '200':
          description: The branding.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Branding'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Insufficient scope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: A query key (this operation takes none).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    patch:
      operationId: branding_update
      tags:
      - Branding
      summary: Update branding
      description: 'Change branding with the same options Settings → Brand offers; only the fields you send change, and `null` restores a default. The footer every marketing email carries is built from these at send (it always keeps the unsubscribe link and the postal address). Hiding the "Sent with Unitpost" mark needs a paid plan (`403 limit_reached`). No key preset includes this capability: tick it on the key. Requires the `branding:write` capability.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BrandingUpdate'
      responses:
        '200':
          description: The branding.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Branding'
        '400':
          description: The body isn't JSON.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Insufficient scope, or hiding the mark on a plan without it (`limit_reached`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: A bad color, font or length, no field to change, or an unknown key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /branding/logo:
    put:
      operationId: branding_set_logo
      tags:
      - Branding
      summary: Set the logo
      description: Replace the logo marketing emails and the unsubscribe page show, from a public https `url` or base64 `data` (PNG, JPEG, GIF or WebP, up to 5 MB and 16,384 px a side). Requires the `branding:write` capability.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImageUpload'
      responses:
        '200':
          description: The branding.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Branding'
        '400':
          description: The body isn't JSON.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Insufficient scope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Neither or both of `url` and `data`, an image that couldn't be fetched or read, the wrong type, over 5 MB, over 16,384 px a side or 50 megapixels, or an unknown key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Too many uploads; retry after the wait.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '502':
          description: Storing the image failed; nothing changed. Retry.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: '`engine_unavailable`: image hosting isn''t configured on this deployment; nothing changed.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    delete:
      operationId: branding_remove_logo
      tags:
      - Branding
      summary: Remove the logo
      description: 'Clear the brand logo: the workspace image shows instead, else none. Requires the `branding:write` capability.'
      responses:
        '200':
          description: The branding.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Branding'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Insufficient scope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    BrandingUpdate:
      type: object
      properties:
        company_name:
          description: Shown in the footer (`{{company_name}}`).
          anyOf:
          - type: string
            maxLength: 200
          - type: 'null'
        company_address:
          description: The postal address every marketing email carries (`{{company_address}}`).
          anyOf:
          - type: string
            maxLength: 500
          - type: 'null'
        colors:
          type: object
          properties:
            background:
              description: The page and footer background.
              anyOf:
              - type: string
                pattern: ^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$
              - type: 'null'
            footer_background:
              description: The footer band, when it differs from the background.
              anyOf:
              - type: string
                pattern: ^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$
              - type: 'null'
            text:
              anyOf:
              - type: string
                pattern: ^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$
              - type: 'null'
            accent:
              description: Links and buttons.
              anyOf:
              - type: string
                pattern: ^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$
              - type: 'null'
            button_text:
              description: Text on accent buttons (default white).
              anyOf:
              - type: string
                pattern: ^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$
              - type: 'null'
          additionalProperties: false
        font:
          description: 'One of: System default, Arial, Helvetica, Verdana, Tahoma, Trebuchet MS, Georgia, Times New Roman, Courier New.'
          anyOf:
          - type: string
            enum:
            - System default
            - Arial
            - Helvetica
            - Verdana
            - Tahoma
            - Trebuchet MS
            - Georgia
            - Times New Roman
            - Courier New
          - type: 'null'
        hide_unitpost_branding:
          description: Hide the "Sent with Unitpost" mark. Paid plans only (403 `limit_reached`).
          type: boolean
        unsubscribe_page:
          type: object
          properties:
            title:
              description: The page heading.
              anyOf:
              - type: string
                maxLength: 120
              - type: 'null'
            description:
              description: The intro under the heading.
              anyOf:
              - type: string
                maxLength: 500
              - type: 'null'
            confirm:
              description: Ask before unsubscribing from everything.
              type: boolean
            collect_reason:
              description: Offer an optional "why are you leaving?".
              type: boolean
            show_address:
              description: Show the postal address on the page (the footer always shows it).
              type: boolean
            show_topics:
              description: Let recipients choose topics on the page.
              type: boolean
            save_label:
              description: The topic-preferences save button.
              anyOf:
              - type: string
                maxLength: 60
              - type: 'null'
            global_label:
              description: The unsubscribe-from-everything control.
              anyOf:
              - type: string
                maxLength: 80
              - type: 'null'
            global_note:
              description: The note under it.
              anyOf:
              - type: string
                maxLength: 300
              - type: 'null'
            topics_heading:
              description: The heading over the topics.
              anyOf:
              - type: string
                maxLength: 60
              - type: 'null'
          additionalProperties: false
        footer:
          type: object
          properties:
            intro_text:
              description: The line before the unsubscribe link.
              anyOf:
              - type: string
                maxLength: 200
              - type: 'null'
            unsubscribe_label:
              description: The unsubscribe link's text.
              anyOf:
              - type: string
                maxLength: 60
              - type: 'null'
          additionalProperties: false
    Branding:
      type: object
      properties:
        object:
          type: string
          const: branding
        company_name:
          description: The name the footer shows; the workspace's name unless one was set.
          anyOf:
          - type: string
          - type: 'null'
        company_address:
          anyOf:
          - type: string
          - type: 'null'
        logo_url:
          description: 'The logo emails and the unsubscribe page show: the brand logo, else the workspace image, else none.'
          anyOf:
          - type: string
          - type: 'null'
        has_brand_logo:
          type: boolean
        colors:
          type: object
          properties:
            background:
              anyOf:
              - type: string
              - type: 'null'
            footer_background:
              anyOf:
              - type: string
              - type: 'null'
            text:
              anyOf:
              - type: string
              - type: 'null'
            accent:
              anyOf:
              - type: string
              - type: 'null'
            button_text:
              anyOf:
              - type: string
              - type: 'null'
          required:
          - background
          - footer_background
          - text
          - accent
          - button_text
        font:
          anyOf:
          - type: string
          - type: 'null'
        hide_unitpost_branding:
          type: boolean
          description: The stored choice.
        unitpost_branding_hidden:
          type: boolean
          description: 'Whether recipients see no mark now: the choice, the plan and the account together.'
        can_hide_unitpost_branding:
          type: boolean
          description: Whether the plan allows hiding the mark.
        unsubscribe_page:
          type: object
          properties:
            title:
              anyOf:
              - type: string
              - type: 'null'
            description:
              anyOf:
              - type: string
              - type: 'null'
            confirm:
              type: boolean
            collect_reason:
              type: boolean
            show_address:
              type: boolean
            show_topics:
              type: boolean
            save_label:
              anyOf:
              - type: string
              - type: 'null'
            global_label:
              anyOf:
              - type: string
              - type: 'null'
            global_note:
              anyOf:
              - type: string
              - type: 'null'
            topics_heading:
              anyOf:
              - type: string
              - type: 'null'
          required:
          - title
          - description
          - confirm
          - collect_reason
          - show_address
          - show_topics
          - save_label
          - global_label
          - global_note
          - topics_heading
        footer:
          type: object
          properties:
            intro_text:
              anyOf:
              - type: string
              - type: 'null'
            unsubscribe_label:
              anyOf:
              - type: string
              - type: 'null'
          required:
          - intro_text
          - unsubscribe_label
      required:
      - object
      - company_name
      - company_address
      - logo_url
      - has_brand_logo
      - colors
      - font
      - hide_unitpost_branding
      - unitpost_branding_hidden
      - can_hide_unitpost_branding
      - unsubscribe_page
      - footer
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: Stable machine-readable error code (branch on this, not the message).
            message:
              type: string
              description: 'Human-readable summary. For validation errors it''s path-prefixed (e.g. "template.variables.first_name: …").'
            details:
              type: array
              description: 'Present on errors that carry per-field reasons: validation errors (422), a blocked campaign send (409), a plan that doesn''t include a feature (403 `limit_reached` with one entry whose `code` is `feature_not_in_plan` and whose `field` names the feature, e.g. `smsChannel`), and a send cap (429 `quota_exceeded` with one entry, `field` empty, whose `code` says which cap: `daily_quota_exceeded` or `monthly_quota_exceeded` (the free plan''s daily or monthly cap), `plan_required` (the workspace needs a paid plan to send this), `allowance_used` (a paid plan''s allowance is spent and it has no pay-as-you-go), `shared_plan_cap` (the organization''s shared plan, or this workspace''s cap on it, is used up) or `risk_throttled` (the account review''s daily cap, which an upgrade doesn''t lift)). One entry per offending field/blocker.'
              items:
                type: object
                properties:
                  field:
                    type: string
                    description: Dotted path to the field, e.g. "template.variables.first_name" (empty for a whole-body problem).
                  code:
                    type: string
                    description: Machine-readable reason for this entry, when there is one (e.g. `template_not_published` on `template_id` for a blocked SMS campaign send, or `feature_not_in_plan` on `smsChannel` when the plan has no SMS). Absent on plain validation errors.
                  message:
                    type: string
                required:
                - field
                - message
            doc_url:
              type: string
              format: uri
              description: 'A page that explains this error and what to do, when there is one: an absolute link on the API''s own host. Every 429 has one (a section of the rate-limits guide: the request limit, an operation''s limit, the plan''s send caps or the account review cap), as do `sending_paused`, the SMS access review''s `sms_review_pending` and `account_under_review`, and errors about domains, API keys, idempotency keys, plan limits, billing, SMS consent and suppression. A `details[].code` with a page of its own picks it. Additive; absent otherwise.'
          required:
          - code
          - message
      required:
      - error
    ImageUpload:
      type: object
      properties:
        url:
          description: A public https image to fetch (no redirects, no private addresses). PNG, JPEG, GIF or WebP, up to 5 MB and 16,384 px a side (50 megapixels at most); anything else is a 422 naming `url`.
          type: string
          maxLength: 2048
        data:
          description: The image bytes, base64 (no `data:` prefix), up to 5 MB of image. Base64 grows bytes by a third, and a request body may be up to 30 MB. At most 16,384 px a side and 50 megapixels; anything else is a 422 naming `data`.
          type: string
          maxLength: 7000000
        file_id:
          description: 'A file made with `POST /files` and purpose `image` (`file_…`): how an agent hands over a local image without base64 (an upload session), or an image up to 5 MB. Checked by its bytes when it was made, and again here.'
          type: string
          minLength: 1
          maxLength: 64
        content_type:
          description: Required with `data`; refused with `url` and `file_id` (the server reads the type from the bytes).
          type: string
          enum:
          - image/png
          - image/jpeg
          - image/gif
          - image/webp
        filename:
          description: Shown in the library. Defaults to the URL's file name, or `image`.
          type: string
          minLength: 1
          maxLength: 200
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: Your workspace API key.