PolicyForge Policies API

Generate, manage, and host compliance policies

GitHub OpenAPI

Operations 5

POST /api/v1/policies Generate a policy draft #
GET /api/v1/policies List all policies #
GET /api/v1/policies/{policyId} Get a policy #
PATCH /api/v1/policies/{policyId} Update a policy #
DELETE /api/v1/policies/{policyId} Delete a policy #

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/policyforge-co:policyforge-co-policies-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

policyforge-co-policies-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PolicyForge Policies API
  description: 'AI-assisted policy workflow API. Generate, retrieve, update, and host policy drafts programmatically, and manage consent records. Generated content is not legal advice and should be reviewed before publication.


    ## Authentication

    Operations require a Bearer token unless they explicitly declare no security requirement. Generate an API key from your PolicyForge API Dashboard. Keys are prefixed with `pf_live_`.


    ## Rate Limits

    | Tier | Requests/min | Requests/day |

    |------|-------------|-------------|

    | Free | 10 | 100 |

    | Pro | 60 | 5,000 |

    | Enterprise | 300 | 50,000 |


    Rate limit headers (`X-RateLimit-Limit`, `X-RateLimit-Remaining`, `X-RateLimit-Reset`) are included in every response.'
  version: 1.0.0
  contact:
    name: PolicyForge Support
    url: https://policyforge.co
    email: support@policyforge.co
  license:
    name: Proprietary
servers:
- url: https://policyforge.co
  description: Production
security:
- BearerAuth: []
tags:
- name: Policies
  description: Generate, manage, and host compliance policies
paths:
  /api/v1/policies:
    post:
      operationId: createPolicy
      summary: Generate a policy draft
      description: Generate a policy draft from the supplied business facts and jurisdiction choice. The policy is saved, hosted at a public URL by default, and returned in the response. Review generated content before publication.
      tags:
      - Policies
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PolicyCreateRequest'
            examples:
              saas_privacy_policy:
                summary: SaaS Privacy Policy
                value:
                  type: privacy_policy
                  business_type: saas
                  jurisdiction: gdpr
                  company_name: Acme Inc
                  contact_email: privacy@acme.com
                  website_url: https://acme.com
                  service_description: Project management SaaS platform
                  data_collection:
                  - name
                  - email
                  - usage_data
                  - payment_info
                  third_party_integrations:
                  - Stripe
                  - Google Analytics
                  - Intercom
                  data_retention: 2 years after account deletion
                  user_accounts: true
                  payments: true
                  marketing: true
                  analytics: true
                  cookies: true
              ecommerce_terms:
                summary: E-commerce Terms of Service
                value:
                  type: terms_of_service
                  business_type: e-commerce
                  jurisdiction: ccpa
                  company_name: ShopDirect LLC
                  contact_email: legal@shopdirect.com
                  website_url: https://shopdirect.com
                  payments: true
                  user_accounts: true
      responses:
        '201':
          description: Policy created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PolicyResponse'
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          description: Monthly policy quota exhausted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriptionLimitError'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
    get:
      operationId: listPolicies
      summary: List all policies
      description: Retrieve policies created by the authenticated user. Returns policy metadata (not full content). Supports filtering, sorting, and offset pagination.
      tags:
      - Policies
      parameters:
      - name: limit
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 100
          default: 20
        description: Page size (1–100).
      - name: offset
        in: query
        schema:
          type: integer
          minimum: 0
          default: 0
        description: Number of results to skip.
      - name: status
        in: query
        schema:
          type: string
          enum:
          - draft
          - published
          - archived
        description: Filter by lifecycle status.
      - name: type
        in: query
        schema:
          type: string
          enum:
          - privacy_policy
          - terms_of_service
          - cookie_policy
          - refund
        description: Filter by policy type (same values as POST).
      - name: sortBy
        in: query
        schema:
          type: string
          enum:
          - createdAt
          - updatedAt
          - name
          default: updatedAt
        description: Sort field.
      - name: sortOrder
        in: query
        schema:
          type: string
          enum:
          - asc
          - desc
          default: desc
        description: Sort direction.
      responses:
        '200':
          description: List of policies
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PolicyListResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
  /api/v1/policies/{policyId}:
    parameters:
    - name: policyId
      in: path
      required: true
      schema:
        type: string
        format: uuid
      description: The unique identifier of the policy
    get:
      operationId: getPolicy
      summary: Get a policy
      description: Retrieve full details of a specific policy including its content, hosting information, and metadata.
      tags:
      - Policies
      responses:
        '200':
          description: Policy details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PolicyDetailResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
    patch:
      operationId: updatePolicy
      summary: Update a policy
      description: Update fields of an existing policy. Only provided fields will be updated. You can update the title, content, status, or hosting settings.
      tags:
      - Policies
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PolicyUpdateRequest'
      responses:
        '200':
          description: Policy updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PolicyDetailResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
    delete:
      operationId: deletePolicy
      summary: Delete a policy
      description: Permanently delete a policy and its hosted page. Pass delete_consent_records=true to also delete the consent records linked to this policy.
      tags:
      - Policies
      parameters:
      - name: delete_consent_records
        in: query
        required: false
        schema:
          type: boolean
          default: false
        description: Also delete the consent records linked to this policy before deleting it
      responses:
        '200':
          description: Policy deleted
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: Policy deleted successfully
                  deleted_consent_records:
                    type: integer
                    description: Only present when delete_consent_records=true
                    example: 12
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  responses:
    InternalError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error: Internal server error
    RateLimited:
      description: Rate limit exceeded
      headers:
        X-RateLimit-Limit:
          schema:
            type: integer
          description: Maximum requests per window
        X-RateLimit-Remaining:
          schema:
            type: integer
          description: Remaining requests in current window
        X-RateLimit-Reset:
          schema:
            type: integer
          description: Unix timestamp when the rate limit resets
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/RateLimitError'
    Unauthorized:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error: Missing or invalid API key
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error: Policy not found
  schemas:
    PolicyListResponse:
      type: object
      properties:
        policies:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
                format: uuid
              type:
                type: string
              policy_type:
                type: string
                description: Alias of `type` (same value)
              title:
                type: string
              status:
                type: string
              created_at:
                type: string
                format: date-time
              updated_at:
                type: string
                format: date-time
        total:
          type: integer
          description: Total number of policies matching the query
        limit:
          type: integer
          description: Page size applied to this query
        offset:
          type: integer
          description: Offset applied to this query
        subscription_info:
          $ref: '#/components/schemas/SubscriptionInfo'
    PolicyUpdateRequest:
      type: object
      properties:
        title:
          type: string
        content:
          type: string
        status:
          type: string
          enum:
          - draft
          - published
          - archived
        hosting_enabled:
          type: boolean
    PolicyDetailResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
        type:
          type: string
        policy_type:
          type: string
          description: Alias of `type` (same value)
        title:
          type: string
        content:
          type: string
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        published_at:
          type:
          - string
          - 'null'
          format: date-time
        effective_date:
          type:
          - string
          - 'null'
          format: date
        status:
          type: string
        hosting_enabled:
          type: boolean
        hosted_url:
          type: string
          format: uri
        url_slug:
          type: string
    PolicyResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Unique policy identifier
        type:
          type: string
          description: Policy type (privacy, terms, cookies, refund)
        policy_type:
          type: string
          description: Alias of `type` (same value), for naming consistency with the list endpoint
        title:
          type: string
          description: Generated policy title
          example: Privacy Policy - Acme Inc
        content:
          type: string
          description: Full policy content in HTML format
        created_at:
          type: string
          format: date-time
        status:
          type: string
          enum:
          - draft
          - published
          - archived
          description: Policy publication status
        hosting_enabled:
          type: boolean
        hosted_url:
          type: string
          format: uri
          description: Public URL where the policy is hosted (if hosting is enabled)
          example: https://policyforge.co/policy/privacy-acme-inc
        url_slug:
          type: string
          description: URL slug for the hosted policy
          example: privacy-acme-inc
        metadata:
          type: object
          description: Generation metadata (word count, compliance level, etc.)
        subscription_info:
          $ref: '#/components/schemas/SubscriptionInfo'
    PolicyCreateRequest:
      type: object
      required:
      - type
      - business_type
      - jurisdiction
      - contact_email
      - company_name
      properties:
        type:
          type: string
          enum:
          - privacy_policy
          - terms_of_service
          - cookie_policy
          - refund
          description: The type of policy to generate
        business_type:
          type: string
          enum:
          - e-commerce
          - saas
          - healthcare
          - education
          - financial
          - real-estate
          - non-profit
          - consulting
          - media
          - other
          description: Your business category
        jurisdiction:
          type: string
          enum:
          - gdpr
          - ccpa
          - pipeda
          - us
          - eu
          - ca
          - uk
          - global
          description: Primary legal jurisdiction for compliance
        company_name:
          type: string
          description: Your company or organization name
          example: Acme Inc
        contact_email:
          type: string
          format: email
          description: Contact email for privacy/legal inquiries
          example: privacy@acme.com
        website_url:
          type: string
          format: uri
          description: Your website URL
          example: https://acme.com
        service_description:
          type: string
          description: Brief description of your service or product
          example: Project management SaaS platform for remote teams
        data_collection:
          type: array
          items:
            type: string
          description: Types of data your service collects
          example:
          - name
          - email
          - usage_data
          - payment_info
        third_party_integrations:
          type: array
          items:
            type: string
          description: Third-party services you integrate with
          example:
          - Stripe
          - Google Analytics
          - Intercom
        data_retention:
          type: string
          description: How long you retain user data
          example: 2 years after account deletion
        user_accounts:
          type: boolean
          default: false
          description: Whether your service has user accounts
        payments:
          type: boolean
          default: false
          description: Whether your service processes payments
        marketing:
          type: boolean
          default: false
          description: Whether you send marketing communications
        analytics:
          type: boolean
          default: false
          description: Whether you use analytics tracking
        cookies:
          type: boolean
          default: true
          description: Whether your website uses cookies
        children_data:
          type: boolean
          default: false
          description: Whether your service collects data from children under 13
        hosting_enabled:
          type: boolean
          default: true
          description: Whether to host the policy at a public URL
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Error message
        details:
          description: Additional error details (string or array of strings)
    SubscriptionLimitError:
      type: object
      properties:
        error:
          type: string
          example: Monthly policy quota exhausted. Upgrade to continue.
        details:
          type: object
          properties:
            tier:
              type: string
              example: free
            limit:
              type: integer
              example: 2
            used:
              type: integer
              example: 2
            resets_at:
              type:
              - string
              - 'null'
              example: '2026-06-01'
    SubscriptionInfo:
      type: object
      properties:
        tier:
          type: string
          enum:
          - free
          - pro
          - enterprise
        can_create_more:
          type: boolean
        remaining_policies:
          type: integer
    ValidationError:
      type: object
      properties:
        error:
          type: string
          example: Request validation failed
        details:
          type: array
          items:
            type: string
          example:
          - 'Missing required field: type'
          - 'Invalid business type: unknown'
    RateLimitError:
      type: object
      properties:
        error:
          type: string
          example: Rate limit exceeded
        retry_after:
          type: integer
          description: Seconds until the rate limit resets
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: 'API key from your PolicyForge dashboard. Keys are prefixed with `pf_`. Example: `pf_abc123def456...`'