FreePrivacyPolicy

Integra páginas legales en tu app

Una sola solicitud escribe tu política de privacidad, términos del servicio, EULA y estándares de seguridad infantil, y los aloja con una página de marca y app-ads.txt en {slug}.myprivacy.dev. Gratis, sin límite de políticas.

Endpoints
25
Límite de solicitudes
60/min
Especificación
OpenAPI 3.1

POST /api/v1/policies

{
    "name": "Pocket Notes",
    "product_type": "mobile_app",
    "country": "Portugal",
    "services": [
        "admob",
        "firebase_analytics"
    ]
}

201 Created, ya en línea

  • pocket-notes.myprivacy.dev/ (Página de la marca)
  • pocket-notes.myprivacy.dev/privacy-policy (Política de privacidad)
  • pocket-notes.myprivacy.dev/terms-of-service (Términos del servicio)
  • pocket-notes.myprivacy.dev/end-user-license-agreement (EULA)
  • pocket-notes.myprivacy.dev/child-safety-standards (Estándares de seguridad infantil)
  • pocket-notes.myprivacy.dev/ads.txt (ads.txt)
  • pocket-notes.myprivacy.dev/app-ads.txt (app-ads.txt)
En esta página

Inicio rápido

Tres pasos para pasar de nada a una URL de política de privacidad que puedes pegar en App Store Connect o Google Play.

  1. Crea una cuenta gratis

    Las políticas, las marcas y la clave pertenecen a tu cuenta. No hay que elegir un plan ni añadir una tarjeta.

  2. Crea tu clave personal

    Abre la página del asistente y selecciona Crear mi clave. Se muestra una sola vez, así que guárdala enseguida, por ejemplo como FPP_API_KEY en los secretos de tu CI o en tu shell.

    Shell
    export FPP_API_KEY="fpp_your_key_here"
  3. Publica tu primera política

    Envía el nombre, el tipo de producto y tu país. Añade los servicios que usa tu app para que la política los divulgue.

    Solicitud
    curl -X POST "https://freeprivacypolicy.app/api/v1/policies" \
      -H "Authorization: Bearer $FPP_API_KEY" \
      -H "Accept: application/json" \
      -H "Content-Type: application/json" \
      -d '{"name": "Pocket Notes", "product_type": "mobile_app", "country": "Portugal", "services": ["admob", "firebase_analytics"]}'

    La respuesta incluye todas las direcciones, ya en línea:

    Respuesta 201
    {
        "data": {
            "slug": "pocket-notes",
            "domain": "myprivacy.dev",
            "name": "Pocket Notes",
            "published": true,
            "public_urls": {
                "landing": "https://pocket-notes.myprivacy.dev",
                "privacy_policy": "https://pocket-notes.myprivacy.dev/privacy-policy",
                "terms": "https://pocket-notes.myprivacy.dev/terms-of-service",
                "eula": "https://pocket-notes.myprivacy.dev/end-user-license-agreement",
                "child_safety": "https://pocket-notes.myprivacy.dev/child-safety-standards",
                "ads_txt": "https://pocket-notes.myprivacy.dev/ads.txt",
                "app_ads_txt": "https://pocket-notes.myprivacy.dev/app-ads.txt"
            }
        }
    }

Autenticación

Cada solicitud lleva tu clave personal, en cualquiera de los dos encabezados. Las solicitudes sin una clave válida reciben 401.

  • Una clave, dos usos. La misma clave conecta Claude Code y Codex por MCP y llama a la API REST.
  • Una clave nueva reemplaza la anterior. Crear una clave desconecta la anterior en todas partes a la vez.
  • Solo tu cuenta. Una clave solo lee y cambia tus propias políticas y marcas. Los registros de otras cuentas responden 404.
  • Guárdala en el servidor. Nunca incluyas la clave dentro del binario de una app ni en una página web. Llama a la API desde tu CI, un backend o tu equipo.
  • 60 solicitudes por minuto por clave. Cada respuesta incluye X-RateLimit-Remaining.
curl "https://freeprivacypolicy.app/api/v1/me" \
  -H "Authorization: Bearer $FPP_API_KEY" \
  -H "Accept: application/json"

Recetas de integración

Flujos listos para copiar para las tareas que más automatizan los desarrolladores. Elige un lenguaje una vez y todos los ejemplos de la página lo siguen.

Publish the policy when you ship

Run this in your release pipeline. It creates the policy the first time and updates it on every release after that, so the hosted text always matches the SDKs in the build you ship.

  • Store the key as a secret named FPP_API_KEY. Never commit it.
  • If the slug you ask for is taken, the API adds a suffix (pocket-notes-2). Keep the slug it returns.
  • A PATCH that changes settings writes the text again. Text you edited by hand in the dashboard is replaced only when you send markdown.
# .github/workflows/privacy-policy.yml
name: Privacy policy

on:
  push:
    tags: ["v*"]

jobs:
  publish:
    runs-on: ubuntu-latest
    steps:
      - name: Create or update the hosted policy
        env:
          FPP_API_KEY: ${{ secrets.FPP_API_KEY }}
          API: https://freeprivacypolicy.app/api/v1
          SLUG: pocket-notes
        run: |
          SETTINGS='{"name":"Pocket Notes","product_type":"mobile_app","country":"Portugal","services":["admob","firebase_analytics","revenuecat"]}'
          AUTH=(-H "Authorization: Bearer $FPP_API_KEY" -H "Accept: application/json" -H "Content-Type: application/json")

          STATUS=$(curl -s -o /dev/null -w "%{http_code}" "${AUTH[@]}" "$API/policies/$SLUG")

          if [ "$STATUS" = "404" ]; then
            curl -fsS -X POST "$API/policies" "${AUTH[@]}" \
              -d "$(echo "$SETTINGS" | jq --arg slug "$SLUG" '. + {slug: $slug}')"
          else
            curl -fsS -X PATCH "$API/policies/$SLUG" "${AUTH[@]}" -d "$SETTINGS"
          fi

Fill in App Store Connect and Google Play

Every policy response carries public_urls. Paste them into the store fields below once; the addresses never change, even when you update the text.

App Store Connect: Privacy Policy URL
privacy_policy
App Store Connect: License Agreement (custom EULA)
eula
Google Play Console: Privacy policy
privacy_policy
Google Play Console: Child safety standards
child_safety
Store listing: Website (used by ad networks for app-ads.txt)
landing
Terms link inside your app or website
terms
curl -s "https://freeprivacypolicy.app/api/v1/policies/pocket-notes" \
  -H "Authorization: Bearer $FPP_API_KEY" \
  -H "Accept: application/json" \
  | jq '.data.public_urls'

Keep app-ads.txt in sync for ad networks

AdMob, AppLovin, Unity and other networks read app-ads.txt from the website on your store listing. Set that website to the policy address (public_urls.landing) and keep the lines on your brand: every policy subdomain serves the lines of all your companies, merged and without duplicates.

  • Send the whole file: app_ads_txt replaces the previous lines.
  • Changes are live at https://{slug}.{domain}/app-ads.txt right away. Ad networks re-crawl on their own schedule, usually within 24 hours.
  • ads_txt works the same way for websites and is served per company.
curl -X PATCH "https://freeprivacypolicy.app/api/v1/companies/42" \
  -H "Authorization: Bearer $FPP_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "app_ads_txt": "google.com, pub-1234567890123456, DIRECT, f08c47fec0942fa0\napplovin.com, 0123456789abcdef, DIRECT"
  }'

# Check what ad networks will read
curl -s https://pocket-notes.myprivacy.dev/app-ads.txt

Update the policy when you add an SDK

Each service adds its own disclosure. services replaces the whole list, so read the current one, add the new key and send it back. Valid keys come from GET /options.

SERVICES=$(curl -s "https://freeprivacypolicy.app/api/v1/policies/pocket-notes" \
  -H "Authorization: Bearer $FPP_API_KEY" -H "Accept: application/json" \
  | jq -c '.data.services + ["openai"] | unique')

curl -X PATCH "https://freeprivacypolicy.app/api/v1/policies/pocket-notes" \
  -H "Authorization: Bearer $FPP_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d "{\"services\": $SERVICES, \"clauses\": [\"accounts\", \"ai\"]}"

Share one company across several apps

A company holds the publisher details shown on every page, plus ads.txt and app-ads.txt. Create it once, then pass its id as company_id to each new policy. Upload a logo in the dashboard; the API does not accept files.

# 1. Create the company
curl -X POST "https://freeprivacypolicy.app/api/v1/companies" \
  -H "Authorization: Bearer $FPP_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"company_name": "Acme Labs Ltd.", "email": "[email protected]", "address": "1 Market Street, Lisbon"}'

# 2. Publish each app with its id
curl -X POST "https://freeprivacypolicy.app/api/v1/policies" \
  -H "Authorization: Bearer $FPP_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"name": "Pocket Notes", "product_type": "mobile_app", "country": "Portugal", "company_id": 42}'

# 3. List everything in the account
curl -s "https://freeprivacypolicy.app/api/v1/companies?per_page=100" -H "Authorization: Bearer $FPP_API_KEY" -H "Accept: application/json"

Servidor MCP en https://freeprivacypolicy.app/mcp

¿Prefieres pedírselo a tu asistente de IA?

La misma clave conecta Claude Code, Claude Desktop, Codex, Cursor y VS Code. El asistente lee tus dependencias, elige los servicios que tu app usa de verdad y llama a estos endpoints por ti: publicar, actualizar, marcas, app-ads.txt.

Claude Code por Anthropic

Ejecutar en tu terminal
claude mcp add --transport http --scope user freeprivacypolicy https://freeprivacypolicy.app/mcp --header "Authorization: Bearer YOUR_KEY"

Claude Desktop por Anthropic

claude_desktop_config.json
{
    "mcpServers": {
        "freeprivacypolicy": {
            "command": "npx",
            "args": [
                "-y",
                "mcp-remote",
                "https://freeprivacypolicy.app/mcp",
                "--header",
                "Authorization:${AUTH_HEADER}",
                "--transport",
                "http-only"
            ],
            "env": {
                "AUTH_HEADER": "Bearer YOUR_KEY"
            }
        }
    }
}

Codex por OpenAI

~/.codex/config.toml
[mcp_servers.freeprivacypolicy]
url = "https://freeprivacypolicy.app/mcp"
http_headers = { "Authorization" = "Bearer YOUR_KEY" }

Cursor por Anysphere

~/.cursor/mcp.json
{
    "mcpServers": {
        "freeprivacypolicy": {
            "url": "https://freeprivacypolicy.app/mcp",
            "headers": {
                "Authorization": "Bearer YOUR_KEY"
            }
        }
    }
}

Cursor también lo instala desde un enlace: inicia sesión y conecta Cursor para obtener el tuyo con la clave ya incluida.

VS Code por Microsoft · modo agente de GitHub Copilot

Ejecutar en tu terminal
code --add-mcp '{"name":"freeprivacypolicy","type":"http","url":"https://freeprivacypolicy.app/mcp","headers":{"Authorization":"Bearer YOUR_KEY"}}'

VS Code también lo instala desde un enlace: inicia sesión y conecta VS Code para obtener el tuyo con la clave ya incluida.

Conectar un asistente

Referencia de la API

Generado a partir del documento OpenAPI, versión 1.3.0.

URL base https://freeprivacypolicy.app/api/v1

Account

The account the API key belongs to.

Get the current account

GET /me

Returns the account the API key belongs to, with how many policies and brands it has. Handy to check that a key works.

Respuestas
  • 200

    The account.

  • 401

    The key is missing, invalid, revoked or its account is suspended.

  • 429

    More than 60 requests in a minute with this key.

curl -X GET "https://freeprivacypolicy.app/api/v1/me" \
  -H "Authorization: Bearer $FPP_API_KEY" \
  -H "Accept: application/json"
Respuesta 200
{
    "data": {
        "id": 7,
        "name": "Ada Lovelace",
        "email": "[email protected]",
        "policies_count": 2,
        "companies_count": 1,
        "premium": false
    }
}

Catalog

Product types, third-party services, optional sections and countries a policy can use.

List policy options

GET /options

Everything a policy can cover: product types, third-party services (each adds its own disclosure), optional sections, document languages and countries. Use the key values in product_type, services and clauses, a country name in country and a language code in language.

Respuestas
  • 200

    The catalog.

  • 401

    The key is missing, invalid, revoked or its account is suspended.

  • 429

    More than 60 requests in a minute with this key.

curl -X GET "https://freeprivacypolicy.app/api/v1/options" \
  -H "Authorization: Bearer $FPP_API_KEY" \
  -H "Accept: application/json"
Respuesta 200
{
    "data": {
        "product_types": [
            {
                "key": "mobile_app",
                "label": "Mobile App"
            }
        ],
        "services": [
            {
                "key": "admob",
                "label": "AdMob",
                "group": "Ads",
                "description": "We use Google AdMob to serve personalized and non-personalized ads in our product...",
                "products": [
                    "mobile_app",
                    "game"
                ],
                "ads": true
            }
        ],
        "clauses": [
            {
                "key": "accounts",
                "label": "Accounts and sign-in",
                "category": "Data you collect",
                "description": "Explain the details collected when people create an account."
            }
        ],
        "languages": [
            {
                "code": "en",
                "name": "English"
            },
            {
                "code": "pt_BR",
                "name": "Português (Brasil)"
            }
        ],
        "countries": [
            {
                "code": "PT",
                "name": "Portugal"
            }
        ]
    }
}

Policies

Generate, publish, update and take down the legal pages hosted on {slug}.{domain}.

List policies

GET /policies

Your policies, published or not, sorted by name.

Parámetros
  • page integer en query

    Page number, starting at 1. Valor por defecto: 1.

  • per_page integer en query

    Items per page, 1 to 100. Valor por defecto: 25.

Respuestas
  • 200

    A page of policies.

  • 401

    The key is missing, invalid, revoked or its account is suspended.

  • 422

    The request is invalid. errors lists the messages per field.

  • 429

    More than 60 requests in a minute with this key.

curl -X GET "https://freeprivacypolicy.app/api/v1/policies?per_page=25" \
  -H "Authorization: Bearer $FPP_API_KEY" \
  -H "Accept: application/json"
Respuesta 200
{
    "data": [
        {
            "id": 1287,
            "slug": "pocket-notes",
            "domain": "myprivacy.dev",
            "name": "Pocket Notes",
            "product_type": "mobile_app",
            "country": "Portugal",
            "services": [
                "admob",
                "firebase_analytics",
                "revenuecat"
            ],
            "clauses": [
                "accounts",
                "metadata"
            ],
            "markdown": "# Privacy Policy\n\nThis Privacy Policy explains how Acme Labs Ltd. collects, uses and protects information when you use Pocket Notes...",
            "html": "<h1>Privacy Policy</h1>\n<p>This Privacy Policy explains how Acme Labs Ltd. collects, uses and protects information when you use Pocket Notes...</p>",
            "published": true,
            "published_at": "2026-09-20T08:30:00+00:00",
            "noindex": false,
            "company_id": 42,
            "contact": {
                "id": 42,
                "company_name": "Acme Labs Ltd.",
                "address": "1 Market Street, Lisbon, Portugal",
                "email": "[email protected]",
                "about": "Acme Labs builds productivity apps for small teams.",
                "ads_txt": "google.com, pub-1234567890123456, DIRECT, f08c47fec0942fa0",
                "app_ads_txt": "google.com, pub-1234567890123456, DIRECT, f08c47fec0942fa0",
                "show_resources_publicly": true
            },
            "public_urls": {
                "landing": "https://pocket-notes.myprivacy.dev",
                "privacy_policy": "https://pocket-notes.myprivacy.dev/privacy-policy",
                "child_safety": "https://pocket-notes.myprivacy.dev/child-safety-standards",
                "eula": "https://pocket-notes.myprivacy.dev/end-user-license-agreement",
                "terms": "https://pocket-notes.myprivacy.dev/terms-of-service",
                "ads_txt": "https://pocket-notes.myprivacy.dev/ads.txt",
                "app_ads_txt": "https://pocket-notes.myprivacy.dev/app-ads.txt"
            },
            "created_at": "2026-09-20T08:30:00+00:00",
            "updated_at": "2026-09-20T08:30:00+00:00"
        }
    ],
    "links": {
        "first": "https://freeprivacypolicy.app/api/v1/policies?page=1",
        "last": "https://freeprivacypolicy.app/api/v1/policies?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "&laquo; Previous",
                "page": null,
                "active": false
            },
            {
                "url": "https://freeprivacypolicy.app/api/v1/policies?page=1",
                "label": "1",
                "page": 1,
                "active": true
            },
            {
                "url": null,
                "label": "Next &raquo;",
                "page": null,
                "active": false
            }
        ],
        "path": "https://freeprivacypolicy.app/api/v1/policies",
        "per_page": 25,
        "to": 1,
        "total": 1
    }
}

Generate and publish a policy

POST /policies

Writes the policy from the settings you send and publishes it right away on {slug}.{domain}.

The publisher shown on the pages comes from, in order:

  1. company_id: one of your brands (GET /companies), shared between policies;
  2. contact: a new brand used only by this policy;
  3. nothing: a new brand named after the policy, with {slug}@freeprivacypolicy.app as the email.

company_id and contact cannot be sent together.

Cuerpo PolicyInput
  • name string obligatorio

    Name of the app, game, website or brand, as users know it.

  • product_type string obligatorio

    What the product is. See GET /options for labels.

    website mobile_app saas game desktop_app browser_extension

  • country string obligatorio

    Country you operate from, as an English name (see countries in GET /options).

  • language string

    Language the legal documents and public pages are written in (see languages in GET /options). Defaults to en.

    Valor por defecto: "en".

    en pt_BR es fr de it ja

  • services string[] | null

    Third-party services the product uses. Each one adds its own disclosure. Replaces the whole list on update.

    45 valores aceptados

    admob facebook_audience_network facebook_pixel firebase_analytics firebase_crashlytics google_analytics google_sign_in sign_in_with_apple facebook_login firebase_cloud_messaging onesignal revenuecat stripe sentry mixpanel amplitude appsflyer unity_ads applovin google_maps openai qonversion adapty superwall adjust branch ironsource paddle auth0 clerk posthog segment hotjar intercom hubspot zendesk anthropic microsoft_clarity serasa_experian boa_vista_scpc quod pluggy belvo unico idwall

  • clauses string[] | null

    Optional sections, such as accounts, location or gdpr. Replaces the whole list on update.

    30 valores aceptados

    accounts metadata location contacts camera_media microphone biometrics health purchases financial identity_verification credit_partners notifications marketing ugc ai advertising analytics no_sale retention account_deletion international_transfers third_party_links children gdpr ccpa lgpd us_states canada mexico

  • industry string | null

    Sector of the product. finance marks loan, credit, banking or payment apps and goes with the financial, identity_verification, credit_partners, retention and account_deletion clauses.

    finance

  • financial_data string[] | null

    Financial data the product collects, listed in the financial section. Replaces the whole list on update.

    12 valores aceptados

    tax_id income bank_account pix_keys transaction_history inss_benefit fgts payroll_margin credit_score scr open_finance debts

  • retention_general string | null

    How long account and usage data is kept, stated in the retention section.

    account_lifetime 6_months 1_year 5_years 10_years

  • retention_financial string | null

    How long financial records and credit requests are kept, stated in the retention section.

    account_lifetime 6_months 1_year 5_years 10_years

  • deletion_url string | null

    Page where users request account and data deletion, linked from the account_deletion section.

  • dpo_name string | null

    Data protection officer (LGPD encarregado), shown with the contact details.

  • dpo_email string | null

    Email of the data protection officer.

  • store_name string | null

    Name of the product on the app stores, when it differs from name. Printed at the top of the policy so store reviewers can match the listing.

  • package_name string | null

    App identifier (Android package name or iOS bundle ID), printed at the top of the policy.

  • platforms string[]

    Platforms the product ships on. Leaves platform-specific sentences (the iOS tracking prompt) out of the others. Empty means every platform.

    ios android web

  • slug string | null

    Subdomain of the public pages ({slug}.{domain}). Lowercase letters, numbers and hyphens; defaults to the name. When taken, a numeric suffix is added (pocket-notes-2); reserved words (www, api, docs, ...) are rejected with 422.

  • domain string

    Domain of the public pages: they live at {slug}.{domain} (see domains in GET /options). Defaults to myprivacy.dev. The slug is unique across every domain.

    Valor por defecto: "myprivacy.dev".

    freeprivacypolicy.app myprivacy.dev

  • markdown string | null

    Your own policy text in Markdown. When sent, it is published as given instead of the generated text.

  • noindex boolean | null

    true asks search engines not to index the public pages (they stay online).

    Valor por defecto: false.

  • company_id integer | null

    Id of one of your brands (GET /companies). Its contact details, logo and ads.txt are used. Cannot be combined with contact.

  • contact object

    Publisher details for a brand used only by this policy.

  • contact.company_name string

    Legal or trading name shown as the publisher. Defaults to the policy name.

  • contact.email string

    Where users reach you about privacy. When left out on create, {slug}@freeprivacypolicy.app is used.

  • contact.address string | null

    Postal address, only when you want it published.

  • contact.about string | null

    Short description shown on the brand page.

  • contact.ads_txt string | null

    Full ads.txt content for websites, one seller line per row.

  • contact.app_ads_txt string | null

    Full app-ads.txt content for mobile apps, one seller line per row.

  • contact.show_resources_publicly boolean

    List the ads.txt and app-ads.txt links on the brand page.

    Valor por defecto: false.

  • accent_color string | null

    Accent color of the public pages as #RRGGBB, or null for the default. Links and buttons use it; text shades are darkened automatically to keep AA contrast.

  • theme string

    Look of the public pages. Free: classic (default), minimal (plain document), card (document on a raised card under an accent band). Premium: studio (product site with an accent hero, highlights and a table of contents), editorial (serif reading page with numbered sections), midnight (dark app showcase), blueprint (developer tools: monospace on grid paper), bloom (soft colorful consumer look), brutal (thick outlines and hard shadows), handbook (docs-style rail). A Premium theme needs a Premium account (422 otherwise); when Premium ends the pages show classic until it is back.

    Valor por defecto: "classic".

    10 valores aceptados

    classic minimal card studio editorial midnight blueprint bloom brutal handbook

  • theme_options object | null

    Settings of the chosen theme, by key; unknown keys and values are ignored and missing ones take their default. studio: hero (gradient|solid|plain), outline, show_apps. editorial: paper (ivory|white), outline, show_apps. midnight: glow, outline, show_apps. blueprint: grid, outline, show_apps. bloom: backdrop (mesh|sunrise|plain), outline, show_apps. brutal: shadows, outline, show_apps. handbook: width (comfortable|wide), outline, show_apps. outline shows a table of contents on documents, show_apps lists the brand's other apps on the brand page.

Respuestas
  • 201

    The policy was published.

  • 401

    The key is missing, invalid, revoked or its account is suspended.

  • 422

    The request is invalid. errors lists the messages per field.

  • 429

    More than 60 requests in a minute with this key.

curl -X POST "https://freeprivacypolicy.app/api/v1/policies" \
  -H "Authorization: Bearer $FPP_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Pocket Notes",
    "product_type": "mobile_app",
    "country": "Portugal",
    "services": [
        "admob",
        "firebase_analytics",
        "revenuecat"
    ],
    "clauses": [
        "accounts",
        "metadata"
    ],
    "slug": "pocket-notes",
    "contact": {
        "company_name": "Acme Labs Ltd.",
        "email": "[email protected]",
        "address": "1 Market Street, Lisbon, Portugal",
        "app_ads_txt": "google.com, pub-1234567890123456, DIRECT, f08c47fec0942fa0",
        "show_resources_publicly": true
    }
}'
Cuerpo de la solicitud: Only the required fields
{
    "name": "Pocket Notes",
    "product_type": "mobile_app",
    "country": "Portugal"
}
Respuesta 201
{
    "data": {
        "id": 1287,
        "slug": "pocket-notes",
        "domain": "myprivacy.dev",
        "name": "Pocket Notes",
        "product_type": "mobile_app",
        "country": "Portugal",
        "language": "en",
        "services": [
            "admob",
            "firebase_analytics",
            "revenuecat"
        ],
        "clauses": [
            "accounts",
            "metadata"
        ],
        "markdown": "# Privacy Policy\n\nThis Privacy Policy explains how Acme Labs Ltd. collects, uses and protects information when you use Pocket Notes...",
        "html": "<h1>Privacy Policy</h1>\n<p>This Privacy Policy explains how Acme Labs Ltd. collects, uses and protects information when you use Pocket Notes...</p>",
        "published": true,
        "published_at": "2026-09-20T08:30:00+00:00",
        "noindex": false,
        "app_icon_url": null,
        "logo_url": null,
        "accent_color": null,
        "theme": "classic",
        "company_id": 42,
        "contact": {
            "id": 42,
            "company_name": "Acme Labs Ltd.",
            "address": "1 Market Street, Lisbon, Portugal",
            "email": "[email protected]",
            "about": "Acme Labs builds productivity apps for small teams.",
            "ads_txt": "google.com, pub-1234567890123456, DIRECT, f08c47fec0942fa0",
            "app_ads_txt": "google.com, pub-1234567890123456, DIRECT, f08c47fec0942fa0",
            "show_resources_publicly": true
        },
        "public_urls": {
            "landing": "https://pocket-notes.myprivacy.dev",
            "privacy_policy": "https://pocket-notes.myprivacy.dev/privacy-policy",
            "child_safety": "https://pocket-notes.myprivacy.dev/child-safety-standards",
            "eula": "https://pocket-notes.myprivacy.dev/end-user-license-agreement",
            "terms": "https://pocket-notes.myprivacy.dev/terms-of-service",
            "ads_txt": "https://pocket-notes.myprivacy.dev/ads.txt",
            "app_ads_txt": "https://pocket-notes.myprivacy.dev/app-ads.txt"
        },
        "created_at": "2026-09-20T08:30:00+00:00",
        "updated_at": "2026-09-20T08:30:00+00:00"
    }
}

Get a policy

GET /policies/{slug}

One of your policies, with its Markdown and HTML text and the addresses of its public pages.

Parámetros
  • slug string en path obligatorio

    The policy slug (its subdomain).

Respuestas
  • 200

    The policy.

  • 401

    The key is missing, invalid, revoked or its account is suspended.

  • 404

    No such record in this account.

  • 429

    More than 60 requests in a minute with this key.

curl -X GET "https://freeprivacypolicy.app/api/v1/policies/pocket-notes" \
  -H "Authorization: Bearer $FPP_API_KEY" \
  -H "Accept: application/json"
Respuesta 200
{
    "data": {
        "id": 1287,
        "slug": "pocket-notes",
        "domain": "myprivacy.dev",
        "name": "Pocket Notes",
        "product_type": "mobile_app",
        "country": "Portugal",
        "language": "en",
        "services": [
            "admob",
            "firebase_analytics",
            "revenuecat"
        ],
        "clauses": [
            "accounts",
            "metadata"
        ],
        "markdown": "# Privacy Policy\n\nThis Privacy Policy explains how Acme Labs Ltd. collects, uses and protects information when you use Pocket Notes...",
        "html": "<h1>Privacy Policy</h1>\n<p>This Privacy Policy explains how Acme Labs Ltd. collects, uses and protects information when you use Pocket Notes...</p>",
        "published": true,
        "published_at": "2026-09-20T08:30:00+00:00",
        "noindex": false,
        "app_icon_url": null,
        "logo_url": null,
        "accent_color": null,
        "theme": "classic",
        "company_id": 42,
        "contact": {
            "id": 42,
            "company_name": "Acme Labs Ltd.",
            "address": "1 Market Street, Lisbon, Portugal",
            "email": "[email protected]",
            "about": "Acme Labs builds productivity apps for small teams.",
            "ads_txt": "google.com, pub-1234567890123456, DIRECT, f08c47fec0942fa0",
            "app_ads_txt": "google.com, pub-1234567890123456, DIRECT, f08c47fec0942fa0",
            "show_resources_publicly": true
        },
        "public_urls": {
            "landing": "https://pocket-notes.myprivacy.dev",
            "privacy_policy": "https://pocket-notes.myprivacy.dev/privacy-policy",
            "child_safety": "https://pocket-notes.myprivacy.dev/child-safety-standards",
            "eula": "https://pocket-notes.myprivacy.dev/end-user-license-agreement",
            "terms": "https://pocket-notes.myprivacy.dev/terms-of-service",
            "ads_txt": "https://pocket-notes.myprivacy.dev/ads.txt",
            "app_ads_txt": "https://pocket-notes.myprivacy.dev/app-ads.txt"
        },
        "created_at": "2026-09-20T08:30:00+00:00",
        "updated_at": "2026-09-20T08:30:00+00:00"
    }
}

Update a policy

PATCH /policies/{slug}

Only the fields you send change.

  • Settings (name, product_type, country, language, services, clauses, contact, company_id) regenerate the text, which replaces edits made by hand. Send markdown in the same request to keep your own text.
  • markdown alone replaces the text as given.
  • published: false takes every public page offline (404); true puts them back.
  • noindex and slug never touch the text.
  • company_id: null detaches the brand; the pages then use the contact details saved with the policy.
Parámetros
  • slug string en path obligatorio

    The policy slug (its subdomain).

Cuerpo PolicyUpdate
  • name string

    Name of the app, game, website or brand, as users know it.

  • product_type string

    What the product is. See GET /options for labels.

    website mobile_app saas game desktop_app browser_extension

  • country string

    Country you operate from, as an English name (see countries in GET /options).

  • language string

    Language the legal documents and public pages are written in. Changing it regenerates the text, like the other settings.

    en pt_BR es fr de it ja

  • services string[] | null

    Third-party services the product uses. Each one adds its own disclosure. Replaces the whole list on update.

    45 valores aceptados

    admob facebook_audience_network facebook_pixel firebase_analytics firebase_crashlytics google_analytics google_sign_in sign_in_with_apple facebook_login firebase_cloud_messaging onesignal revenuecat stripe sentry mixpanel amplitude appsflyer unity_ads applovin google_maps openai qonversion adapty superwall adjust branch ironsource paddle auth0 clerk posthog segment hotjar intercom hubspot zendesk anthropic microsoft_clarity serasa_experian boa_vista_scpc quod pluggy belvo unico idwall

  • clauses string[] | null

    Optional sections, such as accounts, location or gdpr. Replaces the whole list on update.

    30 valores aceptados

    accounts metadata location contacts camera_media microphone biometrics health purchases financial identity_verification credit_partners notifications marketing ugc ai advertising analytics no_sale retention account_deletion international_transfers third_party_links children gdpr ccpa lgpd us_states canada mexico

  • industry string | null

    Sector of the product. finance marks loan, credit, banking or payment apps and goes with the financial, identity_verification, credit_partners, retention and account_deletion clauses.

    finance

  • financial_data string[] | null

    Financial data the product collects, listed in the financial section. Replaces the whole list on update.

    12 valores aceptados

    tax_id income bank_account pix_keys transaction_history inss_benefit fgts payroll_margin credit_score scr open_finance debts

  • retention_general string | null

    How long account and usage data is kept, stated in the retention section.

    account_lifetime 6_months 1_year 5_years 10_years

  • retention_financial string | null

    How long financial records and credit requests are kept, stated in the retention section.

    account_lifetime 6_months 1_year 5_years 10_years

  • deletion_url string | null

    Page where users request account and data deletion, linked from the account_deletion section.

  • dpo_name string | null

    Data protection officer (LGPD encarregado), shown with the contact details.

  • dpo_email string | null

    Email of the data protection officer.

  • store_name string | null

    Name of the product on the app stores, when it differs from name. Printed at the top of the policy so store reviewers can match the listing.

  • package_name string | null

    App identifier (Android package name or iOS bundle ID), printed at the top of the policy.

  • platforms string[]

    Platforms the product ships on. Leaves platform-specific sentences (the iOS tracking prompt) out of the others. Empty means every platform.

    ios android web

  • slug string | null

    Subdomain of the public pages ({slug}.{domain}). Lowercase letters, numbers and hyphens; defaults to the name. When taken, a numeric suffix is added (pocket-notes-2); reserved words (www, api, docs, ...) are rejected with 422.

  • domain string

    Moves the public pages to {slug}.{domain}. Links to the old address answer with a 301 redirect to the new one.

    freeprivacypolicy.app myprivacy.dev

  • markdown string | null

    Your own policy text in Markdown. When sent, it is published as given instead of the generated text.

  • company_id integer | null

    Id of one of your brands, or null to detach the current one. Cannot be combined with contact.

  • contact object

    Publisher details for a brand used only by this policy.

  • contact.company_name string

    Legal or trading name shown as the publisher. Defaults to the policy name.

  • contact.email string

    Where users reach you about privacy. When left out on create, {slug}@freeprivacypolicy.app is used.

  • contact.address string | null

    Postal address, only when you want it published.

  • contact.about string | null

    Short description shown on the brand page.

  • contact.ads_txt string | null

    Full ads.txt content for websites, one seller line per row.

  • contact.app_ads_txt string | null

    Full app-ads.txt content for mobile apps, one seller line per row.

  • contact.show_resources_publicly boolean

    List the ads.txt and app-ads.txt links on the brand page.

    Valor por defecto: false.

  • noindex boolean

    true asks search engines not to index the public pages (they stay online).

  • published boolean

    false takes every public page offline (404); true publishes them again.

  • accent_color string | null

    Accent color of the public pages as #RRGGBB, or null for the default. Links and buttons use it; text shades are darkened automatically to keep AA contrast.

  • theme string

    Look of the public pages. Free: classic (default), minimal (plain document), card (document on a raised card under an accent band). Premium: studio (product site with an accent hero, highlights and a table of contents), editorial (serif reading page with numbered sections), midnight (dark app showcase), blueprint (developer tools: monospace on grid paper), bloom (soft colorful consumer look), brutal (thick outlines and hard shadows), handbook (docs-style rail). A Premium theme needs a Premium account (422 otherwise); when Premium ends the pages show classic until it is back.

    Valor por defecto: "classic".

    10 valores aceptados

    classic minimal card studio editorial midnight blueprint bloom brutal handbook

  • theme_options object | null

    Settings of the chosen theme, by key; unknown keys and values are ignored and missing ones take their default. studio: hero (gradient|solid|plain), outline, show_apps. editorial: paper (ivory|white), outline, show_apps. midnight: glow, outline, show_apps. blueprint: grid, outline, show_apps. bloom: backdrop (mesh|sunrise|plain), outline, show_apps. brutal: shadows, outline, show_apps. handbook: width (comfortable|wide), outline, show_apps. outline shows a table of contents on documents, show_apps lists the brand's other apps on the brand page.

Respuestas
  • 200

    The updated policy.

  • 401

    The key is missing, invalid, revoked or its account is suspended.

  • 404

    No such record in this account.

  • 422

    The request is invalid. errors lists the messages per field.

  • 429

    More than 60 requests in a minute with this key.

curl -X PATCH "https://freeprivacypolicy.app/api/v1/policies/pocket-notes" \
  -H "Authorization: Bearer $FPP_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "services": [
        "admob",
        "firebase_analytics",
        "revenuecat",
        "openai"
    ],
    "clauses": [
        "accounts",
        "metadata",
        "ai"
    ]
}'
Cuerpo de la solicitud: Add a service and a section
{
    "services": [
        "admob",
        "firebase_analytics",
        "revenuecat",
        "openai"
    ],
    "clauses": [
        "accounts",
        "metadata",
        "ai"
    ]
}
Respuesta 200
{
    "data": {
        "id": 1287,
        "slug": "pocket-notes",
        "domain": "myprivacy.dev",
        "name": "Pocket Notes",
        "product_type": "mobile_app",
        "country": "Portugal",
        "language": "en",
        "services": [
            "admob",
            "firebase_analytics",
            "revenuecat"
        ],
        "clauses": [
            "accounts",
            "metadata"
        ],
        "markdown": "# Privacy Policy\n\nThis Privacy Policy explains how Acme Labs Ltd. collects, uses and protects information when you use Pocket Notes...",
        "html": "<h1>Privacy Policy</h1>\n<p>This Privacy Policy explains how Acme Labs Ltd. collects, uses and protects information when you use Pocket Notes...</p>",
        "published": true,
        "published_at": "2026-09-20T08:30:00+00:00",
        "noindex": false,
        "app_icon_url": null,
        "logo_url": null,
        "accent_color": null,
        "theme": "classic",
        "company_id": 42,
        "contact": {
            "id": 42,
            "company_name": "Acme Labs Ltd.",
            "address": "1 Market Street, Lisbon, Portugal",
            "email": "[email protected]",
            "about": "Acme Labs builds productivity apps for small teams.",
            "ads_txt": "google.com, pub-1234567890123456, DIRECT, f08c47fec0942fa0",
            "app_ads_txt": "google.com, pub-1234567890123456, DIRECT, f08c47fec0942fa0",
            "show_resources_publicly": true
        },
        "public_urls": {
            "landing": "https://pocket-notes.myprivacy.dev",
            "privacy_policy": "https://pocket-notes.myprivacy.dev/privacy-policy",
            "child_safety": "https://pocket-notes.myprivacy.dev/child-safety-standards",
            "eula": "https://pocket-notes.myprivacy.dev/end-user-license-agreement",
            "terms": "https://pocket-notes.myprivacy.dev/terms-of-service",
            "ads_txt": "https://pocket-notes.myprivacy.dev/ads.txt",
            "app_ads_txt": "https://pocket-notes.myprivacy.dev/app-ads.txt"
        },
        "created_at": "2026-09-20T08:30:00+00:00",
        "updated_at": "2026-09-20T08:30:00+00:00"
    }
}

Delete a policy

DELETE /policies/{slug}

Deletes the policy for good. Its public pages answer 404 and the slug becomes free. Its brand is kept. To only take the pages offline, send published: false instead.

Parámetros
  • slug string en path obligatorio

    The policy slug (its subdomain).

Respuestas
  • 204

    Deleted.

  • 401

    The key is missing, invalid, revoked or its account is suspended.

  • 404

    No such record in this account.

  • 429

    More than 60 requests in a minute with this key.

curl -X DELETE "https://freeprivacypolicy.app/api/v1/policies/pocket-notes" \
  -H "Authorization: Bearer $FPP_API_KEY" \
  -H "Accept: application/json"

204 no tiene cuerpo.

Upload the app icon

POST /policies/{slug}/app-icon

Sends the app icon as multipart/form-data. It must be a square PNG, JPG or WebP of at least 128 × 128 px and up to 1 MB. The public pages show it next to the name and use it as favicon, touch icon and share image. Replaces the current icon.

Parámetros
  • slug string en path obligatorio

    The policy slug (its subdomain).

Cuerpo
  • app_icon string obligatorio

    Square PNG, JPG or WebP, at least 128 × 128 px, up to 1 MB.

Respuestas
  • 200

    The policy with its new app_icon_url.

  • 401

    The key is missing, invalid, revoked or its account is suspended.

  • 404

    No such record in this account.

  • 429

    More than 60 requests in a minute with this key.

  • 422

    The request is invalid. errors lists the messages per field.

curl -X POST "https://freeprivacypolicy.app/api/v1/policies/pocket-notes/app-icon" \
  -H "Authorization: Bearer $FPP_API_KEY" \
  -H "Accept: application/json" \
  -F "[email protected]"

200 no tiene cuerpo.

Remove the app icon

DELETE /policies/{slug}/app-icon

Deletes the app icon. The pages fall back to the brand logo, or to the initial of the name.

Parámetros
  • slug string en path obligatorio

    The policy slug (its subdomain).

Respuestas
  • 200

    The policy, with app_icon_url null.

  • 401

    The key is missing, invalid, revoked or its account is suspended.

  • 404

    No such record in this account.

  • 429

    More than 60 requests in a minute with this key.

curl -X DELETE "https://freeprivacypolicy.app/api/v1/policies/pocket-notes/app-icon" \
  -H "Authorization: Bearer $FPP_API_KEY" \
  -H "Accept: application/json"

200 no tiene cuerpo.

Claim a policy with a transfer code

POST /policies/claim

Moves a policy into the account of the key making the call, using a one-time code issued by its current owner with POST /policies/{slug}/transfer-codes. The address of the policy does not change. A brand used only by that policy moves with it; a shared brand is copied. The policy is detached from the previous owner's custom domain.

Cuerpo
  • code string obligatorio

Respuestas
  • 200

    The policy now belongs to this account.

  • 401

    The key is missing, invalid, revoked or its account is suspended.

  • 404

    No such record in this account.

  • 422

    The request is invalid. errors lists the messages per field.

  • 429

    More than 60 requests in a minute with this key.

curl -X POST "https://freeprivacypolicy.app/api/v1/policies/claim" \
  -H "Authorization: Bearer $FPP_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"code": "fpt_3fK9mQ2xLr8vTn6yBc1dWs4hZj7pGa0eUo5iNq2X"}'
Cuerpo de la solicitud: Example
{
    "code": "fpt_3fK9mQ2xLr8vTn6yBc1dWs4hZj7pGa0eUo5iNq2X"
}

200 no tiene cuerpo.

Issue a transfer code

POST /policies/{slug}/transfer-codes

Issues a one-time code, valid for 30 minutes, that lets another account claim this policy with POST /policies/claim. A new code replaces the previous one. No API key is shared between the accounts.

Parámetros
  • slug string en path obligatorio

    The policy slug.

Respuestas
  • 201

    The code was issued.

  • 401

    The key is missing, invalid, revoked or its account is suspended.

  • 404

    No such record in this account.

  • 429

    More than 60 requests in a minute with this key.

curl -X POST "https://freeprivacypolicy.app/api/v1/policies/acme-notes/transfer-codes" \
  -H "Authorization: Bearer $FPP_API_KEY" \
  -H "Accept: application/json"
Respuesta 201
{
    "data": {
        "slug": "acme-notes",
        "code": "fpt_3fK9mQ2xLr8vTn6yBc1dWs4hZj7pGa0eUo5iNq2X",
        "expires_at": "2026-11-11T12:30:00+00:00"
    }
}

Brands

Publisher details shown on the policy pages, their logo, plus the ads.txt and app-ads.txt lines they serve.

List brands

GET /companies

Your brands, sorted by name, with how many policies use each one.

Parámetros
  • page integer en query

    Page number, starting at 1. Valor por defecto: 1.

  • per_page integer en query

    Items per page, 1 to 100. Valor por defecto: 25.

Respuestas
  • 200

    A page of brands.

  • 401

    The key is missing, invalid, revoked or its account is suspended.

  • 422

    The request is invalid. errors lists the messages per field.

  • 429

    More than 60 requests in a minute with this key.

curl -X GET "https://freeprivacypolicy.app/api/v1/companies?per_page=25" \
  -H "Authorization: Bearer $FPP_API_KEY" \
  -H "Accept: application/json"
Respuesta 200
{
    "data": [
        {
            "id": 42,
            "company_name": "Acme Labs Ltd.",
            "email": "[email protected]",
            "address": "1 Market Street, Lisbon, Portugal",
            "about": "Acme Labs builds productivity apps for small teams.",
            "ads_txt": "google.com, pub-1234567890123456, DIRECT, f08c47fec0942fa0",
            "app_ads_txt": "google.com, pub-1234567890123456, DIRECT, f08c47fec0942fa0",
            "show_resources_publicly": true,
            "logo_url": null,
            "policies_count": 2,
            "created_at": "2026-09-01T12:00:00+00:00",
            "updated_at": "2026-09-20T08:30:00+00:00"
        }
    ],
    "links": {
        "first": "https://freeprivacypolicy.app/api/v1/companies?page=1",
        "last": "https://freeprivacypolicy.app/api/v1/companies?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "&laquo; Previous",
                "page": null,
                "active": false
            },
            {
                "url": "https://freeprivacypolicy.app/api/v1/companies?page=1",
                "label": "1",
                "page": 1,
                "active": true
            },
            {
                "url": null,
                "label": "Next &raquo;",
                "page": null,
                "active": false
            }
        ],
        "path": "https://freeprivacypolicy.app/api/v1/companies",
        "per_page": 25,
        "to": 1,
        "total": 1
    }
}

Create a brand

POST /companies

Creates a publisher you can attach to policies with company_id.

ads_txt is served at {slug}/ads.txt for the policies using this brand. app_ads_txt lines of all your brands are merged, de-duplicated and served at {slug}/app-ads.txt on every one of your policies.

Logos are uploaded in the dashboard; the API returns logo_url but does not accept files.

Cuerpo CompanyInput
  • company_name string obligatorio

  • email string obligatorio

  • address string | null

  • about string | null

  • tagline string | null

    One line under the brand name, shown by the Premium themes.

  • highlights object[] | null

    Up to 6 highlights (title and short text), shown by the Premium themes. Send the whole list; empty entries are dropped and null clears it.

  • ads_txt string | null

    Full ads.txt content, one seller line per row.

  • app_ads_txt string | null

    Full app-ads.txt content, one seller line per row.

  • show_resources_publicly boolean

    List the ads.txt and app-ads.txt links on the brand page.

    Valor por defecto: false.

Respuestas
  • 201

    The brand was created.

  • 401

    The key is missing, invalid, revoked or its account is suspended.

  • 422

    The request is invalid. errors lists the messages per field.

  • 429

    More than 60 requests in a minute with this key.

curl -X POST "https://freeprivacypolicy.app/api/v1/companies" \
  -H "Authorization: Bearer $FPP_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "company_name": "Acme Labs Ltd.",
    "email": "[email protected]",
    "address": "1 Market Street, Lisbon, Portugal",
    "about": "Acme Labs builds productivity apps for small teams.",
    "app_ads_txt": "google.com, pub-1234567890123456, DIRECT, f08c47fec0942fa0\nunity.com, 1234567, DIRECT, 96cabb5fbdde37a7",
    "show_resources_publicly": true
}'
Cuerpo de la solicitud: Brand with app-ads.txt lines
{
    "company_name": "Acme Labs Ltd.",
    "email": "[email protected]",
    "address": "1 Market Street, Lisbon, Portugal",
    "about": "Acme Labs builds productivity apps for small teams.",
    "app_ads_txt": "google.com, pub-1234567890123456, DIRECT, f08c47fec0942fa0\nunity.com, 1234567, DIRECT, 96cabb5fbdde37a7",
    "show_resources_publicly": true
}
Respuesta 201
{
    "data": {
        "id": 42,
        "company_name": "Acme Labs Ltd.",
        "email": "[email protected]",
        "address": "1 Market Street, Lisbon, Portugal",
        "about": "Acme Labs builds productivity apps for small teams.",
        "ads_txt": "google.com, pub-1234567890123456, DIRECT, f08c47fec0942fa0",
        "app_ads_txt": "google.com, pub-1234567890123456, DIRECT, f08c47fec0942fa0",
        "show_resources_publicly": true,
        "logo_url": null,
        "policies_count": 0,
        "created_at": "2026-09-01T12:00:00+00:00",
        "updated_at": "2026-09-20T08:30:00+00:00"
    }
}

Get a brand

GET /companies/{id}

One of your brands.

Parámetros
  • id integer en path obligatorio

    The brand id.

Respuestas
  • 200

    The brand.

  • 401

    The key is missing, invalid, revoked or its account is suspended.

  • 404

    No such record in this account.

  • 429

    More than 60 requests in a minute with this key.

curl -X GET "https://freeprivacypolicy.app/api/v1/companies/42" \
  -H "Authorization: Bearer $FPP_API_KEY" \
  -H "Accept: application/json"
Respuesta 200
{
    "data": {
        "id": 42,
        "company_name": "Acme Labs Ltd.",
        "email": "[email protected]",
        "address": "1 Market Street, Lisbon, Portugal",
        "about": "Acme Labs builds productivity apps for small teams.",
        "ads_txt": "google.com, pub-1234567890123456, DIRECT, f08c47fec0942fa0",
        "app_ads_txt": "google.com, pub-1234567890123456, DIRECT, f08c47fec0942fa0",
        "show_resources_publicly": true,
        "logo_url": null,
        "policies_count": 2,
        "created_at": "2026-09-01T12:00:00+00:00",
        "updated_at": "2026-09-20T08:30:00+00:00"
    }
}

Update a brand

PATCH /companies/{id}

Only the fields you send change. ads_txt and app_ads_txt replace the whole file: send the current lines too when adding one. The policy pages show the new details at once; their text is not regenerated.

Parámetros
  • id integer en path obligatorio

    The brand id.

Cuerpo CompanyUpdate
  • company_name string

  • email string

  • address string | null

  • about string | null

  • tagline string | null

    One line under the brand name, shown by the Premium themes.

  • highlights object[] | null

    Up to 6 highlights (title and short text), shown by the Premium themes. Send the whole list; empty entries are dropped and null clears it.

  • ads_txt string | null

  • app_ads_txt string | null

  • show_resources_publicly boolean

Respuestas
  • 200

    The updated brand.

  • 401

    The key is missing, invalid, revoked or its account is suspended.

  • 404

    No such record in this account.

  • 422

    The request is invalid. errors lists the messages per field.

  • 429

    More than 60 requests in a minute with this key.

curl -X PATCH "https://freeprivacypolicy.app/api/v1/companies/42" \
  -H "Authorization: Bearer $FPP_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "app_ads_txt": "google.com, pub-1234567890123456, DIRECT, f08c47fec0942fa0\napplovin.com, 0123456789abcdef, DIRECT"
}'
Cuerpo de la solicitud: Replace the app-ads.txt lines
{
    "app_ads_txt": "google.com, pub-1234567890123456, DIRECT, f08c47fec0942fa0\napplovin.com, 0123456789abcdef, DIRECT"
}
Respuesta 200
{
    "data": {
        "id": 42,
        "company_name": "Acme Labs Ltd.",
        "email": "[email protected]",
        "address": "1 Market Street, Lisbon, Portugal",
        "about": "Acme Labs builds productivity apps for small teams.",
        "ads_txt": "google.com, pub-1234567890123456, DIRECT, f08c47fec0942fa0",
        "app_ads_txt": "google.com, pub-1234567890123456, DIRECT, f08c47fec0942fa0",
        "show_resources_publicly": true,
        "logo_url": null,
        "policies_count": 2,
        "created_at": "2026-09-01T12:00:00+00:00",
        "updated_at": "2026-09-20T08:30:00+00:00"
    }
}

Delete a brand

DELETE /companies/{id}

Deletes the brand with its logo and its ads.txt and app-ads.txt lines. Policies that used it stay online without a brand, using the contact details saved with them.

Parámetros
  • id integer en path obligatorio

    The brand id.

Respuestas
  • 204

    Deleted.

  • 401

    The key is missing, invalid, revoked or its account is suspended.

  • 404

    No such record in this account.

  • 429

    More than 60 requests in a minute with this key.

curl -X DELETE "https://freeprivacypolicy.app/api/v1/companies/42" \
  -H "Authorization: Bearer $FPP_API_KEY" \
  -H "Accept: application/json"

204 no tiene cuerpo.

Domains

Bring your own domain and host many policies under it: https://{host}/{slug}/privacy-policy. The root of the domain lists your products and serves /ads.txt and /app-ads.txt.

List domains

GET /domains

Your custom domains, ordered by host.

Respuestas
  • 200

    A page of domains.

  • 401

    The key is missing, invalid, revoked or its account is suspended.

  • 429

    More than 60 requests in a minute with this key.

curl -X GET "https://freeprivacypolicy.app/api/v1/domains" \
  -H "Authorization: Bearer $FPP_API_KEY" \
  -H "Accept: application/json"

200 no tiene cuerpo.

Add a domain

POST /domains

Registers a domain you control and returns the two DNS records to create: a CNAME (or ALIAS/A on an apex domain) that routes it to the policy host, and a TXT record that proves ownership. Create them, then call verify. Needs Premium (402 otherwise).

Cuerpo DomainInput
  • host string obligatorio

    Domain or subdomain you control, such as legal.example.com. Domains of this service cannot be used.

  • company_id integer | null

    One of your brands, shown at the root of the domain.

Respuestas
  • 201

    The domain was registered.

  • 401

    The key is missing, invalid, revoked or its account is suspended.

  • 402

    Custom domains need Premium. Subscribe in the management area (/billing).

  • 422

    The request is invalid. errors lists the messages per field.

  • 429

    More than 60 requests in a minute with this key.

curl -X POST "https://freeprivacypolicy.app/api/v1/domains" \
  -H "Authorization: Bearer $FPP_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"host": "legal.acme.dev", "company_id": 42}'
Cuerpo de la solicitud: Example
{
    "host": "legal.acme.dev",
    "company_id": 42
}
Respuesta 201
{
    "data": {
        "id": 7,
        "host": "legal.acme.dev",
        "status": "pending_dns",
        "active": false,
        "company_id": 42,
        "url": "https://legal.acme.dev",
        "dns_records": [
            {
                "type": "CNAME",
                "name": "legal.acme.dev",
                "value": "domains.freeprivacypolicy.app",
                "purpose": "Routes the domain to the policy host. On an apex domain use an ALIAS/ANAME record, or A records with the same addresses."
            },
            {
                "type": "TXT",
                "name": "_fpp-verify.legal.acme.dev",
                "value": "k3v9q0x7m2c8h5t1b6n4z0w8r2y7u5a1s3d9f6g4",
                "purpose": "Proves you control the domain."
            }
        ],
        "policies": [],
        "last_error": null,
        "verified_at": null,
        "last_checked_at": null,
        "created_at": "2026-11-11T12:00:00+00:00"
    }
}

Get a domain

GET /domains/{id}

One domain with its status, DNS records and attached policies.

Parámetros
  • id integer en path obligatorio

    The domain id.

Respuestas
  • 200

    The domain.

  • 401

    The key is missing, invalid, revoked or its account is suspended.

  • 404

    No such record in this account.

  • 429

    More than 60 requests in a minute with this key.

curl -X GET "https://freeprivacypolicy.app/api/v1/domains/7" \
  -H "Authorization: Bearer $FPP_API_KEY" \
  -H "Accept: application/json"
Respuesta 200
{
    "data": {
        "id": 7,
        "host": "legal.acme.dev",
        "status": "active",
        "active": true,
        "company_id": 42,
        "url": "https://legal.acme.dev",
        "dns_records": [
            {
                "type": "CNAME",
                "name": "legal.acme.dev",
                "value": "domains.freeprivacypolicy.app",
                "purpose": "Routes the domain to the policy host. On an apex domain use an ALIAS/ANAME record, or A records with the same addresses."
            },
            {
                "type": "TXT",
                "name": "_fpp-verify.legal.acme.dev",
                "value": "k3v9q0x7m2c8h5t1b6n4z0w8r2y7u5a1s3d9f6g4",
                "purpose": "Proves you control the domain."
            }
        ],
        "policies": [
            "acme-notes"
        ],
        "last_error": null,
        "verified_at": "2026-11-11T12:10:00+00:00",
        "last_checked_at": "2026-11-11T12:10:00+00:00",
        "created_at": "2026-11-11T12:00:00+00:00"
    }
}

Delete a domain

DELETE /domains/{id}

Removes the domain and its certificate. Policies attached to it go back to their free address.

Parámetros
  • id integer en path obligatorio

    The domain id.

Respuestas
  • 204

    Deleted.

  • 401

    The key is missing, invalid, revoked or its account is suspended.

  • 404

    No such record in this account.

  • 429

    More than 60 requests in a minute with this key.

curl -X DELETE "https://freeprivacypolicy.app/api/v1/domains/7" \
  -H "Authorization: Bearer $FPP_API_KEY" \
  -H "Accept: application/json"

204 no tiene cuerpo.

Verify a domain

POST /domains/{id}/verify

Checks the DNS records. When both are in place the domain becomes active, its certificate is requested and attached policies are served on it. Otherwise last_error says what is missing. Safe to call again while DNS propagates. Needs Premium (402 otherwise).

Parámetros
  • id integer en path obligatorio

    The domain id.

Respuestas
  • 200

    The domain after the check.

  • 401

    The key is missing, invalid, revoked or its account is suspended.

  • 402

    Custom domains need Premium. Subscribe in the management area (/billing).

  • 404

    No such record in this account.

  • 429

    More than 60 requests in a minute with this key.

curl -X POST "https://freeprivacypolicy.app/api/v1/domains/7/verify" \
  -H "Authorization: Bearer $FPP_API_KEY" \
  -H "Accept: application/json"
Respuesta 200
{
    "data": {
        "id": 7,
        "host": "legal.acme.dev",
        "status": "active",
        "active": true,
        "company_id": 42,
        "url": "https://legal.acme.dev",
        "dns_records": [
            {
                "type": "CNAME",
                "name": "legal.acme.dev",
                "value": "domains.freeprivacypolicy.app",
                "purpose": "Routes the domain to the policy host. On an apex domain use an ALIAS/ANAME record, or A records with the same addresses."
            },
            {
                "type": "TXT",
                "name": "_fpp-verify.legal.acme.dev",
                "value": "k3v9q0x7m2c8h5t1b6n4z0w8r2y7u5a1s3d9f6g4",
                "purpose": "Proves you control the domain."
            }
        ],
        "policies": [
            "acme-notes"
        ],
        "last_error": null,
        "verified_at": "2026-11-11T12:10:00+00:00",
        "last_checked_at": "2026-11-11T12:10:00+00:00",
        "created_at": "2026-11-11T12:00:00+00:00"
    }
}

Attach a policy to a domain

PUT /domains/{id}/policies/{slug}

Serves the policy at https://{host}/{slug}/... once the domain is active; the free address then redirects there (301). A policy is attached to one domain at a time. Needs Premium (402 otherwise).

Parámetros
  • id integer en path obligatorio

    The domain id.

  • slug string en path obligatorio

    The policy slug.

Respuestas
  • 200

    The policy with its new public URLs.

  • 401

    The key is missing, invalid, revoked or its account is suspended.

  • 402

    Custom domains need Premium. Subscribe in the management area (/billing).

  • 404

    No such record in this account.

  • 429

    More than 60 requests in a minute with this key.

curl -X PUT "https://freeprivacypolicy.app/api/v1/domains/7/policies/acme-notes" \
  -H "Authorization: Bearer $FPP_API_KEY" \
  -H "Accept: application/json"

200 no tiene cuerpo.

Detach a policy from a domain

DELETE /domains/{id}/policies/{slug}

Sends the policy back to its free address.

Parámetros
  • id integer en path obligatorio

    The domain id.

  • slug string en path obligatorio

    The policy slug.

Respuestas
  • 200

    The policy with its free public URLs.

  • 401

    The key is missing, invalid, revoked or its account is suspended.

  • 404

    No such record in this account.

  • 429

    More than 60 requests in a minute with this key.

curl -X DELETE "https://freeprivacypolicy.app/api/v1/domains/7/policies/acme-notes" \
  -H "Authorization: Bearer $FPP_API_KEY" \
  -H "Accept: application/json"

200 no tiene cuerpo.

Errores

Los errores son JSON con un message. Los errores de validación añaden errors, con una entrada por campo.

Estado Cuándo
401 No autenticado La clave falta, es incorrecta, fue reemplazada por una más nueva o su cuenta está suspendida. Crea una clave nueva y actualiza tu secreto.
404 No encontrado No existe ninguna política ni marca con ese slug o id en esta cuenta. Lista tus registros con GET /policies o GET /companies.
422 Error de validación Falta un campo o no es válido. errors enumera los mensajes por campo. Compara las claves con GET /options.
429 Demasiadas solicitudes Más de 60 solicitudes en un minuto con la misma clave. Espera los segundos de Retry-After y vuelve a intentarlo.
5xx Error del servidor Algo falló de nuestro lado. Reintenta con una espera cada vez mayor. Antes de repetir un POST, comprueba con un GET que no se haya procesado.
Respuesta 422
{
    "message": "The selected product type is invalid.",
    "errors": {
        "product_type": [
            "The selected product type is invalid."
        ]
    }
}

Paginación y límites

  • Las listas están paginadas. GET /policies y GET /companies aceptan page y per_page (de 1 a 100, 25 por defecto).
  • Seguir links.next hasta que sea null. meta.total cuenta todos los registros.
  • 60 solicitudes por minuto por clave. Un 429 indica cuánto esperar en Retry-After.
  • Solo JSON. Envía Accept: application/json y, si hay cuerpo, Content-Type: application/json.
GET /policies
{
    "data": [
        "…"
    ],
    "links": {
        "first": "https://freeprivacypolicy.app/api/v1/policies?page=1",
        "last": "https://freeprivacypolicy.app/api/v1/policies?page=3",
        "prev": null,
        "next": "https://freeprivacypolicy.app/api/v1/policies?page=2"
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 3,
        "path": "https://freeprivacypolicy.app/api/v1/policies",
        "per_page": 25,
        "to": 25,
        "total": 61
    }
}

Versionado y cambios

La versión va en la ruta: /api/v1. Dentro de v1 solo añadimos cosas, como campos nuevos, endpoints nuevos y servicios o secciones nuevos en GET /options, así que ignora los campos que no conozcas. Un cambio que podría romper un cliente se publica como /api/v2, y v1 sigue funcionando.

  1. 1.3.0, septiembre 2026

    Claves personales de cada cuenta, compartidas con el servidor MCP. Novedades: GET /me, GET /options, listar y eliminar políticas, company_id y published en las políticas, y los endpoints de marcas.